PDA

View Full Version : gTeam!


ironmen
16/07/2015, 01:23 PM
Hey!
Is there a function to check player's gTeam like GetPlayergTeam ???
And if there is not how to make one?
Thanks!
Ironmen :D

KillerDVX
16/07/2015, 01:27 PM
stock GetPlayersInTeam(TEAM)
{
new players;
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (gTeam[i] == TEAM) players++;
}
}
return players;
}