Raised This Month: $ Target: $400
 0% 

Admin logging


Post New Thread Reply   
 
Thread Tools Display Modes
Author
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Plugin ID:
179
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    240 
    Plugin Description:
    Logs admin command in separate logs (admin_STEAMID.log)
    Old 08-29-2012 , 04:25   Re: Admin logging
    Reply With Quote #1

    Quote:
    Originally Posted by daleGEND View Post
    Has anyone looked into these errors?
    You're probably using an outdated version as line 25 checks if the client is > 0 before attempting to get the admin ID.

    Quote:
    Originally Posted by Powerlord View Post
    admin_logging_custom doesn't check if the client is -1 or 0 before attempting to get the user's admin ID...
    Incorrect, read above.

    Quote:
    Originally Posted by Horsedick View Post
    yeah it does but as I said it needs to have a way to restrict targeting certain steamid's or flag users vs everyone under any use of SM commands
    Try the attached version, it will create a sm_admin_logging.cfg file where you can set the flag(s) you want to log.
    Attached Files
    File Type: sp Get Plugin or Get Source (admin_logging_custom.sp - 908 views - 2.6 KB)
    gH0sTy is offline
    TheHardstyleBro
    Senior Member
    Join Date: Jun 2012
    Location: Netherlands
    Old 08-29-2012 , 05:15   Re: Admin logging
    Reply With Quote #2

    Quote:
    Originally Posted by gH0sTy View Post
    You're probably using an outdated version as line 25 checks if the client is > 0 before attempting to get the admin ID.


    Incorrect, read above.



    Try the attached version, it will create a sm_admin_logging.cfg file where you can set the flag(s) you want to log.
    Thank you, works perfectly
    __________________
    TheHardstyleBro is offline
    Pixeli
    Member
    Join Date: Aug 2012
    Old 08-29-2012 , 09:27   Re: Admin logging
    Reply With Quote #3

    Quote:
    Originally Posted by gH0sTy View Post
    You're probably using an outdated version as line 25 checks if the client is > 0 before attempting to get the admin ID.


    Incorrect, read above.



    Try the attached version, it will create a sm_admin_logging.cfg file where you can set the flag(s) you want to log.
    THC_RPG Plugin q flag dosen't write anything into log like if you giving levels or credits or xp its not save into admin logs.

    Last edited by Pixeli; 08-29-2012 at 09:31.
    Pixeli is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-29-2012 , 19:41   Re: Admin logging
    Reply With Quote #4

    Quote:
    Originally Posted by gH0sTy View Post

    Try the attached version, it will create a sm_admin_logging.cfg file where you can set the flag(s) you want to log.
    Well let me ask you this.... if you assign say "o" flags - and we know admins have access to all flags will it still pick up on Admins whom will also have this flag and if so can you set it to exclude them from getting logged?

    Edit: yeah apparently it will still pick up on anyone with o flag - so looks like it would require an exception cvar.

    Last edited by Horsedick; 08-29-2012 at 19:50.
    Horsedick is offline
    Jumpman
    Senior Member
    Join Date: Mar 2010
    Location: Denmark
    Old 09-05-2012 , 05:21   Re: Admin logging
    Reply With Quote #5

    Quote:
    Originally Posted by gH0sTy View Post
    Try the attached version, it will create a sm_admin_logging.cfg file where you can set the flag(s) you want to log.
    I use this version, but still get this error message

    L 09/03/2012 - 20:11:05: SourceMod error session started
    L 09/03/2012 - 20:11:05: Info (map "gg_beacn_redux") (file "errors_20120903.log")
    L 09/03/2012 - 20:11:05: [SM] Native "GetUserAdmin" reported: Client 7 is not connected
    L 09/03/2012 - 20:11:05: [SM] Displaying call stack trace for plugin "admin_logging_custom.smx":
    L 09/03/2012 - 20:11:05: [SM] [0] Line 36, C:\Users\Administrator\Desktop\GunGame Server\addons\sourcemod\scripting\admin_loggi ng_custom.sp::OnLogAction()
    L 09/03/2012 - 20:20:04: Error log file session closed.
    Jumpman is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 09-08-2012 , 11:15   Re: Admin logging
    Reply With Quote #6

    Is it possible to edit this plugin so it'd work with Groups?

    Last edited by GrO; 09-08-2012 at 19:37.
    GrO is offline
    Pixeli
    Member
    Join Date: Aug 2012
    Old 09-13-2012 , 10:18   Re: Admin logging
    Reply With Quote #7

    Quote:
    Originally Posted by GrO View Post
    Is it possible to edit this plugin so it'd work with Groups?
    I have same question Is it possible to add q flag for thc_rpg plugin, that mean't you get admin logging when someone give to another players levels,credits,xp or giving itself.
    Pixeli is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 09-13-2012 , 10:28   Re: Admin logging
    Reply With Quote #8

    Quote:
    Originally Posted by Pixeli View Post
    I have same question Is it possible to add q flag for thc_rpg plugin, that mean't you get admin logging when someone give to another players levels,credits,xp or giving itself.
    you can add a flag in overrides and this will pick it up - only big issue is being able to white list steam id's if they fall within a logged flag as it wouldn't be needed. This plugin has so much potential its just not all that great as of now.
    Horsedick is offline
    Pixeli
    Member
    Join Date: Aug 2012
    Old 09-13-2012 , 23:15   Re: Admin logging
    Reply With Quote #9

    Quote:
    Originally Posted by Horsedick View Post
    you can add a flag in overrides and this will pick it up - only big issue is being able to white list steam id's if they fall within a logged flag as it wouldn't be needed. This plugin has so much potential its just not all that great as of now.
    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.
         */
    
    
    "thc_rpg_level" "q" //THC_RPG Levels
    }
    Pixeli 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 07:17.


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