Raised This Month: $ Target: $400
 0% 

[TOOLS] Server UpTime Restarter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CoolJosh3k
AlliedModders Donor
Join Date: Mar 2010
Old 03-18-2015 , 22:55   [TOOLS] Server UpTime Restarter
Reply With Quote #1

Only tested on TF2, but putting this here incase someone wants to clean it up and make a proper deal out of it.

This plugin uses the server uptime to perform a restart, rather than a time of day. It also check to see if there are players on there.

Quote:
// Use this if you wish to stop plugin functions temporarily.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
SUR_Enable "1"

// Atleast this many players will cause the restart to be delayed. Spectators are not counted.
// -
// Default: "4"
// Minimum: "1.000000"
SUR_MaxPlayers "4"

// Minimum time in seconds before restart attempt. Default is 1 day.
// -
// Default: "86400"
// Minimum: "60.000000"
SUR_UpTime_Min "86400"

// Maximum time in seconds before server restart is forced, regardless of player count. Default is 3 days.
// -
// Default: "259200"
// Minimum: "60.000000"
SUR_UpTime_Min_Max "259200"

// Display restart warning message as a chat message.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
SUR_Warn_ShowChat "1"
Attached Files
File Type: smx server_uptime_restarter.smx (5.2 KB, 194 views)
File Type: sp Get Plugin or Get Source (server_uptime_restarter.sp - 549 views - 4.9 KB)
CoolJosh3k is offline
 



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

Forum Jump


All times are GMT -4. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode