How can i stop propkillers/pushers/surfers?

Is there any scripts out there that will prevent this, i need it for a darkrp server, but falco removed it from FPP.

Just up the gravity a bit so the props slow down or look in the workshop I think there is a add on for that

You don’t need an addon for changing the gravity. sv_gravity 1234 in console

That will also effect players gravity.

[lua]
local function checkPropPush( ent, dmginfo )
if dmginfo:GetAttacker():GetClass() == “prop_physics” then
dmginfo:SetDamage(0)
end
end
hook.Add( “EntityTakeDamage”, “checkPropPush”, checkPropPush )
[/lua]

Try that out. It will get rid of any damage associated with props though, just so you know.

Put it in your:

*garrysmod/lua/autorun/server *

folder. It’s untested but it should work.

[editline]23rd January 2013[/editline]

just make the folders if you don’t have them

What happens if I propkill you with a button or some other thing like that?

If you have FPP, there is no way. It’s fairly hard to propkill right now, but using that code just makes it a hell of alot harder.

there’s a setting (i forget what setting, its clientside though) that makes it easier