If you're using register_event, no. That function hooks a specific message, for instance BombDrop, or CurWeapon. Such events obviously aren;'t very general
If TFC does, in fact, use log messages for what you're looking for, then you may be in luck.
As far as I can see, you can use register_logevent to have all generic log messages sent straight to a function. From there I'm not sure if you can even find out what message you're handling, but it's worth a try!
Straight from the documentation..
Quote:
You can filter the results by adding conditional parameters. Examples:
"0=World triggered" "1=Game_Commencing"
"1=say"
"3=Terrorists_Win"
"1=entered the game"
"0=Server cvar"
|
This would seem to suggest that the additional, conditional parameters are not necessary.
Inside the logevent function, you use read_data to get a parameter. Try using read_data(0), it may give you the name of the logevent.