So on my server I have this script to disable damage to players:
function DisablePlayerPropDamage(v,a) if a:IsValid() and a:GetClass() == "prop_physics" or a:IsValid() and a:GetClass() == "prop_vehicle_jeep" or a:IsValid() and a:GetClass() == "mx_radio" or a:IsValid() and a:GetClass() == "worldspawn" then return false end end hook.Add( "PlayerShouldTakeDamage", "DisablePlayerPropDamage", DisablePlayerPropDamage )
But say I got a car and physgunned it over someones head and dropped it, the car kills them, in console it says:
Computer600 was killed by worldspawn
How would I go about disabling the damage of the car but I still want fall damage.