Jump to content

Garrys Mod Server Restart Notice

JakePC

Hi,

 

I built a ULX script which will give a 10 minute warning for a server restart for my own server and thought I should share, please correct if it is wrong as I have not had a chance to test.

 

Thanks,

Jake

 

if os.date( "%I:%M %p %a" ) == "2:20 AM Sun" then
for k, ply in pairs( player.GetAll() ) do
	ply:ChatPrint( "Automatic weekly server restart in 10 minutes! Please save anything you do not want to lose!" )
end
end

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×