From 0b1d97a5ae72fabc611adb922a247f43b514815e Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 19 Aug 2017 13:46:06 -0400 Subject: fixed a bug with serverchanger zones --- lua/autorun/town.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/autorun/town.lua') 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) -- cgit v1.2.3-70-g09d2