// Token: 0x060027D7 RID: 10199 RVA: 0x000F1888 File Offset: 0x000EFC88 public static void say(string text, Color color, bool isRich = false) { if (Provider.isServer) { if (text.Length > ChatManager.LENGTH) { text = text.Substring(0, ChatManager.LENGTH); } if (Dedicator.isDedicated) { ChatManager.manager.channel.send("tellChat", ESteamCall.OTHERS, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] { CSteamID.Nil, 4, color, isRich, text }); } else { ChatManager.list(CSteamID.Nil, EChatMode.SAY, color, isRich, text); } } }
public void tellChat(CSteamID steamID, CSteamID owner, byte mode, Color color, bool rich, string text) { if (base.channel.checkServer(steamID)) { ChatManager.list(owner, (EChatMode)mode, color, rich, text); } }
// Token: 0x060027D4 RID: 10196 RVA: 0x000F171C File Offset: 0x000EFB1C public static void sendChat(EChatMode mode, string text) { if (!Provider.isServer) { ChatManager.manager.channel.send("askChat", ESteamCall.SERVER, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] { (byte)mode, text }); } else if (!Dedicator.isDedicated) { SteamPlayer steamPlayer = PlayerTool.getSteamPlayer(Provider.client); if (steamPlayer == null) { return; } Color color = (!Provider.isPro) ? Color.white : Palette.PRO; bool isRich = false; bool flag = true; if (ChatManager.onChatted != null) { ChatManager.onChatted(steamPlayer, mode, ref color, ref isRich, text, ref flag); } if (ChatManager.process(steamPlayer, text) && flag) { ChatManager.list(Provider.client, mode, color, isRich, text); } } }
public static void say(CSteamID target, string text, Color color, EChatMode mode) { if (Provider.isServer) { if (text.Length > ChatManager.LENGTH) { text = text.Substring(0, ChatManager.LENGTH); } if (Dedicator.isDedicated) { ChatManager.manager.channel.send("tellChat", target, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] { CSteamID.Nil, (byte)mode, color, text }); } else { ChatManager.list(CSteamID.Nil, mode, color, text); } } }