dyzBenroadsYou should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.
If you're using mousewheel this might work out better for you.
http://pastebin.com/p0RbEL8f
Have not tried it personally since i use Q,E,F but friends have told me good things about it.
Seems complicated as fuck.
that's probably because it is, script needs to know what weapon you're on and what one you were on so that quickswitch does work and so do viewmodel settings. I've never cared for scrollwheel but to have the sens thing work you'd need to add an additonal command to this part
alias equip_primary "slot1; r_drawviewmodel 0; qs_primary; sensitivity ___"
alias equip_secondary "slot2; r_drawviewmodel 1; qs_secondary; sensitivity ___"
alias equip_melee "slot3; r_drawviewmodel 1; qs_melee; sensitivity ___"
Replace with desired sens for each slot