1. Wulf

    Wulf Community Admin Community Admin Oxide Developer

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

    [​IMG]
    76561198127163614

    Example usage:
    Code (C#):
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
    Code (Lua):
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", nil, "76561198127163614")
    ebba9c14a1038bab4890fdcc8d9043cf.png
     
    Miji, d0x, Scriptzyy and 4 others like this.
  2. PaiN

    PaiN Shotgun Ace Plugin Developer

    That's smart Wulf :p
    Nice
     
  3. ShadowEvil

    ShadowEvil Scavenger Plugin Developer

    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. LaserHydra

    LaserHydra Grenade Master Plugin Developer

    Yeah its sad that you need to have a Steam Account with Rust to use symbols.
     
  5. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I usually toss a penny game into the accounts. The accounts I use are accounts that used to have more purpose.
     
  6. ShadowEvil

    ShadowEvil Scavenger Plugin Developer

    Fair enough. Nice idea though. :)
     
  7. zorrigas

    zorrigas Naked Wanderer

    only get a "?" icon in chat!
     
  8. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That happens if you aren't logged into Steam Friends. It is the same with any icons in Rust.
     
  9. LaserHydra

    LaserHydra Grenade Master Plugin Developer

    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 Community Admin Oxide Developer

    That's how Rust works, so if it isn't working, then no idea.
     
  11. Norn

    Norn Airdrop Stalker Plugin Developer

    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 Community Admin Oxide Developer

    Norn likes this.
  13. Reynostrum

    Reynostrum Shack Builder Plugin Developer

    Code (Text):
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", nil, "76561198127163614")
    That is C#?
     
  14. LaserHydra

    LaserHydra Grenade Master Plugin Developer

    Its Lua
     
  15. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    The only Lua in there is the nil, which you can replace with null for C#.
    Code (C#):
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
     
    LaserHydra likes this.
  16. Reynostrum

    Reynostrum Shack Builder Plugin Developer

    Code (Text):
    rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
    That should work on C#?
     
  17. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Yes, it should work fine.
     
  18. Xhonor

    Xhonor Naked Wanderer

    How to make that this message is sent only to the person who entered the command / help?

    Code (Text):
    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");
            }
        }
    }
    --- Double Post Merged, Mar 23, 2016 ---
    Prompt please)
     
  19. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    rust.SendChatMessage(player, "Hello", null, "76561197962021169");
     
    Xhonor likes this.
  20. Xhonor

    Xhonor Naked Wanderer

    Code (Text):
    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'