'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!
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!
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:
ServerID
- This Server-ID will be saved in the Database (it has to be unique) and it will be used along side the server Steam-ID to identify this specific server (especially when either the name of the server is changed or the ip / port).\
Note: This section isn't required for the plugin to run but if you change your server token often you SHOULD use it.
ServerName
- This name will be shown on the Server-List Menu. Leave blank if you want to use your Server Hostname.
PrefixRemover
- String to remove from the server name (useful for removing prefixes)\
For example, if i have PrefixRemover = SomeName
and ServerName = SomeName Retake #1
this will result {shortname}
to be Retake #1
.
ServerCategory
- Category of the server in the Server-List Menu.\
The category section helps you organize your servers and improve the user experience.
ShowSeverInServerList
- Whether this server should appear in the Server-List or not.
ShowBots
- Whether to include bots in the player count or not.
ServerListCommands
- The commnad(s) that will open the Server-List menu.\
Note: Commands must start with "sm_", to add multiple commands, separate them with a comma (,).\
Example: "sm_servers,sm_serverlist,sm_sl"
MenuFormat
- This is how the menu will be formatted.\
See 'Server Assets for 'MenuFormat' and Advertisements' to see the avilable assets that can be used\
Example: {shortname} ({current} / {max} - {map})
will show: Retake #1 (7 / 10 - de_dust2)
for example.
EnableAdvertisements
- Whether or not offline servers will be Advertised.
ServerTimeOut
- The amount of time (in minutes) before this server will be deleted from the database after the last update.
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.
{shortname}
{longname}
{current}
{max}
{map}
{category}
{status}
{bots}
{id}
{ip}
{port}
Note: If you have an idea for new things that can be useful for 'MenuFormat' or Advertisements, you can open an issue.
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:
Server Name
and the Server IP
+ Server Port
.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
)Server Map
- Current played map in the server.Print Server Info
into the chat.Join The Server
- Will redirect them to the server.Open the server list and click the Edit Advertisements
option.
Use the sm_editsradv
(/editsradv
or !editsradv
).
Server to advertise
- the server that will be advertised, in the future there will be an option to select multiple servers and a category.
Advertisement mode
- There are 3 modes:\
LOOP
- Every X
seconds the advertisement will be posted.\MAP
- Every time a map changes it will post the advertisement.\PLAYERS
- Every time the players are between X
to Y
the advertisement will be posted.\
* For MAP
and PLAYERS
there is a Cooldown
option so it will not spam-post the advertisement.For LOOP
mode, this is the loop time
- how many seconds should pass before posting the advertisement.\
For MAP
and PLAYERS
that will be the Cooldown time
- how much time should pass before posting again.
For PLAYERS
there is the player range, the syntx is: <Minimum Number Of Player>|<Maximum Number Of Player>
\
Example: 3|5
(between 3 players to 5 players)
Advertisement Message
- the message that will be shown when the advertisement will be posted, you can use the Server Assets
in the message and it will be replaced with the real-time info from the database.\
Note: if you reached the max characters in the chat and you want to add to the message you can write <ADD>
in the start of the message and it will append the message to the end of the existing message.
server_redirect_other_servers_update_interval
- The number of seconds between other servers update. (default - 20.0
)server_redirect_server_update_interval
- The number of seconds the plugin will wait before updating player count in the SQL server. (default - 20.0
)server_redirect_debug_mode
- Whether or not to print debug messages in server console (default - 0
, You shouldn't turn this on unless you contacted me and we are trying to identify a bug, if you will turn this on it will just spam your server console with debug prints related to this plugin.)Each override provides you the option to give different Admin Group(s)
different things:
server_redirect_join_full_bypass
- Will allow the Admin Group(s)
to get redirected even if the server is full.server_redirect_edit_advertisements
- Will allow the Admin Group(s)
to edit / add advertisements.server_redirect_show_hidden_servers
- Will show hidden servers to this Admin Group(s)
.server_redirect_use_reserved_slots
- Will alow the Admin Group(s)
to get redirected using the Reserved Slot(s)
.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>
.
As it sounds, currently you can only use this plugin for CS:GO.
Error with your MySQL server, to find out how to fix the error you got, google it.
Config.cfg
is missing from sourcemod/confings/ServerRedirect/
.
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
.