Y INI 2 commands for 1 thing - 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: Y INI 2 commands for 1 thing (
/showthread.php?tid=491966)
Y INI 2 commands for 1 thing -
whando - 01.02.2014
Hey, just a quick question I started using MySQL and Y_INI a few days ago. Now I made a engine command but I want to have /engine and /e, how to get both of them?
YCMD:engine(playerid, params[], help)
Thanks!
Re: Y INI 2 commands for 1 thing -
TheFlyer - 01.02.2014
YCMD:e(playerid, params[], help) return cmd_engine(playerid, params, help);
Done
Re: Y INI 2 commands for 1 thing -
erminpr0 - 01.02.2014
Quote:
Originally Posted by TheFlyer
YCMD:e(playerid, params[], help) return cmd_engine(playerid, params, help);
Done
|
Nope, it's
Command_AddAltNamed("engine", "e")
Re: Y INI 2 commands for 1 thing -
whando - 01.02.2014
So how do I exactly do it? :P
Re: Y INI 2 commands for 1 thing -
erminpr0 - 01.02.2014
Код:
YCMD:engine(playerid, params[], help)
{
....
}
public OnGameModeInit()
{
Command_AddAltNamed("engine", "e");
return 1;
}
Re: Y INI 2 commands for 1 thing -
whando - 01.02.2014
Great, thanks!