12.10.2015, 13:19
You just want to write the /flip code only once, right? Do this vise-versa instead of calling a key, call a command.
EDIT: this is modified snippet from cmd to stock from my tutorial: I hope it will work
EDIT: this is modified snippet from cmd to stock from my tutorial: I hope it will work
Код:
stock forcecmd(cmd[]) { new Command[34], Params[129], string[50]; if(sscanf(cmd, "s[32]S()[128]", Command, Params)) return 0; if(Command[0] == '/') strdel(Command, 0, 1); format(string, sizeof(string), "cmd_%s", Command); if(!CallLocalFunction(string, "s", isnull(Params) ? ("\1") : Params)) return 0; return 1; }