Monthly Target: $400 Donations: $607
 151% 

[TF2] Donator Plugins/Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Disrupted_Hunter
Member
Join Date: Apr 2012
Old 04-27-2012 , 01:32   [TF2] Donator Plugins/Flags
Reply With Quote #1

Hi guys, I'm not sure if I'm posting in the right area but I have a question about giving donators special privileges on my server. After doing research I've found out there really is no good donator plugin that has everything I want, so I'm guessing I have to get plugins I want, like the Give Weapon plug in and whatnot, and set the flag permissions to the donator's SteamID. My problem is that I don't know how to set custom flags. Can anyone help me with this problem?
Disrupted_Hunter is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 04-27-2012 , 01:35   Re: [TF2] Donator Plugins/Flags
Reply With Quote #2

Yo can either use global command overrides:
http://wiki.alliedmods.net/Overridin...ss_(SourceMod)

For example in admin_overrides:
Code:
"sm_giveweapon" "o"
Then anyone with the o flag can use that command

or groups with specific command access:
http://wiki.alliedmods.net/Adding_Groups_(SourceMod)
For example in admin_groups:
Code:
Groups
{
	"Donators"
	{
		"flags"		"o"
		Overrides
		 {
			"sm_giveweapon"		"allow"
		 }
		
	}
}
Then anyone with the Donators group would get the o flag and gain access to that command, even with the command retaining it's default access flag.

Last edited by Tylerst; 04-27-2012 at 01:41.
Tylerst is offline
Disrupted_Hunter
Member
Join Date: Apr 2012
Old 04-27-2012 , 18:46   Re: [TF2] Donator Plugins/Flags
Reply With Quote #3

How do I then specify which people can access the custom flags if I use the Global Command Overrides? Would that have to be edited in another file like simple_admin.ini?
Disrupted_Hunter is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 04-27-2012 , 20:49   Re: [TF2] Donator Plugins/Flags
Reply With Quote #4

Quote:
Originally Posted by Disrupted_Hunter View Post
How do I then specify which people can access the custom flags if I use the Global Command Overrides? Would that have to be edited in another file like simple_admin.ini?
Yes, just give whoever you want your donator flag, then set the same flag in the overrides
Tylerst is offline
Disrupted_Hunter
Member
Join Date: Apr 2012
Old 04-28-2012 , 03:35   Re: [TF2] Donator Plugins/Flags
Reply With Quote #5

I appreciate the help and was just wondering if you can help me a little more.

Things are not working correctly, I installed these three plugins for donators:

https://forums.alliedmods.net/showthread.php?p=705197

https://forums.alliedmods.net/showthread.php?p=1273101

https://forums.alliedmods.net/showthread.php?p=1273106

And this is what my admin_overrides look like

Code:
Overrides
{
    /**
     * By default, commands are registered with three pieces of information:
     * 1)Command Name         (for example, "csdm_enable")
     * 2)Command Group Name    (for example, "CSDM")
     * 3)Command Level        (for example, "changemap")
     *
     * You can override the default flags assigned to individual commands or command groups in this way.
     * To override a group, use the "@" character before the name.  Example:
     * Examples:
     *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
     *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
     *
     * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
     * any setting that csdm_enable previously had.
     *
     * You can make a command completely public by using an empty flag string.
     */

    "sm_glowme"    "cy4g01"
    "sm giveballs"    "cy4g02"
    "sm_givepiss"    "cy4g03"
}
sm_glowme, sm_giveballs and sm_givepiss are obviously the commands and the "cy4g0x" are my flags.

I then go into my simple_admin.ini and give the proper player the flags, which looks like this:

Code:
"<SteamID of Donator>" "cy4g01" "cy4g02" "cy4g03"
//<Name of Donator> (Donator)
My problem is that everyone can access sm_glowme when it is enabled. I think that is just because that is how its meant to be and that if it is enabled then everyone can use it. But when the player (the donator) tries to input "sm_giveballs 100" in the console, the console tells him that he does not have permission. I can manually give it to him via HLSW though.

Am I doing something wrong here? I'm using the Global Command Override over the Group Specific Command Access just because it seems to be easier for me since I'm not too sure what I'm doing.
Disrupted_Hunter is offline
asherkin
Fennec Fox
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-28-2012 , 05:54   Re: [TF2] Donator Plugins/Flags
Reply With Quote #6

