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

[CS:GO] ReservedSlots using 'connect' and limit bypass fix [UPDATED 04/04/2021]


Post New Thread Reply   
 
Thread Tools Display Modes
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 06-17-2020 , 18:27   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #21

Quote:
Originally Posted by Khayenoh View Post
There is no option for recently entered income to be kicked?
It's done. Download the latest version and change cvar sm_reserved_slots_type to value 4 (Shortest connection time player)
__________________
NanoC is offline
Send a message via Skype™ to NanoC
Khayenoh
New Member
Join Date: Sep 2019
Old 06-17-2020 , 23:02   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #22

Thanks a lot!<3
Khayenoh is offline
Chassz
New Member
Join Date: Jul 2020
Old 07-14-2020 , 07:29   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #23

Sorry complete newb here.
I've previously installed metamod and sourcemod

Having downloaded your mod I've put the files in the location:

ReservedSlots.smx in /csgo/addons/sourcemod/plugins
ReservedSlots.sp in csgo/addons/sourcemod/scripting

Two questions then spring to mind.

1. To which config file do I add the new CVARs?
2. Where do I build the reserve list up?

Thanks for the help.
Chassz is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 07-14-2020 , 15:42   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #24

Quote:
Originally Posted by Chassz View Post
Sorry complete newb here.
I've previously installed metamod and sourcemod

Having downloaded your mod I've put the files in the location:

ReservedSlots.smx in /csgo/addons/sourcemod/plugins
ReservedSlots.sp in csgo/addons/sourcemod/scripting

Two questions then spring to mind.

1. To which config file do I add the new CVARs?
2. Where do I build the reserve list up?

Thanks for the help.
1) You don't need to install the .sp file into any folder.
2) To get the new cvars you need to delete the old cfg file located in cfg/sourcemod/ReservedSlots.cfg, then upload the latest version of the compiled smx file, and change the map or restart the server. After that the new .cfg file will be autocreated in the same folder.
3) What do you mean about 'build the reserve list up' ?
__________________
NanoC is offline
Send a message via Skype™ to NanoC
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 07-16-2020 , 12:07   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #25

Good. But I would like to make a suggestion...

Currently if the server is full 12/12, and a player with privileges tries to connect to the server, this plugin kicks a player without privileges to connect. (Only allows him to connect if he has privileges)

So far so good, but I would like an option to disable this kick, for example, if a player with privileges tries to connect to the crowded server, he can enter, but no one is kicked from the server. But if a player with no privileges tries to connect to the crowded server, he is kicked automatically, the server does not let him in and sends him a reason.

Would it be possible to implement this suggestion?
paulo_crash is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 07-16-2020 , 13:21   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #26

I didn't get it at all. Can you explain better? This thing you are suggesting seems that it's already done in my plugin
__________________
NanoC is offline
Send a message via Skype™ to NanoC
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 07-16-2020 , 20:34   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #27

Quote:
Originally Posted by NanoC View Post
I didn't get it at all. Can you explain better? This thing you are suggesting seems that it's already done in my plugin
Let's try again.

It could include a cvar to disable the kick when a privileged player connects to the server with it full.

That is, a full server, a privileged player connects and does not kick anyone, the server is 12/13.

However, if a player who does not have privileges tries to connect to the crowded server, he cannot.


Did you get it? Sorry for bad English, using google translator.
paulo_crash is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 07-17-2020 , 01:55   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #28

Quote:
Originally Posted by paulo_crash View Post
Let's try again.

It could include a cvar to disable the kick when a privileged player connects to the server with it full.

That is, a full server, a privileged player connects and does not kick anyone, the server is 12/13.

However, if a player who does not have privileges tries to connect to the crowded server, he cannot.


Did you get it? Sorry for bad English, using google translator.
Okay it's done, you can get more information of changes in the main post, and you can dowload the latest version on the gh repo
__________________
NanoC is offline
Send a message via Skype™ to NanoC
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 07-18-2020 , 09:20   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #29

Quote:
Originally Posted by NanoC View Post
Okay it's done, you can get more information of changes in the main post, and you can dowload the latest version on the gh repo
Perfect, it seems to be working the way I want it, thanks.

Crowded server, I tried to connect without privileges I was kicked and showed the message:
Code:
Disconnect: Server is full! Try to join later, please..
Disconnect: Server is full! Try to join later, please..
I activated privileges, I managed to enter the server even with it full.

I only have one more request, can I change this kick message?

Code:
Server is full! Try to join later, please..
Config I'm currently using on it:
PHP Code:
This file was auto-generated by SourceMod (v1.10.0.6490)
// ConVars for plugin "ReservedSlots.smx"


// Enables/disables the whole plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_reserved_slots_enabled "1"

// -
// Default: "1 - Enable VIP connect kick method only, 0 - Disable VIP connect kick method only."
sm_reserved_slots_kick "0 - Enable VIP connect kick method only, 0 - Disable VIP connect kick method only."

// Reason used when kicking players
// -
// Default: "You were kicked because a VIP joined."
sm_reserved_slots_reason "You were kicked because a VIP joined."

// Who gets kicked out: 1 - Highest ping player, 2 - Longest connection time player, 3 - Random player, 4 - Shortest connection time player
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "4.000000"
sm_reserved_slots_type "3" 
And thanks again for this change.

[EDIT]
I only found this error in the plugin's source code:
Code:
	g_cKickEnabled 		= 	CreateConVar("sm_reserved_slots_kick", "1 - Enable VIP connect kick method only, 0 - Disable VIP connect kick method only."); //Request here https://forums.alliedmods.net/showpost.php?p=2710428&postcount=27
This generates the wrong configuration, as you can see above.

Last edited by paulo_crash; 07-18-2020 at 09:27.
paulo_crash is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 07-18-2020 , 14:35   Re: [CS:GO] Reserved Slots using 'connect' and client limit bypass fix
Reply With Quote #30

Sorry about that. That's already fixed.
Also new Cvar:
- sm_reserved_slots_fullserverreason "Server is full! Try to join later, please." - "Reason used when someone without privileges join"
(untested, give it a shot and tell me if it works)
__________________

Last edited by NanoC; 07-18-2020 at 14:36.
NanoC is offline
Send a message via Skype™ to NanoC
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 11:50.


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