Steam Group Admins (HTTP Prefetch)
2 Attachment(s)
Steam Group Admins (HTTP Prefetch)
This plugin reads all players from Steam Community group XML member lists (via HTTP), based on a config file, and adds them to the admin cache whenever the admin cache is refreshed (manually or at map start). It should work in any game that SourceMod supports. I've currently used it on a Windows CS:S server, a Linux CS:S server, a Windows TF2 server, and a Windows CS:GO server. Setup:
When manually reloading the admin cache via sm_reloadadmins, players currently authenticated as admins via this plugin will lose their admin authentication until they reconnect to the server or the map changes. Steam Community group XML member lists are paginated after 1,000 members, so in order to prevent excessive server load and hammering of the Steam Community XML API, only the first page, and therefore only the first 1,000 listed members, are processed. Special Thanks: psychonic - He made the original Steam Group Admins plugin. As there is a slight delay after a user connects to the server before they are authenticated by their Steam groups, it doesn't work properly for reserved slots, and that's why I made this plugin. His plugin, however, supports groups of any size, while mine only handles groups with 1,000 members or less. Compiling: This plugin requires the include files for the cURL extension to compile correctly. Download Options:
|
Re: Steam Group Admins (HTTP Prefetch)
You need to account for groups that have >1000 people. Even the xml version gets paginated.
The nextPageLink node has the link to the next page if applicable. Plus, you're only mapping admin to users when the admin cache is refreshed. Users late-joining won't get admin until map change. |
Re: Steam Group Admins (HTTP Prefetch)
I don't want to account for groups that have > 1000 people. A non-threaded approach really shouldn't be handling that many anyway.
If a player joins the server any time after this plugin has been loaded and the admin cache has been refreshed (the map has changed or sm_reloadadmins has been run), they will get admin. |
Re: Steam Group Admins (HTTP Prefetch)
Quote:
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Thanks for the pointers. I had already done all that in the description I was writing. The reason I posted the thread before finishing the description was that I wanted to put the thread's URL in the "url" thing in the plugin source. Sorry for the confusion. I didn't expect anyone to see that since I was finished in a few more minutes from the initial post.
By the way (and I was going to ask you in IRC or something, but I didn't want to bug you), if you have any idea what I'm missing on that first "Known Issue" I list, let me know. |
Re: Steam Group Admins (HTTP Prefetch)
Nice Nice But it is not walk... :|
If I want compielen the sp file itself does this error fatal error 120: cannot read from file: "socket" Plz Can you give me a ready made package for this group http://steamcommunity.com/groups/dreist-reserver-slot Group ID: 103582791431649758 end this frags Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Quote:
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Oh ok the neu
steam-group-admins-http.txt is PHP Code:
|
Re: Steam Group Admins (HTTP Prefetch)
It seems to be fine, but if you're only trying to give the members of that groups reserved slots, you only need the "a" flag.
|
Re: Steam Group Admins (HTTP Prefetch)
Englisch
Oh very nice everything is going perfectly ... But please tell me how do you still have the number 2128350 ????? Germany Oh sehr schön es geht alles perfekt... Aber bitte sag mir noch woher hast du die nummer 2128350 ????? |
All times are GMT -4. The time now is 02:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.