get ALL players team ... is that posible ?
#2

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;
}
Reply


Messages In This Thread
get ALL players team ... is that posible ? - by Amine_Mejrhirrou - 26.04.2011, 13:02
Re: get ALL players team ... is that posible ? - by Raimis_R - 26.04.2011, 13:06
Re : get ALL players team ... is that posible ? - by Amine_Mejrhirrou - 26.04.2011, 14:21
Re: get ALL players team ... is that posible ? - by Raimis_R - 26.04.2011, 14:25
Re : get ALL players team ... is that posible ? - by Amine_Mejrhirrou - 26.04.2011, 20:05

Forum Jump:


Users browsing this thread: 2 Guest(s)