Raised This Month: $ Target: $400
 0% 

[SOLVED] Delay Emit sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-11-2013 , 22:06   Re: Delay Emit sound
Reply With Quote #2

PHP Code:
const FloatIntervalBetweenSounds 3.0;

new 
Floatg_Time;

public Function( 
/* ... */ ) {
  if( 
get_gametime( ) - g_Time IntervalBetweenSounds ) {
    
emit_sound/* ... */ );

    
g_Time get_gametime( );

    return 
FMRES_SUPERCEDE;
  }

  else return 
FMRES_SUPERCEDE;

  return 
FMRES_IGNORED;

__________________

Last edited by claudiuhks; 05-11-2013 at 22:07.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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