IMPORTANT: Do not use the forums for support! - (Click here for support.)

Go Back   UK Gamers Chat > Get help & Support > General server help > Mod and Plugins help

Mod and Plugins help Want to run that special mod and can't work it out?

Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2009, 11:12 AM   #1 (permalink)
Registered Users
Junior Member
 
John Freeman's Avatar
 
Join Date: Apr 2009
Posts: 43
Activity Longevity
0/20 16/20
Today Posts
sssssss43
Default Need help with a script.

I have been buying Garry's Mod server for a while now and I have noticed that even the most up-to-date mod compatible server will simply slow down a crash after about 6 hours tops.

Does anyone know where I could find a script that would restart the server every 5 hours and give 5 minutes warning to the people playing as well as keep a log about the restarts?

:confused:
__________________
John Freeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2009, 09:24 PM   #2 (permalink)
M247 Staff
Admin
 
UKGChris's Avatar
 
Join Date: Dec 2008
Location: Witness Protection Program
Posts: 1,047
Activity Longevity
9/20 20/20
Today Posts
sssss1047
Default

Don't think there is one try over at alliedmodders, other than that you will need to request for a developer to be paid to do such a thing
__________________
Chris Clark
UKGame

Game Servers – http://www.ukgame.com/
Colocation – http://www.icecolo.com/
VPS Cloud Hosting – http://www.vps247.com/
Hosting – http://www.primehosting.co.uk/



M247 Ltd
Registered in England Company Number 4968341 Registered Address: 1 Ball Green, Cobra Court, Stretford, Manchester, M32 0QT
UKGChris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2009, 08:18 PM   #3 (permalink)
Registered Users
Junior Member
 
¦FlapJack¦'s Avatar
 
Join Date: Dec 2009
Posts: 11
Activity Longevity
0/20 9/20
Today Posts
sssssss11
Default

timer.Create("Server.ChangeLevel" , 18300 , 1 , function() game.ConsoleCommand("changelevel gm_MapNameHere\n") end )

Save that in lua/autorun/server as a .lua file, it will force the server to change level after 5 hours and 5 minutes (Which should solve your crashing problem)
¦FlapJack¦ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-26-2010, 04:07 PM   #4 (permalink)
Registered Users
Junior Member
 
BrutalBarnard's Avatar
 
Join Date: Jan 2010
Posts: 1
Activity Longevity
0/20 7/20
Today Posts
ssssssss1
Default

timer.Create("Server.ChangeLevel" , 18000 , 1 , function()
game.ConsoleCommand("say Automatic server restart will begin in five minutes")
timer.Create("Server.ChangeLevel" , 300 , 1 , function()
game.ConsoleCommand("changelevel gm_MapNameHere\n") end end)

Or this to add a little warning :)
BrutalBarnard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Colocation | Virtual Servers | Linux Hosting | Game Servers | Free Mumble Servers
M247 Brand Glyphs
©Copyright M247 Ltd 2010 All rights Reserved Colocation | Virtual Servers | Linux Hosting M247 Ltd, 1 Ball Green, Cobra Court, Stretford, Manchester, M32 0QT, England. (Company No. 04968341)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30