diff --git a/StopSound/scripting/StopSound.sp b/StopSound/scripting/StopSound.sp index a58a175c..b4c449ae 100644 --- a/StopSound/scripting/StopSound.sp +++ b/StopSound/scripting/StopSound.sp @@ -628,7 +628,7 @@ public void OnReloadEffect(DataPack pack) public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay) { // Are we playing music? - if(sample[0] != '#') + if(!strncmp(sample, "music", 5, false) && !strncmp(sample, "#", 1, false)) return Plugin_Continue; char sEntity[16];