Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by: Dustyroo and Dude(Smokey Bluntson's Brother)- is also why we have sick names for the hooks.
- local ranks = {
- "vipadmin",
- "realadmin",
- "vipmod",
- "mod",
- "vipoperator",
- "operator",
- "viptrial-operator",
- "trial-operator",
- "vipheadadmin",
- "headadmin",
- "co-owner",
- "owner",
- "vipsenioradmin",
- "senioradmin"
- } -- Ranks?
- hook.Add("PlayerSpawnedProp", "playerSpawnedAPropWowLetsCheckThereShitLikeTheNSA", function(_, _, ent) -- no prop crash(kinda a fall back)
- if ent:GetClass() == "prop_physics" then
- ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
- ent:SetCustomCollisionCheck(true)
- end
- end)
- if SERVER then
- hook.Add("OnPhysgunFreeze", "PhysgunFreezeThatPropLikeIFreezeMyCumAndDonateIt", function(_, _, ent, _) -- Disable Collide/ No prop jump
- if ent:GetClass() == "prop_physics" then
- timer.Simple(0.5, function() ent:SetCollisionGroup(COLLISION_GROUP_NONE) end)
- elseif nil then ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
- end
- end)
- hook.Add("PhysgunPickup", "FuckThisPropWeDontWantNoPlayerTrapOrPush", function(_, ent) -- no prop push or player trap
- if ent:GetClass() == "prop_physics" then
- ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
- end
- end)
- hook.Add("PlayerShouldTakeDamage", "PussyCantHurtMe", function(ply, ent, _) -- no car/player dammage
- if(ent:IsVehicle()) or (ent:GetClass() == "prop_physics") then
- return false
- end
- end)
- hook.Add("KeyPress", "ass", function(ply, key) -- freeze player with right click
- if ply:GetActiveWeapon() and ply:GetActiveWeapon():GetClass() == "weapon_physgun" and key == IN_ATTACK2 then
- local tr = util.TraceHull({
- start = ply:EyePos(),
- endpos = ply:EyePos() + (ply:GetAimVector() * 99999),
- filter = ply,
- mins = Vector(-10, -10, -10),
- maxs = Vector(10, 10, 10),
- mask = MASK_SHOT
- })
- local ent = tr.Entity
- if ent:IsPlayer() then
- if ent.IsPhysgunFroze == nil then
- ent.IsPhysgunFroze = false
- end
- ent.IsPhysgunFroze = not ent.IsPhysgunFroze
- ent:Freeze(ent.IsPhysgunFroze)
- end
- end
- end)
- end
- hook.Add("ShouldCollide", "SeeIfPropsAreFuckingAndShouldBeStopped", function(ent1, ent2) -- no prop crash
- return not (ent1:GetClass() == "prop_physics" and ent2:GetClass() == "prop_physics")
- end)
- hook.Add("InitPostEntity", "SetCollisionsNoRapeShit", function() -- no prop crash
- for i, v in ipairs(ents.GetAll()) do
- if v:GetClass() == "prop_physics" then
- v:SetCustomCollisionCheck(true)
- end
- end
- end)
- hook.Add("OnPhysgunReload", "Abuse", function(wep, ply) -- cant use r
- if not ply:IsAdmin() then
- return true
- end
- end)
- hook.Add("PlayerShouldTakeDamage", "fuckoff", function(ply, _) -- God Admin On Duty
- if ply:Team() == TEAM_ADMINONDUTY then
- for k, v in pairs(ranks) do
- if ply:GetUserGroup() == v then
- return false
- end
- end
- end
- end)
- hook.Add("PlayerNoClip", "CanIFly", function(ply, desiredState) -- Noclip Admin On Duty
- local MakeMeFly = true
- if ply:Team() == TEAM_ADMINONDUTY then
- for k, v in pairs(ranks) do
- if ply:GetUserGroup() == v then
- print(ply:GetName().." Has Used Noclip At "..os.date()) return true
- end
- end
- end
- return MakeMeFly
- end)
- function NigNog() -- Disable Car going into enable collision
- for i, ent in ipairs(ents.GetAll()) do
- if IsValid(ent) and ent:IsVehicle() and ent:GetCollisionGroup() == COLLISION_GROUP_WORLD then
- ent:SetCollisionGroup(COLLISION_GROUP_NONE)
- end
- end
- end
- timer.Create("NigNog", 1, 0, NigNog)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement