If that's what you mean, you can do it like this (logic not included) :
1. 0AB0: 0x04 (not sure if mouse3)
2. -> Enable SA:MP Cursor (via SF opcode or patch it via memory)
3. (additional) -> Draw the meters / distance under the cursor so you know the distance where you wanna teleport:
Pos: (cursor.x & cursor.y - 5-10)
4. IF 0AB0: 0x04 again (once you press it again to confirm teleport) -> get the current cursor_pos and convert it from 2D / pixels to 3D World.
5. Put actor at 3D World saved variables X Y Z.
6. -> Disable Cursor
Have fun lol.