team balancing
#1

Hello.
I had searched this, but don't get working team balance..
I would like that a team (example the usa) maximum 2 more players as the other teams have..
my try with one team:

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  for(new p = 0; p < GetMaxPlayers(); p++)
  {
      if(2 > gTeam[p] == TEAM_USA > gTeam[p] == TEAM_EUROPE > gTeam[p] == TEAM_TALIBAN > gTeam[p] == TEAM_RUSSIA > gTeam[p] == TEAM_ASIA)
        {
    SendClientMessage(playerid,0xFFFFFFAA, "Team USA is full.");
    return 0;
        }
    }
    return 1;
}
but doesn't work.
Reply


Messages In This Thread
team balancing - by Headshot1108 - 25.03.2010, 15:47
Re: team balancing - by Headshot1108 - 25.03.2010, 17:24
Re: team balancing - by Headshot1108 - 26.03.2010, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)