I've got a problem regarding sounds.
I've edited plugin called 'Map-end sounds' quite abit to suit my likings but when I was near finished and tested it, it didn't work. So I made few other changes and still it doesn't work, any advice?
Code:
#include <amxmodx>
#include <amxmisc>
#include < cstrike.inc >
#define MAX_PLAYERS 33
new PLUGIN[]="Mapend Sounds"
new AUTHOR[]="ntfs"
new VERSION[]="1.33"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("mapend_sounds", VERSION, FCVAR_SERVER)
set_task(1.0, "exec_sound", 0, "", 1, "d", 1)
register_cvar("amx_mapend_sounds_advert", "1")
}
public plugin_precache() {
precache_sound("drunkenninja.wav");
}
public exec_sound()
{
client_cmd(0, "spk drunkenninja.wav");
}