So i wanted to make a script like this one:
bind "e" "switcher"
bind "mouse2" "+watch;spec_prev"
alias knife_vm_mode "bind mouse1 +viewmodel_knife"
alias amby_vm_mode "bind mouse1 +viewmodel_amby"
alias sap_vm_mode "bind mouse1 +viewmodel_sap"
alias +viewmodel_knife "+attack;r_drawviewmodel 1;spec_next"
alias -viewmodel_knife "-attack;r_drawviewmodel 1"
alias +viewmodel_amby "+attack;r_drawviewmodel 0;spec_next"
alias -viewmodel_amby "-attack;r_drawviewmodel 0"
alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next"
alias -viewmodel_sap "-attack;r_drawviewmodel 1"
alias equip_knife "slot3;r_drawviewmodel 1;knife_vm_mode"
alias equip_knife2amby "equip_knife;alias switcher equip_amby2knife;bind 2 equip_sap2knife;bind 3 equip_knife;bind 1 equip_amby2knife"
alias equip_knife2sap "equip_knife;alias switcher equip_sap2knife;bind 2 equip_sap2knife;bind 3 equip_knife;bind 1 equip_amby2knife"
alias equip_amby "slot1;r_drawviewmodel 1;amby_vm_mode"
alias equip_amby2sap "equip_amby;alias switcher equip_sap2amby;bind 2 equip_sap2amby;bind 3 equip_knife2amby;bind 1 equip_amby"
alias equip_amby2knife "equip_amby;alias switcher equip_knife2amby;bind 2 equip_sap2amby;bind 3 equip_knife2amby;bind 1 equip_amby"
alias equip_sap "slot2;r_drawviewmodel 1;sap_vm_mode"
alias equip_sap2knife "equip_sap;alias switcher equip_knife2sap;bind 2 equip_sap;bind 3 equip_knife2sap;bind 1 equip_amby2sap"
alias equip_sap2amby "equip_sap;alias switcher equip_amby2sap;bind 2 equip_sap;bind 3 equip_knife2sap;bind 1 equip_amby2sap"
alias +watch "+attack2;r_drawviewmodel 1"
alias -watch "-attack2;r_drawviewmodel 1"
equip_knife2amby
But the problem is that it only works for the Spy's Revolver but I wanted it to work for the Soldier's Secondary Weapon as well, and since im kind of a noob with scripts i seek help here :P
For those who dont know this scripts makes the Ambassator desapear as soon as I Press M1 and when i change weapon the viewmodels reapper