Какая хрень показывает задержку на реконнект

Шамалёт

Активный
Автор темы
164
31
script_name('autoreconnect')
script_author('sanek a.k.a Maks_Fender, EvgeN 1137')
script_moonloader(023)
script_description('Get the latest MoonLoader updates from https://www.blast.hk/moonloader/')


function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(1)
local chatstring = sampGetChatString(99)
if chatstring == "Server closed the connection." or chatstring == "You are banned from this server." then
sampDisconnectWithReason(false)
sampAddChatMessage("Wait reconnecting...", 0xa9c4e4)
wait(10000) -- задержка
sampSetGamestate(1)
end
end
end