diff options
| author | Apickx <Apickx@cogarr.org> | 2015-12-28 19:18:30 -0500 |
|---|---|---|
| committer | Apickx <Apickx@cogarr.org> | 2015-12-28 19:18:30 -0500 |
| commit | 868e729d68b5913716bfe5ddb512f4099851e9a2 (patch) | |
| tree | 6441108754145dfd68a6e23bea382b5cb1ab63d5 /gamemode/sh_various/hooks.lua | |
| download | gearfox-868e729d68b5913716bfe5ddb512f4099851e9a2.tar.gz gearfox-868e729d68b5913716bfe5ddb512f4099851e9a2.tar.bz2 gearfox-868e729d68b5913716bfe5ddb512f4099851e9a2.zip | |
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" ) |
