Question about positions - 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: Question about positions (
/showthread.php?tid=488020)
Question about positions -
Nourdin - 16.01.2014
Hello there,
I have been struggling to get some positions in my server but I still didn't managed to get it.
I'm looking for something that gets me this positions:
Код:
Float:minx, Float:miny, Float:maxx, Float:maxy
I want to use it for CreateDynamicRectangle.
Thanks!
Re: Question about positions -
MatriXgaMer - 16.01.2014
pawn Код:
GetPlayerPos(playerid, minx, miny manz);
I dont understood you but this is for getting a player pos
Re: Question about positions -
MP2 - 16.01.2014
You can use /save for this. It saves your current position in savedpositions.txt which is in
C:\Users\WINDOWS_USER\Documents\GTA San Andreas User Files\SAMP.
If making a rectangle, you only need two positions - the top-right corner (maxY and maxX) and the bottom-left corner (minX and minY).