Live online map! - 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)
+--- Thread: Live online map! (
/showthread.php?tid=361940)
Live online map! -
dogman - 22.07.2012
Hello,
I god a good idea on how to create a online live map with php,mysql,pawno and javascript.
I will create a javascript that will make a map something like:

There i will put the map of Sanandreas
Than with php i will convert the x, y coordinates received from the MySQL database to a more easier to work wit int like 0 or 100 or 99.91 than with javascript i will load these digits and place an icon like:

on the map where the x, y coordinates come together.
with pawno i will put the coordinates in the MySQL database every second
and i will load these in the php side of the script.
BUTT i am stuck i dont now the max x, y coords and the minimum of the x,y coords
so if anyone knows that.. please give them
Re: Live online map! -
Babul - 22.07.2012
min x,y: -3000.0000, -3000.0000
max x,y: 3000.0000, 3000.0000
so at all the size is 6000 x 6000
just with an offset -3000,-3000, so the middle is 0.0,0.0, not 3000.0,3000.0
x******Map=xPlayer+3000;
y******Map=yPlayer+3000;
Re: Live online map! -
Robert West - 22.07.2012
It's not new , there is host that provide this idea , online game mod, but it cost money
supporting your work
Re: Live online map! -
dogman - 22.07.2012
if my created script works i will post it on this forum
Re: Live online map! -
dogman - 22.07.2012
i got the php,mysql side running!!!

now the javascript :P
Re: Live online map! -
dogman - 22.07.2012
javascript is running!

now pawno