mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Prevents players from voluntarily ghosting when adminfrozen (#18620)
* nope * Update code/modules/mob/dead/observer/observer.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
@@ -193,6 +193,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
var/warningmsg = null
|
||||
var/obj/machinery/cryopod/P = istype(loc, /obj/machinery/cryopod) && loc
|
||||
|
||||
if(frozen)
|
||||
to_chat(src, "<span class='warning'>You cannot do this while admin frozen.</span>")
|
||||
message_admins("[key_name_admin(src)] tried to ghost while admin frozen")
|
||||
return
|
||||
|
||||
if(P)
|
||||
if(TOO_EARLY_TO_GHOST)
|
||||
warningmsg = "It's too early in the shift to enter cryo"
|
||||
|
||||
Reference in New Issue
Block a user