[CSGO] HexRedirect - Workaround for MOTDs

Post Reply
User avatar
Andreeas
Hero Member
Hero Member
Posts: 601
Joined: Wed Jan 22, 2020 8:17 pm
Jucator SA:MP ?: Nu
Nick:: Andreeas
Jucator CS ?: Nu

[CSGO] HexRedirect - Workaround for MOTDs

Post by Andreeas »

Installation:
Quote:
Install the SteamWorks extention.
Download there the latest plugin version.
To install the sourcemod plugin just merge the addons/sourcemod located in GameServer/ folder with yours.
Move the files inside the WebServer/ folder to your webserver.
Edit the config.php file according to your needs.
Set your motd.txt to redirect to the php script.
Edit the auth token in both the config.php and the GameServer config cfg/plugin.HexRedirect.cfg

ConVars:
Quote:
sm_redirect_method -> Its value can be either steam or ip, and must match the one in the WebServer config
sm_redirect_website -> Full URL to your redirect.php
sm_redirect_authtoken -> Value of the auth string set in the WebServer config, required to make POST requests

Notes:
Quote:
The plugin configuration is located in sourcemod/configs/hexredirect.cfg
The patter is "command" "url"
Make sure to include the full url with the scheme as well(https or http).
The only cvar is that must match the PHP Script value. It can be either steam or ip
If you want to reload the config just use the sm_rredirect command!

The parameters are:

Code:
{STEAMID} -> Replaced with the player's steamid2 (eg. STEAM_1:0:138675850)
{STEAMID64} -> Replaced with player's steamid64 (eg. 76561198237617428)
{IP} -> Replaced with player's ip address (eg. 127.0.0.1)
Example configuration:
PHP Code:
"HexRedirect"
{
"google" "https://www.google.com/"
"!plugins" "https://forums.alliedmods.net/forumdisplay.php?f=123"
"zombie" "steam://connect/127.0.0.1:27015" //Your server IP, this will make the player join there
}



Download
Source
Post Reply

Return to “Server Management”