// ARestart V1.0
local RDelay = 5 // Delay in minutes
function Reset()
local playerslist = player.GetAll()
if table.Count(playerslist) == 0 then
timer.Create("ResetTimer", RDelay * 60, 1, RestartServer)
else
timer.IsTimer("ResetTimer") then
timer.Destroy("ResetTimer")
end
end
timer.Create("ResetThinkTimer", 60, 0, Reset)
function RestartServer()
game.ConsoleCommand( "quit" )
end
Not tested, but should work.