To enable console in Counter-Strike:Source or Team Fortress 2 you need to go to OPTIONS. In the popup window click the KEYBOARD tab and at the bottom click on the advanced button. Another popup window will open checkmark the box that says "Enable Developer Console (~)" then click OK! and OK! again and you're done.
To open console all you need to do is press the tilde key ~ on your keyboard.
Please read
How do i find my SteamID?.