Even Teams - 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: Even Teams (
/showthread.php?tid=128923)
Even Teams -
Kanji_Suzuki - 20.02.2010
Hello,
Can anyone tell me how to make a even team script
so you dont get one team with 48 and anothe with 2
i will make then even so you get 25 and 25
Thanks
Jack Bull
Re: Even Teams -
Kanji_Suzuki - 21.02.2010
Just delete the post,
because noone gives a shit about helping me
Re: Even Teams -
VonLeeuwen - 21.02.2010
Can't agree more.
Re: Even Teams -
Burridge - 21.02.2010
Top of your script.
Then under OnPlayerSpawn
pawn Код:
new Team1=0, Team2=0;
for(new i = 0; i < MAX_PLAYERS; i++) {
if(TEAM VARIABLE HERE) Team1++;
if(TEAM VARIABLE HERE) Team2++;
if(Team1 > Team2) TEAM VARIABLE HERE;
else if(Team2 > Team1) TEAM VARIABLE HERE;
}
Should work. This is only for two different teams however, you'll need to edit it more should you want more teams on there.