Idk if this is a known problem or not, but ever since the Gmod update innocent players can use the team chat, which is pretty much a foolproof T tester, and is kinda breaking the game.
I wanted to create a temporary fix that’ll just not send team chat messages if the player is innocent.
I’m pretty bad at researching so sorry if this is simple, but how would I go about checking if the message was sent to team chat?
I have this (pretty much everything else)
function chatCommand( ply, text, public ) if ply:ROLE == ROLE_INNOCENT and --[[Check if it's in team chat]] then return("") -- Hide it from chat. end end hook.Add( "PlayerSay", "chatCommand", chatCommand )