This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

everything command logger


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nonserviam
Senior Member
Join Date: May 2013
Old 08-16-2014 , 16:27   everything command logger
Reply With Quote #1

Hello,

This plugin recommended with preferred method? How anyone console command logs?

Code:
#include <amxmodx>

#define PLUGIN "CMDs logger"
#define VERSION "1.0"
#define AUTHOR "Asmodai"
#define MAX_PLAYERS 32

new name[MAX_PLAYERS][32]

public plugin_init( )
{
    register_plugin( PLUGIN, VERSION, AUTHOR )
}

public client_connect( id )
{
    get_user_name( id, name[id], 31 )
}

public client_command( id )
{
    new command[32]
    read_args( command, 31 )
    log_to_file( "addons/amxmodx/logs/cmds_logger.txt", "%s :: %s", name[id], command )

    return PLUGIN_CONTINUE
}
nonserviam is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 08-16-2014 , 17:14   Re: everything command logger
Reply With Quote #2

What is exactly your request here?
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
nonserviam
Senior Member
Join Date: May 2013
Old 08-16-2014 , 17:29   Re: everything command logger
Reply With Quote #3

I want recording logs who using cmds. This not for admins.
nonserviam is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-16-2014 , 20:00   Re: everything command logger
Reply With Quote #4

Just turn on logging in HLDS. I'm not 100% sure that it will get everything but that is your best bet.

To get a more detailed answer, you should explain why you need such a thing because I bet there is a better solution to your actual problem.
__________________

Last edited by fysiks; 08-16-2014 at 20:01.
fysiks is online now
nonserviam
Senior Member
Join Date: May 2013
Old 08-17-2014 , 03:15   Re: everything command logger
Reply With Quote #5

I just for the safety assessment, who use which cmds from in-game console. HLDS not recording in-game console cmds. I looking simply cmd logger.
nonserviam is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2014 , 03:31   Re: everything command logger
Reply With Quote #6

So, you want to log all AMX Mod X/Plugin command usage then. That's different than your original request/title.
__________________
fysiks is online now
nonserviam
Senior Member
Join Date: May 2013
Old 08-17-2014 , 03:45   Re: everything command logger
Reply With Quote #7

I'm not talking about AMX Mod X/Plugin commands. If a user used meta list or status, this is recorded.
nonserviam is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2014 , 04:07   Re: everything command logger
Reply With Quote #8

Quote:
Originally Posted by nonserviam View Post
I'm not talking about AMX Mod X/Plugin commands. If a user used meta list or status, this is recorded.
FYI, that is a bad idea and is not really useful at all. I actually used to have the status command bound to a button that I used often which would just fill up your logs.

Are there any other commands that you are wanting? There are many that you can't get if you are actually wanting in-game console commands.
__________________
fysiks is online now
nonserviam
Senior Member
Join Date: May 2013
Old 08-17-2014 , 04:25   Re: everything command logger
Reply With Quote #9

Current i'm watching chat and server logs. In this case i see say messages, connects and triggers.

I ask how watching and logs console commands. This not bad idea. You know who wrote status or meta list? or who output amxx version? No, you do not know, because not audit.
nonserviam is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2014 , 05:22   Re: everything command logger
Reply With Quote #10

Quote:
Originally Posted by nonserviam View Post
You know who wrote status or meta list? or who output amxx version? No, you do not know, because not audit.
No I don't know and I don't care because that is some of the most useless information that you could collect. Explain why you think you want to get this information.

Also, your request for getting status is not easy. People have been trying to do it for a while and it ended up requiring orpheu (you can search to find more information about hooking the status command). It's just not worth knowing when people get that output.
__________________
fysiks is online now
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 13:30.


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