24.07.2016, 17:18
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_TOYS) { if(response) { switch(listitem) { case 0: SetPlayerAttachedObject(playerid, 0, 19078, 16); } } } return 1; } CMD:toys(playerid, params[]) { ShowPlayerDialog(playerid, DIALOG_TOYS, DIALOG_STYLE_LIST, "Buy a Toy", "Parrot\n", "Choose", "Cancel"); return 1; }