Raised This Month: $ Target: $400
 0% 

Steam Group Admins (updated 2011-09-26)


Post New Thread Reply   
 
Thread Tools Display Modes
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-11-2015 , 16:36   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #171

Works perfectly on my server where I use it to give a flag to anyone who connects to my server the "a" flag (because I don't use reserved slots) which allows them to access Roll The Dice.

For Custom Chat Colors, you just gotta modify the plugin and add a repeating timer that runs the main function of sm_reloadccc. That's what I did.
404UserNotFound is offline
mysty
Member
Join Date: Oct 2015
Location: FUCK OFF
Old 11-12-2015 , 05:58   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #172

Quote:
Originally Posted by abrandnewday View Post
Works perfectly on my server where I use it to give a flag to anyone who connects to my server the "a" flag (because I don't use reserved slots) which allows them to access Roll The Dice.

For Custom Chat Colors, you just gotta modify the plugin and add a repeating timer that runs the main function of sm_reloadccc. That's what I did.
all right , thanks for the replies. I'll try it again.
mysty is offline
mysty
Member
Join Date: Oct 2015
Location: FUCK OFF
Old 11-12-2015 , 06:59   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #173

Great it's working fine now! It was the exact same settings as what I did previously though. Maybe the reinstall did it. Thanks!

EDIT: It still doesent work,

here's my custom chat colors config:
Quote:
"Titan"
{
"flag" "a"
"tag" "Titan "
"tagcolor" "#D32CE6"
"namecolor" "#FFF0DC"
"textcolor" "#FFF0DC"
}
here's my sga config:
Quote:
"SteamGroupAdmins"
{
"xxx"
{
"members"
{
"flags" "a"
"immunity" "0"
}
}
}
I'm using comcycle which runs sm_reloadccc every 10 seconds.

any idea whats going on?

Last edited by mysty; 11-12-2015 at 07:44. Reason: unsolved
mysty is offline
Bonkorn
Senior Member
Join Date: Jul 2015
Old 11-18-2015 , 12:35   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #174

My [Member] tag only work for me, doesn't work on others that already in group.
custom-chatcolors.cfg
PHP Code:
"admin_colors"
{
    
"Member"
    
{
        
"flag"                "t"
        "tag"                "[Member] "
        "tagcolor"            "#FF4500"
    
}

sgadmins.txt
PHP Code:
"SteamGroupAdmins"
{
    
"10374253" // http://steamcommunity.com/groups/ItsTimeToBeExtreme (duh)
    
{
        
"members"
        
{
            
"flags"        "t"
            "immunity"    ""
        
}
    }

I run cronjobs that exec sm_reloadccc every minute. Does it only works on Local IP?
But these group members still can access these commands I given below.
PHP Code:
Overrides
{
    
"sm_resizeme"    "t"
    "sm_resizemyhead"    "t"
    "sm_upgrade"        "t"
    "sm_buildinghats"        "t"
    "sm_rerollhat"        "t"
    "sm_buildingcolors"        "t"

Me using 't' flag only In-Game screenshot

Last edited by Bonkorn; 11-18-2015 at 12:46. Reason: +Me using 't' flag only In-Game screenshot
Bonkorn is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-19-2015 , 03:00   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #175

Guys, the issue with CCC is a problem in that plugin, not this one.
__________________
asherkin is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-20-2015 , 17:42   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #176

Quote:
Originally Posted by asherkin View Post
Guys, the issue with CCC is a problem in that plugin, not this one.
This plugin waits for OnClientPostAdminCheck to check group membership and grant admin flags. I'd say that's a problem in this plugin.
__________________
Dr. McKay is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-25-2015 , 02:03   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #177

Quote:
Originally Posted by asherkin View Post
Guys, the issue with CCC is a problem in that plugin, not this one.
Quote:
Originally Posted by Dr. McKay View Post
This plugin waits for OnClientPostAdminCheck to check group membership and grant admin flags. I'd say that's a problem in this plugin.


(sorry, I had to!)

Also when I said I added a repeating timer, I meant I actually edited the plugin and added this bit:

PHP Code:
CreateTimer(5.0AutomaticConfigReload_TIMER_REPEAT); 
Every 5 seconds it runs the config reload to check for changes which works wonderfully when I add a new donator via my Add Donator plugin.


Last edited by 404UserNotFound; 11-25-2015 at 02:06.
404UserNotFound is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-25-2015 , 02:58   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #178

Quote:
Originally Posted by Dr. McKay View Post
This plugin waits for OnClientPostAdminCheck to check group membership and grant admin flags. I'd say that's a problem in this plugin.
Late permission binding is perfectly valid and works fine with 99% of plugins - it's definitely not ideal though.

Given that most are only using this as a secondary source, I doubt anyone would actually prefer blocking OnClientPostAdminCheck until Steam decides to respond to n group checks (if ever).
__________________

Last edited by asherkin; 11-25-2015 at 03:03.
asherkin is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 02-06-2016 , 18:24   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #179

So any potential fix for the ccc stuff?


Quote:
Originally Posted by abrandnewday View Post


(sorry, I had to!)

Also when I said I added a repeating timer, I meant I actually edited the plugin and added this bit:

PHP Code:
CreateTimer(5.0AutomaticConfigReload_TIMER_REPEAT); 
Every 5 seconds it runs the config reload to check for changes which works wonderfully when I add a new donator via my Add Donator plugin.

Could you show me the code? I cant figure out how to add this since the code of the custom chatcolor doesnt have such a function.


Nvm. ive added this:

Code:
public OnPluginStart() {

	RegAdminCmd("sm_reloadccc", Command_ReloadConfig, ADMFLAG_CONFIG, "Reloads Custom Chat Colors config file");
	colorForward = CreateGlobalForward("CCC_OnChatColor", ET_Event, Param_Cell);
	nameForward = CreateGlobalForward("CCC_OnNameColor", ET_Event, Param_Cell);
	tagForward = CreateGlobalForward("CCC_OnTagApplied", ET_Event, Param_Cell);
	applicationForward = CreateGlobalForward("CCC_OnColor", ET_Event, Param_Cell, Param_String, Param_Cell);
	messageForward = CreateGlobalForward("CCC_OnChatMessage", ET_Ignore, Param_Cell, Param_String, Param_Cell);
	preLoadedForward = CreateGlobalForward("CCC_OnUserConfigPreLoaded", ET_Event, Param_Cell);
	loadedForward = CreateGlobalForward("CCC_OnUserConfigLoaded", ET_Ignore, Param_Cell);
	configReloadedForward = CreateGlobalForward("CCC_OnConfigReloaded", ET_Ignore);
	LoadConfig();
	CreateTimer(5.0, AutomaticConfigReload, _, TIMER_REPEAT); 
}

public Action:AutomaticConfigReload(Handle:hTimer)
{
	LoadConfig();
	
	return Plugin_Continue;
}

Last edited by Dragonisser; 02-06-2016 at 19:42.
Dragonisser is offline
keyboard1333
Senior Member
Join Date: Aug 2013
Old 04-17-2016 , 09:47   Re: Steam Group Admins (updated 2011-09-26)
Reply With Quote #180

Quote:
Originally Posted by asherkin View Post
Late permission binding is perfectly valid and works fine with 99% of plugins - it's definitely not ideal though.

Given that most are only using this as a secondary source, I doubt anyone would actually prefer blocking OnClientPostAdminCheck until Steam decides to respond to n group checks (if ever).

Is there a better way to handle the interactions with plugins that check admin on connection than refreshing them (or reloading caches or w/e) every few seconds?
I've got a few plugins (Convar Faker, CCC) that all work on connection.

Any suggestions @asherkin

Last edited by keyboard1333; 04-17-2016 at 09:48.
keyboard1333 is offline
Reply



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 01:30.


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