SA-MP Forums Archive
Dynamic GPS system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Screenshots and Videos (https://sampforum.blast.hk/forumdisplay.php?fid=21)
+--- Thread: Dynamic GPS system (/showthread.php?tid=118076)



Dynamic GPS system - dice7 - 03.01.2010

After a lot of wasted hours thinking and testing I finally found a (rather simple) way of creating a dynamic GPS system. And by dynamic I mean a way which allows the player to simply click on the huge map, which he has in the main menu, and it will create a checkpoint on that location.

SAMP Dynamic GPS test

The script still needs some tweaking, but the backbone is done and it will probably get released here.
The only downsides so far are that you need to type a command to use it and that it behaves strange when setting the marker at map locations with a different Z coord then where you're standing


Re: Dynamic GPS system - pliva_sb - 03.01.2010

Nice work...hahaa Itґs interesting.What you used to get an coordinates from maps?
Maybe AllowPlayerTeleport and eventually returned to the position previously.Have I right?


Re: Dynamic GPS system - Blacklite - 03.01.2010

Hah, it's funny, I was just thinking about this the other day :P


Re: Dynamic GPS system - Correlli - 03.01.2010

Quote:
Originally Posted by [CH
pliva♪ ]
Maybe AllowPlayerTeleport and eventually returned to the position previously.Have I right?
Yep, but since this function isn't working how it should you need to use AllowAdminTeleport-function first.
I've coded my own one with custom callback which stores the old player position to variable, sets the checkpoint and then teleports player back to the old position.


Re: Dynamic GPS system - pliva_sb - 03.01.2010

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by [CH
pliva♪ ]
Maybe AllowPlayerTeleport and eventually returned to the position previously.Have I right?
Yep, but since this function isn't working how it should you need to use AllowAdminTeleport-function first.
I've coded my own one with custom callback which stores the old player position to variable, sets the checkpoint and then teleports player back to the old position.
yes,I know that you must use AllowAdminTeleport function and your dynamic gps will be on LL?


Re: Dynamic GPS system - Fj0rtizFredde - 03.01.2010

Looks cool


Re: Dynamic GPS system - Correlli - 04.01.2010

Quote:
Originally Posted by [CH
pliva♪ ]
yes,I know that you must use AllowAdminTeleport function and your dynamic gps will be on LL?
If you mean LI: i'll see, this is a very annoying thing.


Re: Dynamic GPS system - sansko - 10.06.2010

may i see the code
i want to let the admins use atom bombs on markers


Re: Dynamic GPS system - MrEnd - 11.06.2010

Nice FS for manyone