23.07.2009, 12:23
Quote:
|
Don't work, I got always a message 'To balance the teams, please select the other team.' and it will not spawn ![]() |
Код:
public OnPlayerRequestSpawn(playerid)
{
new tcount[2];
for(new i, m = GetMaxPlayers(); i < m; i++)
if(IsPlayerConnected(i))
tcount[gTeam[i]]++;
if(tcount[gTeam[playerid]]-1 > tcount[gTeam[playerid]?0:1])
return SendClientMessage(playerid, RED, "To balance the teams, please select the other team."),0;
return 1;
}
Quote:
|
Код:
return SendClientMessage(playerid, RED, "To balance the teams, please select the other team."),0; |


