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...
__________________