Raised This Month: $ Target: $400
 0% 

Solved Stopping sounds for all players not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Walgrim
AlliedModders Donor
Join Date: Dec 2015
Location: France
Old 06-09-2017 , 04:40   Re: Stopping sounds for all players not working
Reply With Quote #2

Hoi,
Try this
PHP Code:
public void OnPluginStart()
{
    
CreateTimer(1.0StopSounds_TIMER_REPEAT);
}

public 
Action StopSounds(Handle timer)
{
    for(new 
i=1;i<=MaxClients;i++)
    {
            
StopSound(iSNDCHAN_AUTO"npc/fast_zombie/gurgle_loop1.wav");
            
StopSound(iSNDCHAN_AUTO"npc/antlion/pain1.wav");
            
StopSound(iSNDCHAN_AUTO"npc/antlion/fly1.wav");
            
StopSound(iSNDCHAN_AUTO"npc/antlion/idle1.wav");
            
PrintToChatAll("Sounds automatically stopped!");
    }

Well if you want it for every 300 seconds just set the timer at 300.0 and use OnMapStart maybe
__________________

Last edited by Walgrim; 06-09-2017 at 04:42.
Walgrim 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 21:09.


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