AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Chat Logger v2.1a (https://forums.alliedmods.net/showthread.php?t=46338)

jim_yang 10-24-2006 03:14

Chat Logger v2.1a
 
1 Attachment(s)
Chat Logger v2.1a
Description:
it log chat messages of:
say, say_team, amx_say, amx_chat, amx_psay, amx_csay, amx_tsay
say @(@@|@@@)
say_team @
to the amxxdir\logs\filename.htm

Cvar:
cl_logmode 0 | 1 default is 1
0 : filename is ChatLog, means log all messages to a single htm file.
1 : filename is XXXX.XX.XX, Xs stand for the date, means everyday it creates a new htm file.

Install:
put this plugin above the adminchat.amxx or it will not log adminchat stuff.
Quote:

; Chat / Messages
chat_logger.amxx ; log chat messages by jim
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
;scrollmsg.amxx ; displays a scrolling message
;imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
the log messages look like below(exactly):
Quote:

22:55:46 <STEAM_0:1:23456789><000.000.000.000> *DEAD*.:|:. : hello
22:55:51 <STEAM_0:1:23456789><000.000.000.000> .:|:. : hello
22:55:54 <STEAM_0:1:23456789><000.000.000.000> (Terrorist) .:|:. : hello
22:55:59 <STEAM_0:1:23456789><000.000.000.000> .:|:. : hello
22:56:01 <STEAM_0:1:23456789><000.000.000.000> (Counter-Terrorist) .:|:. : hello
22:56:13 <STEAM_0:1:23456789><000.000.000.000> *SPEC*.:|:. : hello
22:56:21 <STEAM_0:1:23456789><000.000.000.000> *DEAD*(Terrorist) .:|:. : hello
22:56:23 <STEAM_0:1:23456789><000.000.000.000> *DEAD*.:|:. : hello
22:56:30 <STEAM_0:1:23456789><000.000.000.000> (Good Luck!) .:|:. : hello
22:56:46 <STEAM_0:1:23456789><000.000.000.000> (HUDCHAT) .:|:. : hello
22:56:50 <STEAM_0:1:23456789><000.000.000.000> (HUDCENTER) .:|:. : hello
22:56:55 <STEAM_0:1:23456789><000.000.000.000> (HUDBOTTOM) .:|:. : hello
22:57:04 <STEAM_0:1:23456789><000.000.000.000> (ALL) .:|:. : hello
22:57:11 <STEAM_0:1:23456789><000.000.000.000> (ADMINS) .:|:. : hello
22:57:17 <STEAM_0:1:23456789><000.000.000.000> (ADMIN) .:|:. : hello
16:17:20 <STEAM_0:1:23456789><000.000.000.000> (PLAYER) .:|:. : hello
cutline:
Quote:

*DEAD*.:|:. unsigned team cmd: say
*SPEC*.:|:. spectator cmd: say or say_team
.:|:. terrorist alive cmd: say
(Terrorist) .:|:. terrorist alive cmd: say_team
(Good Luck!) .:|:. admin cmd: amx_psay "Good Luck!" is the listener.
(HUDCHAT) .:|:. admin cmd: amx_tsay or say @
(HUDCENTER) .:|:. admin cmd: amx_csay or say @@
(HUDBOTTOM) .:|:. admin cmd: say @@@
(ALL) .:|:. admin cmd: amx_say
(ADMINS) .:|:. admin cmd: amx_chat
(ADMIN) .:|:. player(is admin) cmd: say_team @
(PLAYER) .:|:. player cmd: say_team @

change log:
1.0 [2006-10-24]
- simple say, say_team log
1.1 [2006-10-25]
- add amx_say, amx_chat, amx_psay, amx_tsay, amx_csay log
- add say @(@@|@@@), say_team @ log
- htm page title change to "Chat Logger - XXXX.XX.XX" X is the date
- fix spelling error
1.2 [2006-10-28]
- add ip address log, format is
XX:XX:XX <steamid><ip> (team or user attribute) name : chat messages
1.3 [2006-10-29]
- add cvar cl_logmode, if set to 0, htm page title is "Chat Logger", format is
XXXX.XX.XX - XX:XX:XX <steamid><ip> (team or user attribute) name : chat messages
1.4 [2006-10-31]
- remove '@' symbol
- fix amx_psay concept error
1.5 [2006-11-01]
- fix a small bug when the say text contain html statement.
1.6 [2006-11-03]
- fix a bug when player's name contain html statement.
- not log chat messages of bots
- add simple instruction in the source code
1.7 [2006-11-06]
- tiny improvement on CheckPlayerName()
- change color code to color name
- add a title in the page
1.8 [2006-11-07]
- clean some code
1.9 [2006-11-08]
- fix bugs and optimize.
2.0 [2006-11-12]
- use function cs_get_user_team instead of get_user_team
- set font "Verdana" size 2
- optimize
2.1 [2006-11-20]
- fix a bug that if adminchat is not running , it still logs.
- fix a bug that "say_team @" command didn't check if the speaker is admin.
- fix the "say @" command log to make it same as adminchat ways.
2.1a [2006-12-01]
- add check if user is connected, fix run time error 10 ?

credits:
aligind4h0us3 for the original idea and suggestion
cheap_suit for the plugin load order stuff
amxx team for some code in adminchat.sma

ps: if you play other mods like dod, ns..., try this version.untested.but should work.
http://forums.alliedmods.net/showpos...3&postcount=68

aligind4h0us3 10-24-2006 03:56

Re: Chat Logger
 
Absolutely brilliant, +karma!

Pwah 10-24-2006 04:11

Re: Chat Logger
 
ah nice, this seems to work extremely well. Keep up the good work.:)

mykey 10-24-2006 05:58

Re: Chat Logger
 
Good stuff.

Can this be made to include csay's, tsay's and admin_chat? That would make this perfect. I know that these are logged by amx, but it would be great if they were all in the one log.

Thanks.

jim_yang 10-24-2006 06:02

Re: Chat Logger
 
i've already tried to do that, but it seems not possible.
those messages handled by other plugin. and i can't hook them or they can't be hooked.

mykey 10-24-2006 06:05

Re: Chat Logger
 
ah, ok. Thanks for trying.

aligind4h0us3 10-24-2006 07:11

Re: Chat Logger
 
Either way, it is still a really great plugin that should be approved.

dxteam 10-24-2006 07:58

Re: Chat Logger
 
Mini suggestion:
Plz make this for every hour make html log file and this html put on web or make sql !!!

aligind4h0us3 10-24-2006 08:31

Re: Chat Logger
 
I have asked him about sql, he said he isn't so good with it but he will take a look tomorrow.

aligind4h0us3 10-24-2006 12:52

Re: Chat Logger
 
Quote:

Originally Posted by dxteam (Post 394646)
Mini suggestion:
Plz make this for every hour make html log file and this html put on web or make sql !!!

I prefer it daily, then I don't have to open 24 log files every single day.


All times are GMT -4. The time now is 07:23.

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