SA-MP Forums Archive
Skins include? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skins include? (/showthread.php?tid=205641)



Skins include? - DarrenReeder - 01.01.2011

I know that somewhere there is a include file with all the skins but i cant find it... basicly ive got a /clothes [skinid] command but i need to check to see if the skin actually exists before i give that player the skin, so i need a "IsSkinAvailable(skinid)" function or something


Re: Skins include? - Darklom - 01.01.2011

Uh what?


Re: Skins include? - [L3th4l] - 01.01.2011

pawn Код:
stock IsValidSkin(SkinID)
{
    if(0 < SkinID < 300)
    {
        switch(SkinID)
        {
            case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
        }
        return 1;
    }
    return 0;
}
Found it in a 1st time search...