mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 04:02:33 +00:00
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.
This commit is contained in:
12
code/WorkInProgress/Mini/asay_trap.dm
Normal file
12
code/WorkInProgress/Mini/asay_trap.dm
Normal file
@@ -0,0 +1,12 @@
|
||||
/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)
|
||||
Reference in New Issue
Block a user