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- Install The SteamWorks extension
- Put steamgrouprestrict.smx in the sourcemod/plugins folder
- Load the plugin
- 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