Raised This Month: $51 Target: $400
 12% 

Steam Group Admins (updated 2011-09-26)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
psychonic

BAFFLED
Join Date: May 2008
Plugin ID:
2082
Plugin Version:
1.2.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    44 
    Plugin Description:
    Lookup admin status via steam community group
    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 - 2000 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
     



    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 17:19.


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