Auto team balance
#4

Here's an idea but it does not use a cmd.

Код:
new TeamPlayers[ <Amount of teams here> ];

public OnPlayerRequestSpawn(playerid)
{
  for(new teams; teams < [Team Amount]; teams++)
  {
    if(teams == GetPlayerTeam(playerid)) continue; //Or gTeam[playerid], or w/e you use.
    if(TeamPlayers[Player Team Variable] > TeamPlayers[teams] + 3)
    {
      SendClientMessage(playerid, COLOR_RED, "You can't join this team as it would unbalance the game!");
      return 0;
    }
  }
}
Reply


Messages In This Thread
Auto team balance - by GwENiko - 24.11.2013, 14:55
Re: Auto team balance - by Pottus - 24.11.2013, 14:59
Re: Auto team balance - by GwENiko - 24.11.2013, 15:17
Re: Auto team balance - by Zues - 24.11.2013, 15:32
Re: Auto team balance - by GwENiko - 26.11.2013, 19:26
Re: Auto team balance - by GwENiko - 29.11.2013, 17:32
Re: Auto team balance - by xVIP3Rx - 29.11.2013, 17:49
Re: Auto team balance - by Konstantinos - 29.11.2013, 17:57
AW: Auto team balance - by Nero_3D - 29.11.2013, 18:49
Re: Auto team balance - by Konstantinos - 29.11.2013, 18:59

Forum Jump:


Users browsing this thread: 2 Guest(s)