You should try not making up admin flags, or, hell, read the inline documentation in those files.
__________________
asherkin is offline
Disrupted_Hunter
Member
Join Date: Apr 2012
Old 04-28-2012 , 16:41   Re: [TF2] Donator Plugins/Flags
Reply With Quote #7

Quote:
Originally Posted by asherkin View Post
You should try not making up admin flags, or, hell, read the inline documentation in those files.
Then what do I do? I've read the doc but I'm still confused. My knowledge on flags and whatnot are next to non. The only thing I know how to do is set up a server and add plugins

While looking through my files I found admin_levels. Would I have to put my custom flags in there as well?

Last edited by Disrupted_Hunter; 04-28-2012 at 23:22.
Disrupted_Hunter is offline
Powerlord
Oh Ross.
Join Date: Jun 2008
Location: Seduce Me!
Old 04-29-2012 , 16:01   Re: [TF2] Donator Plugins/Flags
Reply With Quote #8

Quote:
Originally Posted by Disrupted_Hunter View Post
Then what do I do? I've read the doc but I'm still confused. My knowledge on flags and whatnot are next to non. The only thing I know how to do is set up a server and add plugins

While looking through my files I found admin_levels. Would I have to put my custom flags in there as well?
There are 20 flags, each specified by a single letter and SourceMod doesn't support adding new ones... I went through this same issue several years ago.

The flags are these:
Code:
reservation	 a	 Reserved slot access.
generic	 b	 Generic admin; required for admins.
kick	 c	 Kick other players.
ban	 d	 Ban other players.
unban	 e	 Remove bans.
slay	 f	 Slay/harm other players.
changemap	 g	 Change the map or major gameplay features.
cvar	 h	 Change most cvars.
config	 i	 Execute config files.
chat	 j	 Special chat privileges.
vote	 k	 Start or create votes.
password	 l	 Set a password on the server.
rcon	 m	 Use RCON commands.
cheats	 n	 Change sv_cheats or use cheating commands.
root	 z	 Magically enables all flags.
custom1	 o	 Custom Group 1.
custom2	 p	 Custom Group 2.
custom3	 q	 Custom Group 3.
custom4	 r	 Custom Group 4.
custom5	 s	 Custom Group 5.
custom6	 t	 Custom Group 6.
__________________
Like my work? Now taking donations.
I tend to be blunt.
My SourceMod Plugins
PropHunt Dev Server: tf2.rbemrose.com:27015
Testing backlog: NativeVotes, Opt-in MultiMod (low priority)

Last edited by Powerlord; 04-29-2012 at 16:01.
Powerlord is offline
Disrupted_Hunter
Member
Join Date: Apr 2012
Old 04-30-2012 , 23:07   Re: [TF2] Donator Plugins/Flags
Reply With Quote #9

Well now my admin_overrides looks like this

Code:
Overrides
{
    /**
     * By default, commands are registered with three pieces of information:
     * 1)Command Name         (for example, "csdm_enable")
     * 2)Command Group Name    (for example, "CSDM")
     * 3)Command Level        (for example, "changemap")
     *
     * You can override the default flags assigned to individual commands or command groups in this way.
     * To override a group, use the "@" character before the name.  Example:
     * Examples:
     *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
     *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
     *
     * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
     * any setting that csdm_enable previously had.
     *
     * You can make a command completely public by using an empty flag string.
     */

    "sm_glowme"    "o"
    "sm giveballs"    "p"
    "sm_givepiss"    "q"
}
And my admins_simple looks like this

Code:
"<Steamid>" "opq"
//<Donator Name> (Donator)
And he is still not allowed access for sm_giveballs and sm_givepiss. I have no idea what I'm doing wrong

Would I have to give him generic admin? I'm not sure what the length of the abilities are if I do that though

Last edited by Disrupted_Hunter; 04-30-2012 at 23:23.
Disrupted_Hunter is offline
TnTSCS
SourceMod Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-30-2012 , 23:38   Re: [TF2] Donator Plugins/Flags
Reply With Quote #10

RegConsoleCmd("sm_glowme", Command_GlowMe, " glow yourself...")

you can't override console commands... I only checked the one plugin, but maybe the others are using console commands instead of admin commands too.

...:: TnT Edit ::...

Just checked the other two and those are both admincommands, so override /should/ work.
__________________

Last edited by TnTSCS; 04-30-2012 at 23:39.
TnTSCS is online now
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 16:43.


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