To activate these cheats, you have to enter some command line arguments. Make the shortcut to Half-Life point to this - "C:\Half-Life\hl.exe -dev -console" replacing c:\Half-Life with whatever directory you installed the game to.
After running the game with those arguments, you can enter a console within the game by typing the tilde "~" key. If cheats don't work at first, you'll have to type in "sv_cheats 1" at the console and cheats should be enabled for the next level that loads.
Activate the following codes by opening the console, then typing each and hitting [ENTER] after each one.
/god: God mode/invulnerability.
/noclip: No clipping mode/walk through walls.
/notarget: Deactivates any reaction from enemies until they are
shot at.
/give: There's a whole plethora of things you can get with this
command...