View Single Post
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 02-04-2017 , 16:54   Re: [ANY] automatic server update (windows)
Reply With Quote #3

Quote:
Originally Posted by psychonic View Post
With that script above, your server will exit if anyone with "MasterRequestRestart" in their name joins. There are probably others ways to exploit it as well.

Instead, the SteamWorks extension has a hook for the callback from Steam that generates the actual message (although it does not work on all games), or any of the extensions that provide an HTTP API can query the Steam UpToDateCheck Web API with the server version from steam.inf to see if the server requires an update.
Indeed, I wrote a plugin that does this and should support all Valve games. It's small and all you have to do is drag and drop.
KyleS is offline