[Include] xskins.inc - Skins Info + Skin Check Optimizations
#2

Your script looks a bit advanced while some functions could have been scripted easier. Here's something I made.

pawn Код:
stock IsLawEnforcerSkin(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 265,266,267,280,281,282,283,284,285,286: return 1;
    }
    return 0;
}

stock IsGroveSkin(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 105,106,107,149: return 1;
    }
    return 0;
}

stock IsBallasSkin(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 102,103,104: return 1;
    }
    return 0;
}

stock IsVagosSkin(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 108,109,110: return 1;
    }
    return 0;
}

stock IsAztecasSkin(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 114,115,116: return 1;
    }
    return 0;
}

stock IsPlayerBouncer(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 164,164,165,166: return 1;
    }
    return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)