If you are using the Deathmatch SDK, the scoreboard is already complete and fully functioning.
What you want to do is force teamplay. I've reworked the Creating Teams tutorial on the wiki, it should help you with all of your team-related troubles now.
http://www.gneu.org/wiki/index.php?title=Creating_Teams