Setting world boundaries?
#4

pawn Code:
/*
                •• /save // max

         ymax
     |----------|
     |          |
xmin |          | xmax
     |          |
     |----------|
         ymin

     • /save // min
*/
When you press Esc > map and map icon is facing up, then you're on the correct angle. Go to the left and down (see the single •) and save with name // min, then go to the right and up (see double • (••)) and save with name //max

Go to ducoments > gta sa user files > samp > savedpositions.txt, go to the bottom and copy the X, Y parameters.

Let's say, these are the positions
Code:
AddPlayerClass(2,1546.3549,-1675.5996,13.5622,89.0421,0,0,0,0,0,0); // min
AddStaticVehicle(411,4041.7681,-508.6000,1.4601,340.5664,177,215); // max
and the parameters are: x_max, x_min, Y_max, y_min so it will looks like: 4041.7681, 1546.3549, -508.6000, -1675.5996

pawn Code:
// Result:
SetPlayerWorldBounds(playerid, 4041.7681, 1546.3549, -508.6000, -1675.5996);
Reply


Messages In This Thread
Setting world boundaries? - by Cena44 - 29.05.2013, 14:02
Re: Setting world boundaries? - by mahdi499 - 29.05.2013, 14:06
AW: Setting world boundaries? - by HurtLocker - 29.05.2013, 14:13
Re: Setting world boundaries? - by Konstantinos - 29.05.2013, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)