RSSy MYGO.pl Opublikowano Grudzień 13, 2018 o 20:08 RSSy Udostępnij Opublikowano Grudzień 13, 2018 o 20:08 Installation: Quote: Download there the plugin. To install the sourcemod plugin just merge the addons/sourcemod located in GameServer/ folder with yours. To install the php script, just move it(WebServer/redirect.php) to your webserver. Configure the php script, editing the redirect.php, following the instructions. Set your motd.txt to redirect to the php script. Notes: Quote: 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). The only cvar is sm_redirect_method that must match the PHP Script value. It can be either steam or ip 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 } To report see/issue the current TODOs and bugs check the ISSUE Page on github Source CodeHow this works: Quote: When the user types that are listed in the cfg his ip/steamid is saved in the database, and when a user opens the motd page, it will check if the given IP/SteamID has any url to be redirected, if not it will just send to the set homepage. Note that the PHP and the GameServer configurations must match, and if you the steam method is choose he will be required to login in, however his session his stored so he'll need to login once per session. 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: https://youtu.be/TW_yxPcodhk Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się