Erm, this may seem like a pretty obvious answer, but, to sync players..? Sometimes players can de-sync, this fixes it (apparently - never used it personally).
Usually you would use ClearAnimations instead of get & set pos. Yeah, like above said, it syncs players, it was introduced a long time ago when sa-mp was still hell of desynced.