Advertisement
Guest User

V4.1

a guest
May 31st, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.88 KB | None | 0 0
  1. -- Made by: Dustyroo and Dude(Smokey Bluntson's Brother)- is also why we have sick names for the hooks.
  2.  
  3. local ranks = {
  4.   "vipadmin",
  5.   "realadmin",
  6.   "vipmod",
  7.   "mod",
  8.   "vipoperator",
  9.   "operator",
  10.   "viptrial-operator",
  11.   "trial-operator",
  12.   "vipheadadmin",
  13.   "headadmin",
  14.   "co-owner",
  15.   "owner",
  16.   "vipsenioradmin",
  17.   "senioradmin"
  18. } -- Ranks?
  19.  
  20. hook.Add("PlayerSpawnedProp", "playerSpawnedAPropWowLetsCheckThereShitLikeTheNSA", function(_, _, ent) -- no prop crash(kinda a fall back)
  21.     if ent:GetClass() == "prop_physics" then
  22.         ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
  23.         ent:SetCustomCollisionCheck(true)
  24.     end
  25. end)
  26.  
  27. if SERVER then
  28.     hook.Add("OnPhysgunFreeze", "PhysgunFreezeThatPropLikeIFreezeMyCumAndDonateIt", function(_, _, ent, _) -- Disable Collide/ No prop jump
  29.         if ent:GetClass() == "prop_physics" then
  30.         timer.Simple(0.5, function() ent:SetCollisionGroup(COLLISION_GROUP_NONE) end)
  31.         elseif nil then ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
  32.     end
  33. end)
  34.    
  35.     hook.Add("PhysgunPickup", "FuckThisPropWeDontWantNoPlayerTrapOrPush", function(_, ent) -- no prop push or player trap
  36.         if ent:GetClass() == "prop_physics" then
  37.             ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
  38.         end
  39.     end)
  40.    
  41.     hook.Add("PlayerShouldTakeDamage", "PussyCantHurtMe", function(ply, ent, _) -- no car/player dammage
  42.         if(ent:IsVehicle()) or (ent:GetClass() == "prop_physics") then
  43.             return false
  44.         end
  45.     end)
  46.  
  47.  hook.Add("KeyPress", "ass", function(ply, key) -- freeze player with right click
  48.         if ply:GetActiveWeapon() and ply:GetActiveWeapon():GetClass() == "weapon_physgun" and key == IN_ATTACK2 then
  49.             local tr = util.TraceHull({
  50.                 start = ply:EyePos(),
  51.                 endpos = ply:EyePos() + (ply:GetAimVector() * 99999),
  52.                 filter = ply,
  53.                 mins = Vector(-10, -10, -10),
  54.                 maxs = Vector(10, 10, 10),
  55.                 mask = MASK_SHOT
  56.             })
  57.  
  58.             local ent = tr.Entity
  59.  
  60.             if ent:IsPlayer() then
  61.                 if ent.IsPhysgunFroze == nil then
  62.                     ent.IsPhysgunFroze = false
  63.                 end
  64.                 ent.IsPhysgunFroze = not ent.IsPhysgunFroze
  65.                 ent:Freeze(ent.IsPhysgunFroze)
  66.             end
  67.         end
  68.     end)
  69. end
  70.  
  71. hook.Add("ShouldCollide", "SeeIfPropsAreFuckingAndShouldBeStopped", function(ent1, ent2) -- no prop crash
  72.     return not  (ent1:GetClass() == "prop_physics" and ent2:GetClass() == "prop_physics")
  73. end)
  74.  
  75. hook.Add("InitPostEntity", "SetCollisionsNoRapeShit", function() -- no prop crash
  76.     for i, v in ipairs(ents.GetAll()) do
  77.         if v:GetClass() == "prop_physics" then
  78.             v:SetCustomCollisionCheck(true)
  79.         end
  80.     end
  81. end)
  82.  
  83. hook.Add("OnPhysgunReload", "Abuse", function(wep, ply) -- cant use r
  84.   if not ply:IsAdmin() then
  85.    return true
  86.  end
  87. end)
  88.  
  89. hook.Add("PlayerShouldTakeDamage", "fuckoff", function(ply, _) -- God Admin On Duty
  90.   if ply:Team() == TEAM_ADMINONDUTY then
  91.       for k, v in pairs(ranks) do
  92.         if ply:GetUserGroup() == v then
  93.           return false
  94.         end
  95.     end
  96.   end
  97. end)
  98.  
  99. hook.Add("PlayerNoClip", "CanIFly", function(ply, desiredState) -- Noclip Admin On Duty
  100.   local MakeMeFly = true
  101.   if ply:Team() == TEAM_ADMINONDUTY then
  102.     for k, v in pairs(ranks) do
  103.         if ply:GetUserGroup() == v then
  104.             print(ply:GetName().." Has Used Noclip At "..os.date()) return true
  105.         end
  106.     end
  107.   end
  108.   return MakeMeFly
  109. end)
  110.  
  111. function NigNog() -- Disable Car going into enable collision
  112.   for i, ent in ipairs(ents.GetAll()) do
  113.       if IsValid(ent) and ent:IsVehicle() and ent:GetCollisionGroup() == COLLISION_GROUP_WORLD then
  114.           ent:SetCollisionGroup(COLLISION_GROUP_NONE)
  115.       end
  116.     end
  117. end
  118. timer.Create("NigNog", 1, 0, NigNog)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement