Raised This Month: $ Target: $400
 0% 

[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 01-29-2019 , 12:04   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #51

Updated to Version 1.7
Quote:
2019-01-29 (v1.7)
- Fixed issues with Admins being kicked with Drop Method 1 (Kick latest client who joined the server)
- Added a new cvar for debug log. If enable it will generate a file at sourcemod logs (I.E.: tvip_rs_190129.txt)
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 01-31-2019 at 11:26.
plock is offline
gildevanaraujo
Senior Member
Join Date: Oct 2018
Location: Brazil
Old 02-02-2019 , 08:21   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #52

Hello friend, I would like information about your "Reserved Slots with tVip support (v1.7, 2019-01-29)" plugin.

I have a server with 10 slots, I would like 2 slots to be reserved for vip, so everything is ok.

But I wonder if it is possible that if you have no vip players on the servers the 10 slots were occupied by 10 players free? And as soon as some VIP connected to the server the last free player would kick.

Is there such a method?
gildevanaraujo is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 02-02-2019 , 12:31   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #53

Quote:
Originally Posted by gildevanaraujo View Post
Hello friend, I would like information about your "Reserved Slots with tVip support (v1.7, 2019-01-29)" plugin.

I have a server with 10 slots, I would like 2 slots to be reserved for vip, so everything is ok.

But I wonder if it is possible that if you have no vip players on the servers the 10 slots were occupied by 10 players free? And as soon as some VIP connected to the server the last free player would kick.

Is there such a method?
Hi,

When you load the plugin it will generate a cfg. There you will find a cvar call "tvip_dropmethod", if you set it to 1 it will behave like you want.

Regards.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
gildevanaraujo
Senior Member
Join Date: Oct 2018
Location: Brazil
Old 02-07-2019 , 05:05   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #54

Quote:
Originally Posted by plock View Post
Hi,

When you load the plugin it will generate a cfg. There you will find a cvar call "tvip_dropmethod", if you set it to 1 it will behave like you want.

Regards.
Hello the plugin is still not working, I configured my tvip to assign the following flags, 0 15 16.
And in the reserved tvip slot I assign the following flag "a", with the cvar "tvip_dropmethod" "1", but even then it still is not working.

I'll post my two configs here for you to check.

Can you help me? I also removed the original reservedslot.smx from sourcemods.

tVip.cfg
Code:
// This file was auto-generated by AutoExecConfig v0.1.5 (https://forums.alliedmods.net/showthread.php?t=204254)
// 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 "0 15 16"

// Test Vip duration in minutes
// -
// Default: "15"
tVip_testVipDuration "5"
tVip_ReservedSlots

Code:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "tVip_ReservedSlots.smx"


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

// 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"

// Call forward when a player joined the server sucessfully.
// -
// Default: "1"
tvip_playerjoin "1"

// Call forward when a player left the server, won't call on kick.
// -
// Default: "1"
tvip_playerleft "1"

// Call forward when an admin joined the server sucessfully.
// -
// Default: "1"
tvip_adminjoin "1"

// Call forward when an admin left the server, won't call on kick.
// -
// Default: "1"
tvip_adminleft "1"

// Turn on debug messages for Reserved Slots
// -
// Default: "0"
tvip_debug "0"
gildevanaraujo is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 02-07-2019 , 06:49   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #55

Quote:
Originally Posted by gildevanaraujo View Post
Hello the plugin is still not working, I configured my tvip to assign the following flags, 0 15 16.
And in the reserved tvip slot I assign the following flag "a", with the cvar "tvip_dropmethod" "1", but even then it still is not working.

I'll post my two configs here for you to check.

Can you help me? I also removed the original reservedslot.smx from sourcemods.

tVip.cfg
Code:
// This file was auto-generated by AutoExecConfig v0.1.5 (https://forums.alliedmods.net/showthread.php?t=204254)
// 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 "0 15 16"

// Test Vip duration in minutes
// -
// Default: "15"
tVip_testVipDuration "5"
tVip_ReservedSlots

Code:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "tVip_ReservedSlots.smx"


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

// 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"

// Call forward when a player joined the server sucessfully.
// -
// Default: "1"
tvip_playerjoin "1"

// Call forward when a player left the server, won't call on kick.
// -
// Default: "1"
tvip_playerleft "1"

// Call forward when an admin joined the server sucessfully.
// -
// Default: "1"
tvip_adminjoin "1"

// Call forward when an admin left the server, won't call on kick.
// -
// Default: "1"
tvip_adminleft "1"

// Turn on debug messages for Reserved Slots
// -
// Default: "0"
tvip_debug "0"
Hi, I believe the tVip you are using is outdated. If you have downloaded the .smx from the forum post it's probably outdated. If you know how to compile, download the .sp version and compile it.

If you don't know how to do it, let me know that I can compile it for you and post it there.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
gildevanaraujo
Senior Member
Join Date: Oct 2018
Location: Brazil
Old 02-07-2019 , 09:38   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #56

Quote:
Originally Posted by plock View Post
Hi, I believe the tVip you are using is outdated. If you have downloaded the .smx from the forum post it's probably outdated. If you know how to compile, download the .sp version and compile it.

If you don't know how to do it, let me know that I can compile it for you and post it there.
I will compile the .sp version and test.
gildevanaraujo is offline
gildevanaraujo
Senior Member
Join Date: Oct 2018
Location: Brazil
Old 02-07-2019 , 12:18   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #57

Does it show anything on the console or logs when a vip connects to the server?

SM PLUGINS LIST
45 "tVip" (2.1) by Totenfluch
46 "tVip - Reserved Slots" (1.7) by Plock, Totenfluch
gildevanaraujo is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 02-07-2019 , 12:31   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #58

Quote:
Originally Posted by gildevanaraujo View Post
Does it show anything on the console or logs when a vip connects to the server?

SM PLUGINS LIST
45 "tVip" (2.1) by Totenfluch
46 "tVip - Reserved Slots" (1.7) by Plock, Totenfluch
You can enable the debug messages from my plugin and it will generate the logs.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 02-07-2019 , 12:43   Re: [ANY] Reserved Slots with tVip support (v1.7, 2019-01-29)
Reply With Quote #59

Quote:
Originally Posted by gildevanaraujo View Post
I will compile the .sp version and test.
BTW, I'm sorry, I checked the .sp from tVip and it's outdated. I think he has only updated the .smx.

You can find an updated .sp on his github https://github.com/Totenfluch/tVip.

The reason you need the updated .sp is that he added some functions (forwards) that I use in my plugin to make it work.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 02-08-2019 , 06:52   Re: [ANY] Reserved Slots with tVip support (v1.8, 2019-02-08)
Reply With Quote #60

Updated to Version 1.8
Quote:
2019-02-08 (v1.8)
- Fixed a log error of client index 0 on debug messages.
- Moved the reserved slots counting to one step above to avoid debug messages with outdated information.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 02-13-2019 at 07:26.
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 04:24.


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