AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Steam Group Admins (updated 2011-09-26) (https://forums.alliedmods.net/showthread.php?t=143410)

psychonic 11-19-2010 11:40

Steam Group Admins (updated 2011-09-26)
 
2 Attachment(s)
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 (Post 1367396)
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.

xomp 11-19-2010 11:42

Re: Steam Group Admins
 
Testing now!

Thraka 11-19-2010 11:59

Re: Steam Group Admins
 
Great idea!

psychonic 11-19-2010 12:07

Re: Steam Group Admins
 
Uploaded version 1.0.1 fixing a silly load error with the config file :3

FrozDark 11-19-2010 12:09

Re: Steam Group Admins
 
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

psychonic 11-19-2010 13:48

Re: Steam Group Admins
 
And one last fix. Version 1.0.3 attached to first post and in zip. Everything tested thanks to xomp, and all working fine.

Groger 11-19-2010 14:17

Re: Steam Group Admins
 
oh my goodness, this is so freaking awsome :P thx men!

Afronanny 11-19-2010 15:34

Re: Steam Group Admins
 
Tested. Works great :D

Snaggle 11-25-2010 20:48

Re: Steam Group Admins
 
Bumping this up because it works a treat, nice idea.

Groger 12-09-2010 13:23

Re: Steam Group Admins
 
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


All times are GMT -4. The time now is 14:19.

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