Thursday, December 26

Redirect 4 AutoMix v1.0

Redirect 4 Auto-Mix is an AMX Mod X plugin designed for users of my version of Auto-Mix plugin which allows those who have multiple servers and wish to redirect players for one server to the other whenever it is full. This plugin might be designed for the above stated purpose but you can use this for other redirections also. Read the cvar description and use it any way it seems fit.
Why a different plugin? At first I thought of adding this feature in the Auto-Mix directly, but understanding that it already is a heavy plugin and if in close future Valve decides to block the method I use to redirect players, I don't want it to affect the working of the Auto-Mix in any way.
Note : This plugin with work only with Auto-Mix version 1.1.9F and above.


INSTALLATION

  • Copy redirect_4_automix.amxx to addons/amxmodx/plugins directory.
  • Edit addons/amxmodx/configs/plugins.ini and add redirect_4_automix.amxx to it on a new line.
  • Restart the server or change the map for the changes to take effect.


CVARS
  • amx_automix_redirectip "127.0.0.1:27015"
    Desc - Enter the IP and Port of the server to which you want to send redirect the players.
     
  • amx_automix_redirectplayers 10
    Desc - Number of max connected players after which the players are redirected to the above IP. Keep this value same as your max players needed for automix. Players who connect after than 10th will be redirected (Except for ADMIN_RESERVATION flag)
     
  • Recommended : Add sv_visiblemaxplayers to your server.cfg or amxx.cfg. This cvar is self explanatory. This will be the number of max players visible. Most players try to join in on the servers with last slot remaining, so set this value to redirectplayers cvar + 1. Also set amx_pug_hideslots to 0 which should not auto change this value again.




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.

11 comments:

  1. Hello i am getting some problem ,
    i put these setting in amxx.cfg-
    sv_visiblemaxplayers +1
    amx_pug_hideslots 0
    amx_automix_redirectip "103.2.223.24:27026"
    after i restart the server , it showing me only 2 slot and i got 12 slot server , what should i do tell me exactly !
    thanks !

    ReplyDelete
    Replies
    1. i am not able to open (amx_automix_settings) showing me unknown command lol :D Plugins Not Working Well ?

      Delete
    2. amx_automix_redirectplayers 10
      sv_visiblemaxplayers 11 (amx_automix_redirectplayers + 1)
      amx_automix_redirectip "103.2.223.24:27026"
      amx_pug_hideslots 0

      If you are unable to open amx_automix_settings check if the plugin is running and its name exists in the plugins.ini. There is nothing wrong with the plugin, 50+ servers are using it without any problems.

      Delete
  2. Can it be used on pub server with 32 slots?

    ReplyDelete
    Replies
    1. can u help me how ? :) plz brother

      Delete
    2. amx_automix_redirectip "YOUR SERVER IP"
      amx_automix_redirectplayers "31"
      This setting should keep 1 slot free all the time and redirect players to the other server.

      Delete
  3. Same...

    ] amx_automix_settings
    Unknown command: amx_automix_settings

    About redirect, I'm using xredirect and i put sv_visiblemaxplayers 11 and my server is 11 slots , and it's redirecting, But can you tell me what is the different ? I mean your plugin is better than xredirect original version ? also your edited one ?
    Btw you are great, You should think again about sharing sma files, Why ? because i think you are one of the best coders, And that's will help all, Look i'm not coder but i used to edit plugins, Your auto-mix is great but i'm still waiting more updates and fixes, Like what ?
    Like server crash on team captains, Like still working more and more on Auto-Mix because it's the best mod for now... Also please new plugins for your auto-mix like i'm using rtv for auto-mix and i'm waiting your reply sorry for taking long time..

    ReplyDelete
  4. how to make reservation slot admins with redirect 4 automix

    i did but sadly reservation slot admins getting redirect

    can you help me

    thanks in advanced !!

    ReplyDelete
    Replies
    1. The plugin is hard coded to ignore admins with ADMIN_RESERVATION flag which is default "B"
      Check if your desired admins have that flag.

      Delete

Comment anything you want. Just be polite and give respect to others!
I am simply going to remove the comments which are offensive or are off topic.
And please don't spam your website links in comments. I don't, neither should you.