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

1337 Restarter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   GHW_Chronic (70)
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-25-2006 , 16:27   1337 Restarter
Reply With Quote #1

1337 Restarter
[Updated 1st July 2009]


Description
Useful when you're running a server on a single map, and still want to restart for updates, etc. People changing maps regularly won't need this plugin.

Cvars
  • 1337_restarter <1|0>
    • Enables or disables the plugin.
  • 1337_showtimer <1|0>
    • Shows or hides the HUD timer (default 1).
  • 1337_restarttime <time in minutes>
    • Time in minutes between server restarts (default 60).

Requirements
  • AMX Mod X 1.61 or higher.

Changelog
Code:
 ******
 * Changelog
 *  1.4
 *	[FIXED] Moved the HUD-message up, so it won't
 *		bother users when playing.
 *	[FIXED] Changed the cvar server_restarttime to
 *		respond to minutes instead of seconds.
 *	[FIXED] Cleaned up code.
 *  1.33
 *	[FIXED] Made the changes GHW_Chronic told me to.
 *
 *  1.32
 *	[FIXED] Changed the cvar server_restarttime so you
 *		can type in any time you want.
 *
 *  1.31
 *	[FIXED] Changed the name from Server Restart to
 *		1337 Restarter.
 *
 *  1.3
 *	[ADDED] Added cvar "server_restarttime <1|2|3|4>
 *		1 = restart server every hour
 *		2 = restart server every 2 hours
 *		3 = restart server every 5 hours
 *		4 = restart server every 10 hours
 *
 *  1.21
 *	[REMOVED] Deleted the server_cmd("exec server.cfg")
 *
 *  1.2
 *	[FIXED] Changed the code a bit since the
 *		if(hour==0 && minute==0 && second==0)
 *		didn't work.
 *	[FIXED] Countdown now is in hour:minute:second mode.
 *
 *  1.1
 *	[ADDED] Added HUD Message countdown (Credits to
 *		jim_yang, The Specialist and Brad).
 *	[ADDED] Added cvar for HUD Message countdown.
 *	[FIXED] Improved the code a little bit.
 *	[REMOVED] Deleted the cvar to change the restart time.
 *
 *  1.02
 *	[ADDED] Added so the server.cfg will be executed
 *		every time it restarts by the plugin.
 *
 *  1.01
 *	[FIXED] Changed the cvars to pcvars.
 *
 *  1.0
 *	[RELEASE] Plugin released.
 ******
Credits
Attached Files
File Type: sma Get Plugin or Get Source (1337_restarter.sma - 1816 views - 2.9 KB)

Last edited by mateo10; 07-01-2009 at 09:28.
mateo10 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 14:47.


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