AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   xREDIRECT (https://forums.alliedmods.net/forumdisplay.php?f=128)
-   -   [request] Redirect usual players to make room for VIPs (https://forums.alliedmods.net/showthread.php?t=104255)

mtxd 09-21-2009 09:25

[request] Redirect usual players to make room for VIPs
 
Is it possible to redirect usual players if VIPs from the list are trying to connect? If all servers are busy, just drop them.

There was a plugin written by avalanche doing this job. Will it be hard to combine with xredirect?

xOR 09-22-2009 15:10

Re: [request] Redirect usual players to make room for VIPs
 
xREDIRECT already has that feature. it is called admin slots but as xREDIRECT doesn't really allow any administrative tasks for this group it can as well be seen as a VIP feature: by default people with the reservation flag (b) are treated as VIPs. it has the following effects:
  • VIPs can use the retry queue, even when the retry feature is disabled
  • VIPs can redirect themselves onto servers with a non-public password
  • VIPs can join on admin slots defined for the other servers (having adminslots= set in the serverlist.ini)
  • VIPs are not auto-redirected when redirect_auto is set to 3 or 4
  • and last but not least it also does what you wanted: when the server is full and a VIP connects, xREDIRECT searches the non-VIP that is connected for the shortest time and redirects him to one of the other servers or drops him if no slot on any other server is available. so usually the poor player is not even dropped, he is getting a chance to play on one of the other servers :wink:
to enable that just set redirect_adminslots to 1. if you want to limit the number of players that can be treated as VIP at the same time then also set redirect_maxadmins to the limit you want. if you don't want any limit, then just leave it unset or set it to 0.

you can also configure the flag that xREDIRECT sees as VIP in the source code. search for the following line:
Code:
#define MIN_ADMIN_LEVEL ADMIN_RESERVATION
change ADMIN_RESERVATION to the level you want. a list of available level constants can be found in the file /include/amxconst.inc shipped with AMXX. for your convenience i copy it for you here:
Code:
#define ADMIN_ALL       0   /* everyone */ #define ADMIN_IMMUNITY      (1<<0)  /* flag "a" */ #define ADMIN_RESERVATION   (1<<1)  /* flag "b" */ #define ADMIN_KICK      (1<<2)  /* flag "c" */ #define ADMIN_BAN       (1<<3)  /* flag "d" */ #define ADMIN_SLAY      (1<<4)  /* flag "e" */ #define ADMIN_MAP       (1<<5)  /* flag "f" */ #define ADMIN_CVAR      (1<<6)  /* flag "g" */ #define ADMIN_CFG       (1<<7)  /* flag "h" */ #define ADMIN_CHAT      (1<<8)  /* flag "i" */ #define ADMIN_VOTE      (1<<9)  /* flag "j" */ #define ADMIN_PASSWORD      (1<<10) /* flag "k" */ #define ADMIN_RCON      (1<<11) /* flag "l" */ #define ADMIN_LEVEL_A       (1<<12) /* flag "m" */ #define ADMIN_LEVEL_B       (1<<13) /* flag "n" */ #define ADMIN_LEVEL_C       (1<<14) /* flag "o" */ #define ADMIN_LEVEL_D       (1<<15) /* flag "p" */ #define ADMIN_LEVEL_E       (1<<16) /* flag "q" */ #define ADMIN_LEVEL_F       (1<<17) /* flag "r" */ #define ADMIN_LEVEL_G       (1<<18) /* flag "s" */ #define ADMIN_LEVEL_H       (1<<19) /* flag "t" */ #define ADMIN_MENU      (1<<20) /* flag "u" */ #define ADMIN_ADMIN     (1<<24) /* flag "y" */ #define ADMIN_USER      (1<<25) /* flag "z" */


All times are GMT -4. The time now is 09:47.

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