stock OneZombie()
{
new count = 0;
new Random = Iter_Random(Player);
foreach(Player, i)
{
if(team[i] == TEAM_HUMAN) count++;
if(count == Iter_Count(Player))
{
ZombieSetup(Random);
}
}
return 1;
}
public RandomZombie() return Half();
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;
} |