Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PropFunc1(ply,ent)
- ent:SetColor(Color(ent:GetColor().r,ent:GetColor().g,ent:GetColor().b,150))
- ent:GetPhysicsObject():EnableCollisions(false)
- if ent:IsPlayer() then return false end
- if ent:GetNetworkedString("Owner") != ply:Nick() then return false end
- return true
- end
- function PropFunc2(ply,ent)
- ent:SetColor(Color(ent:GetColor().r,ent:GetColor().g,ent:GetColor().b,255))
- ent:GetPhysicsObject():EnableCollisions(true)
- if ent:IsPlayer() then return false end
- if ent:GetNetworkedString("Owner") != ply:Nick() then return false end
- return true
- end
- hook.Add("PhysgunPickup","PropFunction1",PropFunc1)
- hook.Add("PhysgunDrop","PropFunction2",PropFunc2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement