#include #include #define PLUGIN "Headshot Sound" #define AUTHOR "MASS XXL" #define VERSION "1.0" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg","headshot_sound","a","3=1") } public headshot_sound(id) { new rand = random_num(0, 2) switch(rand) { case 0: { client_cmd(0, "spk misc/SmokeWeed_FFA/headshot") } case 1: { client_cmd(0, "spk misc/SmokeWeed_FFA/headshot2") } } } public plugin_precache() { precache_sound("misc/SmokeWeed_FFA/headshot.wav") precache_sound("misc/SmokeWeed_FFA/headshot2.wav") }
Plugin działa prawie jak należy, nie odgrywa dźwięku przy każdym headshocie.
Proszę o pomoc.
Użytkownik MASS XXL edytował ten post 18.12.2012 00:02