06.07.2012, 14:31
SAMP can tell if you're entering a vehicle. OnPlayerEnterVehicle is called when the player pressed the ENTER key and there is a vehicle nearby, resulting in the player walking towards the vehicle. If you lock the vehicle in OnPlayerEnterVehicle when you're not allowed to enter it, the player can't enter it, because your ped is still outside the vehicle when OnPlayerEnterVehicle is called.