Skin color functions
#1

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
Reply
#2

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

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.
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)