Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I switch it on by default for everyone? #1

Open
legendksk opened this issue May 12, 2020 · 1 comment
Open

Can I switch it on by default for everyone? #1

legendksk opened this issue May 12, 2020 · 1 comment

Comments

@legendksk
Copy link

legendksk commented May 12, 2020

Hello bro;
Do you want to enable Chat Sounds

Can I switch it on by default for everyone?

@xSL0W
Copy link
Owner

xSL0W commented Aug 30, 2020

hello, replace this function with this one:

// ************************** OnClientsCookiesCached *************************** 

public void OnClientCookiesCached(int client)
{
    if(IsClientValid(client))
    {
        g_bHasSoundsOn[client] = true;
        char cBuffer[8];
        GetClientCookie(client, g_hSankSounds_Cookie, cBuffer, sizeof(cBuffer));

        if(StrEqual(cBuffer, "0", false))
        {
            g_bHasSoundsOn[client] = false;
        }
    }
}

and change this to true:
bool g_bHasSoundsOn[MAXPLAYERS + 1] = true,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants