[Help] Locked vehicles
#1

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.
Reply
#2

um use OnPlayerEnterVehicle(playerid,vehicleid) you will need to save who the player's car is saved to however.
Reply
#3

How can I do that?
Help me please, thanks.
Reply
#4

Make a Variable that when a player is in race set it to 1. If variable == 1 set the doorslock to 1.
SetVehicleParamsForPlayer
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)