Hmm, got a question, if i create a table of teams without permission to teamchat, its okay like this?
disabled = {'Team1', 'Team2'}
addEventHandler("onPlayerChat", root,
function (_, type)
if (type == 2) then -- team message
local team = getTeamFromName(disabled)
if (team) then
return cancelEvent()
end
end
end
)