You'll need to change the plugin to not use servercommand, which reports based on sm_show_activity.
Here's modified versions of gag.sp's PerformMute and PerformUnMute. These used to contain LogAction() calls, but those are removed. You'll note client has also been removed, because we don't need to log or report to the users who did the mute/unmute call (the server/the "Console").
I modified them to only do the muting/unmuting.
You must call it for each client to mute/unmute them.
Original:
Code:
PerformMute(client, target)
{
g_Muted[target] = true;
SetClientListeningFlags(target, 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);
}
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);
}
Modified:
Code:
PerformMute(target)
{
SetClientListeningFlags(target, VOICE_MUTED);
}
PerformUnMute(target)
{
if (GetConVarInt(g_Cvar_Deadtalk) == 1 && !IsPlayerAlive(target))
{
SetClientListeningFlags(target, VOICE_LISTENALL);
}
else if (GetConVarInt(g_Cvar_Deadtalk) == 2 && !IsPlayerAlive(target))
{
SetClientListeningFlags(target, VOICE_TEAM);
}
else
{
SetClientListeningFlags(target, VOICE_NORMAL);
}
}
As per licensing, the modified versions of these functions are also licensed under GPLv3. Refer to gag.sp, included with sourcemod for more information on this.