SA-MP Forums Archive
Select 2-3 Players instead of one - 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: Select 2-3 Players instead of one (/showthread.php?tid=575060)



Select 2-3 Players instead of one - Blackazur - 23.05.2015

Hello, how can i make that this chooses more players instead of one?

Код:
stock TeamBalance()
{
    new count = 0;
    new Random = Iter_Random(Player);
    foreach(Player, i)
    {
        if(team[i] == TEAM_RED) count++;
        if(count == Iter_Count(Player))
        {
			ZombieSetup(Random);
        }
    }
    return 1;
}



AW: Select 2-3 Players instead of one - Blackazur - 23.05.2015

Anyone?