Is there any way to prevent people from building in the map's skybox?
disable noclip
if you want them to have noclip try installing that addon that prevents you from noclipping through walls. forgot its name. if all else fails, either remake or edit the map and put trigger_hurts in the skybox
There are addons that stop people no clipping through walls
You can prevent it by laying down the law. Tell them straight up "Don't build in the skybox or you won't be able to build at all" I think people will get the hint. If that don't work, try editing the map or get the addon. only thing you can really do jack.
[url]http://forums.ulyssesmod.net/index.php/topic,1080.0.html[/url]
There's the addon. You need ulx for it
Something like this, in lua/autorun/server/blockskybox.lua
[lua]local skyData = {
gm_flatgrass = {
left = SOMENUMBER,
right = SOMENUMBER,
front = SOMENUMBER,
back = SOMENUMBER,
bottom = SOMENUMBER,
top = SOMENUMBER,
},
gm_construct = {
left = SOMENUMBER,
right = SOMENUMBER,
front = SOMENUMBER,
back = SOMENUMBER,
bottom = SOMENUMBER,
top = SOMENUMBER,
}
}
local function CheckSkybox() {
local curMapName = GetTheCurrentMapsName() --i cant remember the function right now
if not skyData[curMapName] then return end --this map hasnt been configured in our script, skip the rest
local tSkyData = skyData[curMapName]
for k,v in pairs(player.GetAll()) do --loop each players
local pos = v:GetPos() --get their position
if pos.x>=tSkyData.left and pos.y<=tSkyData.right then
if pos.y>=tSkyData.back and pos.y<=tSkyData.front then
if pos.z>=tSkyData.bottom and pos.z<=tSkyData.top then
--THEY ARE IN THE SKYBOX, KILL THEM OR TELEPORT THEM SOMEWHERE
end
end
end
end
--
--ALSO DO THE SAME THING FOR PROPS
--
}
timer.Create("NoSkyboxAccess", 0.2, 0, CheckSkybox)[/lua]
You then need to fill in SOMENUMBER with the the numbers you get by flying to the corners of the skybox and typing [I]getpos[/I] in console
Sorry, you need to Log In to post a reply to this thread.