world bounds
#1

im having some trouble with the worldbounds can someone help me out...

i've done 4x /save that makes a square
now i got these co-ordinates in savedpositions.txt
on SetPlayerWorldBounds it asks for playerid ofc and x max, min. y max, min

Код:
SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
with these addplayerclass co-ordinates how am i able to get the x max, x min, y max, y min of it?
look

Код:
AddPlayerClass(280,1485.7169,-2295.7781,33.6349,90.2409,0,0,0,0,0,0); // renewboundxmin this is left under
AddPlayerClass(280,1484.9778,-2276.1846,33.5498,88.3608,0,0,0,0,0,0); // renewboundymin this is right under
AddPlayerClass(280,1464.7710,-2275.7625,33.5553,82.0941,0,0,0,0,0,0); // renewboundymax this is left up
AddPlayerClass(280,1463.9587,-2297.4707,33.4723,95.8809,0,0,0,0,0,0); // renewboundxmax this is right up
4x x,y,z
now the question is what to take? do i have to take the 1485.7169 from renewboundxmin
and for example -2275.7625 from the y max?
help :P
Reply
#2

I think it should be

pawn Код:
SetPlayerWorldBounds(playerid, 1463.9587, 1485.7169 , -2275.7625, -2297.4707);
If the co-ords are right.
Reply
#3

pawn Код:
SetPlayerWorldBounds(playerid,1485.7169,1463.9587,-2275.7625,-2297.4707);
@[HiC]TheKiller, both x swap places
Reply
#4

nope, i tele there and it warps me away
edit: ill test urs voldimor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)