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

Chat logs 1.11


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
thEsp
BANNED
Join Date: Aug 2017
Old 03-06-2020 , 14:53   Chat logs 1.11
Reply With Quote #1

Chat logs 1.11

A simple plugin that will log each message sent to chat by players.
Useful for hunting trolls and keeping an eye on your server. Download "chatlogs.ini" file below and paste it into ".../addons/amxmodx/configs/" folder. You may also add additional commands to hook, such as "amx_ban", just edit "chatlogs.ini". Use "amx_chatlogs" cvar to disable or enable the plugin (by default enabled = 1).

Example:
Code:
    L 03/06/2020 - 20:31:06: ("say") JamesBond007: You are lying, you didn't say that!
    L 03/06/2020 - 20:31:17: ("say") TheKiller: Okay mate, let's check the logs. ;)
Download latest version from GitHub.
Attached Files
File Type: ini chatlogs.ini (13 Bytes, 186 views)
File Type: sma Get Plugin or Get Source (amx_chatlogs.sma - 325 views - 1.5 KB)

Last edited by thEsp; 03-15-2020 at 16:43.
thEsp is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 03-06-2020 , 17:02   Re: Chat logs
Reply With Quote #2

....

Last edited by Snake.; 03-06-2020 at 17:02.
Snake. is offline
Send a message via Skype™ to Snake.
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 03-06-2020 , 19:48   Re: Chat logs
Reply With Quote #3

What is the difference between set in server.cfg

log on
Then cstrike / logs
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
thEsp
BANNED
Join Date: Aug 2017
Old 03-07-2020 , 05:11   Re: Chat logs
Reply With Quote #4

Quote:
Originally Posted by Fuck For Fun View Post
What is the difference between set in server.cfg
log on
Then cstrike / logs
Before commenting you should've already checked, shouldn't you? The default logging system logs all server messages (i.e "Bunny killed Martin with knife") when the server restarts (if it crashes nothing will be saved) whereas this plugins logs only the chat (hence name) in real-time.

Updated to 1.1

Last edited by thEsp; 03-07-2020 at 05:27.
thEsp is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-07-2020 , 14:15   Re: Chat logs
Reply With Quote #5

So far I have no idea how this even work by checking the code you are hooking texts inside the file what if the files was empty?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-15-2020 , 13:21   Re: Chat logs
Reply With Quote #6

You are not providing any chatlogs.ini file and you never mentioned what should be added in this file.
__________________

Last edited by HamletEagle; 03-15-2020 at 13:23.
HamletEagle is offline
thEsp
BANNED
Join Date: Aug 2017
Old 03-15-2020 , 13:34   Re: Chat logs
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
You are not providing any chatlogs.ini file and you never mentioned what should be added in this file.
Well, yes I completely missed to add it, but I actually described what should be added into it.
Quote:
Originally Posted by thEsp
Can also be used to log punishments (ban, kick), just check chatlogs.ini config file
Probably wasn't enough, tho. I will update description now...
thEsp is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-15-2020 , 13:55   Re: Chat logs
Reply With Quote #8

Feedback:
  • There is no reason to restrict this to AMX Mod X version 1.9+. get_cvar_num() will work exactly the same.
  • Attach the .sma so that people can download the compiled plugin.
  • Having a file to configure something that only has two options seems like overkill. You can use a single cvar to do it all (enable the plugin and configure which chat commands to log).
  • There exists a function for getting the configs directory (get_configsdir()). If a function like this exists, you should NOT be using get_localinfo() because there is a chance that that method will break in a future version (that's why a special function was created).
__________________
fysiks is offline
thEsp
BANNED
Join Date: Aug 2017
Old 03-15-2020 , 14:04   Re: Chat logs
Reply With Quote #9

Reply:
  1. If it's a requirement, I might make it compatible with 1.8.2. Tho %n format rule (which parses player name) was added on 1.9.
  2. The problem is that if I update the plugin I have to get here every time and edit the main post.
  3. Idk what to say. I think it's a bigger overkill to use cvars like that. Let's wait for approvers' answer?
  4. Stock get_configsdir() does exactly what I did.

Last edited by thEsp; 03-15-2020 at 14:10. Reason: just my two cents
thEsp is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-15-2020 , 15:01   Re: Chat logs
Reply With Quote #10

1. If it's a reasonable amount of work, then yes, you need to support 1.8.2. A counter-example would be gamerules natives: orpheu is needed to support 1.8.2
2. You copy pasted the sma file in the post, that still needs to be edited. Just attach the plugin like everyone else.
3. What do you mean by "it's a bigger overkill to use cvars"?
4. amxx must be backward compatible so I don't think get_configsdir should be mandatory for the reason fysiks mentioned. However, I think it should be used because the name is more clear, i.e it tells exactly what it does.
__________________

Last edited by HamletEagle; 03-15-2020 at 15:01.
HamletEagle 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 18:53.


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