Raised This Month: $ Target: $400
 0% 

[SOLVED] Delay Emit sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
cstrike37
Member
Join Date: Jan 2012
Old 05-12-2013 , 01:07   Re: Delay Emit sound
Reply With Quote #6

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
 



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 16:24.


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