local sampev = require 'samp.events'
local list = {
'mq',
'MQ'
}
local mat = {
'сука',
'блять',
'нахуй',
'пиздец',
'пидор'
}
function sampev.onServerMessage(color, text)
id = text:match('%((%d+)%)')
for _, pattern in ipairs(list) do
if text:find(pattern) then
if id then
lua_thread.create(function()
wait(200)
sampSendChat('/mute ' .. tostring(id) .. ' 5000 osk/upom rod')
end)
end
end
end
for _, pattern in ipairs(mat) do
if text:find(pattern) then
if id then
lua_thread.create(function()
wait(200)
sampSendChat('/mute ' .. tostring(id) .. ' 60 mat')
end)
end
end
end
end