SA-MP Forums Archive
Checkpoint Streamer - 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: Checkpoint Streamer (/showthread.php?tid=409229)



Checkpoint Streamer - Patrick - 20.01.2013

Guys anyone know or any tutorial of Checkpoint Streamer that is like this
or can anyone tell me how to get the exact Coords of North East and South west, if someone could help me, thanks alot!

pawn Код:
#define CP_EX

#define MAX_POINTS 2

new Float:checkCoords[MAX_POINTS][4]  = {
{}
new Float:checkpoints[MAX_POINTS][4] = {
{}
new checkpointType[MAX_POINTS]  = {
{}



Re: Checkpoint Streamer - DaRk_RaiN - 20.01.2013

Use Incognito's streamer (recommended).


Re: Checkpoint Streamer - Patrick - 20.01.2013

yes Incognito's streamer (easy to make)

my server gamode uses that kind of way so i want to learn that. i already know everything, just the problem is how to get the right coords of the north east and south east.


Re: Checkpoint Streamer - Roach_ - 20.01.2013

Use the "/save" command In-Game and go to:
Код:
C:\Users\*USER*\Documents\GTA San Andreas User Files\SAMP
and there must be a *.txt ( savedpositions.txt ), and get the coords..


Re: Checkpoint Streamer - Patrick - 20.01.2013

i know that, my question how to know where is north east and south east in game, i know on minimap N - north, how to know North East and South East fast? without any indication?


Re: Checkpoint Streamer - Roach_ - 20.01.2013

You can look at this image and you move the camera.. ( looking at North ) and then move it 90 grades to right and.. thats North-East



AW: Checkpoint Streamer - Babul - 20.01.2013

not "move 90", but "turn 45" degrees.

to calculate a players rotation for letting him face to a certain spot, use the atan2() function, supplying the offsets (difference) between the 2 desired locations.
it may occur that you need to add 180° to the final result or exchange the subtraction parameters on both x- and y position for calculatuing the angle...