SA-MP Forums Archive
Vehicle Unenterable - 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: Vehicle Unenterable (/showthread.php?tid=626875)



Vehicle Unenterable - aw1337 - 21.01.2017

Hey,

how can I make a Hotdog-Car unenterable?

Im confused.. can someone help?


Re: Vehicle Unenterable - BiosMarcel - 21.01.2017

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer

https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle

https://sampwiki.blast.hk/wiki/OnPlayerStateChange

****** and wiki are your friends!


Re: Vehicle Unenterable - aw1337 - 21.01.2017

Yeah and how do I get the ID of vehicle when nobody is using it (playerid)?


Re: Vehicle Unenterable - X337 - 21.01.2017

You can use GetVehicleModel() to check whether the vehicle is a hotdog-car.