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"
|