Leader2: dont mute admins on sm_forceleader

This commit is contained in:
Dogan 2019-10-06 00:01:12 +02:00
parent 0a2b8ea717
commit fd7ddd5508

View File

@ -410,7 +410,7 @@ public Action CheckLeaderVoice(Handle timer)
{ {
for(int i = 1; i <= MaxClients; i++) 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); BaseComm_SetClientMute(i, true);
g_bForceMute[i] = true; g_bForceMute[i] = true;