Raised This Month: $51 Target: $400
 12% 

[ANY] Niggy's Session Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NIGathan
Senior Member
Join Date: Aug 2011
Location: /dev/null
Plugin ID:
3980
Plugin Version:
0.004
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Allows root admins to dynamically change admin flags on any connected client for the current session.
    Old 11-29-2013 , 18:34   [ANY] Niggy's Session Flags
    Reply With Quote #1

    This is a very simple plugin, inspired by the MODE command in IRC.

    It will let root admins add or remove any admin flags from any connected client without interacting with the admin config files. Once someone with custom flags disconnects, they will lose the flags.

    Cvars:

    sm_flags_version - plugin version.

    Commands:

    Code:
    sm_flags <#userid|name> [+/add|-/remove|toggle] <flags>
    Second argument defaults to toggle if left blank.

    Flags is a string of single character representations for the flags wanted. For example, 'z' is root and "abcdefj" would be a generic-ish admin setup. Keep in mind if you give the changemap flag, then if/when the person changes the map they will lose the flag and no longer be able to change the map.

    Example usage:

    Code:
    sm_flags Helper j
    This will toggle the chat flag on "Helper". I mainly do this from the server console when I'm not online and someone is in need of some mutes. Assuming Helper didn't have the j flag before this command, running it again will remove it.

    Code:
    sm_flags @all + ak
    This will give everyone the reserved slot and vote flags. Setting reserved slot for one session will allow slot reservation to not kick this person for the entirety of their stay on the server.

    The '+' is not necessary, but when targeting multiple clients it is best to not use toggle. Then some actual admins might be losing the flags.

    Code:
    sm_flags @me - abcdefghijklmnopqrstuvwxyz
    This will make me have no flags. Non-existing flags will be treated as nothing.

    Code:
    sm_flags @me z
    This will toggle the root flag on me, to run this command you must be root. So after this command I won't be able to use sm_flags until I reconnect to the server.

    You can also use "add" instead of '+' and "rem" or "remove" instead of '-'.

    Changelog:
    Quote:
    0.001 - Initial release.

    0.002:
    -Added logging.
    L 11/30/2013 - 06:23:10: [flags.smx] "Console<0><Console><Console>" set +p on "Scott Chwhisky<783><STEAM_0:0:19578742><>".
    L 11/30/2013 - 06:23:10: [flags.smx] "Console<0><Console><Console>" set +o on "Scott Chwhisky<783><STEAM_0:0:19578742><>".
    L 11/30/2013 - 06:23:10: [flags.smx] "Console<0><Console><Console>" set -o on "Scott Chwhisky<783><STEAM_0:0:19578742><>".
    L 11/30/2013 - 06:23:10: [flags.smx] "Console<0><Console><Console>" set -p on "Scott Chwhisky<783><STEAM_0:0:19578742><>".
    [SM] Toggled "poopy" flags on Scott Chwhisky

    0.003:
    - Now all non existent flags are stripped from the output.

    0.004:
    - Now the second argument is not case sensitive.
    - Now uppercase flags are converted into lowercase before processing.

    Todo
    :
    Quote:
    - Maybe remove the need for the root flag and allow anyone to give/take only flags they have access to them self. This will probably be allowed/disallowed with a cvar.

    - Using clientprefs make timed flag settings for individual clients. So you could give someone the slay flag for 3 days or something.

    - Maybe allow output to be suppressed. For secretly setting flags. Maybe only show the output to other admins.
    Attached Files
    File Type: sp Get Plugin or Get Source (flags.sp - 950 views - 9.1 KB)

    Last edited by NIGathan; 11-30-2013 at 20:05.
    NIGathan is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 11-29-2013 , 19:05   Re: [ANY] Niggy's Session Flags
    Reply With Quote #2

    I like this, for undercover admins

    Thanks will try this out for sure.
    Groger is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 11-29-2013 , 19:28   Re: [ANY] Niggy's Session Flags
    Reply With Quote #3

    Pretty cool stuff.
    Snaggle is offline
    NIGathan
    Senior Member
    Join Date: Aug 2011
    Location: /dev/null
    Old 11-30-2013 , 09:18   Re: [ANY] Niggy's Session Flags
    Reply With Quote #4

    Thanks for the support! I just added a few more features too.
    NIGathan 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 03:26.


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