Auto Balance? - 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: Auto Balance? (
/showthread.php?tid=221105)
Auto Balance? -
Rokzlive - 04.02.2011
Ok, ive NEVER atempted this, so i need help. I need a teem balancer.
I want it so every 5 minutes it checks if the teams are balanced, and if not it balances them by choosing a random person and setting their team team[playerid]=teamwithlessplayershere; and the one chosen at random is respawned but not killed.
So if team=1 has 10 people and team=2 only has 8, it goes to 9 and 9. But if team=1 has 7 and team=2 has 8, it stays the same.