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

Hello i want to make a command like /v car name
when people type /v [car name] they will get that car

And also i want to make a command like /createobject [ID name] I wanna add buildings like houses etcs
Reply
#2

Read the wiki. You don't seriously expect us to do everything for you, right?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)