Skip to content

Commit

Permalink
Disable other-arena muting when plugin is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Nov 11, 2015
1 parent 29149a6 commit 16246d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripting/multi1v1/mute.sp
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
public bool CanHear(int shooter, int client) {
if (g_MuteOtherArenasCvar.IntValue == 0) {
return true;
}

if (!IsValidClient(shooter) || !IsValidClient(client) || shooter == client) {
return true;
}
Expand All @@ -20,7 +16,7 @@ public bool CanHear(int shooter, int client) {
}

public Action Hook_ShotgunShot(const char[] te_name, const int[] players, int numClients, float delay) {
if (g_MuteOtherArenasCvar.IntValue == 0) {
if (g_MuteOtherArenasCvar.IntValue == 0 || g_EnabledCvar.IntValue == 0) {
return Plugin_Continue;
}

Expand Down

0 comments on commit 16246d4

Please sign in to comment.