How do I make this command to YCMD?
#1

PHP код:
dcmd_J(playerid,params[]) return dcmd_Jail(playerid,params);
dcmd_Jail(playeridparams[])
{
return 
true;

how?
Reply
#2

pawn Код:
YCMD:Jail(playerid, params[], help)
{
    if (help)
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "This command jails players");
    }
    else
    {
        //Anything you want the command to do
    }
    return 1;
}
Reply
#3

I believe he was asking how to add an alternate named command. And you can do that using Command_AddAltNamed().

For example: Command_AddAltNamed("jail", "j");
Reply
#4

Quote:
Originally Posted by HP
Посмотреть сообщение
I believe he was asking how to add an alternate named command. And you can do that using Command_AddAltNamed().

For example: Command_AddAltNamed("jail", "j");
tnx!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)