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

Daily Restart


Post New Thread Reply   
 
Thread Tools Display Modes
sikkepitje
Member
Join Date: May 2004
Location: Netherlands, (EU)
Old 02-26-2006 , 17:05   Re: Daily Restart
Reply With Quote #11

Quote:
Originally Posted by watch

If anyone can think of a better way they hooking it off changelevel im all ears. Doing it when the plugin is initialised wouldn't work unless tasks were used and theres always the possiblity that people get redirected to a http download if they don't have the map. Also with disconnect i thought would be poor as everyone disconnects when the server changes level, not really ideal. I might be being stupid and missed another method thats blatently obvious though I considered using a task but it seemed a bit silly just for this
Good job mate!

Actually I have made a plugin like that, that restarts my server at 4:44 at a daily basis (I can't seem to find it however I posted it here on the forum... ). I don't need to check the number of player because at 4:44 my server is always empty

Why not just create a task for checking every minute? That is not silly. Running the taskcode is infinite small time compared to the total server running time. Especially if the work done in the task is not so complex, like checking if the total player number == 0 then do a restart ... You could set a task every minute or 5 minutes just to do that without a noticable performance penalty.

You could make it so that it sets a task every hour, except between 0:00 and 6:00 (24-hour) it checks every 5 minutes . You don't have to hook any other routine.
__________________
greetz ,
Sikkepitje
sikkepitje is offline
Send a message via MSN to sikkepitje
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 02-26-2006 , 21:11  
Reply With Quote #12

Great plugin...Very usefull.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
watch
Senior Member
Join Date: Sep 2005
Old 02-28-2006 , 20:56  
Reply With Quote #13

Thanks

Updated it to use ticktime rather than dates, its better because it will prevent unnecessary restarts, also added a cvar so you can set the frequency of the restarts. (amx_restart_frequency)

Im still unconvinced about using a task though
__________________
Code:
#include <amusing_small_signiture>
watch is offline
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 04-15-2006 , 09:29  
Reply With Quote #14

Version 1.0 works great for me. I can't get version 1.1 to do anything.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
Curryking
Veteran Member
Join Date: Jun 2004
Location: 51.22°N / 6.77°E
Old 04-28-2006 , 14:47  
Reply With Quote #15

Plugin doesn't work. Plugin is running

Code:
         restart            1.1      watch             restart.amxx     running
Code:
amx_restart_frequency 24
But no restart in the last 46 hours.

Curry
Attached Images
File Type: jpg restart.jpg (208.7 KB, 333 views)
__________________
Full speed - no brakes!
Curryking is offline
6pack
BANNED
Join Date: Mar 2006
Location: Cedarhurst, Long Island
Old 04-29-2006 , 21:07  
Reply With Quote #16

Quote:
Originally Posted by Curryking
Plugin doesn't work. Plugin is running

Code:
         restart            1.1      watch             restart.amxx     running
Code:
amx_restart_frequency 24
But no restart in the last 46 hours.

Curry
Thats a really bad screenshot, cant see anything

As far as this plugin, server checker or serverdoc will do the same thing plus a lot more leaving this plugin useless.

- much karma
6pack is offline
Curryking
Veteran Member
Join Date: Jun 2004
Location: 51.22°N / 6.77°E
Old 04-29-2006 , 23:59  
Reply With Quote #17

Quote:
Originally Posted by 6pack
[...]Thats a really bad screenshot, cant see anything
Take a closer look (I even marked interesting positions) ;-) .
The screenshot shows that the plugin is running correctly AND that the HLTV connection time (time=zeit) is about 48 hours - which means: No restart (should be after 24 hours).

Curry
__________________
Full speed - no brakes!
Curryking is offline
schlumpf2005
Veteran Member
Join Date: Dec 2005
Location: Eckernförde (Germany)
Old 07-12-2006 , 04:41   Re: Daily Restart
Reply With Quote #18

Hello, does the script execute one restart by quit? I search for a Plugin what my server all 2 hour once restarts läst. I have one where comes DM servers was every 2 hours. It goes wieder. what and if I write about HLSW restart I search for a script now it only does not automatically preserve one restart but the server by quit
__________________


Wir Bieten Ihnen Gameserver ohne Vertragsbindung an. (Prepaid Gameserver) Überzeugen Sie sich selbst
schlumpf2005 is offline
Send a message via ICQ to schlumpf2005
mercury
Member
Join Date: Jun 2004
Old 08-04-2006 , 07:19   Re: Daily Restart
Reply With Quote #19

this version really doesn't work..

Code:
 stats
 CPU   In    Out   Uptime  Users   FPS    Players
 0.79  0.00  0.00    5807  4724   93.40       0
Code:
 restart            1.1      watch             restart.amxx     running
Code:
 "amx_restart_frequency" is "24"
__________________
mercury is offline
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 08-08-2006 , 21:39   Re: Daily Restart
Reply With Quote #20

The older version "1.0" works perfect. I still use it.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
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:02.


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