local se = require "samp.events"
local active = false
function se.onServerMessage(color, text)
if text:find("^%[R%].+") and active then
sampSendChat("/gomp")
end
end
function se.onSendCommand(cmd)
if cmd:lower():find('/automp') then
active = not active
sampAddChatMessage('Автоматическая ловля мп: {ff004d}'..(active and 'включена' or 'выключена'), -1)
return false
end
end