Thread: Block pan sound
View Single Post
Author Message
keyboard1333
Senior Member
Join Date: Aug 2013
Old 11-06-2015 , 12:43   Block pan sound
Reply With Quote #1

Is there a better way to do it instead of -

PHP Code:
public Action:SoundHook(clients[64], &numClientsString:sound[PLATFORM_MAX_PATH], &client, &channel, &Float:volume, &level, &pitch, &flags) {
    if(!
IsValidClient(client)) {
        return 
Plugin_Continue;
    }
    if(
StrContains(sound"weapons/pan/"false) != -1) {
        for(new 
i=1;i<=MaxClients;i++) {
            if(
IsValidClient(i)) {
                
StopSound(ichannelsound);
            }
        }
        return 
Plugin_Changed;
    }
    return 
Plugin_Continue;


Last edited by keyboard1333; 11-06-2015 at 12:43.
keyboard1333 is offline