Try "attacker iprintlnbold("test");" however this will only display the message for the person who killed the player.
EDIT: also if you want self to work try changing
tothread maps\mp\gametypes\_shmod::Messages( sMeansOfDeath, attacker);
self thread maps\mp\gametypes\_shmod::Messages( sMeansOfDeath, attacker);