PHP код:
#define HALLOWEN 105
CMD:hallowenskin(playerid,params[]
{
ShowPlayerDialog(playerid,HALLOWEN,DIALOG_STYLE_LIST,"Halloween skins","Skin1 /nSkin2 /nSkin3","Select","Cance");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == HALLOWEN)
{
if(response)
{
switch(listitem)
{
case 0: SetPlayerSkin(playerid, SKINID);
case 1: SetPlayerSkin(playerid, SKINID);
case 2: SetPlayerSkin(playerid, SKINID);
}
}
return 1;
}
return 0;
}
I don't know if i messed up the parameters, but just make sure you change the "SKINID" to the ID you want your skin.