Raised This Month: $12 Target: $400
 3% 

[Any] New IP Redirect (v1.1.0, 3-27-14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Plugin ID:
2286
Plugin Version:
v1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin can be placed on your server to redirect players to your new server.
    Old 03-28-2011 , 21:59   [Any] New IP Redirect (v1.1.0, 3-27-14)
    Reply With Quote #1

    [Any] New IP Redirect (v1.1.0, 3-27-14)

    Description: This plugin can be placed on your server to redirect players to your new server.

    CVAR / Command List:
    • sm_redirect_newip - Set to your new IP. (Default 0.0.0.0)
    • sm_redirect_kicktimer - Seconds to kick after not leaving. (Default 120)
    • sm_redirect_showtimer - Seconds to show connection display box. (Default 120)
    Installation: Place the newipredirect.smx into addons/sourcemod/plugins and the cvars into your server.cfg.

    Reporting Issues
    Please open a new issue for any bugs here. Please don't use this area for general support, that belongs in this thread.

    Change Log:
    v1.1.0, 3-27-14
    * General clean up of plugin and post.
    * Made kick message more understandable.
    v1.0.1, 3-25-13
    * Removed useless string (thanks Dr!fter).
    * Updated to new website.
    v1.0, 3-28-11
    * Initial release.

    Special Thanks:
    Monkey, and twistedpanda. They helped me basically put this together. I have gotten a lot more advanced since that time.

    Download the Plugin (newipredirect.smx)
    View the Source (newipredirect.sp)

    Last edited by Bubka3; 03-27-2014 at 23:16. Reason: New version.
    Bubka3 is offline
    nightrider
    SourceMod Donor
    Join Date: Dec 2008
    Old 03-30-2011 , 18:19   Re: [B3] New IP Redirect (v1.0, 3-28-11)
    Reply With Quote #2

    Interesting, thanks for sharing.
    __________________
    [SIGPIC][/SIGPIC] the pantless
    I am the Night Rider!, I'm a fuel-injected suicide machine.
    I am a rocker! I am a roller!, I am an out-of-controller!


    nightrider is offline
    deathcurse
    Senior Member
    Join Date: Jun 2006
    Location: UK
    Old 12-01-2011 , 12:15   Re: [B3] New IP Redirect (v1.0, 3-28-11)
    Reply With Quote #3

    Good plugin, helping us move players over to our new servers.

    Thanks!
    __________________
    Clan of Doom: www.clanofdoom.co.uk

    Last edited by deathcurse; 12-01-2011 at 12:16.
    deathcurse is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 12-28-2012 , 11:26   Re: [B3] New IP Redirect (v1.0, 3-28-11)
    Reply With Quote #4

    Nice plugin.

    PHP Code:
    public EventSpawn(Handle:event, const String:name[], bool:dontBroadcast)
    {
        
    decl String:buffer[32];
        
    GetConVarString(NewIPbuffersizeof(buffer));
        new 
    client GetClientOfUserId(GetEventInt(event"userid"));
        new 
    Float:time GetConVarFloat(STime); 
        new 
    String:ip[32]; 
        
    GetConVarString(NewIPipsizeof(ip));
        
    DisplayAskConnectBox(clienttimeip);
        
    PrintToChat(client"[SM] We have a new server at IP: %s"ip);
        
    PrintToChat(client"[SM] Press F3 to connect to the new server.");
        
    PrintToChat(client"[SM] If you do not connect, you will be kicked from this server.");

    You declare buffer and set its value but never use it you then grab the same value but store it in ip so remove the buffer one. Other than that looks good and approved!
    Dr!fter is offline
    Bubka3
    Sir Buzz Killington, Esq.
    Join Date: Jan 2010
    Location: New York, NY
    Old 03-25-2013 , 00:41   Re: [B3] New IP Redirect (v1.0, 3-28-11)
    Reply With Quote #5

    Quote:
    Originally Posted by Dr!fter View Post
    You declare buffer and set its value but never use it you then grab the same value but store it in ip so remove the buffer one. Other than that looks good and approved!
    Whoops, might be 2 years late, but fixed.
    Bubka3 is offline
    Donski
    Senior Member
    Join Date: Sep 2012
    Old 04-13-2013 , 12:53   Re: [B3] New IP Redirect (v1.0.1, 3-25-13)
    Reply With Quote #6

    What if our server is not on the default port 27015? Will it use the same port or can we set it using the re_newip cvar (eg. 0.0.0.0:27016)?

    Thanks!
    Donski is offline
    Donski
    Senior Member
    Join Date: Sep 2012
    Old 04-13-2013 , 19:50   Re: [B3] New IP Redirect (v1.0.1, 3-25-13)
    Reply With Quote #7

    Hmm, it shows the notice but pressing F3 doesn't seem to do anything. F3 is binded to askconnect_accept. Any thoughts? :\

    Also getting these errors:

    Code:
    L 04/14/2013 - 07:56:43: [SM] Native "CloseHandle" reported: Handle 1e300e3 is invalid (error 3)
    L 04/14/2013 - 07:56:43: [SM] Displaying call stack trace for plugin "bub_redirect.smx":
    L 04/14/2013 - 07:56:43: [SM]   [0]  Line 35, /home/groups/alliedmodders/forums/files/6/8/6/3/1/117612.attach::OnClientDisconnect()

    Last edited by Donski; 04-13-2013 at 19:59.
    Donski is offline
    me-Shoe
    Senior Member
    Join Date: Apr 2008
    Old 04-14-2013 , 08:53   Re: [B3] New IP Redirect (v1.0.1, 3-25-13)
    Reply With Quote #8

    Is this Plugin still up to date (protobuf and so) and approved with CS:GO?
    __________________
    me-Shoe is offline
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 04-27-2013 , 14:04   Re: [B3] New IP Redirect (v1.0.1, 3-25-13)
    Reply With Quote #9

    Nice plugin. I think anyone with admin flag shouldn't get kicked.
    __________________
    cw main:

    cw speedruns:
    vodka00 is offline
    narugo
    Member
    Join Date: Mar 2013
    Location: São Paulo - Brazil
    Old 05-24-2013 , 21:07   Re: [B3] New IP Redirect (v1.0.1, 3-25-13)
    Reply With Quote #10

    How to protect admins and bots, and set maxslots like redirector. smx or hreserved_slots?

    I liked more this plugin because this function "re_stime" keep box asking to a new server.
    __________________

    Last edited by narugo; 05-24-2013 at 21:14.
    narugo is offline
    Send a message via Skype™ to narugo
    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 09:28.


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