Team Balance Random - 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)
+--- Thread: Team Balance Random (
/showthread.php?tid=573360)
~nvm~ -
Blackazur - 06.05.2015
~nvm~
Re: Team Balance Random -
X337 - 07.05.2015
Код:
stock TeamBalance()
{
new Humans;
new count = GetPlayerPoolSize();
count /= 2;
foreach(Player, i)
{
if(Humans <= count)
{
HumanSetup(i);
printf("Selected humans");
Humans ++;
}
else
{
ZombieSetup2(i);
printf("Selected zombies");
Humans = 0;
}
}
printf("Finished Selecting teams");
return 1;
}
AW: Re: Team Balance Random -
Blackazur - 07.05.2015
~nvm~