About
Recent CS:GO updates have played havoc on plugins that distribute web based commands via the games built in MOTD window such as Web Shortcuts. WebLync works around this issue restoring full functionality allowing server operators to have working web MOTD windows again.

To use My Google Ads you must have an approved Google AdSense account using your own domain name, once approved, you can obtain your publisher id via the Settings page.

Creating Custom URL Replacement Parameters

Spoiler

This feature allows third party plugins to hook into WebLync and create custom URL parameters. I currently use this feature to patch in security tokens to allow automatic login to Console.

You start off by adding a URL with the custom parameters you want to replace via the web panel.

Command: custom
URL: http://test.com/{Custom}

You then register your custom replacement parameter with a callback via the WebLync_RegisterUrlParam native.

Code:

WebLync_RegisterUrlParam("{Custom}", OnReplaceCustomParam);

When a client uses the !custom command the callback fires.

In the callback we populate the buffer parameter with the replacement text for the custom URL parameter.
Note: The callback also receives the client index and the paramname in case you want to handle all your callbacks in one function.