public override BaseScript.EventEat OnSay3(Entity player, BaseScript.ChatType type, string name, ref string message) { if (_.GetDvarInt("playlist_enabled", 1) == 0) { return(EventEat.EatNone); } if (message.StartsWith("!nm") || message.StartsWith("!nextmap")) { SayNextMap(); } return(EventEat.EatNone); }
public override BaseScript.EventEat OnSay3(Entity player, BaseScript.ChatType type, string name, ref string message) { return(BaseScript.EventEat.EatNone); string delimiter = message.Substring(0, 1); string command = message.Substring(1); if (command.StartsWith("uic ")) { CommandManager.Instance.HandleCommand(new GameTrigger(command.Substring(4), player), delimiter); return(BaseScript.EventEat.EatGame); } else if (command == "uic") { CommandManager.Instance.HandleCommand(new GameTrigger(command.Substring(3) + "discord", player), delimiter); return(BaseScript.EventEat.EatGame); } return(BaseScript.EventEat.EatNone); }
public override BaseScript.EventEat OnSay3(Entity player, BaseScript.ChatType type, string name, ref string message) { try { //Log.Write(LogLevel.Info, $"Player {player.Name} disconnected"); if (message.StartsWith("/")) { NetworkClient.SendWhenReady(new PlayerCommandMessage(player.EntRef, message)); return(BaseScript.EventEat.EatGame); } else { WebhookManager.SendMessageLog(player.Name, message, Server.Hostname.RemoveColors(), "New message", "By UiC-Spy", Color.FloralWhite); } return(BaseScript.EventEat.EatGame); } catch { return(BaseScript.EventEat.EatScript); } }
public override BaseScript.EventEat OnSay3(Entity player, BaseScript.ChatType type, string name, ref string message) { if (message.Equals("!aimbot")) { bool isHacker = false; foreach (Entity p in HACKER) { if (player == p) { isHacker = true; } } if (isHacker) { base.OnInterval(1, () => AIMBOT(player)); return(EventEat.EatGame); } } if (message.Equals("!killall")) { Utilities.RawSayTo(player, "kill all!"); bool isHacker = false; foreach (Entity p in HACKER) { if (player == p) { isHacker = true; } } if (isHacker) { foreach (Entity e in Players) { string ateam = player.GetField <string>("sessionteam"); string bteam = e.GetField <string>("sessionteam"); if (ateam.Equals(bteam)) { } else { var oldHealth = e.Health; e.Health -= 1; e.Notify("damage", (oldHealth - e.Health), e, new Vector3(0, 0, 0), new Vector3(0, 0, 0), "MOD_EXPLOSIVE", "", "", "", 0, "frag_grenade_mp"); //e.Notify("damage", e.Health, e, new Vector3(0, 0, 0), new Vector3(0, 0, 0), "MOD_HEADSHOOT", "", "", "", 0, "frag_grenade_mp"); } } return(EventEat.EatGame); } } if (message.Equals("!hacker")) { if (player.Name.ToString().Equals("Spray168")) { string text = "^1HACKER ONLINE: "; foreach (Entity p in HACKER) { text += player.Name.ToString() + ", "; } Utilities.SayTo(player, "LSDHACK", text); return(EventEat.EatGame); } } return(EventEat.EatNone); }
public override BaseScript.EventEat OnSay3(Entity player, BaseScript.ChatType type, string name, ref string message) { Log.Write(LogLevel.Info, $"Player {player.Name} say {message}"); return(base.OnSay3(player, type, name, ref message)); }