Fixed.. this is the code I had to change in the gag.sp file within the scripting/basecomm/ directory:
PHP Code:
PerformMute(client, target)
{
g_Muted[target] = true;
if (GetConVarInt(g_Cvar_Deadtalk) == 1)
{
// set overrides so the client cannot talk to anyone
for (new Pidx = 1; Pidx <= MaxClients; Pidx++)
{
if ((Pidx != target) && IsClientInGame(Pidx))
{
SetListenOverride(Pidx, target, Listen_No);
//g_ChangedListener[Pidx][target] = Bool:true;
}
}
}
else
{
SetClientListeningFlags(client, VOICE_MUTED);
}
LogAction(client, target, "\"%L\" muted \"%L\"", client, target);
}
PerformUnMute(client, target)
{
g_Muted[target] = false;
if (GetConVarInt(g_Cvar_Deadtalk) == 1 && IsPlayerAlive(target))
{
//SetClientListeningFlags(target, VOICE_LISTENALL);
SetClientListeningFlags(target, VOICE_NORMAL);
new clientTeam = GetClientTeam(target);
for (new idx = 1; idx <= MaxClients; idx++)
{
if ((idx != target) && IsClientInGame(idx) &&
(GetClientTeam(idx) != clientTeam))
{
SetListenOverride(idx, target, Listen_Yes);
//g_ChangedListener[idx][client] = Bool:true;
}
}
}
// if they're dead then wait till next round to unmute them
else if (GetConVarInt(g_Cvar_Deadtalk) == 2 && !IsPlayerAlive(target))
{
SetClientListeningFlags(target, VOICE_TEAM);
}
else
{
SetClientListeningFlags(target, VOICE_NORMAL);
}
LogAction(client, target, "\"%L\" unmuted \"%L\"", client, target);
}