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

Steam Group Admins (updated 2011-09-26)


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    148 
    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 - 1970 views - 10.8 KB)
    File Type: zip sga.zip (10.8 KB, 2881 views)

    Last edited by psychonic; 09-26-2011 at 20:42.
    psychonic is offline
    xomp
    BANNED
    Join Date: Jul 2008
    Old 11-19-2010 , 11:42   Re: Steam Group Admins
    Reply With Quote #2

    Testing now!
    xomp is offline
    Send a message via Skype™ to xomp
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 11-19-2010 , 11:59   Re: Steam Group Admins
    Reply With Quote #3

    Great idea!
    Thraka is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 11-19-2010 , 12:07   Re: Steam Group Admins
    Reply With Quote #4

    Uploaded version 1.0.1 fixing a silly load error with the config file
    psychonic is offline
    FrozDark
    BANNED
    Join Date: May 2010
    Location: Kazakhstan, Shymkent
    Old 11-19-2010 , 12:09   Re: Steam Group Admins
    Reply With Quote #5

    Cool!
    Quote:
    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.
    XD

    Last edited by FrozDark; 11-19-2010 at 12:15.
    FrozDark is offline
    Send a message via Skype™ to FrozDark
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 11-19-2010 , 13:48   Re: Steam Group Admins
    Reply With Quote #6

    And one last fix. Version 1.0.3 attached to first post and in zip. Everything tested thanks to xomp, and all working fine.
    psychonic is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 11-19-2010 , 14:17   Re: Steam Group Admins
    Reply With Quote #7

    oh my goodness, this is so freaking awsome thx men!
    Groger is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 11-19-2010 , 15:34   Re: Steam Group Admins
    Reply With Quote #8

    Tested. Works great
    Afronanny is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 11-25-2010 , 20:48   Re: Steam Group Admins
    Reply With Quote #9

    Bumping this up because it works a treat, nice idea.
    Snaggle is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 12-09-2010 , 13:23   Re: Steam Group Admins
    Reply With Quote #10

    Code:
    L 12/09/2010 - 18:37:34: [SM] Native "Steam_RequestGroupStatus" reported: No g_SteamClients entry found for client 28
    L 12/09/2010 - 18:37:34: [SM] Displaying call stack trace for plugin "steamgroupadmins.smx":
    L 12/09/2010 - 18:37:34: [SM]   [0]  Line 110, steamgroupadmins.sp::LookupPlayerGroups()
    L 12/09/2010 - 18:37:34: [SM]   [1]  Line 87, steamgroupadmins.sp::OnClientPostAdminCheck()
    alltough everything works
    Groger 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 17:52.


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