23.05.2010, 04:24
pawn Код:
#define D_CHANGE_SKIN 5
ShowPlayerDialog(playerid,D_CHANGE_SKIN ,DIALOG_STYLE_INPUT,"Skin","Type in your wanted skin id into the input box.","Change","Cancel");
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[]) {
if(dialogid == D_CHANGE_SKIN) {
new skinid = strval(inputtext);
SetPlayerSkin(playerid, skinid);
}
return 1;
}