SA-MP Forums Archive
How do I make this command to YCMD? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do I make this command to YCMD? (/showthread.php?tid=271743)



How do I make this command to YCMD? - NeyMar96 - 25.07.2011

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

how?


Re: How do I make this command to YCMD? - dowster - 25.07.2011

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



Re: How do I make this command to YCMD? - HP - 25.07.2011

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");


Re: How do I make this command to YCMD? - NeyMar96 - 26.07.2011

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!