Skin Selection
#6

No problem, anyways I have rescripted it but it just wont assign the skin:

pawn Код:
case DIALOG_SKIN:
            {
                if(response)
                {
                    new skinid;
                    skinid = strval(inputtext);

                    if(skinid < 0 || skinid > 299)
                    {
                        if(skinid == 280 || skinid == 281 || skinid == 282 || skinid ==283 || skinid ==288 || skinid ==284 || skinid ==285 || skinid ==286 || skinid ==287)return SendClientMessage(playerid, GREY, "This skin is restricted, therefore you can't use it.");
                        if(skinid ==277 || skinid == 278 || skinid ==279 || skinid ==274 || skinid ==275 || skinid == 276)return SendClientMessage(playerid, GREY, "This skin is restricted, therefore you can't use it.");

                        Player[playerid][Clothes1] = skinid;
                        SetPlayerSkin(playerid, skinid);
                        SendClientMessage(playerid, WHITE, ""GREEN_EMBED"Character Creation ~ "WHITE_EMBED"Completed");
                    }
                    else
                    {
                        SendClientMessage(playerid, WHITE, ""GREEN_EMBED"Character Creation ~ "WHITE_EMBED"INVALID SKIN ID");
                        ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_INPUT, ""GREEN_EMBED"Skin selection",""WHITE_EMBED"Input the ID of the skin you wish to use.\n\nIf you do not know, please input ID 0 for default","Choose","");
                    }
                }
            }
Reply


Messages In This Thread
Skin Selection - by Lyksus - 17.06.2013, 19:41
Re: Skin Selection - by Lyksus - 17.06.2013, 20:15
AW: Skin Selection - by HurtLocker - 17.06.2013, 20:43
Re: Skin Selection - by Lyksus - 17.06.2013, 20:46
AW: Skin Selection - by HurtLocker - 17.06.2013, 20:50
Re: Skin Selection - by Lyksus - 17.06.2013, 20:51
Re: Skin Selection - by JJB562 - 17.06.2013, 21:55
Re: Skin Selection - by ReVo_ - 17.06.2013, 21:57
Re: Skin Selection - by Lyksus - 18.06.2013, 15:16

Forum Jump:


Users browsing this thread: 3 Guest(s)