Raised This Month: $32 Target: $400
 8% 

Redirect to your new server IP


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 10-11-2007 , 14:00   Redirect to your new server IP
Reply With Quote #1

Ya, Another Server Redirect Plugin

UPDATED (7-16-09) Works with Steam update


So what's the difference...
1) This redirect plugin is designed solely for those server ops who are changing to a new server IP.
2) It will redirect ALL players to your new server while displaying the new info in the startup MOTD.
3) The MOTD will trap the player on the MOTD screen, continuing to display it, until the redirect occurs.
4) The new server info will be placed in the client's console for reference.
5) The plugin contains a backdoor that will allow an admin with Immunity, AND who's name is noredirect, to enter the server.

Note: The MOTD stay code is based on 'MOTD Repeater/Holder' by Ven.

The plugin will autofail if...
No motd.txt file is found
The redirect_ip CVar is blank
The redirect_enable CVar is 0

CVars (Place in server.cfg or amxx.cfg file)
redirect_enable - Plugin enable/disable - Required (Default = 0 <disabled>)
redirect_ip - Destination server IP - Required (Default = "")
redirect_port - Destination server port - Required if other than the default (Default = 27015)
redirect_delay - Delay time (seconds) until redirect - Optional (Default = 10)

A sample motd.txt file is provided below. The resulting screen from the sample is shown in the thumbnail pic.

This plugin has only been tested on a Windows server with DOD 1.3 and CS 1.6

Version History:
1.7 - Fixed issue of not redirecting after another Steam update.
1.6 - Fixed issue of not redirecting after Steam update.
1.5 - Original release.

UPDATED (7-16-09) Works with Steam update
...
Attached Thumbnails
Click image for larger version

Name:	rd_motd.jpg
Views:	31054
Size:	25.8 KB
ID:	20779  
Attached Files
File Type: txt motd.txt (260 Bytes, 17065 views)
File Type: sma Get Plugin or Get Source (redirect_2_new.sma - 25730 views - 3.7 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 07-16-2009 at 22:29.
Vet is offline
Send a message via MSN to Vet
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 10-11-2007 , 14:16   Re: Redirect to your new server IP
Reply With Quote #2

I see, so you need to have the prior server still running and know the new ip then. I guess you could do that with other redirects in that case, but this one is much more descriptive/detailed. And Markets the new ip and lets them know instead of the changing the server name. Not bad
__________________
bmann_420 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-11-2007 , 14:23   Re: Redirect to your new server IP
Reply With Quote #3

Yeah, not bad, looks interesting... gj anyway.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 10-11-2007 , 14:31   Re: Redirect to your new server IP
Reply With Quote #4

Quote:
Originally Posted by bmann_420 View Post
I see, so you need to have the prior server still running and know the new ip then.
Exactly. If fact the only reason I wrote this was because we had to change hosts and wanted to make it convenient for our regular players. So I figured I'd share it for those who might find themselves in the same scenerio. We even kept our old server for an extra month just to redirect traffic to our new server.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 10-11-2007 , 14:38   Re: Redirect to your new server IP
Reply With Quote #5

I could have used this a few times for sure.
__________________
bmann_420 is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 10-11-2007 , 15:40   Re: Redirect to your new server IP
Reply With Quote #6

this is awsome , i just wish there was a way to make it so if somone connects to a server in CZ it sends them to a server in 1.6, BUT will most likely NEVER be possible
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Jheshka
Senior Member
Join Date: Dec 2005
Old 10-11-2007 , 16:20   Re: Redirect to your new server IP
Reply With Quote #7

Quote:
Originally Posted by Reaper2331 View Post
this is awsome , i just wish there was a way to make it so if somone connects to a server in CZ it sends them to a server in 1.6, BUT will most likely NEVER be possible
Maybe because it's impossible to switch someone's client with metamod...
__________________
James
Jheshka is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 10-11-2007 , 16:30   Re: Redirect to your new server IP
Reply With Quote #8

i know lol, thats why i said, most likely NEVER be possible
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-11-2007 , 17:38   Re: Redirect to your new server IP
Reply With Quote #9

Interesting
__________________
M249-M4A1 is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 10-12-2007 , 22:20   Re: Redirect to your new server IP
Reply With Quote #10

Much more advanced then

"simple redirect" - old plugin, which does exactly what the title says. Its simple.

Nice stuff.
__________________

BigBaller is offline
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 18:50.


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