Raised This Month: $ Target: $400
 0% 

Steam Group Admins (HTTP Prefetch)


Post New Thread Reply   
 
Thread Tools Display Modes
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 02-06-2012 , 19:54   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #31

I am capable of it, but I won't, and I think that kind of a system might be better written in a different language (maybe a PHP/Perl script that, on cron, updates the admins.cfg or admins_simple.ini, optionally via FTP), although it's of course possible with SourceMod.
Mister_Magotchi is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-07-2012 , 01:42   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #32

Let's say I was to make a Steam Group for my admins, and I was a member.

Seeing as I'm set as the RCON admin in admins-simple.ini, would this overwrite that setting and cause me to only be a basic admin?
404UserNotFound is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 02-07-2012 , 02:14   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #33

No. The flags are additive between this and other admin plugins. In my admins.cfg, I have 3 admins in a group with the "z" (root) flag, and then they're also added to a group with lesser privileges via this plugin, and they still have the "z" flag.

Last edited by Mister_Magotchi; 02-07-2012 at 02:15.
Mister_Magotchi is offline
chuj
Member
Join Date: Jan 2012
Location: Kraków, Poland
Old 02-07-2012 , 05:26   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #34

I have some problems with using Sourcebans and CbaseServer Reserved Slots ( http://forums.alliedmods.net/showthr...=72322&page=93 ) and it would be great, if your plugin could write admins_simple.ini, or if someone could write a plugin that will create admins_simple.ini from admins.cfg+admin_groups.cfg.
chuj is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 02-07-2012 , 13:46   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #35

Again, I have no intention of adding that functionality.
Mister_Magotchi is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-08-2012 , 00:57   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #36

Quote:
Originally Posted by Mister_Magotchi View Post
No. The flags are additive between this and other admin plugins. In my admins.cfg, I have 3 admins in a group with the "z" (root) flag, and then they're also added to a group with lesser privileges via this plugin, and they still have the "z" flag.
Perfect! Well thank you for creating such a wonderful plugin!
404UserNotFound is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 02-25-2012 , 05:05   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #37

Plugin updated:
Quote:
0.9.5 - 2012-02-25 - Nearly complete rewrite. Switched from Socket to cURL. Fixed intermittent crash on map change. Fixed invalid memory access errors.
Due apparently to network or other changes on the server I use this on, I started getting the crashes people have mentioned on almost every map change, which allowed me to properly narrow it down to this plugin and fix it.

Last edited by Mister_Magotchi; 02-25-2012 at 05:14.
Mister_Magotchi is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 02-26-2012 , 11:11   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #38

Wow, this looks really neat.

May I make a request that's kinda-sorta based on this plugin? Would it be possible for you to create a similar plugin, but instead of making anyone in the steam group an admin, it would kick any client who attempted to connect who is not a member of the group?

The reason is that while I'm okay with my friends joining my friends-only game, I'm not okay with my friends' friends joining. Only allowing steam group members to join would solve that problem pretty easily.
dcx2 is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 02-26-2012 , 20:49   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #39

I do not want to make a new plugin to do what you're saying, but technically, it can already be done with this.

Instructions (assuming a 24-slot server):
  1. In sourcemod.cfg:
    • Set: sm_reserve_type 0
    • Set: sm_reserved_slots 24
    • Set: sm_hide_slots 0 (unless you want the server to show as 0 slots in the server browser)
  2. Give all the members of the group you want to allow access a reserved slot (presumably with this plugin).
Anyone attempting to join your server that isn't in the group will get kicked due to a slot reservation. Note that with sm_hide_slots 0 as above, your server would still show as a connectable server in the server browser, and you may have a lot of anonymous people attempting to join it. Alternatively, you can set sm_hide_slots 1, and then your users would need to connect with "connect YOUR_SERVER_IP_OR_HOSTORT" through the console, a custom game shortcut, a "steam:" link, etc., and the server should always show as full in the server browser. For example, if you had 9 connected, it should show 9/9. With 0 connected, it should show 0/0.

Last edited by Mister_Magotchi; 02-26-2012 at 20:49.
Mister_Magotchi is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 02-27-2012 , 01:32   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #40

Unfortunately, I don't think the reserve slots stuff works in L4D2.

I may try my hand at using your plugin as a base for writing my own.
dcx2 is offline
Reply



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 00:14.


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