mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 05:31:41 +00:00
Play a sound to the player on !slap for some extra feedback
This commit is contained in:
parent
7b70c7e7e8
commit
f5e2a65e2e
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ function commandSlap(clientId, command, victim)
|
|||
et.gentity_set(cmdClient, "health", newHealth)
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dslap: ^7"..players.getName(cmdClient).." ^9was slapped.\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound "..cmdClient.." \"sound/player/land_hurt.wav\";")
|
||||
|
||||
return true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue