Adding command to start dialog:
#5

If you're using y_commands:
pawn Код:
YCMD:dialog(playerid, params[], help)
{
    ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
    return true;
}
If you're using ZCMD:
pawn Код:
CMD:dialog(playerid, params[])
{
    ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
    return true;
}
If you're using strcmp:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/dialog"))
    {
        ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
        return true;
    }
    return false;
}
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply


Messages In This Thread
Adding command to start dialog: - by Bek_Loking - 24.05.2014, 21:29
Re: Adding command to start dialog: - by eXeDev - 24.05.2014, 22:13
Re: Adding command to start dialog: - by Bek_Loking - 24.05.2014, 22:13
Re: Adding command to start dialog: - by Matess - 24.05.2014, 22:17
Re: Adding command to start dialog: - by eXeDev - 24.05.2014, 22:18
Re: Adding command to start dialog: - by Bek_Loking - 24.05.2014, 22:42
Re: Adding command to start dialog: - by AndySedeyn - 24.05.2014, 22:47
Re: Adding command to start dialog: - by eXeDev - 24.05.2014, 22:48
Re: Adding command to start dialog: - by SickAttack - 24.05.2014, 22:50
! - by Bek_Loking - 24.05.2014, 23:01

Forum Jump:


Users browsing this thread: 5 Guest(s)