summaryrefslogtreecommitdiff
path: root/lua/autorun/sv_npc.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-08-19 13:46:06 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-08-19 13:46:06 -0400
commit0b1d97a5ae72fabc611adb922a247f43b514815e (patch)
tree057e8b885daf4ec8c6e272d064b8d40c3b5c77ae /lua/autorun/sv_npc.lua
parent95a01138ddd5e602abc9d30877f1294cbdd04119 (diff)
downloadartery_editor-0b1d97a5ae72fabc611adb922a247f43b514815e.tar.gz
artery_editor-0b1d97a5ae72fabc611adb922a247f43b514815e.tar.bz2
artery_editor-0b1d97a5ae72fabc611adb922a247f43b514815e.zip
fixed a bug with serverchanger zones
Diffstat (limited to 'lua/autorun/sv_npc.lua')
-rw-r--r--lua/autorun/sv_npc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/autorun/sv_npc.lua b/lua/autorun/sv_npc.lua
index a622d7b..8f346bb 100644
--- a/lua/autorun/sv_npc.lua
+++ b/lua/autorun/sv_npc.lua
@@ -99,7 +99,8 @@ hook.Add("InitPostEntity", "artery_spawnmapnpcs", function()
loadMap()
end)
-concommand.Add("artery_reloadmap", function()
+concommand.Add("artery_reloadmap", function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
for k, v in pairs(removeents) do
local eot = ents.FindByClass(v)