Files
CHOMPStation2/code/WorkInProgress/Mini/asay_trap.dm
Miniature 2898b6813b Added a thing to give a message to admins when a tile is stepped on, requested by Hawk.
To use, spawn a /obj/effect/admin_log_trap on whatever tile you want to have a message, then whenever anyone steps on that tile a message will sent to all admins, like explosions.

Feel free to move it out of my WIP folder if you want.
2012-06-16 22:28:47 +09:30

13 lines
415 B
Plaintext

/obj/effect/admin_log_trap
name = "Herprpr"
desc = "Stepping on this is good."
icon = 'screen1.dmi'
icon_state = "x2"
anchored = 1.0
unacidable = 1
invisibility = 101
/obj/effect/admin_log_trap/HasEntered(AM as mob|obj)
if(istype(AM,/mob))
message_admins("[AM] ([AM:ckey]) stepped on an alerted tile in [get_area(src)]. <a href=\"byond://?src=%admin_ref%;teleto=\ref[src.loc]\">Jump</a>", admin_ref = 1)