Advanced Command Logging
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. |
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)
|
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()? |
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? |
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. |
I havn't added the search yet. Click Players or Maps on the Left as of now. Then click all that you can.
|
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. |
| All times are GMT -4. The time now is 20:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.