Latest topics
» Admin Key/disable teleports
Admin Key/disable teleports I_icon_minitimeMon May 13, 2019 4:06 am by Pierry

» Some possibly useful addons
Admin Key/disable teleports I_icon_minitimeWed May 08, 2019 3:37 pm by Pierry

» Active lugormod servers
Admin Key/disable teleports I_icon_minitimeWed May 08, 2019 11:23 am by Pierry

» Quick links
Admin Key/disable teleports I_icon_minitimeWed May 08, 2019 11:12 am by Pierry

» Help with trigger_usescript
Admin Key/disable teleports I_icon_minitimeThu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
Admin Key/disable teleports I_icon_minitimeThu Sep 22, 2016 7:03 am by Ufo

» iobject terminal
Admin Key/disable teleports I_icon_minitimeThu Sep 25, 2014 2:39 pm by flanagon

» Useful Downloads
Admin Key/disable teleports I_icon_minitimeThu Aug 07, 2014 12:35 am by Kimmeh

» Lugormod U# on server
Admin Key/disable teleports I_icon_minitimeWed Jan 08, 2014 11:08 pm by Shadow


Admin Key/disable teleports

Go down

Admin Key/disable teleports Empty Admin Key/disable teleports

Post by Shadow on Sun May 12, 2019 4:29 pm

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
Shadow
Standard Member
Standard Member

Posts : 43
Join date : 2010-08-04

Back to top Go down

Admin Key/disable teleports Empty Re: Admin Key/disable teleports

Post by Pierry on Mon May 13, 2019 4:06 am

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:
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
Pierry
Admin
Admin

Posts : 157
Join date : 2010-04-26
Age : 27
Location : Cybertron

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum