Raised This Month: $ Target: $400
 0% 

FM_EmitSound ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 03-22-2017 , 11:45   FM_EmitSound ?
Reply With Quote #1

Hi, I tried to change the sound but it did not work where was the problem?

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_EmitSound "EmitSound");
}
public 
EmitSound(entitychannel, const sound[])
{
    if(
equal(sound "weapons/cbar_miss1.wav"))
    {
        
emit_sound(entity,  channel"hlzm/claw_miss.wav"1.0ATTN_NORM0PITCH_NORM);
        
client_print(entityprint_chat,"This sound ====> Done!")
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;

__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 


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 17:58.


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