CHANGES
- Modified the Connect method to allow Steamers to be redirected.
INSTALLATION
- Copy xredirect.amxx to addons/amxmodx/plugins folder.
- Copy xredirect.txt to addons/amxmodx/data/lang folder.
- Copy serverlist.ini to addons/amxmodx/configs folder and add your servers to it. Sample servers added already. Keep the same file in all servers for optimal functioning of the plugin.
- Edit addons/amxmodx/config/plugins.ini and add xredirect.amxx to it on a new line.
- Restart server or change map for changes to take effect.
- Note: This plugin requires sockets module to be enabled on your server. Make sure you check your modules.ini for that.
CVARS
For complete details of the CVARs used for this plugin please visit the official wiki here (External Link).
SERVERLIST.INI
The servers can be added in serverlist.ini with the below parameters -
- address = server address (can be IP or DNS name)
- localaddress = the server address the server has on it's local network - only neccessary to be specified, when players also can connect to the server from a local network
- port = server port - a value between 1025 and 65536, default 27015
- cmdbackup = defines how often the UDP request is resent to the server (with redirect_check_method > 0), default 2
- noauto = 1 disables automatic redirection to that server regardless of what redirect_auto is set to, 0 means controlled by redirect_auto default is 0
- nomanual = 1 disables manual redirection to that server regardless of what redirect_manual is set to, 0 means controlled by redirect_manual default is 0
- nodisplay = if this is set to 1 it will hide the server from the /server list and announcements, default 0
- adminslots = if this is set to 1 the plugin will redirect only people with reserved slot there if it's e.g. 12/13 players on the target server, default 0
- password = the password that is needed to connect to the server, default <none>
- publicpassword = if set to 1, all players can connect to passworded servers, when set to 0 only admins, default 0
The parameters which you do no need can be ignored for their default values.
COMMANDS
- say /server - show server redirection menu
- say_team /server - show server redirection menu
- pickserver - show server redirection menu
- say /follow - follow the last redirected player to his server
- say_team /follow - follow the last redirected player to his server
- say /retry - redirect back as soon as the foregoing server has a free slot
- say_team /retry - redirect back as soon as the foregoing server has a free slot
- say /stopretry - stop retrying the foregoing server
- say_team /stopretry - stop retrying the foregoing server
- redirect_announce_now - announce server list immediately, requires ADMIN_KICK access
- redirect_user - <playername|playerid> [servernum] - redirect a player [to a given server], requires ADMIN_KICK access
Orginal plugin (External Link)
Author - xOR
Plugin credits to the original author.
Modification credits to ~UN!CORN~ (Me)
Note : If you get any problems with this plugin or find out any bugs in it, please use this page to report them back to me so that I can fix them.
worked for some hours, then crashed servers (steamcmd).
ReplyDeleteI tested the plugin on STEAMCMD Servers first. It did not give any kind of problem. Please provide error logs (if any). Without logs it would be impossible for me to fix those errors.
Deleteafter map change the server crash - 48/1.1.2.7/Stdio 6132 , AMXX v1.8.2, MM v1.21p37
ReplyDeletePlease verify if you have sockets module enabled.
DeleteTry using MM 1.21-am.
Use amx_modules command to check if you have necessary modules enabled.
+1 linux falls when the map changes
DeletePlease share the source
ReplyDeleteThe method used to redirect players in this plugin is publicly available if you know where to search, but as Valve said they do not want any more redirects, I will not share its source here.
Deletehi, seems nice plugin, bt can u help as i want the server to redirect on 32/32 rather thn on 31/32..
ReplyDeletewhich command shud be change to make it effective if redirection once server if full 32/32 is possible.
i want every 33rd gamer to get redirected rather thn the 32nd one
There is no such thing as 32/32 redirect.
DeleteYou can only redirect when there is at least one slot free in the server. HL1 engine allows max 32 players so it is impossible to redirect the 33rd player as he wont even be able to connect to the server.
I guess there is a way, will post the proof soon, hope u will be able to help than, i jus want every 33rd player who tries to connect on server having 32/32 gettin redirected to next server
ReplyDeleteWill wait for the proof. Would be happy if you proved me wrong in this case :)
Deleteone more thing,, whenever sv having 31/32 players n if any admin with slot reservation joins a random player from server gets redirected though it shud be 32/32 thn.
ReplyDeletehow to stop this ?
Please read the full cvar list and settings here. There might be a possibility that you might or might not have configured some setting properly or you might not have a working knowledge of xRedirect plugin.
Deletechecked everythin, still not able to find, it still kicks a random player whenever some admin with slot reservation joins.
ReplyDeleteHelp wud be appreciated :D
I just rechecked the full source code just to be sure. This plugin does not kick anyone no matter who joins.
ReplyDeleteCheck for any other plugins that might be doing it, check for other slot reservation plugins.
:D i have been using it for long and using it for 5 servers, i don have any other plugin which kicks player when admin with reservation joins...
ReplyDeleteReally appreciate prompt reply
when server is 32/32 players dont get redirected , plz help?
ReplyDeleteI already said it works only with Max slots minus 1.
DeleteMeaning 31/32.
Deleteok , last thing : is it compat with new HLDS build? or can u provide recompiled plugin with amx1.8.2 ? plz
DeleteIts already compiled using version 1.8.3.
Deleteok brother thanks :D
DeleteWorks great Thanks
ReplyDeleteGlad it worked!
DeleteHi,
DeleteI got a little bug :
L 11/24/2014 - 19:52:02: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
L 11/24/2014 - 19:52:02: [AMXX] Run time error 4: index out of bounds
L 11/24/2014 - 19:52:02: [AMXX] [0] xredirect.sma::welcome_message (line 2425)
L 11/24/2014 - 19:52:06: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
L 11/24/2014 - 19:52:06: [AMXX] Run time error 4: index out of bounds
L 11/24/2014 - 19:52:06: [AMXX] [0] xredirect.sma::welcome_message (line 2425)
Will check it on the weekend.
Deletehttp://www.extreamcs.com/forum/amxmodx/xredirect-t231748.html
ReplyDeletei used this plugin and it works fine with steamers but it have an issue . when server is 31/32 and admin trys to join a player get kicked and server stays as 31/32 when the original plugin used to make admin join than it's 32/32 till someone leave . the question is how ur edition work ?
This is the same edition as it was on the authors official section on AM forums. I have simple altered the connection part.
DeleteTo put it simply this is the default plugin. No changes made.
ok but i want an answer . does ur plugin will act like like that example : when admin join server and it's 31/32 the server will go to be 32/32 and redirect project will stop till a player leave than it's 31/32 and redirect is working again till this slot is feld with admin ? and what is the right cvar config for it to happen
DeleteAFAIK the plugin will work exactly same as you mentioned. Plugin will not kick anyone when admin connects and server is 32/32. To be fair it does not seem correct to kick anyone in place for admin. This is the job of Slot Reservation plugin and not XRedirect.
DeleteI have a different plugin for slot reservation in my collection, I shall look into it later if you need it.
i have got amx_reservation disabled from plugins .ini
Deleteand when i set my config to :
redirect_active 1
redirect_auto 2
redirect_adminslots 1
redirect_maxadmins 1
players get kicked and server stay 31/32
when i change admin slot to 0 and max admin to 0
even admins get redirected but no kick to the last player who joined .
so what i need directly and how the plugin used to act before the update of steam is when the server is 31/32 and a player trys to join he will get redirected to the next server in the list which why auto is set to 2 and if it was an admin he will join without anyone get kicked and it will be 32/32 till someone leave . i know my writing are hard to understand but i looked this problem many times and idk why players keep getting kicked when ever admin try to join and server is always 31/32
I rechecked the full source again, but I was unable to find any part in it which kicks a player when admin joins in. So probably the player does not get kicked, he simple leaves.
DeleteCheck your server console when this happens, it should help you identify what the problem is exactly.
win7 steamcmd server metamod am1.21am (or 1.21p37) amxmodx 1.8.2
ReplyDeletemetamod 1.21am crash the server on mapchange (hlds launcher error)
metamod 1.21p37 crash the server on map (error message from microsoft visual c++ library)
TheZeroBeatzTuesday, November 25, 2014 at 12:43:00 AM GMT+5:30
ReplyDeleteHi,
I got a little bug :
L 11/24/2014 - 19:52:02: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
L 11/24/2014 - 19:52:02: [AMXX] Run time error 4: index out of bounds
L 11/24/2014 - 19:52:02: [AMXX] [0] xredirect.sma::welcome_message (line 2425)
L 11/24/2014 - 19:52:06: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
L 11/24/2014 - 19:52:06: [AMXX] Run time error 4: index out of bounds
L 11/24/2014 - 19:52:06: [AMXX] [0] xredirect.sma::welcome_message (line 2425)
What happen with this error ?
Check your config/language file. Most likely something wrong with the welcome message. Remember UTF-8 with BOM is the encoding you need to LANG files.
DeleteI cannot see how many players are there in each server when i type /server in chat
ReplyDeleteMake sure the necessary CVARS are enabled and also check if the game query ports are open on the server side and see if you can connect to them from the client side.
DeleteGetting this error now
ReplyDeleteCould not execute privileged command "Connect" xx:xx:xx:xx:27015
Obtendo este erro agora
ReplyDeleteNão foi possível executar o comando privilegiado "Conectar" xx: xx: xx: xx: 27015