#1

So i know how to adding skins to the scritp but i would like to added all the skin with out doing it one by one.

Many thanks
Reply
#2

Don't be lazy and add them yourself:

https://sampwiki.blast.hk/wiki/Category:Skins

Or search and try to find an array with all the skins.
Reply
#3

What server version you using 3.c or 3.d

For 3.c
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 299; i++)
    {
        if(IsValidSkin(i))
        {
            AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
        }
    }
    return 1;
}

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;
}
For 3.d
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 299; i++)
    {
        AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    return 1;
}
Gives all skins.
Reply
#4

Thanks for your help.
Reply
#5

Quote:
Originally Posted by manchestera
Посмотреть сообщение
All you had to say was use a array smartass.
Next time I shant bother. Little fecker.
And there loops, not array's numb nuts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)