Latest version: 2.3
This plugin is designed to work as any other Reserved Slots plugin. The main difference is that it's compatible with
tVip, which was the reason I developed this plugin.
Note: This plugin won’t add extra slots on the server. It will reserve an amount of slots from the server for the desired flag on the configuration.
• Added tVip compatibility. (Avoid user being kicked when the flag is not properly loaded)
• Reserved slots will be used dinamically. No need to rejoin the server to fill the reserved slot.
• Forwards for Developers.
• Admin Bypass
• Configuration to avoid Spectators as players. (Players count)
• Configuration to avoid Admins as players. (Players count)
• Different Reserved Slots methods:
0 - Normal (Only VIP can use those slots, won't kick)
1 - Kick latest player when VIP joins
2 - Kick highest Ping when VIP joins
3 - Normal with sv_visiblemaxplayers compatibility
IMPORTANT: If you have "
tvip_method" below
3, you must set both CVARs ("
tvip_reservedslots" and "
tvip_serverslots") to above 0 to enable the plugin.
Example #1 (My server has
20 slots and I want
2 reserved slots. Results: 18 players will be able to join and 2 VIPs with reserved slots flag):
Quote:
tvip_reservedslots 2
tvip_serverslots 20
|
Example #2 (My server has
12 slots and I want
2 reserved slots, but only
10 players in total (VIP and Non-Vip) to join the server. Results: 8 players will be able to join and 2 VIPs with reserved slots flag:
Quote:
tvip_reservedslots 2
tvip_serverslots 10
|
Note: If you set the "
tvip_serverslots" less than the amount of slots on the server, the server will limit players until the number on "
tvip_serverslots". As in the example above, in my 12 slots server, I've set 10 slots in "
tvip_serverslots", so only 10 players will be able to play simultaneously (vip and non-vip), but 2 out of 10 slots are reserverd for VIPs.
Example #3 (My server has
12 slots and I want
10 reserved slots, but only
10 players in total (VIP and Non-Vip) to join the server. Results: 10 players will be able to join and 10 VIPs with reserved slots flag will be able to join and kick a player.:
Quote:
tvip_reservedslots 10
tvip_serverslots 10
tvip_method 1
|
Example #4 (My server has
24 slots and I have
sv_visiblemaxplayers 20, but I want those 4 slots reserved to VIP. Results: 20 players will be able to join and 4 VIPs with reserved slots flag):
Quote:
sv_visiblemaxplayers 20
tvip_serverslots 24
tvip_method 3
|
Note: The
Couting CVARs won't add or remove any slot from your server, they work together with "
tvip_serverslots". For example, if you have a 12 slots servers and you need 10 players to start a match, but there are 9 players in a team and an Admin in Spectator, also your "
tvip_serverslots" are set to
10 another wouldn't be able to fill the team. Then you can disable the counting of players in spectators, by doing that,
the plugin will consider only the players in a team (CT or T) and it will allow another player to fill the slot
(If your server has enough slots to fill everyone)
Quote:
public void tVip_ReservedSlotsJoin (int client) {}
public void tVip_ReservedSlotsLeft (int client) {}
|
Drop "
tVip_ReservedSlots.smx" inside Plugins folder.
Drop "
tvip_reserved.phrases.txt" inside Translations folder.
Change map to generate the .cfg file and setup your CVARs.
Only if CVAR "
tvip_plugin" is set to
1:
tVip by
Totenfluch.
DONE - Add CVAR for counting or not players in spectate team. (For example if someone is spectating a match or recording they won't be filling a normal player slot in the plugin)
DONE - Add CVAR for counting or not admins in spectate team as players (Admins spectating for hackers etc won't be filling a normal player slot in the plugin)
DONE - Add CVAR for counting or not VIPs in spectator team. (This will avoid VIPs in spectator from using reserved slots)
DONE - - Compatibility with sv_visiblemaxplayers and/or add CVARs to use reserved slots as hidden slots or customize a custom amount of hidden slots.
Thanks to
Totenfluch for some help with the Plugin and for the awesome
tVip.
Thanks to Dr!fter, Sikari and Techno for some help.
Thanks to Notifications for extensive testing.
If you have any issues, just let me know.