Leader2: dont mute admins on sm_forceleader

This commit is contained in:
Dogan 2019-10-06 00:01:12 +02:00
parent edf1b7b26c
commit 3f0c92f18f

View File

@ -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;