Different spawns
#4

create an array with spawn locations in it. (OnPlayerSpawn)
pawn Код:
new Float:RandSpawn[][4] = {//x, y, z, angle
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0},
    {0.0, 0.0, 0.0, 0.0}
};
then check for example in what team he is or just do

(you are setting the position from the player random to one of the array)

pawn Код:
new rand = random(sizeof(RandSpawn));
SetPlayerPos(playerid, RandSpawn[rand][0], RandSpawn[rand][1], RandSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandSpawn[rand][3]);
Reply


Messages In This Thread
Different spawns - by DaniceMcHarley - 06.06.2013, 11:41
AW: Different spawns - by HurtLocker - 06.06.2013, 11:45
Re: Different spawns - by DaniceMcHarley - 06.06.2013, 11:47
Re: Different spawns - by jordy.kiesebrink - 06.06.2013, 11:49
Re: Different spawns - by DaniceMcHarley - 06.06.2013, 12:02
Re: Different spawns - by jordy.kiesebrink - 06.06.2013, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)