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



World Boundaries - Shockey HD - 21.07.2011

I never done world boundaries before so i need some help. Can someone tell me where ill Set the Save as?

Like the Cordinates and how i would do so?




Re: World Boundaries - Jantjuh - 21.07.2011

https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds

pawn Код:
SetPlayerWorldBounds(playerid, x_max, x_min, y_max, y_min);



Re: World Boundaries - Shockey HD - 21.07.2011

Quote:
Originally Posted by Jantjuh
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds

pawn Код:
SetPlayerWorldBounds(playerid, x_max, x_min, y_max, y_min);
What does it mean by Minimum and Max?


Re: World Boundaries - MadeMan - 21.07.2011

Min is South-West point X,Y coordinates and max is North-East point X,Y coordinates.


Re: World Boundaries - Shockey HD - 21.07.2011

So far this is what i have for cord's.

Код:
-410.00000 1226.0000 31.0000 //Top Left
124.00000 1341.0000 11.0000//Top Right
215.00000 905.00000 24.0000//Bottom Right
-383.0000 852.0000 10.0000//Bottom Left
which Numbers do i use? I labeled them with the specific places there tooken


Re: World Boundaries - MadeMan - 21.07.2011

Bottom Left is min and Top Right is max.

First number is X and second is Y.


Re: World Boundaries - Shockey HD - 21.07.2011

So, is this right?

SetPlayerWorldBounds(playerid, -410.00000, -383.0000, 1341.0000, 905.00000)


Re: World Boundaries - MadeMan - 21.07.2011

pawn Код:
SetPlayerWorldBounds(playerid, 124.00000, -383.0000, 1341.0000, 852.0000);