Raised This Month: $ Target: $400
 0% 

Advanced Command Logging


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
capndurk
Senior Member
Join Date: Feb 2006
Old 03-08-2006 , 21:23   Advanced Command Logging
Reply With Quote #1

I've looked into two command loggers (one by GHW Chronic and one by Johnny got his gun), and both loggers didn't log commands done through the menus.

Because I want to log commands done through the menus (because most slap/slay/kick/ban commands are done that way with AMX), I need to know if it's possible to log them.

I've done a little research on the plmenu.sma file, and it seems as though commands are done through user_slap(), user_kill(), or server_cmd(). The problem is, there's no easy command such as client_command() for a server's console, so I was wondering if anyone had any ideas to capture commands done through the server's console, without altering the original plmenu.sma.

Any ideas or help would be greatly appreciated.
capndurk is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-08-2006 , 22:28  
Reply With Quote #2

If you have the edited version of the plmenu.sma/.amxx that I whipped up it will log fine. (Check out the Ultimate Logger in my sig and view my profile and you can see it logs the person)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
capndurk
Senior Member
Join Date: Feb 2006
Old 03-08-2006 , 22:43  
Reply With Quote #3

I checked out the site, but I can't access the logs. Also, are you using a separate plugin to achieve the logs or are you just altering plmenu.sma? Because I would know how to alter plmenu.sma, but I just want this logger to be more of a universal kind of thing that anyone can use.

I have considered using get_srvcmd() and register_srvcmd(), but I haven't used either of these commands before and don't really understand why how to use them.

Do you think it could be achieved without the altering of plmenu.sma, but just log_to_file()?
capndurk is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-08-2006 , 22:52  
Reply With Quote #4

If you don't want edit the plmenu.sma you need to use register_logevent() and filter through it (which takes more work).
And what do you mean you couldn't access the logs?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
capndurk
Senior Member
Join Date: Feb 2006
Old 03-08-2006 , 22:55  
Reply With Quote #5

I just meant that when I click the "Search the Logs" link, it wasn't found. That's the only link I found to logs, sorry if there was another one.

But I'll look into the register_logevent() command thing and see if I can understand how to use it.

I'll let you know how it goes.
capndurk is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-08-2006 , 22:57  
Reply With Quote #6

I havn't added the search yet. Click Players or Maps on the Left as of now. Then click all that you can.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
capndurk
Senior Member
Join Date: Feb 2006
Old 03-09-2006 , 01:33  
Reply With Quote #7

Okay, I tried the register_logevent() command, and I was messing around with it...

To my understanding, it pulls logs from HL logs, not AMXx logs. So... my question is:

Can the command pull logs from AMXx logs as well, or is there another command for that? If not, would it be possible to create my own command to read the log files repeatedly (without making the server crash)?

Any advice or tips to point me in the right direction would be greatly appreciated.
capndurk 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 20:14.


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