SA-MP Forums Archive
Stay within the world boundries - 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: Stay within the world boundries (/showthread.php?tid=268382)



Stay within the world boundries - Vero - 12.07.2011



Sometimes it spawns me and everything is fine, other times I end up in the water, really far out. I've added player classes so that can't be the problem. I have also defined the world boundries to
pawn Код:
SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);
. Does anyone know the solution to this?


Re: Stay within the world boundries - Vero - 14.07.2011

48 hours. bump

EDIT: I think it is because the map isn't loading properly before the player spawns.

EDIT AGAIN: FIXED. If anyone else has this problem then /save and get the co-ords. Use IsPlayerInRangeOfPoint and set the players pos to in the map. Wollah!