Commands 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)
+--- Thread: Commands Ycmd (
/showthread.php?tid=282862)
Commands Ycmd -
TheBluec0de - 12.09.2011
how do I do that in YCMD?
Код:
if(!strcmp(cmdtext, "/NAMECOMMAND 0", true)||!strcmp(cmdtext, "/NAMECOMMAND 1", true))
Re: Commands Ycmd -
TheBluec0de - 12.09.2011
uh uh

?
Re: Commands Ycmd -
Wesley221 - 12.09.2011
pawn Код:
YCMD:mycommand2(playerid, params[], help)
return cmd_mycmd(playerid, params, help);
Im not sure if this works, but worth a try eh
Re: Commands Ycmd -
TheBluec0de - 12.09.2011
dont work D:
Re: Commands Ycmd -
TheBluec0de - 12.09.2011
emm help me please

?
Re: Commands Ycmd -
TheBluec0de - 12.09.2011
****** you have any ideas?
Re: Commands Ycmd -
Alureon - 12.09.2011
Try
pawn Код:
Command_AddAltNamed(old[], altname[])
Re: Commands Ycmd -
TheBluec0de - 12.09.2011
I did not understand, make me an example with a full command please
Re: Commands Ycmd -
Alureon - 12.09.2011
pawn Код:
YCMD:mycommand(playerid, params[], help)
{
//code...
return 1;
}
Command_AddAltNamed("mycommand", "mycommand2");
Tell me if it work or not.
Re: Commands Ycmd -
TheBluec0de - 12.09.2011
where should I put it?
Код:
Command_AddAltNamed("mycommand", "mycommand2");
If I put under the command tells me that is already defined