Adds a playerpanel button that just plays roleplay.ogg (#93936)

## About The Pull Request

Adds a playerpanel button that just plays roleplay.ogg to the player
(with a chat message to accompany it)

## Why It's Good For The Game

Gives admins a button which literally just tells the player to roleplay
appropriately. So they can take the hint

## Changelog

🆑 Melbert
admin: Adds "roleplay reminder" button to player panel
/🆑
This commit is contained in:
MrMelbert
2025-11-25 20:41:48 -06:00
committed by GitHub
parent dcc33ac20c
commit f635eafc69
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -929,6 +929,16 @@
return
M.get_language_holder().open_language_menu(usr)
else if(href_list["rpreminder"])
var/mob/rper = locate(href_list["rpreminder"]) in GLOB.player_list
if(QDELETED(rper))
return
// literally just gives them a sound and a message
SEND_SOUND(rper, sound('sound/misc/roleplay.ogg'))
to_chat(rper, boxed_message("You hear a nagging voice in your head... [span_hypnophrase("Please roleplay appropriately.")]"))
message_admins("[ADMIN_LOOKUPFLW(usr)] reminded [ADMIN_LOOKUPFLW(rper)] to roleplay appropriately.")
log_admin("[key_name(usr)] reminded [key_name(rper)] to roleplay appropriately.")
else if(href_list["traitor"])
if(!check_rights(R_ADMIN))
return