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
#2

sorry for bump, but i need it
Reply
#3

bump again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)