git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2 316c924e-a436-60f5-8080-3fe189b3f50e

This commit is contained in:
only.lurking
2010-08-23 14:29:20 +00:00
parent 757ea7b077
commit 662c08272a
919 changed files with 136852 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/mob/verb/adminhelp(msg as text)
set category = "Commands"
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]'>X</A>):</b> [msg]"
usr << "Your message has been broadcast to administrators."
log_admin("HELP: [key_name(src)]: [msg]")