08.04.2017, 11:59
Here is a simple /obj it will create the ObjectID in the player's position if you want to create the object a little further from the player's position you can add some value to the x and y in CreateObject for example CreateObject(ObjectID,x+10.0,y,z,0.0,0.0,96.0);
Quote:
|
CMD bj(playerid,params[]){ new ObjectID,Float ,Float:y,Float:z;if(sscanf(params,"i",ObjectID)){return SendClientMessage(playerid,0xff0000ff,"Usage: /obj [Object ID]");} GetPlayerPos(playerid,x,y,z); CreateObject(ObjectID,x,y,z,0.0,0.0,96.0); return 1; } |


bj(playerid,params[])
,Float:y,Float:z;