The vast majority of the HUD code is self-explanatory really.
As for weapons, there is a tutorial for both singleplayer and multiplayer, but it only gives an outline of what you need to do. Much of the code (ie weapon functionality, how its projectiles look and work, etc) is entirely up to you...