Plugin:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Ale Urwal 1.0" #define AUTHOR "Mroz!k" #define VERSION "1.0" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg","hs","a","3=1") } public hs(id) { new rand = random_num(0, 0) switch(rand) { case 0: { client_cmd(0, "stopsound") client_cmd(0, "spk misc/lep") } case 1: { client_cmd(0, "stopsound") client_cmd(0, "spk misc/headshot") } } } public plugin_precache() { precache_sound("misc/lep.wav") precache_sound("misc/headshot.wav") }