02.04.2012, 14:31
Код:
#define DIALOG_SPAWNCHOICE 1 public OnPlayerConnect(playerid) { ShowPlayerDialog(playerid,DIALOG_SPAWNCHOICE,DIALOG_STYLE_MSGBOX, "Where would you like to spawn?" "Home", "Other places"); } public OnDialogResponse(playerid,dialogid,response,listitem,inputtext) { switch(dialogid) { case DIALOG_SPAWNCHOICE: { if(response) { // Player pressed "Home" } else { // Player pressed "Other places" } } } }