24.11.2012, 18:46
LOL! too many noobs XD
Dude, try this
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]);