Files
Paradise/code/modules/admin/verbs/deadsay.dm
Daelith.Rhedynfre@gmail.com 431439f567 -Changed medbay sprites to be unique, and share a central theme
-Changed R&D sprites to fit a central theme
-Gave the HoS access to the detective's office
-MORE STEALTHMIN NAMES

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2119 316c924e-a436-60f5-8080-3fe189b3f50e
2011-09-05 01:06:12 +00:00

25 lines
1.1 KiB
Plaintext

/client/proc/dsay(msg as text)
set category = "Special Verbs"
set name = "Dsay" //Gave this shit a shorter name so you only have to time out "dsay" rather than "dead 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)
return
if(src.mob.muted)
return
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
log_admin("[key_name(src)] : [msg]")
if (!msg)
return
var/rendered = "<span class='game deadsay'><span class='prefix'>DEAD:</span> <span class='name'>ADMIN([src.stealth ? pick("BADMIN", "hornigranny", "TLF", "scaredforshadows", "KSI", "Silnazi", "HerpEs", "BJ69", "SpoofedEdd", "Uhangay", "Wario90900", "Regarity", "HorPhareon", "LastFish", "unMportant", "Deurpyn" ) : src.key])</span> says, <span class='message'>\"[msg]\"</span></span>"
for (var/mob/M in world)
if(M.stat == 2 || (M.client && M.client.holder))
if(!istype(/mob/new_player, M))
M.show_message(rendered, 2)