AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Advanced Client Redirection (https://forums.alliedmods.net/showthread.php?t=23632)

Twilight Suzuka 01-25-2006 21:21

Advanced Client Redirection
 
1 Attachment(s)
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.

Hawk552 01-25-2006 21:30

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 )

twistedeuphoria 01-25-2006 21:36

That's one, and you used it so it doesn't count. Back to zero.

bmann_420 01-25-2006 21:37

All this crazy coder talk! Good job Suzuka ( I know not to say Twilight since Twilight is a designation, not a name :D)

Twilight Suzuka 01-25-2006 22:33

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.

taheri6 03-16-2006 01:29

does the redirection menu allow you to joing a pw server (private)?

taheri6 03-22-2006 22:17

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).

iggy_bus 04-10-2006 19:25

array module for linix? :evil:

voivod 06-07-2006 13:42

i like this plugin, will someone fix this error?

bmann_420 06-07-2006 18:32

I installed your array module and its running okay :D (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 :D Im only here for 2 more days and gatta get it to work before I leave.

[/code]


All times are GMT -4. The time now is 10:51.

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