31.03.2009, 02:55
Код:
Код:If the person is allowed to use the vehicle.Ideally, this should be looped, so all other players get 0,1 (locked)Код:SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
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Код:for (new i = 0; i <= MAX_PLAYERS; i++) { SetVehicleParamsForPlayer(vehicleid,i,0,1); }
vehicleid = id of the vehicle.Код:SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
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)

