To turn on cheats in Half-Life, open the developer console by pressing the ~ key, then type sv_cheats 1 and hit Enter. With cheats enabled, you can enter additional commands to alter the game.
sv_cheats 1