Raised This Month: $32 Target: $400
 8% 

[Any] Session Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Plugin ID:
4331
Plugin Version:
18.0114.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides a command which can be used to add/remove/toggle/set/reset flags on any client.
    Old 08-29-2014 , 18:17   [Any] Session Flags
    Reply With Quote #1

    [Any] Session Flags
    v. 18.0114.0
    "Selling noclip 4 1 rec hurhurhur"

    This plugin provides one command, sm_flags, with a default access requirement of ROOT, which can be used to temporarily customize a client's access flags for the duration of their connection to the server. This plugin is loosely based off of Niggy's Session Flags.



    Command Usage:
    Spoiler


    CVARS, shown with default values:
    • sm_sessionflags_logging 2 - Controls how command usage is logged.
      • 0 : Completely disables logging.
      • 1 : Enables basic logging. If targeting a single player, the logs will show detailed information about what changes were made to that player's flags. If multiple players were targeted, this information is not shown.
      • 2 : Enables verbose logging. The logs will show a seperate line for each player who had their flags changed, with information about what flags were changed.

    • sm_sessionflags_update 2 - Controls Updater compatibility
      • 0 : Completely disables Updater integration
      • 1 : Updater will notify you in Updater.log if an update becomes available.
      • 2 : Updater will automatically download any updates. They will be installed on the next server start or map change.
      • 3 : Updater will automatically download and immediately install any updates. This WILL interfere with the _ operator, as all players' saved flags will be cleared!


    Installation:
    To install, simply ensure that your Sourcemod installation is up to date, and place the attached SMX in your plugins folder.

    Please also consider installing Updater. This will let you automatically keep your plugins up-to-date. Updater is NOT required for SessionFlags to function.
    Compiling:
    The plugin requires custom includes. As such, it does not compile here on the forums. Includes required to compile the plugin are:

    Changelog:
    Spoiler




    Downloads:

    If you like what you see here, please consider donating~

    Last edited by ddhoward; 01-15-2018 at 03:09.
    ddhoward is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 09-02-2014 , 19:02   Re: [Any] Session Flags
    Reply With Quote #2

    Updated to 14.0902.0. Changed the default command access flag from 0 to root.

    Since players could only grant flags that they themselves have, this was not really a huge issue. The only concerning thing are players who are part of the general public being able to use the reset _ operator to reset the flags of any player they would be able to target.
    __________________
    ddhoward is offline
    Gam3r HD
    Junior Member
    Join Date: Aug 2014
    Location: U.S.
    Old 10-10-2014 , 16:37   Re: [Any] Session Flags
    Reply With Quote #3

    I am surprised no one has used this yet. Good work Derek! c:
    __________________
    Your Destiny Awaits.....

    Gam3r HD is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 10-10-2014 , 16:42   Re: [Any] Session Flags
    Reply With Quote #4

    Gametracker says that there are (at least) 2 servers that I am unaffiliated with that are using this plugin lol. So with yours, that makes 3 or more.
    __________________
    ddhoward is offline
    ocwoody
    AlliedModders Donor
    Join Date: Nov 2010
    Location: huh
    Old 11-03-2014 , 21:57   Re: [Any] Session Flags
    Reply With Quote #5

    Would it be possible to add group sessions also? Add a player to a group just for that session. I currently use groups for my VIP plugin and this would come in handy if it also supported groups.
    __________________

    ocwoody is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 11-03-2014 , 23:02   Re: [Any] Session Flags
    Reply With Quote #6

    I'll look into it. It has been added to my long list of stuff to work on.
    __________________
    ddhoward is offline
    Morell
    AlliedModders Donor
    Join Date: Jun 2010
    Location: World
    Old 11-04-2014 , 02:22   Re: [Any] Session Flags
    Reply With Quote #7

    Yes, group sessions are very necessary.
    __________________
    Morell is offline
    ocwoody
    AlliedModders Donor
    Join Date: Nov 2010
    Location: huh
    Old 11-04-2014 , 10:24   Re: [Any] Session Flags
    Reply With Quote #8

    Quote:
    Originally Posted by ddhoward View Post
    I'll look into it. It has been added to my long list of stuff to work on.
    Great! Hopefully it is easily doable!
    __________________

    ocwoody is offline
    ocwoody
    AlliedModders Donor
    Join Date: Nov 2010
    Location: huh
    Old 12-04-2014 , 23:14   Re: [Any] Session Flags
    Reply With Quote #9

    Quote:
    Originally Posted by ddhoward View Post
    I'll look into it. It has been added to my long list of stuff to work on.
    Any luck with the session groups?
    __________________

    ocwoody is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 07-26-2015 , 00:40   Re: [Any] Session Flags
    Reply With Quote #10

    Updated to version 15.0725. Changes include:
    • Updated to utilize Sourcepawn's transitional syntax.
    • Change in format of version number.
    • Updated to new version of ddhoward_updater.inc
    • Fixed bug that caused the plugin to refuse to run if Updater wasn't installed.
    • Fixed bug that caused the % sign to not show up in the "bad command syntax" error message.
    • Fixed oversight where the URL to this thread wasn't put into the myinfo thing.
    • Added feature where if the command is used with too few arguments, it would be interpreted as a request to VIEW flags, rather than change them.
    • Improved generation of flagstring due to the solving of Bug 6248
    __________________

    Last edited by ddhoward; 07-26-2015 at 00:43.
    ddhoward is offline
    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 11:19.


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