Posts: 578
Threads: 40
Joined: Dec 2016
15.09.2017, 21:26
(
Last edited by Meller; 16/09/2017 at 12:07 PM.
)
Title pretty much explains it, press somewhere on the HTML file's radar and you'll have the coordinates set for you.. was gonna use this for a mini games server but meh, gave up after 3 hours ;d
View a DEMO of it;
http://lexus-gaming.pro/lexus/checkpoints.php
https://github.com/MellerSAMP/SACPC
https://github.com/MellerSAMP/SACPC/releases
hfhf
Posts: 849
Threads: 4
Joined: Oct 2016
Reputation:
0
Very useful.
P.S: You used this while you were making this gamemode on your stream. Nice job.
Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by cuber
Very useful.
P.S: I was watching your stream while you we're making the gamemode, also saw you using this.
|
love 2 u veri much
Posts: 578
Threads: 40
Joined: Dec 2016
Yeah no, I calculated this all wrong, meant to put -3000 and minimize the image in the javascript by 50%, easily to reconfigure though.
Posts: 3,004
Threads: 12
Joined: May 2011
why the array starts with 1 and not 0 ?
Code:
MapAndreas_FindZ_For2DCoord(-574, -305, GameRaceCP[1][cpZ]);
GameRaceCP[1][cpX] = -574;
GameRaceCP[1][cpY] = -305;
And can you add a zoom in and out?
Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by Kaperstone
why the array starts with 1 and not 0 ?
Code:
MapAndreas_FindZ_For2DCoord(-574, -305, GameRaceCP[1][cpZ]);
GameRaceCP[1][cpX] = -574;
GameRaceCP[1][cpY] = -305;
And can you add a zoom in and out?
|
- Fixed calculations of the coordinates.
- Fixed the next ID variable to add /AFTER/ extracting the coordinates to the client.
New code;
https://pastebin.com/0GGMxk98
enjoy sur
Posts: 3,004
Threads: 12
Joined: May 2011
If you could upload the code to
https://github.com/MellerSAMP?tab=repositories so we don't have to search for the latest pastebin, would be great
Posts: 578
Threads: 40
Joined: Dec 2016
Posts: 3,004
Threads: 12
Joined: May 2011
Can you add a mode to give only coordinates?
1435.31, 1353.43, 54.54
Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by Kaperstone
Can you add a mode to give only coordinates?
1435.31, 1353.43, 54.54
|
There's coordinates showing in the uper left corner as well.
Posts: 3,004
Threads: 12
Joined: May 2011
If you click on the textareait places the red dots in them.
Posts: 131
Threads: 4
Joined: Jul 2016
Reputation:
0
useless saving coordinates in game is way better!
1 star