Raised This Month: $ Target: $400
 0% 

Sound change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 01-06-2013 , 11:41   Sound change
Reply With Quote #1

hello.

this is part of the code that are currently written by me.
this code can change possible by other sounds.
it is not possible to change this sound only ctwin, terwin.
there is a problem with my code?
help me.

thanks.

source code here:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>

public plugin_init() 

    
register_plugin("PLUGIN""VERSION""AUTHOR")

    
register_forward(FM_EmitSound"forward_fm_emitsound")
}

new const 
new_ctwin[][] =
{
    
"newsound/ctwin.wav"
}

new const 
new_terwin[][] =
{
    
"newsound/terwin.wav"
}

public 
forward_fm_emitsound(idiChannelsample[], Float:fVolumeFloat:fAttenuationiFlagsiPitch)
{
    if(
equali(sample"radio/ctwin.wav"))
    {
        
engfunc(EngFunc_EmitSoundidCHAN_STATICnew_ctwin1.0ATTN_NORM0PITCH_NORM)
    }
    if(
equali(sample"radio/terwin.wav"))
    {
        
engfunc(EngFunc_EmitSoundidCHAN_STATICnew_terwin1.0ATTN_NORM0PITCH_NORM)
    }

    return 
FMRES_SUPERCEDE

RuRuRu612754 is offline
 



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 13:26.


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