18.09.2010, 12:02
How can I balance teams ?
Note: In my script there are 2 teams
TEAM_CT
TEAM_T
Note: In my script there are 2 teams
TEAM_CT
TEAM_T
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)]++;
}