We recently picked up this addon that freezes players and stops them from talking in both chat and voice chat.
However I can’t figure out why it won’t mute stuff like ‘ttt_radio traitor’
Here is what I’ve got so far:
function CRYO_CantTalk()
if (CRYOGRENADE_SETTINGS.PrintInChat) then
chat.AddText(CRYOGRENADE_SETTINGS.ChatMessageColor, CRYOGRENADE_SETTINGS.CantChatMessageContents)
end
end
hook.Add("PlayerBindPress", "CRYO_PlayerBindPress", function(ply, bind, press)
if (!CRYOGRENADE_SETTINGS.AllowPlayerVoiceChat and press and string.find(bind, "+voicerecord") and LocalPlayer().m_bIsFrozen) then
CRYO_CantTalk()
return true
end
end)