trace[ "entity" ] is either the player, any other entity (script-models etc) or undefined
I do not know if your player has a static model, the trace-entity will show it as a player.
If so, check for these cases and pront the name:
PHP Code:
ent = trace[ "entity" ];
if( IsDefined( ent ) && IsPlayer( ent ) )
IPrintLnBold( ent.name );
Also: you can only 'detect' models that are scrip-models. This means they must be entities (either set in the radiant or spawned via script). Normal models (like trees, barrels, tables etc.) cannot be detected via bullettrace afaik.
Also: in your script: you should add a wait-statement in there, otherwise it will issue an error.