3rd and 1st person animations in multiplayer?!

Hello! I have read some articles on switching between 1st and 3rd person cameras so I understand basics. However, I do not understand how to make functional in multiplayer. Take a game like CoD, you play in first person animations but see others in third person animations. How is this achieved? Please direct me to some resources. Thanks!