Post: Team only functions?
08-24-2015, 05:06 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Does anyone know how to do team only functions? Like give god to my team mates only or inf ammo or a weapon etc, Thanks Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following user groaned TheNiceUb3r for this awful post:

itsSorrow
08-24-2015, 05:20 AM #2
itsSorrow
In my man cave
You must login or register to view this content.
08-24-2015, 05:24 AM #3
Originally posted by 9658
You must login or register to view this content.


You that mad bro? like really its a help section if you have no help to give them buzz off Smile

The following user thanked TheNiceUb3r for this useful post:

DF_AUS
08-24-2015, 05:35 AM #4
itsSorrow
In my man cave
Originally posted by TheNiceUb3r View Post
You that mad bro? like really its a help section if you have no help to give them buzz off Smile


You must login or register to view this content.
08-24-2015, 08:43 AM #5
Originally posted by GentleSlugger View Post
You must login or register to view this content.


stop being mean!!!!!
08-24-2015, 02:57 PM #6
-Numb
You talkin to me?
Originally posted by TheNiceUb3r View Post
Does anyone know how to do team only functions? Like give god to my team mates only or inf ammo or a weapon etc, Thanks Smile


MyTeamFunction()
{
foreach( player in level.players )
{
if(player.pers["team"] == self.pers["team"])
{
//Function for your team here
}
}
}

EnemyTeamFunction()
{
foreach( player in level.players )
{
if(player.pers["team"] != self.pers["team"])
{
//Function for enemy team here
}
}
}
08-24-2015, 11:36 PM #7
Originally posted by Numb View Post
MyTeamFunction()
{
foreach( player in level.players )
{
if(player.pers["team"] == self.pers["team"])
{
//Function for your team here
}
}
}

EnemyTeamFunction()
{
foreach( player in level.players )
{
if(player.pers["team"] != self.pers["team"])
{
//Function for enemy team here
}
}
}


Thanks for that, Now how would you make the actual menu know which team is which when doing it.
08-24-2015, 11:41 PM #8
Originally posted by Numb View Post
MyTeamFunction()
{
foreach( player in level.players )
{
if(player.pers["team"] == self.pers["team"])
{
//Function for your team here
}
}
}

EnemyTeamFunction()
{
foreach( player in level.players )
{
if(player.pers["team"] != self.pers["team"])
{
//Function for enemy team here
}
}
}


Like I am confused would I use a regular function and just put it in there and rename it? Make it a players function or what?
08-25-2015, 06:28 AM #9
-Numb
You talkin to me?
Originally posted by TheNiceUb3r View Post
Like I am confused would I use a regular function and just put it in there and rename it? Make it a players function or what?


Yes.. You could put any function where I made "//function here",
you could also do like "player thread GodMode();" if you have a godmode function in your script ofc Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo