I started a few accounts that can be used for icons in chat messages.
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")
Using custom chat icons in Rust
Discussion in 'Guides and Tips' started by Wulf, Jun 12, 2015.
-
Wulf Community Admin
-
That's smart Wulf
Nice -
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!
-
Yeah its sad that you need to have a Steam Account with Rust to use symbols.
-
Wulf Community Admin
-
-
only get a "?" icon in chat!
-
Wulf Community Admin
-
-
Wulf Community Admin
-
How do I use this in c#, when sending a message to individual players?
Can't seem to figure it out -
Wulf Community Admin
-
Code:
rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", nil, "76561198127163614")
-
-
Wulf Community Admin
Code:rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
-
Code:
rust.BroadcastChat("Follow us on Twitter @OxideMod for updates!", null, "76561198127163614");
-
Wulf Community Admin
-
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"); } } }
-
Wulf Community Admin
-
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"); } } }
[Error] HelpInfo.cs(36,25): error CS1503: Argument `#1' cannot convert `string' expression to type `BasePlayer'