SA-MP Forums Archive
Havin trouble with SetWorldBounds - 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: Havin trouble with SetWorldBounds (/showthread.php?tid=144481)



Havin trouble with SetWorldBounds - Typical_Cat - 27.04.2010

i have tried so much, can somebody give me an exaple of how to use my coordinates to setworld bounds

AddPlayerClass(287,2617.7800,-2331.5286,2.4816,138.4333,0,0,0,0,0,0); // back northwest
AddPlayerClass(287,2617.9314,-2249.4788,2.4816,27.5602,0,0,0,0,0,0); // front northwest
AddPlayerClass(287,2763.3987,-2249.3406,2.4816,339.6197,0,0,0,0,0,0); // front north east
AddPlayerClass(287,2763.4219,-2330.1375,2.4816,238.0988,0,0,0,0,0,0); // back north east

The front of the arena is facing north, so the back northwest is the bottom left, get what im sayin?

hope you guys can help thanx


Re: Havin trouble with SetWorldBounds - MadeMan - 27.04.2010

When facing north, then min coordinates are southwest and max coordinates are northeast.

You need to save only 2 points.


Re: Havin trouble with SetWorldBounds - Babul - 28.04.2010

agreed: the boudary is set by giving 2 spots: the south-west and the north-east, like:
Код:
SetPlayerWorldBounds(playerid, 2615.0, -2330.0, 2765.0, -2250.0);