Grouping Skins
#3

You don't need a fancy function for it, just add a new variable in the player info enum. If they're a cop, you set it to 1 or true, if not its false.

EDIT: if you really wanna check skins though, I'd recommend not using just an if statement but a switch


pawn Код:
stock IsACop(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 280..288: return true;
        case 165, 166: return true;
        default: return false;
    }
}
Reply


Messages In This Thread
Grouping Skins - by Robert_Crawford - 12.03.2012, 19:10
Re: Grouping Skins - by MP2 - 12.03.2012, 19:12
Re: Grouping Skins - by [ABK]Antonio - 12.03.2012, 19:13
Re: Grouping Skins - by MP2 - 12.03.2012, 19:17
Re: Grouping Skins - by Robert_Crawford - 12.03.2012, 19:35
Re: Grouping Skins - by MP2 - 12.03.2012, 19:40
Re: Grouping Skins - by [ABK]Antonio - 12.03.2012, 19:43
Re: Grouping Skins - by KingHual - 12.03.2012, 19:44
Re: Grouping Skins - by MP2 - 12.03.2012, 19:44
Re: Grouping Skins - by Robert_Crawford - 12.03.2012, 20:18

Forum Jump:


Users browsing this thread: 3 Guest(s)