View Single Post
Author Message
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
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

sm_steamgrouprestrict_reason (default: You are a member of a restricted group)
Kick reason displayed to client

Github source
Attached Files
File Type: sp Get Plugin or Get Source (steamgrouprestrict.sp - 330 views - 3.7 KB)
File Type: smx steamgrouprestrict.smx (9.4 KB, 274 views)
__________________

Last edited by Impact123; 09-06-2020 at 14:10. Reason: New version 0.1.6
Impact123 is offline