View Single Post
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 11-19-2010 , 11:40   Steam Group Admins (updated 2011-09-26)
Reply With Quote #1

Requires the SteamTools extension
(and thus only currently works on Source 2009 games (TF/CSS/DODS/HL2DM/GMOD)

This plugin allows you to specify admin flags and immunity level via Steam Group memberships.

Usage Examples:
  • Give everyone who joins your group a custom flag granting them a small perk
  • Give all group officers special privileges

To configure, edit the configs/sgadmins.txt. There is an example one in the zip file, created with some (hopefully) invalid group ids in it.

Config Example:
Code:
"SteamGroupAdmins"
{
	"16432636"
	{
		"members"
		{
			"flags"		"a"
			"immunity"	"0"
		}
		"officers"
		{
			"flags"		"ab"
			"immunity"	"5"
		}
	}
	"176535435"
	{
		"officers"
		{
			"flags"		"z"
			"immunity"	"99"
			"group"		"headhonchos"
			"group"		"ultraheadhonchos"
		}
	}
}
Your Steam Group's id can be found on the group admin page in the upper right or there are some tools out there that can determine a group's id number from the group link.

To reload the config after the plugin is running, issue the sm_sgadmins_reload command (requires server console or admin flag z) or just sm_reloadadmins.

Permissions use SM's admin groups system and are thus additive. Players will have the combined permissions of SGA and whatever other admin-defining method you use. For more info on how this works, see the Inheritance section on the Admin Groups wiki page

Quote:
Originally Posted by Mister_Magotchi View Post
Also, something possibly useful for other people:
If you want to know the SourceMod admin groups that this plugin adds people to, for use in other plugins that rely on admin group names, they're in this format:
<steam_group_number>members
<steam_group_number>officers
So if you set "16432636" as the group in the config, the SourceMod admin groups the plugin creates would then be "16432636members" and "16432636officers".
As of version 1.1.0, you can also specify one or more existing groups to add the users to (see the "headhonchos" group in the example config). Make a new key value pair for each.


Known Issues:
  • If the server does not have a connection to Steam, admin lookup will be unavailable. Players will keep there current admin (unless a config reload is done) and new players will have their lookups done automatically when the server regains its connection.

Note: There is an smx file in the zip or you can compile it manually.

THIS WILL NOT COMPILE ON THE FORUM COMPILER DUE TO REQUIRING THE STEAMTOOLS EXTENSION. I REPEAT, CLICKING "Get Plugin" WILL GIVE YOU AN ERROR. IF YOU TELL ME THAT IT'S BROKEN BECAUSE "Get Plugin" SHOWS AN ERROR, I WILL END YOU.
Attached Files
File Type: sp Get Plugin or Get Source (steamgroupadmins.sp - 2005 views - 10.8 KB)
File Type: zip sga.zip (10.8 KB, 2892 views)

Last edited by psychonic; 09-26-2011 at 20:42.
psychonic is offline