Raised This Month: $95 Target: $400
 23% 

Duplicate Server Info (Redirect Server)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   ConnorMcLeod (74)
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-16-2010 , 22: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 - 2255 views - 12.0 KB)
__________________
Impossible is Nothing

Last edited by Sylwester; 01-10-2011 at 00:10.
Sylwester is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-17-2010 , 14:13   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #2

Orpheu. Hook functions that send info. Send our own info. ???. PROFIT!
__________________
xPaw is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-17-2010 , 14:38   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #3

Wow, amazingly useful. THANKS
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-17-2010 , 15:00   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
Orpheu. Hook functions that send info. Send our own info. ???. PROFIT!
I coded this plugin almost 1 year ago. I didn't feel like rewriting half of it and besides I have almost no experience with orpheu. I will code orpheu version some other time.
__________________
Impossible is Nothing
Sylwester is offline
oclahomapl
Junior Member
Join Date: Oct 2010
Old 10-18-2010 , 18:18   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #5

works for a few seconds

I got an error and the server is off

hlds_run: line 321: 16242 Segmentation fault $HL_CMD
oclahomapl is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-19-2010 , 01:36   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #6

That's not necessarily fault of the plugin.
http://forums.alliedmods.net/showthread.php?t=91189
__________________
Impossible is Nothing
Sylwester is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-09-2011 , 14:58   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #7

Works great. Just a quick question, what happens if your redirect server has less slots than your actual server, and your actual server is completely full. What will happen? Will the redirect server show as full?
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-09-2011 , 15:20   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #8

So this is not a fake server, you still need to create a real server to redirect players ?
__________________
- tired and retired -
ConnorMcLeod is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 01-09-2011 , 15:40   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
So this is not a fake server, you still need to create a real server to redirect players ?
It seems to be.
__________________
"There is no knowledge, that is not power"
fezh is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-09-2011 , 17:05   Re: Duplicate Server Info (Redirect Server)
Reply With Quote #10

Yup..You need a server, install this plugin, and then change the cvar, and then the server that you installed the plugin on will have the same info as the server with the ip of the cvar that you set.

Idk how this would make a fake server though, so not too sure why you thought that
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply


Thread Tools
Display Modes

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 14:28.


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