RANDOM POSITION ??
#8

LOL! too many noobs XD

Dude, try this

pawn Код:
//At the top i got
new Float:RandomSpawn2[][] = { // <--------| dont add arrays. the system will define the arrays :D
{4505.9125976563,472.86169433594,34.201229095459},
{4467.1752929688,440.80676269531,34.886543273926},
{4484.0966796875,538.9677734375,52.043884277344},
{4456.326171875,495.46887207031,51.698280334473},
{4498.04296875,427.70236206055,34.49084854126},
{4373.0122070313,448.24356079102,34.037418365479}
};

//then later on i got
new rand = random(sizeof(RandomSpawn2));
/* if you use i for each players then use this
for(new i=0;i<MAX_PLAYERS;i++) if(IsPlayerConnected(i)) */
// <----- dont forget to use this code
SetPlayerPos(playerid, RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2]);
Reply


Messages In This Thread
RANDOM POSITION ?? - by park4bmx - 19.02.2011, 09:29
Re: RANDOM POSITION ?? - by park4bmx - 19.02.2011, 10:05
Re: RANDOM POSITION ?? - by Outlaaw - 19.02.2011, 10:10
Re: RANDOM POSITION ?? - by Mean - 19.02.2011, 11:15
Re: RANDOM POSITION ?? - by dino_d_carter - 23.11.2012, 17:35
Re: RANDOM POSITION ?? - by park4bmx - 23.11.2012, 17:38
AW: RANDOM POSITION ?? - by Skimmer - 24.11.2012, 18:07
Re: RANDOM POSITION ?? - by dr.lozer - 24.11.2012, 18:46
Re: RANDOM POSITION ?? - by park4bmx - 24.11.2012, 19:12

Forum Jump:


Users browsing this thread: 2 Guest(s)