Raised This Month: $94 Target: $400
 23% 

1337 Restarter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   GHW_Chronic (70)
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-25-2006 , 17: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 - 1344 views - 2.9 KB)

Last edited by mateo10; 07-01-2009 at 10:28.
mateo10 is offline
tinlab
Member
Join Date: Oct 2006
Location: malaysia
Old 11-28-2006 , 05:40   Re: Server Restart (every hour)
Reply With Quote #2

that would just get annoying
tinlab is offline
Send a message via AIM to tinlab Send a message via MSN to tinlab
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-28-2006 , 07:20   Re: Server Restart (every hour)
Reply With Quote #3

Well, if you think so dont download it.
If you don't think so download it.
mateo10 is offline
{*F.B.I*}&{*Super*}
Member
Join Date: Nov 2006
Location: United States
Old 11-28-2006 , 07:41   Re: Server Restart (every hour)
Reply With Quote #4

Nice Plugin !
+ Karma !
__________________
+ Karma If I Helped You
{*F.B.I*}&{*The Best Public Server*}
192.168.0.101:27015
{*F.B.I*}&{*Super*} is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-28-2006 , 07:42   Re: Server Restart (every hour)
Reply With Quote #5

Thanks
mateo10 is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: UK, Kent
Old 11-28-2006 , 14:10   Re: Server Restart (every hour)
Reply With Quote #6

hey this is a good plugin. but i use mp_timelimit 60 and when the 60 minutes is up, it changes map, which updates my server.. sry .. but +karma for making it
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
bonafide
Senior Member
Join Date: Feb 2006
Location: Venice Beach!
Old 11-29-2006 , 22:39   Re: Server Restart (every hour)
Reply With Quote #7

looks pretty nice. might want to add like server.cfgs to be excuted on every hour or a cvar seting the time before reset.
__________________
bonafide is offline
Send a message via ICQ to bonafide Send a message via AIM to bonafide Send a message via MSN to bonafide Send a message via Skype™ to bonafide
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-30-2006 , 04:06   Re: Server Restart (every hour)
Reply With Quote #8

That cvar is server_restarttime <float value>

And the server.cfgs executed I can do that
mateo10 is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 11-30-2006 , 04:10   Re: Server Restart (every hour)
Reply With Quote #9

Update:

Executes the server.cfg every restart by the plugin.
mateo10 is offline
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 11-30-2006 , 06:18   Re: Server Restart (every hour)
Reply With Quote #10

Nice plugin, +Karma

You should make it have HUD message say that it will be restarting in 15 min, 5 min, 10 sec countdown. Just an idea,
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
Reply


Thread Tools
Display Modes

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 08:21.


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