Locking People In A Vehicle - 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: Locking People In A Vehicle (
/showthread.php?tid=458001)
Locking People In A Vehicle -
lewismichaelbbc - 14.08.2013
Hi guys, this is a simple question. If I use an ordinary door lock system for cars, will it lock the player in the vehicle so they cannot get out of it?
Thanks!
Re: Locking People In A Vehicle -
DanishHaq - 14.08.2013
No, the player would be able to leave the car. Something you could do would be along the lines of creating a command that would freeze the player inside the car so he can't move. For example, a cuff command that you can find pretty much on any RPG / Roleplay GM.
Re: Locking People In A Vehicle -
Edix - 14.08.2013
Quote:
Originally Posted by DanishHaq
No, the player would be able to leave the car. Something you could do would be along the lines of creating a command that would freeze the player inside the car so he can't move. For example, a cuff command that you can find pretty much on any RPG / Roleplay GM.
|
Or he could use
https://sampwiki.blast.hk/wiki/GetPlayerSpecialAction and see if the player does the Exit Vehicle animation and stop him from doing that, Why this is better well its because freezing a player doesnt let him move him camera around while using GetPlayerSpecialAction would let him look around.