AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Outdated do? (https://forums.alliedmods.net/showthread.php?t=156966)

klausenbusk 05-14-2011 13:00

[ANY] Outdated do?
 
2 Attachment(s)
Description:
This plugin, simple do one of the following items listed under sm_outdated_do when Steam master servers report that your server is outdated..
Now also execute cfg/outdated.cfg..

Should work on all games, where SteamTools are supported, and
Code:

forward Action:Steam_RestartRequested();
work.
Cvars:
  • sm_outdated_version 1.1 - Outdated do? version..
  • sm_outdated_do 2 - Specific what to do when 'your server is reported outdated'
    • 0 = Disabled
    • 1 = Create need.update
    • 2 = Create need.update if no players or only bots
    • 3 = same as 1 but also shutdown the server
    • 4 = same as 2 but also shutdown the server

Installation:
  • Install SteamTools if not already installed
  • Move outdated-do.smx into you Sourcemod/plugins folder
TODO:
  • More options for sm_outdated_do (some ideas?)
Compil:
  • Require SteamTools include file to compile
Changelog:
Code:

2011-07-16 (v1.1)
Now execute cfg/outdated.cfg if found, on "sm_outdated_do"..
2011-05-14 (v1.0)
Initial release.


away000 05-14-2011 13:08

Re: [ANY] Outdated do?
 
Any result with a test?

klausenbusk 05-14-2011 13:12

Re: [ANY] Outdated do?
 
Quote:

Originally Posted by away000 (Post 1469299)
Any result with a test?

nope. (no update has been released since I was finished :D)
But it works fine, if i try it with a command...

Snaggle 05-14-2011 18:14

Re: [ANY] Outdated do?
 
Really nice idea o.o

Can't wait to try this out after an update.

oneshot23 05-15-2011 15:04

Re: [ANY] Outdated do?
 
So this plugin will simply auto update a server when there is a new update? Or does it create a file saying you need to update?

klausenbusk 05-15-2011 15:51

Re: [ANY] Outdated do?
 
Quote:

Originally Posted by oneshot23 (Post 1470025)
So this plugin will simply auto update a server when there is a new update? Or does it create a file saying you need to update?

It do one, of the following thing, when Steam master servers report that your server is outdated
sm_outdated_do 2 - Specific what to do when 'your server is reported outdated'
  • 0 = Disabled
  • 1 = Create need.update
  • 2 = Create need.update if no players or only bots
  • 3 = same as 1 but also shutdown the server
  • 4 = same as 2 but also shutdown the server
So you could make a script there every 30 min, there check if need.update is found, and if yes, then shutdown you server, update it, and start it again :)

So it will say, it only create need.update, in your mod dir :) (ex orangebox/cstrike)

br5dy 07-07-2011 21:31

Re: [ANY] Outdated do?
 
Love it. Can you add the option to notify players that the server is shutting down? Maybe you could add a cfg file so a server admin could change what it says easily.

napalm00 07-08-2011 04:35

Re: [ANY] Outdated do?
 
this is extremely brilliant, my dear sir

Datenkralle 07-16-2011 00:48

Re: [ANY] Outdated do?
 
I think you can add a option wich run a user specified command, like a servernamechange.... hostname="-=Outdatet=-Servernameblabla" and after do a mapchange, when servername is changed. So the changed servername is publicied.

So a admin can see in programs like HLSW: "Oh my server is outdatet."

A other thing is a other adminnotification like an email to admin.

Any programer use the notification system in Tellwell (http://www.telwell.de/) (similar like ICQ) with their script. Or you use a email notification, but i thing it's a littlebit heavier to realise.

klausenbusk 07-16-2011 08:24

Re: [ANY] Outdated do?
 
Check out last update :D


All times are GMT -4. The time now is 12:24.

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