I am trying to emit a sound from a player and I just can't seem to be making it work..
I have no Idea why... so I was wondering if someone could help me fix my code or make me a new one where this will work...
I have attached the .wav file and the .mp3 file (the .mp3 file is the originals I just converted the file to wav via some website)
This is my code
Code:
#include < amxmodx >
public plugin_init()
{
register_plugin( "Plugin", "1.0", "Rejack" );
register_clcmd( "say /emit", "cmdEmit" );
}
public plugin_precache()
{
precache_sound( "slash_hit_emit.wav" );
}
public cmdEmit( const client )
{
emit_sound( client, CHAN_AUTO, "slash_hit_emit.wav", 1.0, ATTN_NORM, 0, PITCH_NORM )
client_print( client, print_chat, "emitted sound." );
}