Example random spawn needed
#2

pawn Код:
new Float:RandSpawns[2][4] = { //our array
{X, Y, Z, Angle},
{X, Y, Z, Angle}
};
Then when we want to spawn them

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


Messages In This Thread
Example random spawn needed - by smokeweed - 04.02.2012, 16:11
Re: Example random spawn needed - by [ABK]Antonio - 04.02.2012, 16:15
Re: Example random spawn needed - by smokeweed - 04.02.2012, 16:26
Re: Example random spawn needed - by Konstantinos - 04.02.2012, 16:31
Re: Example random spawn needed - by smokeweed - 04.02.2012, 16:32
Re: Example random spawn needed - by [ABK]Antonio - 04.02.2012, 16:33
Re: Example random spawn needed - by smokeweed - 04.02.2012, 16:41
Re: Example random spawn needed - by Konstantinos - 04.02.2012, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)