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

[ANY] Server Migration (Changing IP?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NIGathan
Senior Member
Join Date: Aug 2011
Location: /dev/null
Plugin ID:
4188
Plugin Version:
1.1a niggy's revision a
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When a player joins the server they will be asked to connect to the new server. If they do not accept within the time limit, they will be kicked.
    Old 05-07-2014 , 18:37   [ANY] Server Migration (Changing IP?)
    Reply With Quote #1

    I just had to move servers to a new IP. So I setup a VPS and bound my old IP's to it, setup a 2 slot server mimicing the old ones. Threw this plugin on them and added this line to the server.cfg file.
    Code:
    sm_autoredirect_addr "127.0.0.1:27015"
    Obviously replacing the localhost with the new IP.

    When a player joins the server they will be asked to connect to the new server. If they do not accept within the time limit, they will be kicked.

    This is a direct mod of this plugin: https://forums.alliedmods.net/showth...35645?p=535645

    That plugin's functionality is still entirely intact.

    Cvars:
    Code:
    sm_autoredirect_version: Plugin version
    sm_autoredirect: 1/0 Enable/Disable the automated prompt. Default: 1
    sm_autoredirect_addr: "ip:port" for the server to migrate to.
    sm_autoredirect_time: Seconds allowed to accept before kick. Default: 25.0
    sm_autoredirect_reason: Message displayed in the redirect prompt. Also used as the kick message. Default: "Please accept the server redirect prompt!"
    Attached Files
    File Type: sp Get Plugin or Get Source (autoredirect.sp - 832 views - 4.3 KB)

    Last edited by NIGathan; 05-07-2014 at 18:41.
    NIGathan is offline
    xSpeced
    AlliedModders Donor
    Join Date: Aug 2013
    Old 05-07-2014 , 18:42   Re: [ANY] Server Migration (Changing IP?)
    Reply With Quote #2

    There's like an identical plugin. https://forums.alliedmods.net/showthread.php?t=153769
    xSpeced is offline
    NIGathan
    Senior Member
    Join Date: Aug 2011
    Location: /dev/null
    Old 05-07-2014 , 19:00   Re: [ANY] Server Migration (Changing IP?)
    Reply With Quote #3

    Oh, thanks for the heads up. I couldn't find anything like it, only unautomated redirect plugins. No worries, I wrote this in like 20 minutes.
    NIGathan is offline
    boombee
    SourceMod Donor
    Join Date: Nov 2013
    Old 05-07-2014 , 19:26   Re: [ANY] Server Migration (Changing IP?)
    Reply With Quote #4

    Quote:
    Originally Posted by NIGathan View Post
    Oh, thanks for the heads up. I couldn't find anything like it, only unautomated redirect plugins. No worries, I wrote this in like 20 minutes.
    If this worked in CS:GO... does it?
    boombee is offline
    NIGathan
    Senior Member
    Join Date: Aug 2011
    Location: /dev/null
    Old 05-13-2014 , 20:18   Re: [ANY] Server Migration (Changing IP?)
    Reply With Quote #5

    Quote:
    Originally Posted by boombee View Post
    If this worked in CS:GO... does it?
    I haven't tested, but it might. I know it works in CSS.
    NIGathan is offline
    2NASTY4U
    Senior Member
    Join Date: Mar 2014
    Old 05-15-2014 , 16:22   Re: [ANY] Server Migration (Changing IP?)
    Reply With Quote #6

    Quote:
    Originally Posted by boombee View Post
    If this worked in CS:GO... does it?
    Quote:
    Originally Posted by NIGathan View Post
    I haven't tested, but it might. I know it works in CSS.
    CS:GO doesn't support the required client-side feature for this plugin to work.
    2NASTY4U is offline
    jeezz
    Senior Member
    Join Date: Apr 2012
    Location: netherlands
    Old 05-21-2016 , 07:16   Re: [ANY] Server Migration (Changing IP?)
    Reply With Quote #7

    this plugin works but it makes the fake clients go wild, it keep kicking fake clients.
    is there a way too fix this?
    thx
    jeezz 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 03:28.


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