Zombie choose
#1

Hello everyone, i need help.

Код:
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;
}
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)