mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Changes to aooc
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
/client/proc/aooc()
|
||||
set category = "Admin"
|
||||
set name = "Antag OOC"
|
||||
/client/proc/aooc(msg as text)
|
||||
set category = "OOC"
|
||||
set name = "AOOC"
|
||||
set desc = "Antagonist OOC"
|
||||
|
||||
if(!check_rights(R_ADMIN)) return
|
||||
|
||||
var/msg = sanitize(copytext(input(usr, "", "Antag OOC") as text, 1, MAX_MESSAGE_LEN))
|
||||
msg = sanitize(copytext(msg, 1, MAX_MESSAGE_LEN))
|
||||
if(!msg) return
|
||||
|
||||
var/display_name = src.key
|
||||
@@ -15,4 +16,4 @@
|
||||
if((M.mind && M.mind.special_role && M.client) || (M.client && M.client.holder))
|
||||
M << "<font color='#960018'><span class='ooc'>" + create_text_tag("aooc", "Antag-OOC:", M.client) + " <EM>[display_name]:</EM> <span class='message'>[msg]</span></span></font>"
|
||||
|
||||
log_ooc("Antag-OOC: [key] : [msg]")
|
||||
log_ooc("(ANTAG) [key] : [msg]")
|
||||
Reference in New Issue
Block a user