Simple Server Shutdown v1.0 =========================== ©Copyright 2013, Rich „Weeds„ Nagel - Some Rights Reserved Description ----------- This Lua script for Counter-Strike 2D allows a server administrator to restart (or completely shut down) a dedicated server, along with countdown notification messages (and audible sound effects) displayed to the current players on the server announcing the server restart or shutdown. Restarting or shutting down the dedicated server is performed by issuing two simple console commands via RCon, and the players are tactfully kicked from the server (with a kick message to the players explaining that the server has been restarted or shut down) after the countdown notification messages are displayed to them (and before the server is actually restarted or shut down). Installation ------------ Unzip the files contained in the "Simple_Server_Shutdown_v1.0.zip" archive to the "Counter-Strike 2D\Sys\Lua" folder on your hard drive, and then add the following line to the "Server.lua" (located in the same folder) file using Windows Notepad: dofile("Sys/Lua/SimpleServerShutdown.lua") Alternatively, simply unzip the files to the "Counter-Strike 2D\Sys\Lua\Autorun" folder on your hard drive. Note that this method does NOT require editing of the "Server.lua" file (as the game will automatically run any Lua script files that are located in the "Autorun" folder). Console Commands ---------------- Note that these console commands will function on a dedicated server via RCon, as well as on a "listen" server when starting a new game (although using Simple Server Shutdown and the console commands when running a "listen" server is rather pointless). simple_server_shutdown restartserver Tactfully kick the players from the server with a kick message (explaining that the server has been restarted) after a notification announcement message and countdown, restart the round (effectively resetting the server), and then cycle to the next map in the server map rotation (just for good measure). simple_server_shutdown shutdownserver Tactfully kick the players from the server with a kick message (explaining that the server has been shut down) after a notification announcement message and countdown, and then completely shut down and terminate the server. simple_server_shutdown help simple_server_shutdown ? Display help screen. simple_server_shutdown version simple_server_shutdown about Display version information. Version History --------------- v1.0 - First Release. (January 8, 2013) ENJOY! ------ Rich „Weeds„ Nagel January 8, 2013 richnagel@centurylink.net http://www.richnagel.net http://www.unrealsoftware.de/profile.php?userid=110755 http://steamcommunity.com/id/RichNagel