This is the code to my SourceForts Freezestatus plugin. It would tell you who unfroze/froze the block your were aiming at. Only really interesting part is using TraceLine from a plugin.
Sf_antiabuse.tar.bz2