function playerChat ( message, messageType )
if messageType == 0 then
for k,v in ipairs(kufurtablo) do
if string.find((string.gsub)message,v) then
cancelEvent()
banPlayer ( source, Serial = true, reason = "Bad word", seconds = 12000 )
here is what you want
addEventHandler('onPlayerChat', root,
function(msg, msgType)
if msgType == 0 then
if string.find(msg:lower, '[bad word whatever]', 0) then
--the code if a bad word was found
end
end
end
)
here:
'[bad word whatever]'
enter the bad words separated by a space
and your banPlayer function is wrong
banPlayer ( player bannedPlayer, [ bool IP = true, bool Username = false, bool Serial = false,
player responsiblePlayer = nil, string reason = nil, int seconds = 0 ]
so:
banPlauer(source, false, false, true, nil, 'Bad Word', 12000)