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



SetPlayerWorldBounds - Justsmile - 24.04.2009

Hello,

Can anyone explain me the World Bopunds. I dont get it from the Tutorial. Maybe with picture. thx.




Re: SetPlayerWorldBounds - OmeRinG - 24.04.2009

SetPlayerWorldBounds (playerid,x_max,x_min,y_max,y_min);

to get x_max, x_min, y_max, and y_min you have to do the following:

1. got to the place where you want the world bounds to be.
2. imagine this is the place:
____________
| |
| |
| |
| |
| |
|__________|
3. now in order to get the cordinates you have to do /save in the following places:
/save_______
| |
| |
| |
| |
| |
|__________/save

now that you did that, go to your San Andreas directory and search for a file called "mysavedpositions.txt"

enter it, there should be lines like this:
AddPlayerClass(..........);
AddPlayerClass(..........);
or if you were in a vehicle:
AddStaticVehicle(..........);
AddStaticVehicle(..........);

now, in order to get the cordinates, you need to take:
AddPlayerClass(classid,x,y,z,a,.......);
AddPlayerClass(classid,x,y,z,a,.......);

if you didn't understand, I'll show you an example:
AddPlayerClass(82,2031.9292,1282.9242,10.8203,308. 8118,0,0,0,0,0,0); //
AddPlayerClass(82,1881.7473,1402.1289,9.2501,59.79 56,0,0,0,0,0,0); //

The Max_X is 2031.9292
The Max_Y is 1402.1289
The Min_X is 1881.7473
The Min_Y is 1282.9242


Hope that helps you.
good luck.



Re: SetPlayerWorldBounds - Justsmile - 24.04.2009

Is it possilbe for you to make a World bound of the palamio creek death place? pls


Re: SetPlayerWorldBounds - Weirdosport - 24.04.2009

Yes it is possible for you to make World Boundaries for the "palamio creek death place". He gave you a perfectly good tutorial, which he obviously put quite a bit of time/effort/both into. Show some initiative and do it yourself.


Re: SetPlayerWorldBounds - Justsmile - 24.04.2009

Yes i tried it. But the Boundries are WRONG


Re: SetPlayerWorldBounds - Justsmile - 24.04.2009

I GET IT THANKS MAN; YOU ARE THE BEST I LOVE YOU