Raised This Month: $ Target: $400
 0% 

emit_sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yan1255
Senior Member
Join Date: Jul 2011
Old 11-06-2015 , 21:17   emit_sound
Reply With Quote #1

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." );
}
Attached Files
File Type: zip sounds.zip (107.9 KB, 50 views)
__________________
yan1255 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode