Added notification sound for /ac (issue #53)

This commit is contained in:
Timo Smit 2016-02-25 12:50:13 +01:00
parent 6a76718c01
commit cb3e80b49f

View file

@ -37,6 +37,7 @@ function commandAdminChat(clientId, cmdArguments)
for _, recipient in ipairs(recipients) do
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat "..recipient.." \"^7"..et.gentity_get(clientId, "pers.netname").."^7 -> adminchat ("..#recipients.." recipients): ^a"..table.concat(message, " ").."\";")
et.trap_SendServerCommand(recipient, "cp \"^jadminchat message from ^7"..et.gentity_get(clientId, "pers.netname"))
et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound "..recipient.." \"sound/misc/pm.wav\";")
end
et.G_LogPrint("adminchat: "..et.gentity_get(clientId, "pers.netname")..": "..table.concat(message, " ").."\n")