28.04.2018, 18:17
OnDialogResponse
ShowPlayerDialog
Dialog Styles
Example:
SA:MP Discord: Click Me!
ShowPlayerDialog
Dialog Styles
Example:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 0 && response) { SendClientMessage(playerid, 1, "You have just seen a message dialog"); return 1; } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256+1]; new idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/showmessage", true) == 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "This is a message", "This is a message box dialog", "Ok", ""); return 1; } return 1; }