Y INI 2 commands for 1 thing
#1

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!
Reply
#2

YCMD:e(playerid, params[], help) return cmd_engine(playerid, params, help);

Done
Reply
#3

Quote:
Originally Posted by TheFlyer
Посмотреть сообщение
YCMD:e(playerid, params[], help) return cmd_engine(playerid, params, help);

Done
Nope, it's Command_AddAltNamed("engine", "e")
Reply
#4

So how do I exactly do it? :P
Reply
#5

Код:
YCMD:engine(playerid, params[], help)
{
    ....
}

public OnGameModeInit()
{
    Command_AddAltNamed("engine", "e");
    return 1;
}
Reply
#6

Great, thanks!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)