the script is right onix
local ads = {
'AD1',
'AD2',
'AD3',
'AD4',
'AD5',
}
addEventHandler( "onPlayerChat", root,
function( msg, type )
for _,v in ipairs( ads ) do
if string.find( msg, v ) then
cancelEvent( )
if type == 0 then
banPlayer ( source, false, false, true )
else
return
end
end
end
end
)
WORKING