diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-19 13:46:06 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-19 13:46:06 -0400 |
| commit | 0b1d97a5ae72fabc611adb922a247f43b514815e (patch) | |
| tree | 057e8b885daf4ec8c6e272d064b8d40c3b5c77ae /lua/autorun/sv_npc.lua | |
| parent | 95a01138ddd5e602abc9d30877f1294cbdd04119 (diff) | |
| download | artery_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.lua | 3 |
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) |
