Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function teamPrevention( ply, inf, att, amt, dmg )
- if att:GetClass() == "prop_physics" then
- dmg:ScaleDamage(0)
- end
- if ply:IsPlayer() then
- if ply:Team() == TEAM_MAYOR then
- if inf:Team() == TEAM_SWAT or inf:Team() == TEAM_POLICE or inf:Team() == TEAM_CHIEF then
- dmg:ScaleDamage( 0 )
- end
- end
- end
- end
- hook.Add("EntityTakeDamage", "teamprevention", teamPrevention )
- function PhysPickup(ply,ent)
- if ply:IsAdmin() then
- return true
- end
- end
- hook.Add("PhysgunPickup", "physpick", PhysPickup)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement