26.10.2016, 08:16
(
Последний раз редактировалось Yashas; 26.10.2016 в 08:56.
)
Код:
CMD:ban(cmdid, playerid, params[]) <cmdState:normal> { //... } CMD:ban(cmdid, playerid, params[]) <cmdState:help> return SendClientMessage(playerid, YELLOW, "Bans the player"); CMD:help(cmdid, playerid, params[]) { state cmdState:help; EmulateCommandEx(GetCommandID(params), playerid, ""); state cmdState:normal; return CMD_SUCCESS; }
I will try to integrate automata into this include.
Код:
CMD<ACMD>:ban(cmdid, playerid, params[]) { //ban code } CMD<ACMD>:ban[help](cmdid, playerid, params[]) return SendClientMessage(playerid, YELLOW, "Bans the player"); CMD<ACMD>:ban[params](cmdid, playerid, params[]) return SendClientMessage(playerid, YELLOW, "[playerid/name] [reason]");
EDIT2: It is possible.