Try weapon2_ent.frame += 1 * time;
It should play the animation
And you can limit it to a certain number of frames with if statements or while loops.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201