[Help] Locked vehicles - 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: [Help] Locked vehicles (
/showthread.php?tid=308672)
[Help] Locked vehicles -
Zhoom - 04.01.2012
Hello there SA-MP scripters!
Ok, I've a race gamemodes, and how to make all of the vehicles door in that race locked except if that vehicles is player's vehicles?
Example: There are 2 players. Player 1's vehicles has blew up(exploded). and he is trying to jack Player 2's vehicles but he failed as the Player 2's vehicles is locked.
Help me please.
Thanks.
Re: [Help] Locked vehicles -
DarkKillerWithPride<3 - 04.01.2012
um use OnPlayerEnterVehicle(playerid,vehicleid) you will need to save who the player's car is saved to however.
Re: [Help] Locked vehicles -
Zhoom - 05.01.2012
How can I do that?
Help me please, thanks.
Re: [Help] Locked vehicles -
Konstantinos - 05.01.2012
Make a Variable that when a player is in race set it to 1. If variable == 1 set the doorslock to 1.
SetVehicleParamsForPlayer
Re: [Help] Locked vehicles -
Zhoom - 05.01.2012
But I want to make like Player 1 can only enter his race vehicles and if he tries to enter other player's vehicles he can't as the doors are locked.