SA-MP Forums Archive
Lock all cars and use the locked animation - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lock all cars and use the locked animation (/showthread.php?tid=97136)



Lock all cars and use the locked animation - Memoryz - 12.09.2009

Hello,

Im making a nice DM map, i have spawned some vehicle, but they are only for decoration, but I want to disallow the player to enter them, and if they try to enter them, it will do the locked animation.

Which are:
CAR_doorlocked_LHS
CAR_doorlocked_RHS

Anyone?

(P.S. Im using SAMP 0.3, but im not sure if that has anything to do with this)



Re: Lock all cars and use the locked animation - Memoryz - 12.09.2009

Quote:
Originally Posted by Seif_ [adream-rp.com
]
SetVehicleParamsForPlayer
It locks it, but doesn't show the locked animation when you try to get in =/


Re: Lock all cars and use the locked animation - Memoryz - 12.09.2009

Quote:
Originally Posted by Seif_ [adream-rp.com
]
I think in 0.3 you can detect if the player is attempting to open the door. If so, just apply the animation. But before, check if the car is on your left or right(using OnPlayerEnterVehicle) and use the correct animation.
Okay thanks!