local samp = require 'samp.events'
local repid = nil
function main()
while true do
wait(0)
if isKeyJustPressed(113) --[[F2]] and tonumber(repid) and sampIsPlayerConnected(repid) then
sampSendChat('/re '..repid)
end
end
end
function samp.onServerMessage(color, text)
if text:find('%[Жалоба%] .+%[%d+%]: %{FFFFFF%}.+') then
local report = text:match('%[Жалоба%] .+%[%d+%]: %{FFFFFF%}(.+)')
local id = report:match('%d+')
if id ~= nil and sampIsPlayerConnected(tonumber(id)) then repid = tonumber(id) end
end
end