To enter into “God mode” just type god into the console. It makes you invincible, and you can't take any damage. Unlike noclip, you won't be able to fly through walls; you will still move as other players do.