1. Wulf

    Wulf Community Admin

    I started a few accounts that can be used for icons in chat messages.

    [​IMG]
    76561198127163614

    Example usage:
    Code:
    rust.BroadcastChat(null, "Follow us on Twitter @OxideMod for updates!", "76561198127163614");
    Code:
    rust.BroadcastChat(nil, "Follow us on Twitter @OxideMod for updates!", "76561198127163614")
    ebba9c14a1038bab4890fdcc8d9043cf.png
     
    Last edited: Jan 6, 2018
  2. That's smart Wulf :p
    Nice
     
  3. Wish there was a way to do that OTHER than making a steam account... I mean I would think steam would delete accounts that haven't had a game within a couple months or something.... lol Or idk... Nice idea though! :)
     
  4. Yeah its sad that you need to have a Steam Account with Rust to use symbols.
     
  5. Wulf

    Wulf Community Admin

    I usually toss a penny game into the accounts. The accounts I use are accounts that used to have more purpose.
     
  6. Fair enough. Nice idea though. :)
     
  7. only get a "?" icon in chat!
     
  8. Wulf

    Wulf Community Admin

    That happens if you aren't logged into Steam Friends. It is the same with any icons in Rust.
     
  9. How do you mean that lol. "Logged into Steam Friends". Its happening for me too, and I aint offline on steam.
     
  10. Wulf

    Wulf Community Admin

    That's how Rust works, so if it isn't working, then no idea.
     
  11. How do I use this in c#, when sending a message to individual players?

    Can't seem to figure it out
     
  12. Wulf

    Wulf Community Admin

  13. Code:
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", nil, "76561198127163614")
    That is C#?
     
  14. Its Lua
     
  15. Wulf

    Wulf Community Admin

    The only Lua in there is the nil, which you can replace with null for C#.
    Code:
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
     
  16. Code:
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
    That should work on C#?
     
  17. Wulf

    Wulf Community Admin

    Yes, it should work fine.
     
  18. How to make that this message is sent only to the person who entered the command / help?

    Code:
    using System.Text.RegularExpressions;
    using System.Collections.Generic;
    using Oxide.Game.Rust.Libraries;
    using Oxide.Core.Plugins;
    using System.Linq;
    using Oxide.Core;
    using System;namespace Oxide.Plugins
    {
        [Info("Help Plugin", "Xhonor", "1.0.0")]    class HelpInfo : RustPlugin
        {
            [ChatCommand("help")]
            void TestCommand(BasePlayer player, string command, string[] args)
            {
                rust.BroadcastChat("Hello", null, "76561197962021169");
            }
        }
    }
    [DOUBLEPOST=1458768272][/DOUBLEPOST]
    Prompt please)
     
  19. Wulf

    Wulf Community Admin

    rust.SendChatMessage(player, "Hello", null, "76561197962021169");
     
  20. Code:
    using System.Text.RegularExpressions;
    using System.Collections.Generic;
    using Oxide.Game.Rust.Libraries;
    using Oxide.Core.Plugins;
    using System.Linq;
    using Oxide.Core;
    using System;namespace Oxide.Plugins
    {
        [Info("Help Plugin", "Xhonor", "1.0.0")]    class HelpInfo : RustPlugin
        {
            [ChatCommand("help")]
            void cmdHelp(BasePlayer player, string cmd, string[] args)
            {
                rust.SendChatMessage("Hello", null, "76561197962021169");
            }
        }
    }
    Now i have error message ;(
    [Error] HelpInfo.cs(36,25): error CS1503: Argument `#1' cannot convert `string' expression to type `BasePlayer'