public static bool Damage(SvPlayer player, ref DamageIndex type, ref float amount, ref ShPlayer attacker, ref Collider collider) { if (CheckGodMode.Run(player, amount)) { return(true); } if (player.WillDieByDamage(amount)) { OnDeath(player, ref type, ref amount, ref attacker, ref collider); } return(false); }
public static bool SvAddCrime(SvPlayer player, ref byte crimeIndex, ref ShEntity victim) { try { if (GodModeLevel >= 1 && CheckGodMode.Run(player, null, "<color=#b7b5b5>Blocked crime and losing EXP!</color>")) { return(true); } } catch (Exception ex) { ErrorLogging.Run(ex); } return(false); }