 |
|
Junior Member
|

11-11-2011
, 07:40
Re: Sound problem
|
#7
|
Quote:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define MAX_PLAYERS 33
#define SOUND = "misc/drunkenninja.wav"
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(SOUND);
}
public exec_sound()
{
client_cmd(0, "spk SOUND");
}
Not Tested.
|
|
|
|
|