Quote:
Originally Posted by jueix
im using it as a factiontype thing like this
PHP Code:
if(IsVehicleCopCar(vehicleid) && cop < 1) // Or whatever team system you are using
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); // Lock doors
}
if(IsVehicleCopCar(vehicleid) && cop >= 1) // Or whatever team system you are using
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0); // Lock doors
}
It locks the car for the cops as well so even a cop can't drive it but ill try what you said. under on player enter vehicle.
|
Putting the code OnPlayerEnterVehicle will not work as i told you before put it in OnPlayerStateChange
check my last previous post