Added toggle verb for drones.

Conflicts:
	code/modules/admin/admin_verbs.dm
This commit is contained in:
Zuhayr
2014-05-11 22:00:34 +09:30
committed by ZomgPonies
parent b70337918c
commit 097f903ba3
+15
View File
@@ -66,6 +66,7 @@ var/list/admin_verbs_admin = list(
/client/proc/toggleattacklogs,
/client/proc/toggledebuglogs,
/client/proc/update_mob_sprite,
/client/proc/toggledrones,
/client/proc/check_customitem_activity,
/client/proc/man_up,
/client/proc/global_man_up,
@@ -760,6 +761,20 @@ var/list/admin_verbs_mentor = list(
usr << "You now won't get attack log messages"
/client/proc/toggledrones()
set name = "Toggle maintenance drones"
set category = "Server"
if(!holder) return
if(config)
if(config.allow_drone_spawn)
config.allow_drone_spawn = 0
src << "<b>Disallowed maint drones.</b>"
message_admins("Admin [key_name_admin(usr)] has disabled maint drones.", 1)
else
config.allow_drone_spawn = 1
src << "<b>Enabled maint drones.</b>"
message_admins("Admin [key_name_admin(usr)] has enabled maint drones.", 1)
/client/proc/toggledebuglogs()
set name = "Toggle Debug Log Messages"
set category = "Preferences"