SA-MP Forums Archive
Random System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random System (/showthread.php?tid=498861)



Random System - Blackazur - 05.03.2014

Hello, how can i make that this picks 2 or 3 zombies (depending on player amount)?

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



AW: Random System - Blackazur - 05.03.2014

nobody?


AW: Random System - Blackazur - 06.03.2014

No one can help me with that?