When i have pg,mg,lg i want to use 90zoomfov,0.49 zoomsens,m_pitch -0.036 and whenever i have any other weapon i want 55 zoomfov,zoomsens 1 and m_pitch -0.022. The problem im facing is that even though i can easily bind the zoomfov and zoomsens into the weapon binds i want the m_pitch to change only when zooming. e.g. my normal m_pitch is -0.022 but when i use pg,mg,lg i want m_pitch -0.036 only when zooming.

In my old config i used to be able to do this but i forgot so can some script pros help me out?

bind MOUSE2 "+zooming"
seta zooming "alias +zooming zoomingPlus;alias -zooming zoomingMinus"
seta zooming2 "alias +zooming zoomingplus2;alias -zooming zoomingMinus2"
alias +zooming "zoomingPlus2"
alias -zooming "zoomingMinus2"
alias +zooming "zoomingPlus"
alias -zooming "zoomingMinus"
alias zoomingPlus "+zoom;cg_zoomfov 90;cg_zoomsensitivity .49;m_pitch -0.036"
alias zoomingMinus "-zoom;m_pitch -0.022"
alias zoomingPlus2 "+zoom;cg_zoomfov 55;cg_zoomsensitivity 1;m_pitch -0.022"
alias zoomingMinus2 "-zoom;m_pitch -0.022"
bind 1 "weapon 1;vstr zooming"
bind 2 "weapon 2;vstr zooming2"
bind 3 "weapon 3;vstr zooming"
bind 4 "weapon 4;vstr zooming"
bind q "weapon 5;vstr zooming"
bind e "weapon 6;vstr zooming2"
bind r "weapon 7;vstr zooming"
bind f "weapon 8;vstr zooming2"

but i always get the error "unknown command +zooming"