Raised This Month: $ Target: $400
 0% 

Solved [HELP] Stop HeartBeat Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 04-26-2018 , 15:13   Re: [HELP] Stop HeartBeat Sound
Reply With Quote #1

I am definitely doing something wrong. I did this:
PHP Code:
    register_concmd("debug""Debug");
}

public 
Debug(player)
{
    if(
g_is_critical[player] == false)
    {
        
client_cmd(player"spk %s"HEARTBEAT_SOUND);
        
g_is_critical[player] = true;
    }
    else
    {
        
client_cmd(player"stopsound");
        
g_is_critical[player] = false;
    }

And it works. The sound starts and stops. I must find why the "stopsound" doesn't work on other hooks. I will come back when I have the solution-- or got stumped...
__________________
hellmonja is offline
Reply



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 04:36.


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