public static void Ban(BasePlayer ply, string reason)
 {
     if (EACServer.eacScout != null)
     {
         EACServer.eacScout.SendKickReport(ply.userID.ToString(), reason, KickReasonCategory.KickReasonCheating);
     }
     AntiHack.AddRecord(ply, AntiHack.bans);
     ConsoleSystem.Run(ConsoleSystem.Option.Server, "ban", new object[] { ply.userID, reason });
 }
Example #2
0
 public static void Kick(BasePlayer ply, string reason)
 {
     if (EACServer.eacScout != null)
     {
         EACServer.eacScout.SendKickReport(ply.userID.ToString(), reason, (KickReasonCategory)4);
     }
     AntiHack.AddRecord(ply, AntiHack.kicks);
     ConsoleSystem.Run(ConsoleSystem.Option.get_Server(), "kick", new object[2]
     {
         (object)ply.userID,
         (object)reason
     });
 }