03.03.2014, 13:56
Hello everyone, i need help.
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
Код:
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; }
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