Costumes Halloween
#1

Help me with a Halloween suits system!

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

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(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == HALLOWEN)
    {
        if(
response
        {
            
            switch(
listitem)
            {
                case 
0SetPlayerSkin(playeridSKINID);
                case 
1SetPlayerSkin(playeridSKINID);
                case 
2SetPlayerSkin(playeridSKINID);
            }
        }
        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.
Reply
#3

Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)