From 3f0c92f18f30fe0185404e5d35c850c7f8266a87 Mon Sep 17 00:00:00 2001 From: Dogan Date: Sun, 6 Oct 2019 00:01:12 +0200 Subject: [PATCH] Leader2: dont mute admins on sm_forceleader --- Leader2/scripting/Leader2.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Leader2/scripting/Leader2.sp b/Leader2/scripting/Leader2.sp index a9e394d0..cb8fbaa2 100644 --- a/Leader2/scripting/Leader2.sp +++ b/Leader2/scripting/Leader2.sp @@ -410,7 +410,7 @@ public Action CheckLeaderVoice(Handle timer) { for(int i = 1; i <= MaxClients; i++) { - if(IsClientInGame(i) && !BaseComm_IsClientMuted(i) && i != leaderClient) + if(IsClientInGame(i) && !BaseComm_IsClientMuted(i) && i != leaderClient && !CheckCommandAccess(i, "", ADMFLAG_GENERIC)) { BaseComm_SetClientMute(i, true); g_bForceMute[i] = true;