Zombie Panic! Community Forums
Released Website in Steam Overlay - Printable Version

+- Zombie Panic! Community Forums (https://forum.zombiepanicsource.com)
+-- Forum: Custom Content (https://forum.zombiepanicsource.com/forumdisplay.php?fid=80)
+--- Forum: Plugins (https://forum.zombiepanicsource.com/forumdisplay.php?fid=98)
+--- Thread: Released Website in Steam Overlay (/showthread.php?tid=415)



Website in Steam Overlay - XeroX - 05-29-2018

This Plugin easily allows players to visit the servers website using the Steam Overlay.

As this plugin uses the OpenSteamOverlayToWebPage function 3.0.9 is required.

Players ingame can simply use !website or /website to visit the servers website.
It does require the player to set cl_allow_servers_to_use_steam_overlay to 1 otherwise the steam overlay will not show the specified website.

Installation: Put the website.as in zps/data/scripts/plugins and add the plugin in your default_plugins.txt (zps root where gameinfo.txt etc is).



Code:
1
2
3
4
5
6
7
8
"Plugins"
{
	"plugin"
	{
		"name" "Ingame Website Plugin"
		"script" "Website"
	}
}


The plugin will (if it doesn't exist) automatically create a file in zps/data/custom called website.zpdata (file can be opened with any text editor such as notepad or notepad++) where you can change if it should be enabled at all and the url to open upon entering the command.