local on = require "lib.samp.events"
local timer, nick, id, cmd, nan = 0, '', '', '', ''
local font_flag = require('moonloader').font_flag
local my_font = renderCreateFont('Verdana', 12)
function main()
while true do wait(0)
if timer >= os.time() then renderFontDrawText(my_font, os.time() - timer, 10, 400, 0xFFFFFFFF) end
end
end
function on.onServerMessage(color, text)
if text:find('[A%] %(%w+_%w+)%[%d+]: (+)') and timer >= os.time() then
nan = text:match('(%w+_%w+)')
if nan == nick then
sampSendChat('/'..cmd)
timer, nick, id, cmd, nan = 0, '', '', '', ''
end
elseif text:find('[A%] %(%w+_%w+)%[%d+]: /(%S+) (.+)',1) and timer <= os.time() then
nick, id, cmd = text:match('(%w+_%w+)%[%d+]: /((%S+ .+))')
sampSendChat('/a '..nick..' у тебя есть пруфы на нарушение?')
timer = os.time() + 10
end
end