Raised This Month: $ Target: $400
 0% 

Admin Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ecko_
Member
Join Date: Jul 2007
Old 01-26-2009 , 20:51   Admin Flags
Reply With Quote #1

Hey Guys,

I was curious about something. We are currently selling different subscriptions on our site. Meaning, "a" subscription gets you admin chat, mute, kick and "b" subscription gets you admin chat, mute, kick, slay, and ban. Is there a way to accomplish this thru sourcemod? The reason I ask is that sourcemod has the flag "f" which does all of this. Can you break it down?

Thanks!
ecko_ is offline
Send a message via ICQ to ecko_
ecko_
Member
Join Date: Jul 2007
Old 01-26-2009 , 20:58   Re: Admin Flags
Reply With Quote #2

Im sorry guys I need to add to this. "f" gets you to do the slay action but it also adds other stuff we dont want an admin to do. I think I can get the rest on my own.

So how can you break down the "f" flag so you can just slay?
ecko_ is offline
Send a message via ICQ to ecko_
{7~11} TROLL
Senior Member
Join Date: Oct 2008
Location: Atlanta,Georgia
Old 01-26-2009 , 21:41   Re: Admin Flags
Reply With Quote #3

admin_levels.cfg

Code:
/**
 * There is no reason to edit this file.  Core uses this to map each named 
 * access type to a given ASCII character.  The names are all pre-defined.
 */
Levels
{
 /**
   * These are the default role flag mappings.
   * You can assign new letters for custom purposes, however you should
   * not change the default names, as SourceMod hardcodes these.
   */
 Flags
 {
  "reservation" "a"   //Reserved slots
  "generic"  "b"   //Generic admin, required for admins
  "kick"   "c"   //Kick other players
  "ban"   "d"   //Banning other players
  "unban"   "e"   //Removing bans
  "slay"   "f"   //Slaying other players
  "changemap"  "g"   //Changing the map
  "cvars"   "h"   //Changing cvars
  "config"  "i"   //Changing configs
  "chat"   "j"   //Special chat privileges
  "vote"   "k"   //Voting
  "password"  "l"   //Password the server
  "rcon"   "m"   //Remote console
  "cheats"  "n"   //Change sv_cheats and related commands
  
  /**
   * Custom flags can be used by plugins, but they can also be used to 
   * for you to expand on the previous groups, using Overrides.
   */
  
  "custom1"  "o"
  "custom2"  "p"
  "custom3"  "q"
  "custom4"  "r"
  "custom5"  "s"
  "custom6"  "t"
  
  /**
   * Root is a magic access flag that grants all permissions.
   * This should only be given to trusted administrators.  
   * Root users can target anyone regardless of immunity, 
   * however, they themselves are not automatically immune.
   */
  "root"   "z"
 }
}
__________________
{7~11} TROLL is offline
ecko_
Member
Join Date: Jul 2007
Old 01-26-2009 , 21:52   Re: Admin Flags
Reply With Quote #4

How can I disable the rest of the admin actions for flag "f"? I do not want someone to be able to burn, beacon, gravity, freeze, blind, etc.

I just want to have the following actions for flag "f"
- slay
- mute

Thats the only two I want activated. None of the rest.

Thanks!
ecko_ is offline
Send a message via ICQ to ecko_
{7~11} TROLL
Senior Member
Join Date: Oct 2008
Location: Atlanta,Georgia
Old 01-26-2009 , 22:13   Re: Admin Flags
Reply With Quote #5

go into plugins and move the funcommands.smx to disabled thats what i did on my clans servers

also with a simple override you can move some commands to custom and change others to what ever you want so others dont have it. if you would like to do that let me know i can help you with that.
__________________
{7~11} TROLL is offline
ecko_
Member
Join Date: Jul 2007
Old 01-27-2009 , 00:17   Re: Admin Flags
Reply With Quote #6

Thanks! This is exactly what I need to do. Maybe you can send me your file?
ecko_ is offline
Send a message via ICQ to ecko_
{7~11} TROLL
Senior Member
Join Date: Oct 2008
Location: Atlanta,Georgia
Old 01-27-2009 , 13:07   Re: Admin Flags
Reply With Quote #7

files of what the admin override?

heres the override i use so our admins dont have the gravity command

PHP 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.
  */
}
Overrides
{
 
"sm_votegravity" "z" //Change "sm_votegravity" to the "z" flag.

__________________

Last edited by {7~11} TROLL; 01-27-2009 at 15:04.
{7~11} TROLL is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 01-27-2009 , 16:55   Re: Admin Flags
Reply With Quote #8

...you only need "Overrides" once. Like this:
PHP 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_votegravity" "z" //Change "sm_votegravity" to the "z" flag.

__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 01-27-2009 , 19:09   Re: Admin Flags
Reply With Quote #9

Quote:
Originally Posted by ecko_ View Post
Hey Guys,

I was curious about something. We are currently selling different subscriptions on our site. Meaning, "a" subscription gets you admin chat, mute, kick and "b" subscription gets you admin chat, mute, kick, slay, and ban. Is there a way to accomplish this thru sourcemod? The reason I ask is that sourcemod has the flag "f" which does all of this. Can you break it down?

Thanks!
You could override commands to groups and then make the people who buy the subscriptions members of the aforementioned groups.
__________________
recon0 is offline
ecko_
Member
Join Date: Jul 2007
Old 01-27-2009 , 23:08   Re: Admin Flags
Reply With Quote #10

Is there somewhere I can go read up on establishing these groups?

Thanks for the response guys. I haven't done this in awhile and Ive been with Mani for the longest. Glad I cam sourcemod though. Much easier.
ecko_ is offline
Send a message via ICQ to ecko_
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 03:50.


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