Raised This Month: $46 Target: $400
 11% 

[ANY] Steam Group Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Plugin ID:
6882
Plugin Version:
0.1.5
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Kicks players based on whether they are a member of a group
    Old 01-05-2020 , 05:41   [ANY] Steam Group Restrict
    Reply With Quote #1

    A plugin that kicks players based on whether they are a member of a group.
    Please take note of potential false detection problems of this plugin in the post below

    Installation
    1. Install The SteamWorks extension
    2. Put steamgrouprestrict.smx in the sourcemod/plugins folder
    3. Load the plugin
    4. Configure it

    ConVars
    The plugin creates a plugin.steamgrouprestrict.cfg in the cfg/sourcemod folder when it's loaded where you can configure these variables.


    sm_steamgrouprestrict_groupids (default: "")
    List of group ids separated by a comma. Spaces between the value and the comma are trimmed off so feel free to use them for better visibility.

    The expected input is the result of
    Code:
    groupID64 % 4294967296
    You can get a group's groupID64 by visiting
    Code:
    https://steamcommunity.com/groups/ADDYOURGROUPSNAMEHERE/memberslistxml/?xml=1
    To convert the groupID64 i used the python console.
    I wrote a little web tool where you can convert your group64 ids

    This isn't too user friendly so if you have a better idea on how to do this, please let me know!

    sm_steamgrouprestrict_notify (default: 1)
    Whether or not admins should be notified about kicks.
    By default, admins with the BAN flag are considered admins but you can override this with sm_steamgrouprestrict_admin
    Attached Files
    File Type: smx steamgrouprestrict.smx (9.3 KB, 36 views)
    File Type: sp Get Plugin or Get Source (steamgrouprestrict.sp - 54 views - 3.3 KB)
    __________________

    Last edited by Impact123; 01-27-2020 at 06:41.
    Impact123 is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: US
    Old 01-05-2020 , 14:49   Re: [ANY] Steam Group Restrict
    Reply With Quote #2

    You can also find the ID by inspecting the discussion page, you will find multiple references to the short id such as `General_29292279`
    __________________


    Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

    Reach me @ https://keybase.io/rumblefrog

    Github: https://github.com/rumblefrog

    RumbleFrog is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 01-05-2020 , 16:29   Re: [ANY] Steam Group Restrict
    Reply With Quote #3

    SteamWorks (including SteamTools) will respond that people are a member of your group as soon as they have been invited to that group.

    People clicking "ignore" on your invitation will also count as members.

    So if I invite you into a restricted group, and you simply click "ignore" on my group invitation; you will unfortunately still be thrown away by this plugin.
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread].

    Last edited by DarkDeviL; 01-05-2020 at 16:30.
    DarkDeviL is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 01-05-2020 , 17:56   Re: [ANY] Steam Group Restrict
    Reply With Quote #4

    Didn't know that. Thanks! I guess there isn't much that i can do about that besides using another method like parsing the memberslistxml?
    __________________

    Last edited by Impact123; 01-05-2020 at 17:57.
    Impact123 is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 01-05-2020 , 20:09   Re: [ANY] Steam Group Restrict
    Reply With Quote #5

    Quote:
    Originally Posted by Impact123 View Post
    Didn't know that. Thanks! I guess there isn't much that i can do about that besides using another method like parsing the memberslistxml?
    It is the way that the Steam (<-> SteamWorks/SteamTools) works that does it, unfortunately.

    As I mentioned over on (Post #4) [L4D2] Block black-listed groups members join, you can do the memberslistxml one - however, if you got a multi thousand user group with several pages, it appears to become unreliable.

    E.g. memberCount column does not match amount of steamID64's retrieved via e.g. a for each loop on the members data group.
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread].

    Last edited by DarkDeviL; 01-05-2020 at 20:09.
    DarkDeviL 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 12:12.


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