08.02.2009, 00:47
Y /\
|
|____>
0 X
_TheOne_
Let use look in your code
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
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
So now you can easy edit the cords or the AreaSize
|
|____>
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);
//...
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);
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);

