public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == drules) { if(response) { // Code, if press Yes, } else { Kick(playerid); } } return 1; }