Play a sound to the player on !slap for some extra feedback

This commit is contained in:
Timo Smit 2019-01-20 21:36:45 +01:00
parent 7b70c7e7e8
commit f5e2a65e2e

View file

@ -74,6 +74,7 @@ function commandSlap(clientId, command, victim)
et.gentity_set(cmdClient, "health", newHealth) 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, "cchat -1 \"^dslap: ^7"..players.getName(cmdClient).." ^9was slapped.\";")
et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound "..cmdClient.." \"sound/player/land_hurt.wav\";")
return true return true
end end