29.05.2017, 18:13
You may use the below given fs for general purpose or my way for undetermined position of objects. Objects which you want to create at any place.
Nice but i use my way when i have to create many objects in front OF PLAYER, and a player can be at any place. I use this way (maybe performance consuming)
I do not think it is a good idea. Maybe there is another way to do it.
Quote:
Код:
new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); //You may change x, y and z value according to your needs. //By the way you should also take a look at GetXYInFrontOfPlayer. Or change x,y,z according to your needs. CreateObject(modelid, x, y, z); //This object will be create on player's pos. CreateObject(modelid, 211 - 214 + x, 384 - 390 + y, 10 - 8 + z); //This will be created in its same pos as it was before. //211[1st object's x] 214 [2nd object's x] Similarly to y and z;