29.03.2016, 16:44
The skin ID should be in range of 280-289 so AND must be used.
Like Golden96 said, you don't use a parameter for IsACopSkin in the statement and both can be written a little better:
Like Golden96 said, you don't use a parameter for IsACopSkin in the statement and both can be written a little better:
pawn Код:
IsACopSkin(skinid)
{
return (280 <= skinid <= 289);
}
IsPlayerFED(playerid)
{
switch (PlayerInfo[playerid][playerteam])
{
case COPS, EMS, POLITIC, SASF, FBI: return 1;
}
return 0;
}