12.12.2010, 17:40
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
}
}