mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 13:32:32 +00:00
- Added JMP and CA actions to adminhelps and prayers. - - JMP is an "observe and jump to mob" command - - CA is a shortcut to the "check antagonists" page, only appears with adminhelps, not prayers. Screenshot: http://www.kamletos.si/adminhelps%20and%20prayers.PNG - Jump to mob will no longer teleport you into the abyss if the mob's been destroyed between the link being sent and you clicking it. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2240 316c924e-a436-60f5-8080-3fe189b3f50e
22 lines
925 B
Plaintext
22 lines
925 B
Plaintext
/mob/verb/adminhelp(msg as text)
|
|
set category = "Admin"
|
|
set name = "Adminhelp"
|
|
if(!usr.client.authenticated)
|
|
src << "Please authorize before sending these messages."
|
|
return
|
|
|
|
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
|
|
|
if (!msg)
|
|
return
|
|
|
|
if (usr.muted)
|
|
return
|
|
|
|
for (var/mob/M in world)
|
|
if (M.client && M.client.holder)
|
|
M << "\blue <b><font color=red>HELP: </font>[key_name(src, M)] (<A HREF='?src=\ref[M.client.holder];adminplayeropts=\ref[src]'>PP</A>) (<A HREF='?src=\ref[M.client.holder];adminplayervars=\ref[src]'>VV</A>) (<A HREF='?src=\ref[M.client.holder];adminplayersubtlemessage=\ref[src]'>SM</A>) (<A HREF='?src=\ref[M.client.holder];adminplayerobservejump=\ref[src]'>JMP</A>) (<A HREF='?src=\ref[M.client.holder];secretsadmin=check_antagonist'>CA</A>):</b>[msg]"
|
|
|
|
usr << "Your message has been broadcast to administrators."
|
|
log_admin("HELP: [key_name(src)]: [msg]")
|