Raised This Month: $ Target: $400
 0% 

Duplicate Server Info (Redirect Server)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   ConnorMcLeod (74)
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-16-2010 , 21:59   Duplicate Server Info (Redirect Server)
Reply With Quote #1

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:
Code:
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
NOTES:
Plugin creates file dsi_fake_map.cfg in addons/amxmodx/configs/ to store current name of dummy map (if target server is using map that is unavailable dummy map will be renamed to that map and server will change map to renamed dummy map). If you mess up something and plugin is not able to imitate map of target server then create dummy.bsp again, delete dsi_fake_map.cfg from configs folder and reload server. If it still does not work contact author.

Credits:
MAUGHOLD - he requested this plugin, paid for it and agreed to make it public.
Attached Files
File Type: sma Get Plugin or Get Source (duplicate_server_info.sma - 2822 views - 12.0 KB)
__________________
Impossible is Nothing

Last edited by Sylwester; 01-09-2011 at 23:10.
Sylwester is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode