Raised This Month: $208 Target: $400
 52% 

Advanced Client Redirection


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   twistedeuphoria (82)
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-25-2006 , 21:21   Advanced Client Redirection
Reply With Quote #1

Requires Array module, FakeMeta, and Sockets module, for 1.6x
Array module can be found in module forum.

This plugin allows you to put servers and their IP's into a file, then players may transfer to them through a menu, or through name.

It now allows server op's to manually redirect clients, as well as set automatic redirect settings. It also allows a server op to evict a player, making them unable to join the server for a set amount of time, redirecting them to a random server on the list.

Also, it does not permit PENDING clients to join the server, redirecting them randomly.

server commands:
amx_add_address <name> <ipaddress:port>
amx_reload_addresses - Reloads address from file to keytable.
amx_force_relocate <client> <address> [Time] - Forces a client to redirect, and allows for eviction.

address may be a manual ip:port address or an address located in the file.

CVARS:
amx_rd_maxplayers - After this many clients have joined, all others will be redirected.
amx_rd_random - if this is 1, all auto redirections will be random

If amx_rd_random is 0, these will be used:
amx_rd_server - auto redirections will go to this server.
amx_rd_serverport - with this port
amx_rd_serverpw - and this password

Client:
say /join - bring up redirection menu
say /join [servername] - if in list, redirects client to this server
say /join [IP:port] - redirects client to this server.

One must reload addresses after adding them using amx_add_address, or they will not work until mapchange.

Client commands:
say /join [name]

If one simply says "/join", a menu with all of the available servers to jump to will open, but they may also specify the name of a server in the list to jump to, or an IP address to jump to.

If it doesn't work, than...well...tell me.

I know this has been done already, but the other one is not 1.65 compatible. Also, I wanted to post something that used Array module, to piss off Twisty.
Attached Files
File Type: sma Get Plugin or Get Source (ip_joiner.sma - 2949 views - 7.9 KB)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-25-2006 , 21:30  
Reply With Quote #2

Wow, Array seems a bit overkill for something like this.

I know you are trying to get Array into something, but seriously this could be done with like 0.0001 more seconds in just a standard vault.

We're not talking copying multiple megabytes back and forth between memory and stuff.

Otherwise, good, I like how it's less than 4x smaller than the other one ( which for reference is here: http://forums.alliedmods.net/showthread.php?t=7347 )
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 01-25-2006 , 21:36  
Reply With Quote #3

That's one, and you used it so it doesn't count. Back to zero.
__________________
twistedeuphoria is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-25-2006 , 21:37  
Reply With Quote #4

All this crazy coder talk! Good job Suzuka ( I know not to say Twilight since Twilight is a designation, not a name )
__________________
bmann_420 is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-25-2006 , 22:33  
Reply With Quote #5

Quote:
Originally Posted by Hawk552
Wow, Array seems a bit overkill for something like this.

I know you are trying to get Array into something, but seriously this could be done with like 0.0001 more seconds in just a standard vault.

We're not talking copying multiple megabytes back and forth between memory and stuff.

Otherwise, good, I like how it's less than 4x smaller than the other one ( which for reference is here: http://forums.alliedmods.net/showthread.php?t=7347 )
I used array because it is the fastest, smallest, and most dynamic way to do this.

I added some features, and took features from some other people. See top for details.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
taheri6
Member
Join Date: Mar 2006
Old 03-16-2006 , 01:29  
Reply With Quote #6

does the redirection menu allow you to joing a pw server (private)?
taheri6 is offline
taheri6
Member
Join Date: Mar 2006
Old 03-22-2006 , 22:17  
Reply With Quote #7

Plugin failed to compile! Please try contacting the author.
Welcome to the AMX Mod X 1.70-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

/home/users/amxmodx/public_html/forums/files/ip_joiner_105.sma(4) : fatal error 100: cannot read from file: "array"

Compilation aborted.
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/ip_joiner_105.amx (compile failed).
taheri6 is offline
iggy_bus
BANNED
Join Date: Oct 2005
Old 04-10-2006 , 19:25  
Reply With Quote #8

array module for linix?
iggy_bus is offline
voivod
Member
Join Date: Jun 2006
Location: poland
Old 06-07-2006 , 13:42  
Reply With Quote #9

i like this plugin, will someone fix this error?
__________________
my server and maps
-> http://voivod.hk.pl <-
voivod is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-07-2006 , 18:32  
Reply With Quote #10

I installed your array module and its running okay (ALthough i found no documentation anywhere)

But this will not compile with all includes added. But I dont know where to place all those other files though.

I get 2 errors of arguments not matching the definition on line 63 and 144. I could easily be doing something wrong or missed something, let me know Im only here for 2 more days and gatta get it to work before I leave.

[/code]
__________________
bmann_420 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 20:48.


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