01.04.2012, 04:43
here is the example. EXAMPLE ONLY
pawn Код:
ShowPlayerDialog(playerid, 3021, DIALOG_STYLE_LIST, "Choose your Donuts", "Happy Meal\nSimple Meal", "Choose", "Back");
pawn Код:
//OnDialogResponse
if(dialogid == 3021)
{
if(!response) return 0; //if player press back it will do nothing
if(response)
{
switch(listitem)
{
case 0: //if player selects Happy Meal
{
ShowPlayerDialog(playerid, 3022, DIALOG_STYLE_MSGBOX, "OWNED!", "You got owned!", "OK", ""); //another dialog will pop up with dialogstyle msgbox
}
case 1: SendClientMessage(playerid, -1, "Nice you didn't get owned!"); //a message will pop up after select Simple Meal
}
}
}