Raised This Month: $51 Target: $400
 12% 

[ANY] Reserved Slots with tVip support (v2.3, 2019-07-23)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Plugin ID:
6091
Plugin Version:
2.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Reserved Slots with tVip support
Old 04-13-2018 , 12:10   [ANY] Reserved Slots with tVip support (v2.3, 2019-07-23)
Reply With Quote #1


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


Spoiler


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.


Spoiler



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.
Attached Files
File Type: txt tvip_reserved.phrases.txt (620 Bytes, 1239 views)
File Type: sp Get Plugin or Get Source (tVip_ReservedSlots.sp - 755 views - 20.8 KB)
File Type: smx tVip_ReservedSlots.smx (16.1 KB, 797 views)
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 07-24-2019 at 00:55. Reason: Version 2.3
plock is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:30.


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