How would I temporarily mute TTT's radio button (quick chat)?
1 replies, posted
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:
[CODE]
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)[/CODE]
You can return true on the hook TTTPlayerRadioCommand to block any messages from being sent
Sorry, you need to Log In to post a reply to this thread.