I don't mean to demotivate you, but if you can't manage to copy that from the code of an existing mod, you're gonna have a hard time making a decent mod of your own..
Anyways, here's what you need:
It's the text at bottom left, where you can read who killed who etc.Code:self iPrintln("Text");
Standard text at center of screenCode:self iPrintlnBold("Text");
Typewriter style TextCode:self thread maps\mp\gametypes\_hud_message::hintMessage("Text");