That's basically the teleportentity native in command form. I know for sure there is a sm_teleport somewhere that does just this, because I used to do it way back in the day.
What exactly are you trying to do? Because teleporting your client origin is different than your view origin (as cl_showpos)
Anyway, one search of sm_teleport x y z comes up with stuff like this
https://forums.alliedmods.net/showth...ht=Sm_teleport
__________________