So Would this work:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "TFC Sounds"
#define VERSION "1.0"
#define AUTHOR "Formula Zero"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say","say_handle")
}
public say_handle(id)
{
static command[33]
read_argv(1,command,32)
if(equali(command,"omg")) {
misc/omg2
emit_sound(id,CHAN_AUTO,"my_sound.wav",1.0,ATTN_NORM,0,PITCH_NORM) //- Emits the sound from the player
client_cmd(0,"spk dir_to_sound/mysound.wav")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}