require("addon")
local sampev = require("samp.events")
local pass = "password"
function sampev.onShowDialog(id, style, title, btn1, btn2, text)
if title:find("Авторизация") then sendDialogResponse(id, 1, 0, pass) afk() return false end
end
function afk()
local minut = tonumber(os.date("%M"))
if minut < 37 then num = 37 - minut waits = num * 60 * 1000 reconnect(waits) end
end
function sampev.onServerMessage(color, text)
if text:find("Банковский чек") then reconnect(10000) end
end