Dialog to CMD
#1

I write "/car" and open "dialog list" and click "Open Engine" and "CMD:engine" want the command to work.

Reply
#2

So ZCMD make commands as functions, so you can simply do this: (just like to make alias for commands)
PHP код:
public OnDialogResonse(playeriddialogidresponselistiteminputtext[]) {
    if (
dialogid == dialog_id_here) {
        if (
response) {
            switch (
listitem) {
                case 
engine_case_number: {
                    return 
cmd_engine(playerid""); // if the command do not have a "params[]", then remove ""
                
}
            }
        }
    }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)