View Single Post
Author Message
Uncle Jessie
Member
Join Date: May 2016
Location: Mind Prison
Old 03-11-2017 , 08:26   [L4D2] How to stop music?
Reply With Quote #1

How to stop music in L4D2? It's not working.

PHP Code:
new const String:g_Music[2][] =
{
    
"music/witch",
    
"music/tank"
};


public 
Action:MusicSoundHook(clients[64], &numClientsString:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags

    if (
i_Music == 1) { // Music sounds
        
for (new 0sizeof(g_Music); i++) {
            if (
StrContains(sampleg_Music[i], false) > -1) {
                
volume 0.0;
                return 
Plugin_Changed;
            }
        }
    }

    return 
Plugin_Continue;


Last edited by Uncle Jessie; 03-11-2017 at 08:28.
Uncle Jessie is offline