/client/proc/cmd_mentor_say(msg as text)
set category = "Mentor"
set name = "Msay" //Gave this shit a shorter name so you only have to time out "msay" rather than "mentor say" to use it --NeoFite
set hidden = 1
if(!is_mentor())
return
msg = copytext_char(sanitize(msg), 1, MAX_MESSAGE_LEN)
if(!msg)
return
msg = emoji_parse(msg)
log_mentor("MSAY: [key_name(src)] : [msg]")
if(check_rights_for(src, R_ADMIN,0))
msg = "MENTOR: [key_name(src, 0, 0)]: [msg]"
else
msg = "MENTOR: [key_name(src, 0, 0)]: [msg]"
to_chat(GLOB.admins | GLOB.mentors, msg, confidential = TRUE)