Page 1 of 1

Duplicate Server Info (Redirect Server)

Posted: Mon Nov 22, 2021 10:08 pm
by greenie
Duplicate Server Info (Redirect Server)

Description:
This plugin turns your server into redirect server (one of those fake servers we all hate so much ).
As an addition it can copy details from target server:
name, map, game descryption, players number, max players number, player names, player frags (it can not copy player time played).

Installation:
1. Make sure that target server is running the same game or redirected players will fail to join it.
2. Copy compiled .amxx to your plugins folder and add it to plugins.ini
3. Create copy of any map (smaller file size is better) in your /maps/ folder and rename it to dummy.bsp (this will let you imitate map of target server even if redirect server doesn't have it).
4. Add line: dsi_target "ip:port" to your server config file (replace ip:port with ip and port of desired server). Don't forget apostrophes " " or the plugin will not work.
5. If target server is password protected then add line: dsi_password "<password>" to your server config file (replace <password> with sv_password of target server).

You can determine how often the server updates info about target server using dsi_query_interval cvar (value stored in this cvar should be 10 or higher - its time in seconds between updates). Don't touch dsi_fake_map cvar.

Cvars:
cvar default_value // description

dsi_target "0.0.0.0:0" // "ip:port" of target server to imitate
dsi_password "" // sv_password of target server
dsi_query_interval 10 // interval (seconds) between checks of target server

dsi_hostname 1 // copy hostname from target (0 = disabled)
dsi_gamedesc 1 // copy game descryption from target (0 = disabled)
dsi_map 1 // copy map from target (0 = disabled)
dsi_players 1 // copy players from target (0 = disabled)
dsi_maxplayers 1 //copy max players from target (0 = disabled)

dsi_nobots_str "" // string to append to hostname if there are no bots on target server
dsi_bots_str "" // string to append to hostname if there are bots on target server
get plugin