24.07.2008, 13:19
I think you need to define a team for the cops. But because it's a filterscript I don't think that's possible. But, in Godfather and other scripts, there's a function IsCopCar(carid) . So I guess you can make IsACop too. I think this will work:
pawn Код:
stock IsACop(playerid)
new S;
S = GetPlayerSkin(playerid)
if(S >= 280 && S <= 287) // 286 is FBI guy and 287 is army guy, if you dont want those, change 287 to 285
{
return 1;
}