Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 08-28-2018 , 09:15   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #31

Quote:
Originally Posted by gula345 View Post
08/28/2018 - 12:04:58: [SM] Exception reported: Invalid index -1 (count: 0)
L 08/28/2018 - 12:04:58: [SM] Blaming: tVIp_ReservedSlots.smx
L 08/28/2018 - 12:04:58: [SM] Call stack trace:
L 08/28/2018 - 12:04:58: [SM] [0] ArrayList.Erase
L 08/28/2018 - 12:04:58: [SM] [1] Line 104, D:\Desktop\muffin\scripting\tVIp_ReservedSlot s.sp::Event_Player_Disc_Pre
Are you using the latest version?
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
rzrhome
Junior Member
Join Date: Sep 2016
Old 08-28-2018 , 14:29   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #32

i have a 1v1 server with 20 slots but if one will join with "a" flags the server crash.

config:
tvip_reservedslots "10"
tvip_serverslots "20"
tvip_dropmethod "2"
tvip_plugin "0"
tvip_adminflag "d"
tvip_vipflag "a"


any idea ?
rzrhome is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 08-28-2018 , 14:52   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #33

Quote:
Originally Posted by rzrhome View Post
i have a 1v1 server with 20 slots but if one will join with "a" flags the server crash.

config:
tvip_reservedslots "10"
tvip_serverslots "20"
tvip_dropmethod "2"
tvip_plugin "0"
tvip_adminflag "d"
tvip_vipflag "a"


any idea ?
Can you show me the error logs?
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 09-04-2018 , 14:22   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #34

If I had an 11 slot server and want 10 people playing but any slots can be used by VIP, would it just be:
tvip_reservedslots "1"
tvip_serverslots "10"
tvip_dropmethod "2"
tvip_plugin "0"
tvip_adminflag "d"
tvip_vipflag "a"
Notifications is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 09-04-2018 , 14:24   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #35

Quote:
Originally Posted by Notifications View Post
If I had an 11 slot server and want 10 people playing but any slots can be used by VIP, would it just be:
tvip_reservedslots "1"
tvip_serverslots "10"
tvip_dropmethod "2"
tvip_plugin "0"
tvip_adminflag "d"
tvip_vipflag "a"
Yes. In this scenario it will kick the player with the highest ping when a VIP joins the server. Let me know if you have any issues.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 09-04-2018 at 14:24.
plock is offline
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 09-04-2018 , 14:45   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #36

Quote:
Originally Posted by plock View Post
Yes. In this scenario it will kick the player with the highest ping when a VIP joins the server. Let me know if you have any issues.
Will do, just wanted to confirm. Thanks <3
Notifications is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 09-04-2018 , 14:51   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #37

Quote:
Originally Posted by Notifications View Post
Will do, just wanted to confirm. Thanks <3
Just one thing I just realized on your example, if you want the 10 slots to be used by VIPs, you need "tvip_reservedslots" set to 10.

EDIT: Let me try to give you a few examples.
tvip_reservedslots = 10: If the server is full of normal players and 10 VIPs try to join the server, the 10 players can be kicked and 10 VIPs will join.

tvip_reservedslots = 1: If the server is full of normal players and 10 VIPs try to join the server, only 1 player will be kicked and 1 VIP will be able to join.

Note: Once the reserved slots are full, only admins/mods will be able to join.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 09-04-2018 at 14:54.
plock is offline
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 09-04-2018 , 21:16   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #38

Quote:
Originally Posted by plock View Post
Just one thing I just realized on your example, if you want the 10 slots to be used by VIPs, you need "tvip_reservedslots" set to 10.

EDIT: Let me try to give you a few examples.
tvip_reservedslots = 10: If the server is full of normal players and 10 VIPs try to join the server, the 10 players can be kicked and 10 VIPs will join.

tvip_reservedslots = 1: If the server is full of normal players and 10 VIPs try to join the server, only 1 player will be kicked and 1 VIP will be able to join.

Note: Once the reserved slots are full, only admins/mods will be able to join.
Ah, thanks for clearing that up before I made a mistake haha; thank you
Notifications is offline
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 09-09-2018 , 17:20   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #39

So, I tried this plugin and it didn't work for me, this is my cfg:
Quote:
// This file was auto-generated by AutoExecConfig v0.1.5 (https://forums.alliedmods.net/showthread.php?t=204254)
// ConVars for plugin "tvip_reservedslots.smx"


// Amount of reserved slots.
// -
// Default: "0"
tvip_reservedslots "10"

// Total amount of slots available.
// -
// Default: "0"
tvip_serverslots "10"

// 0 = Reserved Slots. 1 = Kicks last player who joined the server (Until all reserved slots are occupied, after that it won't kick). 2 = Kick player with highest ping (Until all reserved slots are occupied, after that it won't kick).
// -
// Default: "0"
tvip_dropmethod "1"

// 1 = Use tVip integration. Any other value will use OnClientPostAdminCheck verification.
// -
// Default: "1"
tvip_plugin "1"

// Flag to check Admin immunity.
// -
// Default: "d"
tvip_adminflag "d"

// Flag to check Vip permissions.
// -
// Default: "o"
tvip_vipflag "a"
My TVIP is:
Quote:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "tvip.smx"


// 20=Custom6, 19=Custom5 etc. Numeric Flag See: 'https://wiki.alliedmods.net/Checking_Admin_Flags_(SourceMod_Scripting)' for Definitions ---- Multiple flags seperated with Space: '16 17 18 19' !!
// -
// Default: "19"
tVip_flag "a"

// Test Vip duration in minutes
// -
// Default: "15"
tVip_testVipDuration "15"
Notifications is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 09-09-2018 , 17:44   Re: [ANY] Reserved Slots with tVip support (v1.4, 2018-08-28)
Reply With Quote #40

Quote:
Originally Posted by Notifications View Post
So, I tried this plugin and it didn't work for me, this is my cfg:


My TVIP is:
Hey, please share your errors logs. Also, I think the problem is in your tVip config. You used flag “a”, but it requires the number. Please make sure you use the number that corresponds to the flag “a”.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
Reply


Thread Tools
Display Modes

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 01:33.


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