01.02.2013, 18:54
Код:
CMD:credits(playerid) { new string[128]; format(string,sizeof(string),"Credits for this server is dedicated to RieTzz.\n And Ron for his helping and support!"); ShowPlayerDialog(playerid,154,DIALOG_STYLE_MSGBOX,"Credits:",string,"Thanks","Cancel"); return 1; }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 154: //MUST be the dialogid you used in the command above (second argument) { if (response) { format(string,sizeof(string), "%s has thanked for this server!",pName(playerid)); SendClientMessageToAll(playerid,COLOR_LIGHTBLUE,string); } } } return 1; }