diff options
Diffstat (limited to 'gamemode/sh_various/hooks.lua')
| -rw-r--r-- | gamemode/sh_various/hooks.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gamemode/sh_various/hooks.lua b/gamemode/sh_various/hooks.lua new file mode 100644 index 0000000..8983152 --- /dev/null +++ b/gamemode/sh_various/hooks.lua @@ -0,0 +1,14 @@ + +// :O + + +hook.Add( "PhysgunPickup", "CanPickupPlayer_MB", function(ply,ent) + GM = GM or GAMEMODE + + if (ent:IsPlayer() and GM:GetGlobalSHVar("PlayerPickup",false)) then + if (GM:GetGlobalSHVar("PlayerPickupAdmin",false)) then return (ply:IsAdmin()) end + return true + end +end) + +hook.Remove( "PostDrawEffects", "RenderHalos" ) |
