Team Balancer
#1

Код:
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)]++;
}
how do I change that to 6 teams ?
Reply


Messages In This Thread
Team Balancer - by marinov - 07.11.2010, 20:43
Re: Team Balancer - by -Rebel Son- - 07.11.2010, 22:32
Re: Team Balancer - by marinov - 07.11.2010, 22:46

Forum Jump:


Users browsing this thread: 1 Guest(s)