1. Im new to this libary so i want to make a ping command but how do i make it send a message in this lib?
     
  2. Wulf

    Wulf Community Admin

    What's wrong with the existing Ping plugin?
     
  3. No im learning this lib and i want to do a basic response like /ping and then it will respond pong
     
  4. Wulf

    Wulf Community Admin

    I'd suggest looking at the Ping plugin for an example. If you want a game-specific example, you'd need to check how look in the game's DLLs to see how to get the ping from the game and then send the message using one of the many chat sending methods from the Docs, Oxide's GitHub source, or Rust itself. I'd recommend getting familiar with C# and Visual Studio, and a decompiler such as JustDecompile if grabbing game-specific stuff.
     
  5. Why isnt it responding when i do /ping? it says unknown command

    [Command("ping")]
    void TestCommand(IPlayer player, string command, string[] args)
    {
    rust.QuoteSafe("pong lol");
    }
     
  6. Wulf

    Wulf Community Admin

    rust.QuoteSafe is not a chat sending method, and [Command] attribute is only for CovalencePlugin types, which I'm thinking your plugin is not one and likely not compiling if that's all you have. :p
     
  7. could you show how it should look like?
     
  8. Wulf

    Wulf Community Admin

    Are you making a Rust plugin or universal plugin?
     
  9. rust plugin
     
  10. Wulf

    Wulf Community Admin

    Code:
    using Oxide.Core;namespace Oxide.Plugins
    {
        [Info("MyPinger", "Tested8", "1.0.0")]
        public class MyPinger : RustPlugin
        {
             [ChatCommand("hello")]
             private void HelloCommand(BasePlayer player, string command, string[] args)
             {
                  PrintToChat(player, "This is the PrintToChat reply");
                  SendReply(player, "This is the SendReply reply");
             }
        }
    }
     
  11. thnx <3
     
  12. Is there a way to show a gui?
     
  13. Wulf

    Wulf Community Admin

    Yes, which there are examples of how to do that in existing plugins and threads in this forum section. We aren't going to write it all for you. ;)
     
  14. SendReply = PrintToChat ??
    What difference
     
  15. Wulf

    Wulf Community Admin

    Just different methods added at different points for different purposes.
     
  16. thx answer