How do you use mouse scroll to change weapons?

I am making a game with multiple weapons and want to use the scroll wheel on the mouse to change them. What code can I use to make this happen?

http://forum.unity3d.com/viewtopic.php?p=165101

Has some code that you could work with