Skip to content

Commit

Permalink
Reworked repo layout
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchDizzle committed Apr 7, 2019
1 parent f23f8b1 commit ece583b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 6 deletions.
10 changes: 5 additions & 5 deletions GroupAssigner.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ Contains the configuration for the GroupAssigner, located in `addons/sourcemod/c
{
//Global Roles
//Special People
"STEAM_0:0:XXXXXXXX" "Mitch,Veteran,Contributor" //Mitch
"STEAM_0:0:XXXXXXXX" "Mitch,Veteran,Contributor" //Mitch

//Veterans
"STEAM_0:0:YYYYYYYY" "Respected" //Person 1
"STEAM_0:1:ZZZZZZZZ" "Respected" //Person 2
"STEAM_0:1:AAAAAAAA" "Respected" //Person 3
"STEAM_0:0:YYYYYYYY" "Respected" //Person 1
"STEAM_0:1:ZZZZZZZZ" "Respected" //Person 2
"STEAM_0:1:AAAAAAAA" "Respected" //Person 3

"Server 1"
{ //Server 1 profile specific roles. Appends onto any of the other active profiles and the global one.
"STEAM_0:0:YYYYYYYY" "Contributor" //Abraham, made several maps for Murder (For free)
"STEAM_0:0:YYYYYYYY" "Contributor" //Abraham, made several maps for Murder (For free)
}
"FF2"
{
Expand Down
11 changes: 11 additions & 0 deletions GroupAssigner/addons/sourcemod/configs/player_groups.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"GroupAssigner"
{
//Config auto generated, for more documentation see:
//https://github.com/MitchDizzle/GroupHandlerAPI/blob/master/GroupAssigner.md

//"STEAM_ID_0" "Group1,Group2,Group3" //Player 1
"Server 1"
{
//"STEAM_ID_0" "Group4,Group5" //Player 1 has more groups when on 'Server 1'
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public Plugin myinfo = {
};

public void OnPluginStart() {
CreateConVar("sm_groupassigner_version", PLUGIN_VERSION, "Group Assigner Version", FCVAR_DONTRECORD);
cProfile = CreateConVar("sm_groupassigner_profile", "", "Current server profile, for multiple separate with comma");
AutoExecConfig(true, "GroupAssigner");
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
}

public void OnPluginStart() {
//TODO: What should we put here, this is a developer API..
CreateConVar("sm_grouphandler_version", PLUGIN_VERSION, "Group Handler API Version", FCVAR_DONTRECORD);
}

public void OnPluginEnd() {
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Allows plugins to easily assign admin groups to players. Makes creating VIP plug

Right now there's no easy way to tell if a player belongs to a certain group. I'm not sure if this is a feature people would care about to have, since the plugin that uses this should track wether or not they want to add a certain player to a group or not, and not rely on this system for that. Currently in SM removing groups from an admin identity is not possible through their API so a rebuild admin cache (sm_reloadadmins) will be needed to regenerate groups.

# GroupAssigner

[More documentation can be found here for the sub plugin GroupAssigner](./GroupAssigner.md)

## GroupHanlder Example:

Essentially all the plugin has to do is:

```c++
Expand Down
Binary file not shown.
Binary file removed addons/sourcemod/plugins/GroupHandler.smx
Binary file not shown.
Binary file added test-plugin/plugins/GH_Test.smx
Binary file not shown.
File renamed without changes.

0 comments on commit ece583b

Please sign in to comment.