07.11.2010, 20:43
Код:
new TeamCount[2];
Код:
public OnPlayerRequestSpawn(playerid) { if((gTeam[playerid] == TEAM_CT) ? (TeamCount[0] > TeamCount[1]+3) : (TeamCount[0] < TeamCount[1]+3)) { SendClientMessage(playerid, 0x00ff00ff, "Unable to spawn, the teams aren't balanced!"); return 0; } TeamCount[(gTeam[playerid] == TEAM_CT) ? (0) : (1)]++; }