SA-MP Forums Archive
Costumes Halloween - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Costumes Halloween (/showthread.php?tid=643137)



Costumes Halloween - xXGabyGabiXx - 14.10.2017

Help me with a Halloween suits system!

Example: Command /halloweenskin
1.Skin
2.Skin
3.Skin


Re: Costumes Halloween - Escobabe - 14.10.2017

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.


Re: Costumes Halloween - xXGabyGabiXx - 14.10.2017

Thanks man!