AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   1337 Restarter (https://forums.alliedmods.net/showthread.php?t=47761)

mateo10 11-25-2006 16:27

1337 Restarter
 
16 Attachment(s)
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

tinlab 11-28-2006 04:40

Re: Server Restart (every hour)
 
that would just get annoying

mateo10 11-28-2006 06:20

Re: Server Restart (every hour)
 
Well, if you think so dont download it.
If you don't think so download it.

{*F.B.I*}&{*Super*} 11-28-2006 06:41

Re: Server Restart (every hour)
 
Nice Plugin !
+ Karma ! :up:

mateo10 11-28-2006 06:42

Re: Server Restart (every hour)
 
Thanks :)

terrum 11-28-2006 13:10

Re: Server Restart (every hour)
 
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 :D

bonafide 11-29-2006 21:39

Re: Server Restart (every hour)
 
looks pretty nice. might want to add like server.cfgs to be excuted on every hour or a cvar seting the time before reset.

mateo10 11-30-2006 03:06

Re: Server Restart (every hour)
 
That cvar is server_restarttime <float value>

And the server.cfgs executed I can do that :)

mateo10 11-30-2006 03:10

Re: Server Restart (every hour)
 
Update:

Executes the server.cfg every restart by the plugin.

omghax 11-30-2006 05:18

Re: Server Restart (every hour)
 
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, :o


All times are GMT -4. The time now is 20:18.

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