18.02.2015, 18:50
Hello,
Why does it work and why the second one doesn't work? (Freeze and Showing HUD Center Info that You are not authorized to use this vehicle) Also, these codes coded in OnPlayerEnterVehicle section.
First one :
Second one :
+Rep for Helper.
Why does it work and why the second one doesn't work? (Freeze and Showing HUD Center Info that You are not authorized to use this vehicle) Also, these codes coded in OnPlayerEnterVehicle section.
First one :
Код HTML:
else if(IsTruckerCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pJob] != 18) { displayCenterHUDInfo(playerid, "You are not a~n~~b~Trucker Driver~w~.", 8); //display for 8 seconds PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0); ClearAnimations(playerid); } else { CP[playerid] = CHECKPOINT_TRUCKERLOAD; SetPlayerCheckpoint(playerid,1037.4570,-1105.8281,23.9771,4); } }
Код HTML:
else if(IsACopCar(vehicleid) && !ispassenger) { if(!IsACop(playerid)) { displayCenterHUDInfo(playerid, "You are not a member of the LSPD/FBI/SAST.", 8); PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0); ClearAnimations(playerid); } }