Method seems ok, about SVC_WEAPONANIM, you can use Ham_CS_Weapon_SendWeaponAnim from hamsandwich updated.
You can also try to hook it to catch other animations.
I hope this ham version gonna be integrated in amxx, but atm there are no testers for some mods to confirm all is working.