commands
#1

hey can anyone tell me how can i create command:
example i have command /fuckthatsonofabitch
how can i create command /fsb but to make function of ,,/fuckthatsonofabitch'' without to need to duplicate command ?
Reply
#2

Do you mean, make the command shorter to use?
If yes, then use this:
pawn Код:
//The original command - long one
CMD:fuckthatsonofbitch(playerid,params[])
{
     //Your things
     return 1;
}
---
pawn Код:
CMD:fsb(playerid,params[]) //The short command - same as /fuckthatsonofbitch
{
     return cmd_fuckthatsonofbitch(playerid,params)
}
Edit: You can use this to make a similar command for it, whether to make it shorter to use or use it as another name.
Reply
#3

Yes thats it Thanks you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)