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/combat/sv_weaponswing.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/combat/sv_weaponswing.lua')
| -rw-r--r-- | gamemode/core/combat/sv_weaponswing.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gamemode/core/combat/sv_weaponswing.lua b/gamemode/core/combat/sv_weaponswing.lua index 0b37c0a..29afd7a 100644 --- a/gamemode/core/combat/sv_weaponswing.lua +++ b/gamemode/core/combat/sv_weaponswing.lua @@ -91,6 +91,7 @@ end --Create a fake thing in front of the player, do the swing animations, and record them. concommand.Add("artery_recordanimations",function(ply,cmd,args) + if not ply:IsAdmin() then return end local e = ply e:SetAngles(Angle(0,0,0)) e:SetEyeAngles(Angle(0,0,0)) @@ -177,6 +178,7 @@ concommand.Add("artery_checkSwingable",function(ply,cmd,args) end) concommand.Add("artery_clearswingable",function(ply,cmd,args) + if not ply:IsAdmin() then return end swingable = {} end) |
