public void OnPlayerHurt(HurtingEventArgs ev)
        {
            if (ev.Amount >= ev.Target.Health)
            {
                string kosinfo      = "<color=white>";
                string detainedinfo = "<color=white>";
                if (ev.Target.Role == RoleType.ClassD && SnapDetection.NotSCP(ev.Attacker) && ev.Target.Role != ev.Attacker.Role)
                {
                    kosinfo = "<color=red>****POSSIBLE KOS****<color=white> ";
                }
                if (ev.Target.IsCuffed && SnapDetection.NotSCP(ev.Attacker) && ev.Target.Role != ev.Attacker.Role)
                {
                    detainedinfo = "<color=blue>****DETAINED KILL****<color=white> ";
                }

                foreach (Exiled.API.Features.Player ply in Exiled.API.Features.Player.List)
                {
                    if (ply.ReferenceHub.serverRoles.RemoteAdmin)
                    {
                        ply.RemoteAdminMessage($"{kosinfo}{detainedinfo}{ev.Attacker.Nickname} {ev.Attacker.UserId} ({ev.Attacker.Role}) killed {ev.Target.Nickname} ({ev.Target.Role}) with {DamageTypes.FromIndex(ev.HitInformations.Tool).name}.</color>", true, "KingsSCPSL");
                    }
                }
            }
        }
示例#2
0
 public void OnRoundStart()
 {
     SnapDetection.ResetVarsAndCheckSnap();
 }