Team Balance.
#4

pawn Код:
new sTotal;
for(new i = 0; i < MAX_PLAYERS ; i ++)
{
    if(IsPlayerConnected(i))
        sTotal++;

    if(i == (MAX_PLAYERS-1))
    {
        new dCalc = sTotal/2;
        for(new gT = dCalc; gT == dCalc; gT--)
            SetPlayerTeam(gT,TIME_1);//mude aqui o time
        for(new zT = dCalc; zT < sTotal; gT++)
            SetPlayerTeam(zT,TIME_2);//mude aqui o time
    }
}
Reply


Messages In This Thread
Team Balance. - by Felipe_Wesker - 10.12.2010, 21:02
Re: Team Balance. - by [BEP]AcerPilot - 10.12.2010, 21:04
Re: Team Balance. - by Manteiga01 - 10.12.2010, 23:04
Respuesta: Team Balance. - by ipsBruno - 12.12.2010, 17:40

Forum Jump:


Users browsing this thread: 2 Guest(s)