Raised This Month: $51 Target: $400
 12% 

[ANY] Scheduled Shutdown / Restart


Post New Thread Reply   
 
Thread Tools Display Modes
Author
br5dy
AlliedModders Donor
Join Date: Aug 2008
Plugin ID:
2435
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Automatically shuts down the server at the specified time, warning all players ahead of time.
    Old 07-12-2011 , 21:42   [ANY] Scheduled Shutdown / Restart
    Reply With Quote #1

    Scheduled Shutdown/Restart
    by
    [BR5DY]

    Props:
    This plugin could not have been made without the help of MikeJS's plugin and darklord1474's plugin.

    Description:
    Automatically shuts down the server at the specified time, warning all players ahead of time (10 second warning). Will restart automatically if you run some type of server checker (like this one) or batch script. Very basic commands - it issues the "quit" command to SRCDS at the specified time.

    Cvars:
    sm_scheduledshutdown_hintsay 1 //Sets whether messages are shown in the hint area
    sm_scheduledshutdown_chatsay 1 //Sets whether messages are shown in chat
    sm_scheduledshutdown_centersay 1 //Sets whether messages are shown in the center of the screen
    sm_scheduledshutdown_time 0500 //Sets the time to shutdown the server

    Installation:
    Move ScheduledShutdown.smx into you Sourcemod/plugins folder

    Changelog:
    Code:
    2011-07-12 | Version 1.0
    Initial Release
    Also:
    This is my first Sourcemod plugin. Sorry if there are bugs. If you see a mistake, kindly let me know where.
    Attached Files
    File Type: sp Get Plugin or Get Source (ScheduledShutdown.sp - 2827 views - 3.6 KB)
    __________________
    [BR5DY]
    seDirector
    seDirector.net

    seDirector - a management tool for all of your Windows-based Source Engine servers (auto-update, too)

    Last edited by br5dy; 07-12-2011 at 22:47.
    br5dy is offline
    meecrob
    Senior Member
    Join Date: Jan 2010
    Old 08-03-2011 , 23:04   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #2

    thats pretty cool, thx
    __________________
    meecrob is offline
    Clavus
    Junior Member
    Join Date: May 2010
    Old 09-02-2011 , 17:32   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #3

    It would be nice if you could specify multiple times, like

    sm_scheduledshutdown_time 0500,1200,2200

    or something.
    Clavus is offline
    Boby360
    Junior Member
    Join Date: May 2006
    Old 09-09-2011 , 09:37   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #4

    This is great! Zombie Masters servers have huge issues with crashing. And i want some form of notification for people.

    Not sure why this has not been approved yet.

    Would be nice if you could get your own shutdown msg though. Could sniff around the .sp but via config file would be nice. Especially for the less computer savvy people.
    Boby360 is offline
    Send a message via MSN to Boby360
    Paparazziv2
    Senior Member
    Join Date: Feb 2011
    Location: Chile, La Serena
    Old 09-09-2011 , 20:30   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #5

    But for other servers the command quit not found, for example for me i set quit on the console and the server not restart, the server not 'CRASH' for the restart... the server is off with quit command (for me).
    __________________
    Sorry for the bad english please.

    Paparazziv2 is offline
    Send a message via MSN to Paparazziv2
    Boby360
    Junior Member
    Join Date: May 2006
    Old 09-09-2011 , 22:07   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #6

    The point is to shut down the server regularly so to avoid crashing. Also to have an external program running that will then reboot.
    Boby360 is offline
    Send a message via MSN to Boby360
    Boby360
    Junior Member
    Join Date: May 2006
    Old 09-24-2011 , 11:34   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #7

    Would it be possible to make it so if the server has a minimum population in the server it delays shutdown/restart by an hour and then checks again?

    That would REALLY rock.
    Boby360 is offline
    Send a message via MSN to Boby360
    srvmil
    Senior Member
    Join Date: Oct 2010
    Old 09-09-2012 , 07:12   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #8

    Is this supported with CS:GO? Has anyone tried?
    srvmil is offline
    nep
    Junior Member
    Join Date: Aug 2011
    Old 10-20-2012 , 07:09   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #9

    Quote:
    Originally Posted by srvmil View Post
    Is this supported with CS:GO? Has anyone tried?
    I can confirm this is working on CS:GO. It worked fine for me on three different servers today.
    nep is offline
    animalnots
    Senior Member
    Join Date: Dec 2012
    Old 03-08-2013 , 14:54   Re: [ANY] Scheduled Shutdown / Restart
    Reply With Quote #10

    Add translations support please and ability to change notifying message (translations).
    __________________
    STEAM is the best of the west
    Quote:
    Never argue with an idiot. He lowers you to his level and then wins on experience!
    animalnots is offline
    Reply



    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 15:00.


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