How to make police cars unenterable
#7

Quote:
Originally Posted by jueix
View Post
im using it as a factiontype thing like this

PHP Code:
             if(IsVehicleCopCar(vehicleid) && cop 1// Or whatever team system you are using
    
{
        
SetVehicleParamsForPlayer(vehicleidforplayerid01); // Lock doors
    
}
    if(
IsVehicleCopCar(vehicleid) && cop >= 1// Or whatever team system you are using
    
{
        
SetVehicleParamsForPlayer(vehicleidforplayerid00); // 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
Reply


Messages In This Thread
How to make police cars unenterable - by jueix - 25.04.2012, 09:16
Re: How to make police cars unenterable - by MP2 - 25.04.2012, 09:23
Re: How to make police cars unenterable - by jueix - 25.04.2012, 09:31
Re: How to make police cars unenterable - by RollTi - 25.04.2012, 09:34
Re: How to make police cars unenterable - by xX_Simon_Xx - 25.04.2012, 09:39
Re: How to make police cars unenterable - by jueix - 25.04.2012, 09:41
Re: How to make police cars unenterable - by RollTi - 25.04.2012, 09:44
Re: How to make police cars unenterable - by jueix - 25.04.2012, 09:44
Re: How to make police cars unenterable - by MP2 - 25.04.2012, 09:47
Re: How to make police cars unenterable - by jueix - 25.04.2012, 09:48

Forum Jump:


Users browsing this thread: 1 Guest(s)