Addon that prevents killing in god and if possible in noclip.

Does such a thing exist?

google for it, if you dont find anything, use some hooks to check if the attacker is in god/noclip, and return false, done.

[lua]function GM:ScalePlayerDamage( ply, hitgroup, dmg )
if dmg:GetAttacker():IsPlayer() and dmg:GetAttacker():HasGodMode() or dmg:GetAttacker():IsPlayer() and dmg:GetAttacker().noclipping then

                                      return true           



There you go. But, noclipping is a var you must set, so you’ll need to do this first:

[lua]function GM:PlayerNoClip( ply, bool )
ply.noclipping = bool