Poll

Should I make a seperate model/color for the car key?

Yes
23 (85.2%)
No
4 (14.8%)

Total Members Voted: 27

Author Topic: Vehicle Locking [v1.2]  (Read 6646 times)

Very useful! Thanks!

Ugh... This script was already made: https://forum.blockland.us/index.php?topic=224517.0
What's the big difference? Any improvements? Did you copy Electrk's version?

no this one is better

Ugh... This script was already made: https://forum.blockland.us/index.php?topic=224517.0
What's the big difference? Any improvements? Did you copy Electrk's version?
from what i can see:
  • one command to unlock/lock cars
  • individually lock cars, rather than all of them at once
  • pref for what kinds of admins can enter vehicles
(also currently adding trust levels and other stuff)
« Last Edit: June 21, 2016, 11:54:57 PM by ZombieDude »

Version 1.2

  • There is now one more preference: the trust level required to entire a locked vehicle.
  • Speaking of trust levels, owners of vehicles can enter them without unlocking them. People with a trust level the same or higher than the preference (defaults at Full Trust) can enter too.
  • Also fixed preferences. Apparently they didn't work.
Download
« Last Edit: June 22, 2016, 12:14:47 AM by ZombieDude »

you should use blockland glass if you want to update this a lot

you should use blockland glass if you want to update this a lot
i'm waiting for it to be approved right now

i'm waiting for it to be approved right now
you can still make the download link be from glass by modifying the url
since you uploaded to test.blocklandglass.com:
>>your addon link is test.blocklandglass.com/addons/addon.php?id=352
>>the download link for firemod is test.blocklandglass.com/addons/download.php?id=351&beta=0
just replace the id with yours and all the downloads will be from glass and have the updater in it, iirc.

Version 1.2

  • There is now one more preference: the trust level required to entire a locked vehicle.
  • Speaking of trust levels, owners of vehicles can enter them without unlocking them. People with a trust level the same or higher than the preference (defaults at Full Trust) can enter too.
  • Also fixed preferences. Apparently they didn't work.
Download

Can you please include events for this too?
Onvehiclespawn>vehicle>setvehiclelock>(Lock, Unlock)
Can I lock the car while I'm inside it?
Also an option under prefs for vehicles for bots to enter vehicles even if players can't?
« Last Edit: June 22, 2016, 01:17:34 AM by Death The Kid »

you can still make the download link be from glass by modifying the url
since you uploaded to test.blocklandglass.com:
>>your addon link is test.blocklandglass.com/addons/addon.php?id=352
>>the download link for firemod is test.blocklandglass.com/addons/download.php?id=351&beta=0
just replace the id with yours and all the downloads will be from glass and have the updater in it, iirc.
neat, good to know. ill put a dl link there
Can you please include events for this too?
Onvehiclespawn>vehicle>setvehiclelock>(Lock, Unlock)
Can I lock the car while I'm inside it?
Also an option under prefs for vehicles for bots to enter vehicles even if players can't?
will do. i'll release all this stuff in v2.