SA-MP Forums Archive
Skin color functions - 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: Skin color functions (/showthread.php?tid=247822)



Skin color functions - kacperoo - 10.04.2011

Hi

Have somebody published functions like IsSkinWhite, IsSkinBlack to detect skins color? It's a boring work so I'm looking for something done.

Thanks in advance,
Kacper


Re: Skin color functions - Mean - 10.04.2011

No skin has only one color, it's all like a rainbow.


Re: Skin color functions - kacperoo - 10.04.2011

So that's why I'm looking for such functions. I want to check's given skin color to let only players who choosen an afro-american characters wear only black skins.


Re: Skin color functions - ToPhrESH - 10.04.2011

You can check and see if they chose that they are African American, then only enabling certain skins for them.


Re: Skin color functions - [L3th4l] - 10.04.2011

It's pretty easy:
pawn Код:
IsSkinWhite(skinid)
{
    switch(skinid)
    {
        case 1, 2, 12, 23, 27: return 1;
    }
    return 0;
}
I CBF to add the rest.
https://sampwiki.blast.hk/wiki/Skins:All