mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Adds an event_manager chat channel
This commit is contained in:
@@ -68,8 +68,9 @@ var/list/admin_verbs_admin = list(
|
|||||||
/datum/admins/proc/toggledsay, //toggles dsay on/off for everyone,
|
/datum/admins/proc/toggledsay, //toggles dsay on/off for everyone,
|
||||||
/client/proc/game_panel, //game panel, allows to change game-mode etc,
|
/client/proc/game_panel, //game panel, allows to change game-mode etc,
|
||||||
/client/proc/cmd_admin_say, //admin-only ooc chat,
|
/client/proc/cmd_admin_say, //admin-only ooc chat,
|
||||||
/datum/admins/proc/PlayerNotes,
|
|
||||||
/client/proc/cmd_mod_say,
|
/client/proc/cmd_mod_say,
|
||||||
|
/client/proc/cmd_event_say,
|
||||||
|
/datum/admins/proc/PlayerNotes,
|
||||||
/datum/admins/proc/show_player_info,
|
/datum/admins/proc/show_player_info,
|
||||||
/client/proc/free_slot, //frees slot for chosen job,
|
/client/proc/free_slot, //frees slot for chosen job,
|
||||||
/client/proc/cmd_admin_change_custom_event,
|
/client/proc/cmd_admin_change_custom_event,
|
||||||
@@ -307,6 +308,7 @@ var/list/admin_verbs_mod = list(
|
|||||||
/datum/admins/proc/PlayerNotes,
|
/datum/admins/proc/PlayerNotes,
|
||||||
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
||||||
/client/proc/cmd_mod_say,
|
/client/proc/cmd_mod_say,
|
||||||
|
/client/proc/cmd_event_say,
|
||||||
/datum/admins/proc/show_player_info,
|
/datum/admins/proc/show_player_info,
|
||||||
/client/proc/player_panel_new,
|
/client/proc/player_panel_new,
|
||||||
/client/proc/dsay,
|
/client/proc/dsay,
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
set category = "Special Verbs"
|
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 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
|
set hidden = 1
|
||||||
if(!check_rights(R_ADMIN)) return
|
if(!check_rights(R_ADMIN))
|
||||||
|
return
|
||||||
|
|
||||||
msg = sanitize(msg)
|
msg = sanitize(msg)
|
||||||
if(!msg) return
|
if(!msg)
|
||||||
|
return
|
||||||
|
|
||||||
log_admin("ADMIN: [key_name(src)] : [msg]")
|
log_admin("ADMIN: [key_name(src)] : [msg]")
|
||||||
|
|
||||||
@@ -21,7 +23,8 @@
|
|||||||
set name = "Msay"
|
set name = "Msay"
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
|
|
||||||
if(!check_rights(R_ADMIN|R_MOD|R_MENTOR|R_SERVER)) return
|
if(!check_rights(R_ADMIN|R_MOD|R_MENTOR|R_SERVER))
|
||||||
|
return
|
||||||
|
|
||||||
msg = sanitize(msg)
|
msg = sanitize(msg)
|
||||||
log_admin("MOD: [key_name(src)] : [msg]")
|
log_admin("MOD: [key_name(src)] : [msg]")
|
||||||
@@ -36,3 +39,25 @@
|
|||||||
C << "<span class='mod_channel'>" + create_text_tag("mod", "MOD:", C) + " <span class='name'>[sender_name]</span>([admin_jump_link(mob, C.holder)]): <span class='message'>[msg]</span></span>"
|
C << "<span class='mod_channel'>" + create_text_tag("mod", "MOD:", C) + " <span class='name'>[sender_name]</span>([admin_jump_link(mob, C.holder)]): <span class='message'>[msg]</span></span>"
|
||||||
|
|
||||||
feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
|
|
||||||
|
/client/proc/cmd_event_say(msg as text)
|
||||||
|
set category = "Special Verbs"
|
||||||
|
set name = "Esay"
|
||||||
|
set hidden = 1
|
||||||
|
|
||||||
|
if(!check_rights(R_ADMIN|R_MOD|R_MENTOR|R_SERVER))
|
||||||
|
return
|
||||||
|
|
||||||
|
msg = sanitize(msg)
|
||||||
|
log_admin("EVENT: [key_name(src)] : [msg]")
|
||||||
|
|
||||||
|
if (!msg)
|
||||||
|
return
|
||||||
|
|
||||||
|
var/sender_name = key_name(usr, 1)
|
||||||
|
if(check_rights(R_ADMIN, 0))
|
||||||
|
sender_name = "<span class='admin'>[sender_name]</span>"
|
||||||
|
for(var/client/C in admins)
|
||||||
|
C << "<span class='event_channel'>" + create_text_tag("event", "EVENT:", C) + " <span class='name'>[sender_name]</span>([admin_jump_link(mob, C.holder)]): <span class='message'>[msg]</span></span>"
|
||||||
|
|
||||||
|
feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
@@ -36,6 +36,7 @@ em {font-style: normal;font-weight: bold;}
|
|||||||
.mod_channel {color: #735638; font-weight: bold;}
|
.mod_channel {color: #735638; font-weight: bold;}
|
||||||
.mod_channel .admin {color: #b82e00; font-weight: bold;}
|
.mod_channel .admin {color: #b82e00; font-weight: bold;}
|
||||||
.admin_channel {color: #9611D4; font-weight: bold;}
|
.admin_channel {color: #9611D4; font-weight: bold;}
|
||||||
|
.event_channel {color: #009933; font-weight: bold;}
|
||||||
|
|
||||||
/* Radio: Misc */
|
/* Radio: Misc */
|
||||||
.deadsay {color: #530FAD;}
|
.deadsay {color: #530FAD;}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user