SA-MP Forums Archive
different from the current location spawn - 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: different from the current location spawn (/showthread.php?tid=626571)



different from the current location spawn - kloning1 - 17.01.2017

hi, i have little problem here

this my code [from zombie apocalypse]
Код:
stock SpawnSetup()
{
    new count = 0;
    new Random = Iter_Random(Player);
    foreach(Player, i)
    {
        if(team[i] == TEAM_RED) count++;
        if(count == Iter_Count(Player))
        {
		BlueTeam(Random);
        }
    }
    return 1;
}
my think

if player under 5, spawn 1 blue team
if player more than 5, spawn 2 blue team


Re: different from the current location spawn - kloning1 - 17.01.2017

bump


Re: different from the current location spawn - kloning1 - 18.01.2017

bump