Team balance
#8

Quote:
Originally Posted by Steven Paul
Посмотреть сообщение
use this tested


At the top add

Код:
new TeamPlayers[ <Amount of teams here> ];
And then replace this


pawn Код:
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;
    }
  }
}
Already have that. STill same errors.

Isn't there another way to balance them?
Reply


Messages In This Thread
Team balance - by bartje01 - 27.01.2011, 19:54
Re: Team balance - by bartje01 - 27.01.2011, 21:46
Re: Team balance - by Larsey123IsMe - 27.01.2011, 23:06
Re: Team balance - by bartje01 - 28.01.2011, 13:27
Re: Team balance - by Steven Paul - 28.01.2011, 13:46
Re: Team balance - by bartje01 - 28.01.2011, 13:49
Re: Team balance - by Steven Paul - 28.01.2011, 13:52
Re: Team balance - by bartje01 - 28.01.2011, 14:17
Re: Team balance - by Steven Paul - 28.01.2011, 14:40
Re: Team balance - by bartje01 - 28.01.2011, 14:44

Forum Jump:


Users browsing this thread: 2 Guest(s)