Raised This Month: $51 Target: $400
 12% 

Solved how to play a sound repeatedly?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 04-27-2020 , 09:22   how to play a sound repeatedly?
Reply With Quote #1

the sound of the rain that I will call should be repeated as soon as it is over. i need to call client_cmd (0, "spk") at exactly this point in my code

PHP Code:
    // rain
    
if (g_weather_rain){
        if (
g_weather_rain == 0)
        return;
        
        if (
g_weather_rain == 1){
            
engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_rain"));
            
            
// sound repeatedly here
        
}
    } 

Last edited by rrduna; 04-27-2020 at 21:10. Reason: Solved
rrduna 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 20:50.


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