03.04.2013, 01:59
Try using these:
These are not tested but they should work.
pawn Код:
stock GetPlayersCountInTeamHome()
{
new count;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerTeam(i) == TEAM_HOME)
{
count++;
}
}
}
return count;
}
stock GetPlayersCountInTeamAway()
{
new count;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerTeam(i) == TEAM_AWAY)
{
count++;
}
}
}
return count;
}