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



Rectangle - MerryDeer - 17.10.2016

Hi,

I have Rectangle, minx,miny,maxx,maxy, how to teleport player outside that rectangle? like i want player can't get inside, i already use get coordinates in back of player, but sometimes i need just teleport somewhere near that rectangle


Re: Rectangle - HoangNam - 18.10.2016

new Area;
#define AreaPos -273.4105,-60.5778,-122.2512,60.6611//minx,miny,maxx,maxy
Area = CreateDynamicRectangle(AreaPos);
Is this right?


Re: Rectangle - TakeiT - 18.10.2016

pick a spot and use setplayerpos?

maxx+y, maxy+1


Re: Rectangle - MerryDeer - 18.10.2016

Yes, but i need to teleport now always in one same position i want random