The first thing you want to do is register the event.
Code:
register_event("SendAudio", "fnRoundEnd","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
Next, you want to precache the sound
Code:
new g_szSound[] = "sound.wav"
public plugin_precache()
precache_sound(g_szSound)
Next, you want to play it on the event.
Code:
public fnRoundEnd()
client_cmd(0,"spk %s",g_szSound)
So you have something like this:
Code:
#include <amxmodx>
#include <amxmisc>
new g_szSound[] = "sound.wav"
public plugin_init()
{
register_plugin("Endround Sound","1.0","Hawk552")
register_event("SendAudio", "fnRoundEnd","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
}
public plugin_precache()
precache_sound(g_szSound)
public fnRoundEnd()
client_cmd(0,"spk %s",g_szSound)
__________________