05.02.2017, 14:34
Hi i find one stuff and its have one bug i will try explain it
so we have this code
So this code should select zombie and human players bat its have one bug and this bug work like this
we have 3players with names
Josh_Bla
Carl_Bla
Trump_Bla
So now always Trump_Bla will be zombie and Josh_Bla and Carl_Bla humans. So i think somehow i need make it random or something. Anyway i have no idea how should i make this random.
so we have this code
Код:
stock Half()
{
new Humans;
foreach(new i : Player)
{
if(Humans < 2)
{
HumanSetup(i);
printf("Selected humans");
Humans ++;
}
else
{
ZombieSetup2(i);
printf("Selected zombies");
Humans = 0;
}
}
printf("Finished Selecting teams");
return 1;
}
we have 3players with names
Josh_Bla
Carl_Bla
Trump_Bla
So now always Trump_Bla will be zombie and Josh_Bla and Carl_Bla humans. So i think somehow i need make it random or something. Anyway i have no idea how should i make this random.


