Random car pos?..
#3

Edit: Cameltoe beat me too it xD

Maybe add your random coordinates into an array?

pawn Код:
enum DataEnum {Float:x, Float:y, Float:z}
new Data[][DataEnum] = {
{-2432.7859,2314.7695,4.7579,324.4159}
{-2432.6313,2294.3455,4.7548,321.2483}
};

// And then do:

new rand = random(sizeof(Data));
masinike = CreateVehicle(415, Data[rand][x], Data[rand][y], Data[rand][z], 161, 161, -1);
Theres probably a different way that i dont know, this is probably easier anyway
Reply


Messages In This Thread
Random car pos?.. - by AndriusZ* - 15.09.2010, 19:40
Re: Random car pos?.. - by Cameltoe - 15.09.2010, 19:45
Re: Random car pos?.. - by Ash. - 15.09.2010, 19:46
Re: Random car pos?.. - by Cameltoe - 15.09.2010, 19:50

Forum Jump:


Users browsing this thread: 3 Guest(s)