SA-MP Forums Archive
world bounds ? how to create ? - 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: world bounds ? how to create ? (/showthread.php?tid=533108)



world bounds ? how to create ? - Champ - 22.08.2014

pawn Код:
651.2563,1822.0771,5.4688,355 // north ymax.
742.0555,1571.6013,8.7897 // xmax east
130.7141,1696.3623,17.6406// xmin west
250.7659,1211.3595,15.0886// ymin south
above are the coords of different sides of the map for bounds.

my question is that how to put them in this function? As I have x,y,z coords.

pawn Код:
SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
Thanks in Advance


Re: world bounds ? how to create ? - Kyance - 22.08.2014

pawn Код:
SetPlayerWorldBounds(playerid,742.0555,1571.6013,8.7897,130.7141,1696.3623,17.6406651.2563,1822.0771,5.4688,355,250.7659,1211.3595,15.0886);
Uh, if those comments for your coords are correct, then it would look like that, i guess.
By the way, you can use "Xtreme Vehicle Plotter" to create World Bounds, Gang Zones etc. faster and easier!


Re: world bounds ? how to create ? - Phyzic - 22.08.2014


(North)
ymax
|----------|
| |
(West) xmin | | xmax (East)
| |
|----------|
ymin
(South)



Re: world bounds ? how to create ? - Champ - 22.08.2014

Quote:
Originally Posted by Kyance
Посмотреть сообщение
pawn Код:
SetPlayerWorldBounds(playerid,742.0555,1571.6013,8.7897,130.7141,1696.3623,17.6406651.2563,1822.0771,5.4688,355,250.7659,1211.3595,15.0886);
Uh, if those comments for your coords are correct, then it would look like that, i guess.
By the way, you can use "Xtreme Vehicle Plotter" to create World Bounds, Gang Zones etc. faster and easier!
not corrent. Arguments doesn't match definition.

Quote:
Originally Posted by Phyzic
Посмотреть сообщение

(North)
ymax
|----------|
| |
(West) xmin | | xmax (East)
| |
|----------|
ymin
(South)
Can you explain it little more ?
I mean i successfully got the coords but the problem is in setting it in the function.


Re: world bounds ? how to create ? - Phyzic - 22.08.2014

Quote:
Originally Posted by Kyance
Посмотреть сообщение
pawn Код:
SetPlayerWorldBounds(playerid,742.0555,1571.6013,8.7897,130.7141,1696.3623,17.6406651.2563,1822.0771,5.4688,355,250.7659,1211.3595,15.0886);
Uh, if those comments for your coords are correct, then it would look like that, i guess.
By the way, you can use "Xtreme Vehicle Plotter" to create World Bounds, Gang Zones etc. faster and easier!
Take your time and understand it - SetPlayerWorldBounds(playerid,Float:x_max,Float:x_ min,Float:y_max,Float:y_min);

Use this :-
Код:
SetPlayerWorldBounds(playerid,742.0555,130.7141,1822.0771,1211.3595);



Re: world bounds ? how to create ? - Champ - 22.08.2014

ok thanks. it worked.