Get Team Count?
#5

pawn Код:
stock GetTeamCount(teamid)
{
   new playercount = 0;
   for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerState(i) == PLAYER_STATE_NONE) continue;
        if(gTeam[i] != teamid) continue;
        playercount++;
    }
   return playercount;
}
ENTER Teamid in the (temid)

like
pawn Код:
new teamcount1 = GetTeamCount(TEAM_1);
format(string,400, "Team1: %d",teamcount1);
Reply


Messages In This Thread
Get Team Count? - by (_AcE_) - 03.04.2013, 01:14
Re: Get Team Count? - by LarzI - 03.04.2013, 01:20
Re: Get Team Count? - by (_AcE_) - 03.04.2013, 01:30
Re: Get Team Count? - by JJB562 - 03.04.2013, 01:59
Re: Get Team Count? - by kamzaf - 03.04.2013, 02:09

Forum Jump:


Users browsing this thread: 1 Guest(s)