- 238
- 17
Lua:
require 'lib.moonloader'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("rec",reconnect)
while true do
wait(0)
if rec == true then
sampDisconnectWithReason(quit)
wait(15500)
sampSetGamestate(1)
rec = false
end
end
end
function reconnect()
if rec == false then
rec = true
end
end