02.03.2010, 18:25
OnplayerDialog responce.
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])// Begining rules { if(dialogid == 1) { if(response) { SendClientMessage(playerid,COLOR_YELLOW, "accepted button 1."); } else { SendClientMessage(playerid, 0xFF0000FF, "denied"); } return 1; } if(dialogid == 2) { if(response) { SendClientMessage(playerid,COLOR_YELLOW, "thanks for accepting the rules!"); } return 1; } return 0; }