[Need help] Locking cars
#3

Код:
Код:
If the person is allowed to use the vehicle.

Код:
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
Ideally, this should be looped, so all other players get 0,1 (locked)

Код:
for (new i = 0; i <= MAX_PLAYERS; i++)
{
		SetVehicleParamsForPlayer(vehicleid,i,0,1);
}
This will have locked the vehicle for all users, so we need to unlock for people who need to use it. So go ahead and put
Код:
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
vehicleid = id of the vehicle.
playerid (or i in the second bit of code) is the ID of the player
Then unlock the vehiclefor the correct user later on, using the code above (0,1)
Reply


Messages In This Thread
[Need help] Locking cars - by Wheels - 29.03.2009, 18:28
Re: [Need help] Locking cars - by Wheels - 31.03.2009, 02:19
Re: [Need help] Locking cars - by Redirect Left - 31.03.2009, 02:55
Re: [Need help] Locking cars - by Mikep - 31.03.2009, 03:02
Re: [Need help] Locking cars - by StrickenKid - 31.03.2009, 03:04
Re: [Need help] Locking cars - by Mikep - 31.03.2009, 03:05
Re: [Need help] Locking cars - by StrickenKid - 31.03.2009, 03:06
Re: [Need help] Locking cars - by Redirect Left - 31.03.2009, 03:29
Re: [Need help] Locking cars - by StrickenKid - 31.03.2009, 03:36
Re: [Need help] Locking cars - by Redirect Left - 31.03.2009, 05:18

Forum Jump:


Users browsing this thread: 1 Guest(s)