Zone script


Any possible way anyone know of making a section on the map or an area a safe zone, players do not have pvp enabled or no weapons able to be used in a certain section? Anyone?


if player is within range of a set of coords, disabled the friendly fire and set whatever else you want.


As Briglair said, simply messure the distance to the center point. You could also use AABB algorithm to detect a player inside a box.


You guys are awesome now just to find out how I can do this now that I know it can be done


Some of these natives should help. - for getting the player’s location. - for disabling pvp - for removing the player’s weapons

You could also toggle god mode on a player if they’re in your designated area, as players would still be able to shoot into the area from outside of it.