Color check not working
#1

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.");
}
}
Reply


Messages In This Thread
Color check not working - by Outcast - 08.01.2012, 17:25
Re: Color check not working - by V_LOPE - 08.01.2012, 17:34
AW: Color check not working - by Drebin - 08.01.2012, 17:34
Re: Color check not working - by Outcast - 09.01.2012, 06:28

Forum Jump:


Users browsing this thread: 1 Guest(s)