Raised This Month: $7 Target: $400
 1% 

Chat Logger v2.1a


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Xanimos (85)
jim_yang
Veteran Member
Join Date: Aug 2006
Old 10-24-2006 , 03:14   Chat Logger v2.1a
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (chat_logger.sma - 15310 views - 5.1 KB)
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by jim_yang; 12-16-2006 at 03:55.
jim_yang is offline
Old 10-24-2006, 03:47
aligind4h0us3
This message has been deleted by aligind4h0us3.
Old 10-24-2006, 03:51
aligind4h0us3
This message has been deleted by aligind4h0us3.
aligind4h0us3
Senior Member
Join Date: Sep 2006
Location: Sydney, Australia
Old 10-24-2006 , 03:56   Re: Chat Logger
Reply With Quote #2

Absolutely brilliant, +karma!
__________________
~+Karma if I help you.~
aligind4h0us3 is offline
Pwah
New Member
Join Date: Oct 2006
Old 10-24-2006 , 04:11   Re: Chat Logger
Reply With Quote #3

ah nice, this seems to work extremely well. Keep up the good work.
Pwah is offline
mykey
Member
Join Date: Dec 2005
Location: UK
Old 10-24-2006 , 05:58   Re: Chat Logger
Reply With Quote #4

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.
__________________
Gungame League Launches September 2007!
mykey is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 10-24-2006 , 06:02   Re: Chat Logger
Reply With Quote #5

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.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by jim_yang; 10-24-2006 at 06:06.
jim_yang is offline
mykey
Member
Join Date: Dec 2005
Location: UK
Old 10-24-2006 , 06:05   Re: Chat Logger
Reply With Quote #6

ah, ok. Thanks for trying.
__________________
Gungame League Launches September 2007!
mykey is offline
aligind4h0us3
Senior Member
Join Date: Sep 2006
Location: Sydney, Australia
Old 10-24-2006 , 07:11   Re: Chat Logger
Reply With Quote #7

Either way, it is still a really great plugin that should be approved.
__________________
~+Karma if I help you.~
aligind4h0us3 is offline
dxteam
Senior Member
Join Date: Dec 2005
Old 10-24-2006 , 07:58   Re: Chat Logger
Reply With Quote #8

Mini suggestion:
Plz make this for every hour make html log file and this html put on web or make sql !!!
dxteam is offline
Send a message via ICQ to dxteam
aligind4h0us3
Senior Member
Join Date: Sep 2006
Location: Sydney, Australia
Old 10-24-2006 , 08:31   Re: Chat Logger
Reply With Quote #9

I have asked him about sql, he said he isn't so good with it but he will take a look tomorrow.
__________________
~+Karma if I help you.~
aligind4h0us3 is offline
aligind4h0us3
Senior Member
Join Date: Sep 2006
Location: Sydney, Australia
Old 10-24-2006 , 12:52   Re: Chat Logger
Reply With Quote #10

Quote:
Originally Posted by dxteam View Post
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.
__________________
~+Karma if I help you.~
aligind4h0us3 is offline
Reply


Thread Tools
Display Modes

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 07:09.


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