Problems with Boundaries, Help!
#5

Y /\
|
|____>
0 X

_TheOne_

Let use look in your code
pawn Код:
//...
SetPlayerPos(playerid, -1456.4884,403.0696,30.0859);
SetPlayerWorldBounds(playerid, 20.0, -20.0, 20.0, -20.0);
//...
What we see ?
We see that the player gets teleported to -1456.4884,403.0696,30.0859
And we see that the boundary at set to 20.0, -20.0, 20.0, -20.0 (that is a small area around the 0.0 point (the big farm))

What we need to do ?
We need to change / delete the function which set the boundary
pawn Код:
SetPlayerPos(playerid, -1456.4884,403.0696,30.0859);
SetPlayerWorldBounds(playerid, -1455.0, -1457.0, 404.0, 402.0);
With that you can move more or less 1 meter before you get checked back
But that you dont want, so we make a new and better editable code
pawn Код:
new Float:Cords[3] = { -1456.4884, 403.0696, 30.0859 },
    Float:AreaSize = 1.0,
SetPlayerPos(playerid, Cords[0], Cords[1], Cords[2]);
SetPlayerWorldBounds(playerid, Cords[0] + AreaSize, Cords[0] - AreaSize, Cords[1] + AreaSize, Cords[1] - AreaSize);
So now you can easy edit the cords or the AreaSize
Reply


Messages In This Thread
Problems with Boundaries, Help! - by zappydude - 07.02.2009, 22:28
Re: Problems with Boundaries, Help! - by AlExAlExAlEx - 07.02.2009, 22:31
Re: Problems with Boundaries, Help! - by zappydude - 07.02.2009, 22:52
Re: Problems with Boundaries, Help! - by zappydude - 08.02.2009, 00:08
Re: Problems with Boundaries, Help! - by Nero_3D - 08.02.2009, 00:47
Re: Problems with Boundaries, Help! - by hazdog - 08.02.2009, 00:52
Re: Problems with Boundaries, Help! - by zappydude - 11.02.2009, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)