mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
- The player panel now has a Compelte mute option, which mutes everything including adminhelps and admin pm-s. - A person who is muted will now be informed he is whenever they try to speak/OOC/etc. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2391 316c924e-a436-60f5-8080-3fe189b3f50e
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
/client/proc/cmd_admin_say(msg as text)
|
|
set category = "Special Verbs"
|
|
set name = "Asay" //Gave this shit a shorter name so you only have to time out "asay" rather than "admin say" to use it --NeoFite
|
|
set hidden = 1
|
|
|
|
// All admins should be authenticated, but... what if?
|
|
|
|
if (!src.authenticated || !src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
if (!src.mob || src.mob.muted || src.mob.muted_complete)
|
|
return
|
|
|
|
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
|
log_admin("[key_name(src)] : [msg]")
|
|
|
|
|
|
if (!msg)
|
|
return
|
|
|
|
for (var/mob/M in world)
|
|
if (M.client && M.client.holder)
|
|
if (src.holder.rank == "Admin Observer")
|
|
M << "<span class=\"gfartadmin\"><span class=\"prefix\">ADMIN:</span> <span class=\"name\">[key_name(usr, M)]:</span> <span class=\"message\">[msg]</span></span>"
|
|
else
|
|
M << "<span class=\"admin\"><span class=\"prefix\">ADMIN:</span> <span class=\"name\">[key_name(usr, M)]</span><a href='?src=\ref[M.client.holder];jumpto=\ref[mob]'>X</a>: <span class=\"message\">[msg]</span></span>"
|
|
|