Zombie choose - 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: Zombie choose (
/showthread.php?tid=498438)
Zombie choose -
brightas - 03.03.2014
Hello everyone, i need help.
Код:
stock Half()
{
new Humans;
foreach(Player, i)
{
if(Humans < 3)
{
HumanSetup(i);
ShowCoinDialog(i);
printf("Selected humans");
Humans ++;
}
else
{
ZombieSetup2(i);
printf("Selected zombies");
Humans = 0;
}
}
printf("Finished Selecting teams");
return 1;
}
So this code choose zombies, but its buggy a little bit.
If there is 4 players in server
1.Peter
2.John
3.Tommy
4.Liam
Every map change the zombie will be Liam, how to remake this system, that every map zombie would be random choosed.
p.s sorry for bad english