14.10.2017, 07:34
Help me with a Halloween suits system!
Example: Command /halloweenskin
1.Skin
2.Skin
3.Skin
Example: Command /halloweenskin
1.Skin
2.Skin
3.Skin
#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;
}