Returns true if the player should take damage from the given attacker. Applying damage from this hook to the player taking damage will lead to infinite loop/crash.
DarkRP, a non-serious roleplay gamemode for Garry's Mod. - FPtje/DarkRP
github.com
SQL:
hook.Add( "PlayerShouldTakeDamage", "gay", function( ply, attacker )
if attacker:Team() ~= TEAM_МИЛИЦИЯ and ply:Team() == TEAM_МИЛИЦИЯ then
attacker:wanted(nil, 'напал', 10)
end
return true
end )