How to restrict an area for all the players? - 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)
+--- Thread: How to restrict an area for all the players? (
/showthread.php?tid=630522)
How to restrict an area for all the players? -
Sibuscus - 15.03.2017
I want to script a server for a specific area and I don't want the players to be able to leave that area. Let's say It's a small village, like Blueberry or Dilimore and they cannot leave from there. I can do it with mapping, but it's a pain in the ass and takes a lot of time. There was this script that would print: Player out of bounds if the player attempted to leave a certain area, like out of jail with hacks and stuff. Something similar. I searched ******, but nothing, so I'm asking here
Re: How to restrict an area for all the players? -
LEOTorres - 15.03.2017
Код:
SetPlayerWorldBounds (playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds