03.03.2015, 18:24
new rand[4];
rand[0] = random(3000);
rand[1] = random(3000);
rand[2] = random(300);
( rand[3] add random(2) if it's 1 => multiply rand[0] by 1 , if 0 multiply it by -1 )
SetObjectPos(theobject you created, rand[0], rand[1], rand[2]);
Send message to admins : format(string, 128, " Item spawned in %f, %f, %f coords.", rand[0], rand[1], rand[2]);
Good luck finding it, that's what you asked for ( random ) because you said you don't wanna make array that contains different ( real random position ) because random can spawn the object in the air, in buildings, in mountains ..
MapAndreas uses a lot of RAM, it's efficient, accurate, but too heavy.
rand[0] = random(3000);
rand[1] = random(3000);
rand[2] = random(300);
( rand[3] add random(2) if it's 1 => multiply rand[0] by 1 , if 0 multiply it by -1 )
SetObjectPos(theobject you created, rand[0], rand[1], rand[2]);
Send message to admins : format(string, 128, " Item spawned in %f, %f, %f coords.", rand[0], rand[1], rand[2]);
Good luck finding it, that's what you asked for ( random ) because you said you don't wanna make array that contains different ( real random position ) because random can spawn the object in the air, in buildings, in mountains ..
MapAndreas uses a lot of RAM, it's efficient, accurate, but too heavy.