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



Checkpoint area cords? - DevilRP - 24.05.2010

Код:
 Then get the coords for the area which has to be entered to trigger the checkpoint, and add it to the CheckpointCoords array (it uses IsPlayerInArea so just do it as you would normally).
How do i get the coords, is it the normal
Код:
x,y,z
?
or is it
Код:
xmax,xmin,ymax,ymin,
if so how do i get those cords?


Re: Checkpoint area cords? - Babul - 24.05.2010

x,y,z. its 3 coordinates, 1 axis each. used for checkpoints, pickups, objects, cars etc...
xmin,xmax, ymin,ymax describes a 2dimensional square at the x and z axis - its a gangzone. (despite the x,y notation)
so your checkpoint needs the 1st one, 3 cordinates.
to get the exact position, type /SAVE <comment> in-game while being logged in RCON. this will add a line entry to the file "savedpositions.txt", located in your GTASA installation directory (game, not server).



Re: Checkpoint area cords? - DevilRP - 24.05.2010

Thanks mate
thought it was the xmax, etc..