Files
vgstation13/code/defines/procs/command_alert.dm
DrCelt e54bb3f99b Adds "linked_to_centcomm" variable to maps.
- Obviously, by default, this will be one.
- Adds new event where the link with central command is broken for
- Admins can make or break the link with Central command Indefinitely with the secrets panel
- You cannot do the following while the link is broken: Call the shuttle / Recall the shuttle / Fax Central command / Recieve messages from Central command / Send messages to Central Command / Call or Send the Cargo Shuttle
- An admin may send a message to the crew even when the link is broken, but he will be prompted first asking if he is sure.
- Blob alerts ignore whether or not the link with central command is broken
2016-03-05 15:38:12 +00:00

13 lines
462 B
Plaintext

/proc/command_alert(var/text, var/title = "",var/force_report = 0)
var/command
command += "<h1 class='alert'>[command_name()] Update</h1>"
if (title && length(title) > 0)
command += "<br><h2 class='alert'>[html_encode(title)]</h2>"
command += {"<br><span class='alert'>[html_encode(text)]</span><br>
<br>"}
if(map.linked_to_centcomm || force_report)
for(var/mob/M in player_list)
if(!istype(M,/mob/new_player) && M.client)
to_chat(M, command)