04.02.2011, 22:33
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.
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.