Team balancer?
#6

Create a variable that holds the amount of players on each team. If they spawn with the specified team, up the variable by one. Then in OnPlayerRequestSpawn, check if the team the player wants to spawn with has a higher count then the others. If so, return 0 and notify them why they cannot spawn with that team.
Reply


Messages In This Thread
Team balancer? - by Rocky Balboa - 02.11.2010, 19:39
Re: Team balancer? - by iJumbo - 02.11.2010, 19:41
Re: Team balancer? - by Rocky Balboa - 02.11.2010, 19:47
Re: Team balancer? - by MBX97 - 02.11.2010, 20:22
Re: Team balancer? - by Rocky Balboa - 03.11.2010, 00:52
Re: Team balancer? - by Grim_ - 03.11.2010, 08:34
Re: Team balancer? - by Retardedwolf - 03.11.2010, 08:38

Forum Jump:


Users browsing this thread: 5 Guest(s)