How to model notched detail on a gun?
To do this I would first add some loop cuts along your object where you want the extrusions, one loop cut for each extrusion.  Then, with the loop cuts selected, bevel them with Ctrl+B.  You can then select the proper up-facing faces and extrude them to your liking.