Raised This Month: $ Target: $400
 0% 

Redirect to your new server IP


Post New Thread Reply   
 
Thread Tools Display Modes
Cesar
New Member
Join Date: Mar 2006
Location: Hampton, Virginia
Old 12-06-2012 , 20:11   Re: Redirect to your new server IP
Reply With Quote #111

Quote:
Originally Posted by P1raten View Post
lol. Plugins are not hacking tools or something like that.
I never said it is.

Last edited by Cesar; 12-06-2012 at 20:23.
Cesar is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-06-2012 , 22:00   Re: Redirect to your new server IP
Reply With Quote #112

Quote:
Originally Posted by Cesar View Post
Tried to use the plugin today, and no one got redirected. I've tried restarting the server and changing the map. Plugin is "running" and no errors about "invalid command".

Maybe Valve "patched" the redirect command?
Its possible. They've done it before. I currently don't have a server available to test
or maintain my plugins. So perhaps someone else can check your suspicions.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
12114
Senior Member
Join Date: Jan 2006
Old 02-03-2013 , 15:30   Re: Redirect to your new server IP
Reply With Quote #113

this plugin doesnt work anymore, just tried it, it doesnt redirect. Second time i try a plugin that doesnt work :\ (tried simple redirect by BigBaller too).

Last edited by 12114; 02-03-2013 at 15:30.
12114 is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 02-08-2013 , 20:04   Re: Redirect to your new server IP
Reply With Quote #114

Obviously there is something wrong in your configuration. Plugin itself works perfectly (proved for the latest stable release of CS 1.6 client) and I do use it.
__________________
isotonic is offline
ntsv
New Member
Join Date: Mar 2011
Old 03-27-2013 , 14:16   Re: Redirect to your new server IP
Reply With Quote #115

Hi, I am using the code vet, I place in the code the ip. To not using the cvars but not redirects me.

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Redirect_All"
#define VERSION "1.7"

new g_IP
new g_port
new g_delay
new g_ipcvar[32]
new 
g_portcvar

public plugin_init()
{
    
g_IP register_cvar("redirect_ip""8.6.193.113")
    
g_port register_cvar("redirect_port""27015")
    
g_delay register_cvar("redirect_delay""10.0")


    if (!
file_exists("motd.txt"))
        
set_fail_state("motd.txt file not found")

    
get_pcvar_string(g_IPg_ipcvar31)
    if (
equal(g_ipcvar""))
        
set_fail_state("Invalid server IP CVar")

    
g_portcvar get_pcvar_num(g_port)

    
register_event("InitHUD""event_InitHUD""bd")
    
register_message(get_user_msgid("VGUIMenu"), "show_vgui")

    
log_message("[AMXX] Redirect All - Plugin Initialized")

    return 
PLUGIN_CONTINUE
}

public 
event_InitHUD(id)
{
    if (!
is_user_bot(id) && !is_user_hltv(id) && !is_user_immune(id)) {
        
set_task(0.1"task_show_motd"id""0"b")
        
console_print(id"^n****************************")
        
console_print(id"*  Redirecting to our new server IP^n*")
        
console_print(id"*      %s:%d^n*"g_ipcvarg_portcvar)
        
console_print(id"*  Be sure to update your Favorites")
        
console_print(id"****************************^n")
        
set_task(Float:get_pcvar_float(g_delay), "task_redirect"100 id)
    }

    return 
PLUGIN_CONTINUE
}

public 
client_disconnect(id)
{
    
remove_task(id)
    
remove_task(100 id)
}

public 
task_show_motd(id)
{
    if (
is_user_connected(id))
        
show_motd(id"motd.txt")
    else {
        
remove_task(id)
        
remove_task(100 id)
    }
}

public 
task_redirect(tid)
{
    new 
id tid 100
    
new info1[32], info2[32]
    if (
is_user_connected(id)) {
        
get_user_name(idinfo131)
        
get_user_authid(idinfo231)
        
log_message("[Redirect] Sent %s <%s> to new server"info1info2)
        
client_cmd(id"echo ^"Redirecting^";Connect %s:%d"g_ipcvarg_portcvar)
    }
}

public 
show_vgui(msgiddestid)
{
    if (
is_user_immune(id))
        return 
PLUGIN_CONTINUE

    
return PLUGIN_HANDLED
}

public 
is_user_immune(id)
{
    new 
uname[32]
    
get_user_name(iduname31)
    if (
get_user_flags(id) & ADMIN_IMMUNITY && equal(uname"noredirect"))
        return 
1

    
return 0

could be achieved Auto redirect THE players to the ip the server new, pressing OK in the MOTD


Last edited by ntsv; 03-27-2013 at 14:32.
ntsv is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-27-2013 , 19:31   Re: Redirect to your new server IP
Reply With Quote #116

Server tried to send invalid command:"echo "Redirecting";Connect 27.50.71.210:27018
Blizzard_87 is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-28-2013 , 14:52   Re: Redirect to your new server IP
Reply With Quote #117

Quote:
Originally Posted by Blizzard_87 View Post
Server tried to send invalid command:"echo "Redirecting";Connect 27.50.71.210:27018
Redirecting, binding, screenshot making, all these things were banned on the latest cs update.
Unkolix is offline
Diamond
Junior Member
Join Date: Nov 2008
Old 05-31-2013 , 04:18   Re: Redirect to your new server IP
Reply With Quote #118

Anyone can explain why we need to change map to make this plugin works?
It seems that cvars weren't loaded in the first time we start server. Any workarounds for this?
Thanks.
Diamond is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 05-31-2013 , 09:20   Re: Redirect to your new server IP
Reply With Quote #119

I think it is impossible to redirect players after the update.
jingojang is offline
Bestkid
Member
Join Date: Jan 2013
Location: Under your Bed
Old 06-20-2013 , 12:25   Re: Redirect to your new server IP
Reply With Quote #120

Does this still work? Im running 1.8.1 amx mod.
Bestkid is offline
Reply



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 06:43.


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