diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-17 20:08:23 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-17 20:08:23 -0400 |
| commit | 7a31161e59b34d34917a5c8826d5187fd63e844b (patch) | |
| tree | 85694d3dc3429f2a3c2183f03b5e7c7a818958b3 /gamemode/core/npc/sv_npcsystem.lua | |
| parent | fcffbc1ff27a7cb28bab85b223be7060c481bf8b (diff) | |
| download | artery-7a31161e59b34d34917a5c8826d5187fd63e844b.tar.gz artery-7a31161e59b34d34917a5c8826d5187fd63e844b.tar.bz2 artery-7a31161e59b34d34917a5c8826d5187fd63e844b.zip | |
Made console commands admin-only
this was probably a big security bug or something lol
Diffstat (limited to 'gamemode/core/npc/sv_npcsystem.lua')
| -rw-r--r-- | gamemode/core/npc/sv_npcsystem.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gamemode/core/npc/sv_npcsystem.lua b/gamemode/core/npc/sv_npcsystem.lua index c53f6ae..0b250ac 100644 --- a/gamemode/core/npc/sv_npcsystem.lua +++ b/gamemode/core/npc/sv_npcsystem.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) |
