Latest topics
Admin Key/disable teleports
2 posters
Page 1 of 1
Admin Key/disable teleports
I was wondering how to make admin keys, and how to make a switch for someone with the admin key to be able to close teleporters and close off sections of the maps using buttons, its been so long since ive been on ive forgotten alot of this lol
Shadow- Standard Member
- Posts : 44
Join date : 2010-08-04
Re: Admin Key/disable teleports
I'm not quite sure on what you mean by admin keys. If you want to make a button solely for the admins (i.e. toggle a teleporter), then the code would look something like this:
First place the terminal:
And use lmd_playercheck to check whether the player is an admin lvl 5 or not:
Optionally you can add a message for a player that uses it without the required privileges:
lmd_toggle for the teleporter toggling:
Finally, target_activate and targer_deactivate
Hope this answers your question.
First place the terminal:
- Code:
place lmd_terminal 0 model map_objects/Factory/f_con2, spawnflags, 1, target, teleporter_toggle_check, cmd, "Toggle the teleporter ON/OFF"
And use lmd_playercheck to check whether the player is an admin lvl 5 or not:
- Code:
place lmd_playercheck * targetname, teleporter_toggle_check, adminlevel, 5, target, toggle_teleporter, target2, denied_teleporter
Optionally you can add a message for a player that uses it without the required privileges:
- Code:
place target_print * spawnflags, 12, targetname, denied_teleporter, message, "Access denied, you are not a level 5 admin."
lmd_toggle for the teleporter toggling:
- Code:
place lmd_toggle * targetname, toggle_teleporter, target, deactivate_teleporter, target2, activate_teleporter, count, 2
Finally, target_activate and targer_deactivate
- Code:
place target_deactivate * targetname, deactivate_teleporter, target, teleporter
place target_activate * targetname, activate_teleporter, target, teleporter
Hope this answers your question.
Pierry- Admin
- Posts : 157
Join date : 2010-04-26
Age : 32
Location : Cybertron
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Thu Aug 25, 2022 5:30 pm by Shadow
» The Sith of Qarr
Tue Mar 02, 2021 8:57 pm by Cor
» Admin Key/disable teleports
Mon May 13, 2019 4:06 am by Pierry
» Some possibly useful addons
Wed May 08, 2019 3:37 pm by Pierry
» Active lugormod servers
Wed May 08, 2019 11:23 am by Pierry
» Quick links
Wed May 08, 2019 11:12 am by Pierry
» Help with trigger_usescript
Thu Sep 22, 2016 8:16 am by flanagon
» New Lugormod U# (Windows + Linux)
Thu Sep 22, 2016 7:03 am by Ufo
» iobject terminal
Thu Sep 25, 2014 2:39 pm by flanagon