18.05.2012, 07:34
(
Последний раз редактировалось Kitten; 24.11.2013 в 06:25.
)
Solved
new Humans, Zombies, rand = random(2);
if(rand == 0) // Setting ID 0 to Human and continuing with the cycle
{
foreach(Player, i)
{
if(Humans == Zombies)
{
gTeam[i] = TEAM_HUMAN;
Humans ++;
}
else
{
gTeam[i] = TEAM_ZOMBIE;
Zombies ++;
}
}
}
else // Setting ID 0 to Zombie and continuing with the cycle
{
foreach(Player, i)
{
if(Humans == Zombies)
{
gTeam[i] = TEAM_ZOMBIE;
Zombies ++;
}
else
{
gTeam[i] = TEAM_HUMAN;
Humans ++;
}
}
}