aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/pac/sv_pac.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/pac/sv_pac.lua')
-rw-r--r--gamemode/core/pac/sv_pac.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/gamemode/core/pac/sv_pac.lua b/gamemode/core/pac/sv_pac.lua
index ad54106..6b60340 100644
--- a/gamemode/core/pac/sv_pac.lua
+++ b/gamemode/core/pac/sv_pac.lua
@@ -69,7 +69,10 @@ local function loadhashes()
end
end
loadhashes()
-concommand.Add("artery_reload_pac_hashes",loadhashes)
+concommand.Add("artery_reload_pac_hashes",function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
+ loadhashes()
+end)
concommand.Add("artery_print_pac_hashes",function(ply,cmd,args)
PrintTable(pachashes)
end)
@@ -187,7 +190,8 @@ net.Receive("artery_requestpac",function(ln,ply)
end)
--Does all the things needed to edit pac's live
-concommand.Add("artery_reload_pacs",function()
+concommand.Add("artery_reload_pacs",function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
pac_cache = {}
pacs_in_cache = 0
loadhashes()