Raised This Month: $51 Target: $400
 12% 

[L4D2] How to stop music?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 20:14.


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