08.01.2012, 17:25
Instead of returning the error message if it's not a police vehicle, the script just continues like the player isn't a cop.
pawn Код:
if(GetPlayerColor(playerid) == COLOR_POLICE){
if(GetVehicleModel(vid) != 596 || GetVehicleModel(vid) != 597 || GetVehicleModel(vid) != 598 || GetVehicleModel(vid) != 599 || GetVehicleModel(vid) != 601 || GetVehicleModel(vid) != 427){
return SendClientMessage(playerid, COLOR_RED, "[ERROR:] You can do this only with the police vehicles while on-duty.");
}
}