summaryrefslogtreecommitdiff
path: root/lua/autorun/town.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/town.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/town.lua')
-rw-r--r--lua/autorun/town.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/autorun/town.lua b/lua/autorun/town.lua
index 2805f7c..40131df 100644
--- a/lua/autorun/town.lua
+++ b/lua/autorun/town.lua
@@ -137,5 +137,8 @@ function loadtownies()
end)
end
-concommand.Add("artery_loadtownies",loadtownies)
+concommand.Add("artery_loadtownies",function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
+ loadtownies()
+end)
hook.Add("InitPostEntity","load_lua",loadtownies)