Team Balancer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Team Balancer (
/showthread.php?tid=79799)
Team Balancer -
Mowgli - 30.05.2009
How do i set up a team balancer on a script... So if there if there is 3 extra people on one team to the other, You automaticly go on the team with less people (and so i can edit the 3 difference in people to 1 or 5 or whatever we feel is needed)
Re: Team Balancer -
yom - 31.05.2009
If you have only 2 teams it's easy, just compare the amount of players in team 1 with the amount of players in team 2, if difference is greater than 3 then change the team of the last player who joined the team where there are most players, to the other team.