12.03.2012, 19:13
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
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;
}
}