26.04.2011, 13:06
Look i created a function:
pawn Код:
stock GetPlayersFromTeam(TeamID)
{
for(new I = 0; I < MAX_PLAYERS; I++)
{
if(!IsPlayerConnected(I)) continue;
new
Count = 0;
if(GetPlayerTeam(I) == TeamID)
{
Count++;
}
}
return Count;
}