Leader2: 2 fixes

This commit is contained in:
Dogan 2019-09-24 22:34:21 +02:00
parent a77e6c2c18
commit b785e96b81

View File

@ -421,7 +421,7 @@ public Action CheckLeaderVoice(Handle timer)
{
for(int i = 1; i <= MaxClients; i++)
{
if(g_bForceMute[i])
if(IsClientInGame(i) && g_bForceMute[i])
{
BaseComm_SetClientMute(i, false);
g_bForceMute[i] = false;
@ -1111,7 +1111,10 @@ public void OnClientDisconnect(int client)
voteCount[client] = 0;
if(g_bForceMute[client])
{
BaseComm_SetClientMute(client, false);
g_bForceMute[client] = false;
}
}
//----------------------------------------------------------------------------------------------------