blob: 5d815c4f3d6bf1f271b354a7966e0490ce4a8940 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--[[
Allow admins to develop the world in-game.
]]
local e = {}
if SERVER then
util.AddNetworkString("art_enable_editor")
end
--Enable editor mode
e.Enabled = false
if CLIENT then
net.Receive("art_enable_editor",function()
e.Enabled = true
end)
end
concommand.Add("artery_enable_editor",function(ply,cmd,args)
if not ply:IsAdmin() then return end
net.Start("art_enable_editor")
net.Broadcast()
e.Enabled = true
end)
return e
|