Raised This Month: $51 Target: $400
 12% 

Very simple plugin request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 11-30-2021 , 03:26   Very simple plugin request
Reply With Quote #1

Hello. I have a request for a very simple plugin I want for my ZP server.

I want a plugin that uses ".txt" file to record everything that appears in the chat, regardless if the chat message is generated by a player or by the server.

Here is an example.

Someone says this in the chat in 10:40 AM, 31.11.2021:

"Player: hello people"

I want this to be recorded in the .txt file:

"[time, date] Player: hello people"

The server generates a message:

"[ZP] Press M to show the game menu"

I want this to be recorded in the .txt file:

"[time, date] [ZP] Press M to show the game menu"

In a nutshell, I want a plugin that uses .txt file to record every message that appears in the chat, regardless of whether or not the message is generated by the server or by a player.

If it's easier for you, you can make the plugin to use any type of file, not only .txt file.

Thanks.

Last edited by GlobalPlague; 11-30-2021 at 03:27.
GlobalPlague is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 12-02-2021 , 15:48   Re: Very simple plugin request
Reply With Quote #2

Quote:
Originally Posted by GlobalPlague View Post
The server generates a message:
"[ZP] Press M to show the game menu"
I want this to be recorded in the .txt file:
I don't think this is possible bacause that message is from your zp base or whatever you using but on the rest it should be easy. I will try to write the plugin for you.
Cristian505 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-02-2021 , 16:03   Re: Very simple plugin request
Reply With Quote #3

Logging all messages is not really doable unless the plugin(s) use a specific method of sending messages that can be captured by other plugins. Maybe a module can do it but I'm not experienced with that. Either way it's definitely not a "very simple plugin" as you might think.

I suggest you use this - https://forums.alliedmods.net/showthread.php?t=297952
It will at least log messages sent by players.

Last edited by OciXCrom; 12-02-2021 at 17:30.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 12-02-2021 , 18:59   Re: Very simple plugin request
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Logging all messages is not really doable unless the plugin(s) use a specific method of sending messages that can be captured by other plugins. Maybe a module can do it but I'm not experienced with that. Either way it's definitely not a "very simple plugin" as you might think.

I suggest you use this - https://forums.alliedmods.net/showthread.php?t=297952
It will at least log messages sent by players.
Thanks. But how to make the Chat Manager plugin to record players' messages in a .txt file?
GlobalPlague is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2021 , 09:02   Re: Very simple plugin request
Reply With Quote #5

By looking at the config file and changing the settings related to message logging. I think them being named "CHAT_LOG" is pretty self-explanatory.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 10:22.


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