bad_words = { [1]= "p-ssy", [2]= "f-ck" }
function isStringContainingBadWords(txt)
for key,val in pairs(bad_words) do
if (string.find(txt,val)) then
cancelEvent()
end
end
end
addEvent
addEventHandler
Repaired. I'm working on mute, but idk how .
Recently I am working on a specialized anti-cheat.
But I have a problem.
I want to make a system of censorship.
Does anyone know what function to use to do:
Player: pus * y
Anticheat: Player was muted for using bad words
I mean the same function, or what any help.
Waiting on the links to the wiki or something.