Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kgns/HexRedirect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Download this repo
  2. To install the sourcemod plugin just merge the addons/sourcemod located in GameServer/ folder with yours.
  3. To install the php script, just move it(WebServer/redirect.php) to your webserver.
  4. Configure the php script, editing the redirect.php, following the instructions.
  5. Set your motd.txt to redirect to the php script.

Configuration

  • The plugin configuration is located in sourcemod/configs/hextags.cfg
  • The patter is "command" "url"
  • Make sure to include the full url with the scheme as well(https or http).

Example

"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
}

How this works

When the user types that are listed in the cfg its ip is saved in the database, and when the user open the motd page, it will check if the given IP has any url to be redirected, if not it will just send to the set homepage.

I know that is could not be the most reliable way (especially if two player have the same IP), but it's the only the I could figure without having the user to copy-paste the url.

Video example

Watch the video

About

Workaround for motd in CSGO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 89.6%
  • SourcePawn 7.2%
  • Shell 3.2%