Skip to content

Commit

Permalink
Added sound to !warn command (refs #62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Smit committed Feb 6, 2017
1 parent b81894d commit e3345fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion luamods/wolfadmin/commands/admin/warn.lua
Expand Up @@ -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
Expand Down

0 comments on commit e3345fa

Please sign in to comment.