View Single Post
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