25.08.2013, 20:11
how to convert this:
to YCMD ?
pawn Код:
CMD:h(playerid, params[]) return cmd_help(playerid, params);
CMD:h(playerid, params[]) return cmd_help(playerid, params);
YCMD:h(playerid) return ycmd_help(playerid);
public OnGameModeInit() { ... Command_AddAltNamed("help", "h"); ... return 1; } ... YCMD:help(playerid, params[], help) { ... return 1; }
Command_AddAltNamed(old[], altname[]) - Adds an alternate spelling for a command by name
Код:
public OnGameModeInit() { ... Command_AddAltNamed("help", "h"); ... return 1; } ... YCMD:help(playerid, params[], help) { ... return 1; } |
public OnGameModeInit() { ... Command_AddAltNamed("help", "h"); ... return 1; } ... YCMD:help(playerid, params[], help) { ... return 1; }
public OnGameModeInit() { ... Command_AddAltNamed("help", "h"); ... return 1; } ... CMD:help(playerid, params[]) { ... return 1; }