SA-MP Forums Archive
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=187418)



Team balancer? - Rocky Balboa - 02.11.2010

How to make a team balancer? I wanted to make a team balancer for 3 teams, onplayerrequestspawn.. but it wasnt working....
Anyone could help me with that ?


Re: Team balancer? - iJumbo - 02.11.2010

make a var when player select a team then if(var == 3) you cant select a team ..


Re: Team balancer? - Rocky Balboa - 02.11.2010

yea, very easy... duh


Re: Team balancer? - MBX97 - 02.11.2010

yea so easy , i mean not important to post it here , try to search
pawn Код:
new MBX[ MAX_WHORES ];



Re: Team balancer? - Rocky Balboa - 03.11.2010

so ?anyone ?


Re: Team balancer? - Grim_ - 03.11.2010

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.


Re: Team balancer? - Retardedwolf - 03.11.2010

http://forum.sa-mp.com/showthread.ph...=team+balancer
http://forum.sa-mp.com/showthread.ph...=team+balancer
http://forum.sa-mp.com/showthread.ph...=team+balancer
http://forum.sa-mp.com/showthread.ph...=team+balancer
http://forum.sa-mp.com/showthread.ph...=team+balancer


That is how much I found. If you are willing to search you will even find more.