View Single Post
cstrike37
Member
Join Date: Jan 2012
Old 05-12-2013 , 01:07   Re: Delay Emit sound
Reply With Quote #5

Update:
Hi, it did work but I'm having a bit of a problem.
The knife sound disappear after adding the pain sound delay.

PHP Code:
public fwEmitSound2(idchannel, const sound[], Float:volumeFloat:attnflagspitch)  
{
    if(!
is_user_connected(id))
    return 
FMRES_IGNORED;  
    
cs_get_user_model(idmodelcharsmax(model)) 
    
    if( 
get_gametime( ) - g_Time IntervalBetweenSounds ) {
    if(
equal(sound[7],"bhit",4) && equal(model"sas") == 1
    
engfunc(EngFunc_EmitSoundidchannelpain_spk[random_num(0sizeof pain_spk 1)], 1.00.92flagspitch);  
    
    
g_Time get_gametime( );

    return 
FMRES_SUPERCEDE;
    }

    else return 
FMRES_SUPERCEDE;

    return 
FMRES_IGNORED;


Last edited by cstrike37; 05-12-2013 at 01:29.
cstrike37 is offline