Redirecting a dialog selection to a CMD
#4

If you use ZCMD
pawn Код:
if (listitem == 0) {
    // Redirect them to CMD:health
    cmd_health(playerid, "hello"); // this will send "/health hello", don't worry, it'll work
    return true;
}
Use
[pawn] and [/pawn] tags next time.

Another example, this will redirect /me command with the params as inputtext
pawn Код:
if (response) return cmd_me(playerid, inputtext);
Reply


Messages In This Thread
Redirecting a dialog selection to a CMD - by Andrew Missey - 01.04.2013, 03:08
Re: Redirecting a dialog selection to a CMD - by [..MonTaNa..] - 01.04.2013, 03:16
Re: Redirecting a dialog selection to a CMD - by Andrew Missey - 01.04.2013, 03:18
Re: Redirecting a dialog selection to a CMD - by greentarch - 01.04.2013, 03:22
Re: Redirecting a dialog selection to a CMD - by ZackBoolaro - 01.04.2013, 03:24
Re: Redirecting a dialog selection to a CMD - by Andrew Missey - 01.04.2013, 03:25

Forum Jump:


Users browsing this thread: 1 Guest(s)