Question [REP+]
#7

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
Код:
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;
}
Reply


Messages In This Thread
Question [REP+] - by SecretBoss - 11.10.2015, 11:05
Re: Question [REP+] - by Danzou - 11.10.2015, 11:21
Re: Question [REP+] - by SecretBoss - 11.10.2015, 11:23
Re: Question [REP+] - by jlalt - 11.10.2015, 11:31
Re: Question [REP+] - by SoFahim - 11.10.2015, 12:56
Re: Question [REP+] - by SecretBoss - 12.10.2015, 12:53
Re: Question [REP+] - by bgedition - 12.10.2015, 13:19
Re: Question [REP+] - by SecretBoss - 12.10.2015, 13:24
Re: Question [REP+] - by bgedition - 12.10.2015, 13:30
Re: Question [REP+] - by S4D - 12.10.2015, 13:31

Forum Jump:


Users browsing this thread: 3 Guest(s)