Problem with SetVehicleParamsForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with SetVehicleParamsForPlayer (
/showthread.php?tid=534987)
Problem with SetVehicleParamsForPlayer -
Hantex. - 01.09.2014
Hi guys, when i set the doors locked with SetVehicleParamsForPlayer and a player attempts to enter into the vehicle that is locked, there is a problem;
If the door is open (door physic of vehicle) and i SetVehicleParamsForPlayer to 1, however, the player enter into the vehicle. How can i solve this problem?
(Sorry for my bad English)
Re: Problem with SetVehicleParamsForPlayer -
Sledgehammer - 01.09.2014
Use the function OnPlayerEnterVehicle or OnPlayerStateChange and when that player has locked it, make it so it removes them from the vehicle
Re: Problem with SetVehicleParamsForPlayer -
Hantex. - 01.09.2014
Mmh.. how can i detect if a door is opened or closed?