local proxyip, proxyname, proxypass = '123.456.789.123:12345', 'name', 'pass'
function onLoad()
newTask(function()
while true do wait(0)
if not isProxyConnected() then
proxyConnnect(proxyip, proxyname, proxypass)
end
end
end)
end
function onPrintLog(text)
if text:find('%[NET%] Attempt failed') then
if isProxyConnected() then
proxyDisconnect()
end
proxyConnnect(proxyip, proxyname, proxypass)
end
end