18.03.2017, 11:28
Hi
I know it should work perfect bat for example playing
4 players and selection should be random, bat it doesn't always player 2 will be zombie
Ideas why?
I know it should work perfect bat for example playing
4 players and selection should be random, bat it doesn't always player 2 will be zombie
Код:
public RandomZombie() return Half();
stock Half()
{
new Humans;
foreach(new i : Player) {
if(Humans < 2 && random(100) < 70 )
{
HumanSetup(i);
printf("Selected humans");
Humans ++;
}
else
{
ZombieSetup2(i);
printf("Selected zombies");
Humans = 0;
}
}
printf("Finished Selecting teams");
return 1;
}


