I just wrote a metamod plugin to send match reports to a mySQL server for use in a stats system. Mine uses the libmysql.dll, yours could use ipout32.dll
Actually writing it would be fairly easy with metamods help. Download the sample plugins from
http://metamod.org/ so u can figure out how metamod works.
I dont like cs so I cant help you there but im fairly sure that there is a bitmask somewhere that tells u where a player has been damaged - google or one of the friendly chaps here should be able to tell u where that is.
EDIT: yeah metamod works on the server, not the client.