DCMD Question.
#1

How can I make from :
dcmd_takeoutmoney to dcmd_tom ?
Reply
#2

Well that basic, just search for dcmd_takeoutmoney (use ctrl + f) then rename it to dcmd_tom.

Note: Dont forget to rename it from OnPlayerCommandText;
Reply
#3

And don't forget to edit the lenght too.
Reply
#4

I ment, I have the takeoutmoney, I just want to make the /tom be a shortcut of /takemoneyout
Reply
#5

Do like Kelvin say and you are done
Quote:

Well that basic, just search for dcmd_takeoutmoney (use ctrl + f) then rename it to dcmd_tom.

Note: Dont forget to rename it from OnPlayerCommandText;

Reply
#6

Ok then do something like this:

pawn Код:
dcmd_tom(playerid, params[]) //the command wich will call the long command
{
  dcmd_takemoneyout (playerid, params); //the command wich you want to call with short command
  return 1;
}
Note: Next time search
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)