Map Point Detection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Map Point Detection (
/showthread.php?tid=258110)
Map Point Detection -
xDeadlyBoy - 29.05.2011
there is any way to know the XY position of a map point that player sets?
Re: Map Point Detection -
Backwardsman97 - 29.05.2011
What do you mean map point?
Re: Map Point Detection -
Calgon - 29.05.2011
No, it's directly possible.
There is a function that lets you teleport to positions that they select, the function is:
AllowPlayerTeleport.
You could however use the function I stated above, but prior to a player teleporting, you could save their X, Y and Z coordinates then allow the player to use the function to teleport to the location they selected, store the coordinates of where they teleported to in another variable and teleport them back to their previous location before setting a "waypoint."