Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- new const CounterTerroristSounds[][] = {
- "sound/CounterTerrorist_1.mp3",
- "sound/CounterTerrorist_2.mp3",
- "sound/CounterTerrorist_3.mp3"
- };
- new const TerroristSounds[][] = {
- "sound/Terrorist_1.mp3",
- "sound/Terrorist_2.mp3",
- "sound/Terrorist_3.mp3"
- };
- public plugin_init() {
- register_plugin("Round Sound","v1.0","P1xeL`");
- register_event("SendAudio", "CounterTerroristWin", "a", "2&%!MRAD_ctwin");
- register_event("SendAudio", "TerroristWin", "a", "2&%!MRAD_terwin");
- }
- public plugin_precache() {
- for(new i = 0; i < sizeof CounterTerroristSounds; i++)
- precache_generic(CounterTerroristSounds[i]);
- for(new j = 0; j < sizeof TerroristSounds; j++)
- precache_generic(TerroristSounds[j]);
- }
- public TerroristWin()
- client_cmd(0, "mp3 play %s", TerroristSounds[random_num(0, charsmax(TerroristSounds))]);
- public CounterTerroristWin()
- client_cmd(0, "mp3 play %s", CounterTerroristSounds[random_num(0, charsmax(CounterTerroristSounds))]);
Advertisement
Add Comment
Please, Sign In to add comment