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

Simple Redirection 1.0


Post New Thread Reply   
 
Thread Tools Display Modes
zusis
New Member
Join Date: Jan 2010
Location: Latvia (Europe)
Old 07-13-2010 , 04:23   Re: Simple Redirection 1.0
Reply With Quote #101

Quote:
Originally Posted by ~NH~ View Post
For Those Of You That The Plugin Is Not Working For Here's My Fix

Put simple_redirect.amxx In Your cstrike/addons/amxmodx/plugins folder
Put simple_redirect.sma In Your cstrike/addons/amxmodx/scripting folder

Now Add This To The Bottom Of Your amxx.cfg File
NOT The Server.cfg File

Cvars
amx_rd_maxplayers 24 // - begin redirection when more the x ppl connected ( 0 = redirect all players )
amx_rd_server 69.147.224.40 // - redirect to this server
amx_rd_serverport 27015 // - redirect server port
//amx_rd_serverpw password // - password for the amx_rd_server (if needed)

Obviously You Will Need To Input Your Own Max Players, Server IP & Port

If Your Server Has A Password To Join, Remove The // In front Of That Line & Put In Your Server Password Where It Says Password.

In Order To Make Sure It Was Working It Set Max Players To 0 Then Tried Joining The Server To See If It Redirects To The 2nd Server

Make Sure You Restart Your Server Before Testing It.

Hope This Helps
I did this stuff.. an You konw.. IT WORKS!!!
Thanks!
__________________
my Signature
zusis is offline
rarex
New Member
Join Date: Jul 2010
Old 07-16-2010 , 13:17   Re: Simple Redirection 1.0
Reply With Quote #102

I did all but when i connect to the server it loads then again and again and again.I can't connect.
Attached Thumbnails
Click image for larger version

Name:	SHIT.JPG
Views:	381
Size:	7.4 KB
ID:	69841  
rarex is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-16-2010 , 13:20   Re: Simple Redirection 1.0
Reply With Quote #103

Quote:
Originally Posted by rarex View Post
I did all but when i connect to the server it loads then again and again and again.I can't connect.
Did you... try to... redirect... to same server? lol.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
SpyDevil
BANNED
Join Date: Jul 2010
Location: TURKiYE
Old 10-19-2010 , 09:49   Re: Simple Redirection 1.0
Reply With Quote #104

hi. How can i show my redirected server ip player slot at my old servers for favorite list?
SpyDevil is offline
Send a message via ICQ to SpyDevil Send a message via MSN to SpyDevil
cezars
Member
Join Date: May 2009
Location: Romania
Old 11-30-2010 , 13:27   Re: Simple Redirection 1.0
Reply With Quote #105

Can you make it to redirect to 2 server insted of one ? there is no plugin outhere to redirect on 2 server first cvlient redirect on server1 second client on server2 thre client on server1 and so on
__________________
cezars is offline
_Dert_
New Member
Join Date: Oct 2009
Old 02-26-2011 , 12:32   Re: Simple Redirection 1.0
Reply With Quote #106

Quote:
Place following cvars in server.cfg
Never worked.
So i added these cvars into amxx.cfg and that's working perfectly. I think we need first post correction.
_Dert_ is offline
PimP517
Member
Join Date: Oct 2009
Old 03-24-2011 , 14:34   Re: Simple Redirection 1.0
Reply With Quote #107

amx_pr_sloty "slots"
amx_pr_ip "Rediect to ip"
amx_pr_port "Port"

PHP Code:
#include <amxmodx>

new slot[31];

public 
plugin_init() {
    
register_plugin("Redirection","1.0","PimP517")

    
register_cvar("amx_pr_sloty","0")
    
register_cvar("amx_pr_ip","")
    
register_cvar("amx_pr_port","")
}
public 
client_putinserver(id)
{
    
slot[id] = 0;
}

public 
client_authorized(id)
{
    if ( 
get_user_flags(id) & ADMIN_RESERVATION )
    {
        
slot[id] = 1;
        
client_cmd(id,"echo ^"You have slot reservation.^";Slot")
    }

    new 
pr_sloty get_cvar_num("amx_pr_sloty")
    new 
pr_port get_cvar_num("amx_pr_port")
    new 
pr_ip[64];

    
get_cvar_string("amx_pr_ip",pr_ip,63)

    if (
slot[id] == 0)
    {
        if ( 
get_playersnum() >= pr_sloty)
        {
            
client_cmd(id,"echo ^"[AMXXRedirecting to %s:%d^";Connect %s:%d",pr_ip,pr_port,pr_ip,pr_port)
        }
    }
    return 
PLUGIN_CONTINUE;

Quote:
Quote:
Place following cvars in server.cfg
Never worked.
So i added these cvars into amxx.cfg and that's working perfectly. I think we need first post correction.
mapchangecfgfile server.cfg

Sorry for my bad English.

Last edited by PimP517; 03-24-2011 at 14:41.
PimP517 is offline
the_raculaa
Junior Member
Join Date: Jan 2010
Old 06-01-2011 , 18:49   Re: Simple Redirection 1.0
Reply With Quote #108

the same plugin, css? Is it possible to
the_raculaa is offline
THC
Member
Join Date: May 2009
Old 10-27-2011 , 14:22   Re: Simple Redirection 1.0
Reply With Quote #109

Quote:
Originally Posted by cezars View Post
Can you make it to redirect to 2 server insted of one ? there is no plugin outhere to redirect on 2 server first cvlient redirect on server1 second client on server2 thre client on server1 and so on
nice i wait for this plugin + admin slot
__________________
THC is offline
Vordrix
Member
Join Date: Jun 2006
Location: Ireland
Old 01-03-2013 , 02:22   Re: Simple Redirection 1.0
Reply With Quote #110

Quote:
Originally Posted by zusis View Post


I did this stuff.. an You konw.. IT WORKS!!!
Thanks!
I tried this one and I am still having trouble. If anyone would like to help me out with this it would really be appriciated! I tried compiling Pimp's post as well and doing it that way... and no luck... A little desperate to get this working
__________________
- l)l)` Vordrix (l)l)` Clan Leader).


http://www.ddcz.org
Vordrix is offline
Send a message via AIM to Vordrix
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 20:11.


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