Merge pull request #11730 from farie82/afk-list

Adds a list AFK players verb for admins
This commit is contained in:
variableundefined
2019-08-12 17:48:33 +08:00
committed by GitHub
5 changed files with 65 additions and 1 deletions
+6 -1
View File
@@ -2001,7 +2001,7 @@
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
return
if(!isLivingSSD(H))
if(!href_list["cryoafk"] && !isLivingSSD(H))
to_chat(usr, "This can only be used on living, SSD players.")
return
if(istype(H.loc, /obj/machinery/cryopod))
@@ -2012,6 +2012,11 @@
else if(cryo_ssd(H))
log_admin("[key_name(usr)] sent [H.job] [H] to cryo.")
message_admins("[key_name_admin(usr)] sent [H.job] [H] to cryo.")
if(href_list["cryoafk"]) // Warn them if they are send to storage and are AFK
to_chat(H, "<span class='danger'>The admins have moved you to cryo storage for being AFK. Please eject yourself (right click, eject) out of the cryostorage if you want to avoid being despawned.</span>")
SEND_SOUND(H, 'sound/effects/adminhelp.ogg')
if(H.client)
window_flash(H.client)
else if(href_list["FaxReplyTemplate"])
if(!check_rights(R_ADMIN))
return