Natanel-Shitrit / Server-Redirect-Plus

'Server-Redirect+' is an interactive, auto-updated Server-List that can contain all of your CS:GO game servers.
https://forums.alliedmods.net/showthread.php?t=322904
GNU General Public License v3.0
6 stars 2 forks source link

Server-Redirect-Plus

What is 'Server-Redirect+'?

'Server-Redirect+' is an interactive, auto-updated Server-List that can contain all of your CS:GO game servers, advertise them and let players hop between them!

Demonstration Video

Server-Redirect-Plus Demonstration Video

Download

To find the latest stable release: 'Server-Redirect+' Releases

Downloading the repository itself is also an option.\ but, it's not always guaranteed to be stable!

Installation and Configuration

Okay, you have some servers and you want to install this awesome plugin, you came to the right place.

Firstly, Download the plugin from the 'Server-Redirect+' Releases page. (Or alternatively download the repository itself.)\ Next, extract the files into the server path (in '/csgo/', where you can spot the 'addons' and 'cfg' folders).

Now, let's configure the database config. navigate to '/csgo/addons/sourcemod/configs/' and open 'databases.cfg'.\ We will need to make a config for the 'Server-Redirect+' plugin so it will know what database credentials to use.

Use the following template:

"ServerRedirect"
{
    "driver"    "mysql"                   // This plugin uses mysql, please do not change this section :)
    "host"      "DATABASE_SERVER_IP"      // The server IP, If you do not know if you have a database, you probably do not have one. (Search online about it)
    "database"  "DATABASE_TO_USE"         // The database that you want to use (the database is where the tables will be, not refeered to the server itself)
    "user"      "DATABASE_USER"           // The user must have access to the database you mention in the 'database' section
    "pass"      "DATABASE_USER_PASSWORD"  // The password to the user
    "port"      "DATABASE_SERVER_IP"      // The database doesn't always have a port (in that case note this section), but when there is a port, it's important to specify it.
}

Great, Now the plugin should connect to the database.

Before we start using the plugin let's configure it, navigate to '/csgo/addons/sourcemod/configs/ServerRedirect/' and open 'Config.cfg'.\ Here's each setting and what it does:

Run the plugin and confirm everything works fine. If the plugin does not work and you get an error message, go to the 'Known issues and fixes' section.

Server Assets for 'MenuFormat' and Advertisements

Note: If you have an idea for new things that can be useful for 'MenuFormat' or Advertisements, you can open an issue.

Usage

User commands:

The commands you configured at the ServerListCommands config section will open the "Server-List", this is where all the servers are going be listed.\ After selecting a server, a menu will be shown with:

  1. The title will show the the Server Name and the Server IP + Server Port.
  2. Number Of Players and the server and the Maximum Amount Of Players that can be in the server. (If there are reserved slots and they are not hidden / you have permission to see the hidden reserved slots, they will be after the Maximum Amount Of Players)
  3. Server Map - Current played map in the server.
  4. A button to Print Server Info into the chat.
  5. A button to Join The Server - Will redirect them to the server.

Advertisements:

How to enter the advertisements menu:

ConVars

Overrides

Each override provides you the option to give different Admin Group(s) different things:

Known issues and fixes

"Couldn't get the server IP":

If you incounter this error, you need to set the public IP manually by adding this following command into the server (srdc) launch options: +net_public_adr <Put here the public IP>.

"This plugin is for CSGO only":

As it sounds, currently you can only use this plugin for CS:GO.

"Cannot Connect To MySQL Server! | Error: ...." OR "Couldn't create Advertisements Table [Error: %s]" OR "Couldn't get server advertisements, Error: %s":

Error with your MySQL server, to find out how to fix the error you got, google it.

"Couldn't load plugin config.":

Config.cfg is missing from sourcemod/confings/ServerRedirect/.

"Couldn't get the Server Steam Account ID, Please manually configure ServerID in the plugin config":

If you didn't configure the ServerID section in the config and the plugin failed to get the Server Steam-ID, go to the config and put a ServerID.

If you get any other error and you are sure it's caused by this plugin feel free to open an issue.