Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }