From e3345faa900eebbf12738ef5e53d7da928c1cbd2 Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Mon, 6 Feb 2017 17:51:10 +0100 Subject: [PATCH] Added sound to !warn command (refs #62) --- luamods/wolfadmin/commands/admin/warn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luamods/wolfadmin/commands/admin/warn.lua b/luamods/wolfadmin/commands/admin/warn.lua index 327208d..6cf5c23 100644 --- a/luamods/wolfadmin/commands/admin/warn.lua +++ b/luamods/wolfadmin/commands/admin/warn.lua @@ -84,7 +84,9 @@ function commandWarn(clientId, command, victim, ...) end et.trap_SendConsoleCommand(et.EXEC_APPEND, "ccp "..cmdClient.." \"^7You have been warned by "..players.getName(clientId)..": ^7"..reason..".\";") - et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay -1 \"^dwarn: ^7"..players.getName(cmdClient).." ^9has been warned.\";") + et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dwarn: ^7"..players.getName(cmdClient).." ^9has been warned.\";") + + et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound \"sound/misc/referee.wav\";") return true end