local spec = false
local recon_id = -1
local sampev = require 'lib.samp.events'
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
if spec then
wait(5000)
sampSendChat('/re '..recon_id)
end
end
end
function sampev.onSendCommand(text)
if text:find('/re (%d+)') then
recon_id = text:match('/re (%d+)')
spec = true
elseif text:find('/reoff') then
recon_id = -1
spec = false
end
end