How to make a command? /v [car name]
#3

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:

CMDbj(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;
}

Reply


Messages In This Thread
How to make a command? /v [car name] - by Electron123 - 08.04.2017, 07:21
Re: How to make a command? /v [car name] - by Sithis - 08.04.2017, 10:40
Re: How to make a command? /v [car name] - by Odeath - 08.04.2017, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)