1. Hello everyone! Please show an example of a simple plugin that displays a message when the player connects to the server?
    I tried to do so, but I did not get.
    Please show an example of the plugin.
    Code:
    using System;
    using UnityEngine;
    using Oxide.Core;
    using Oxide.Core.Plugins;
    using Rust;namespace Oxide.Plugins
    {
        [Info("Sample", "Mira", "1.0.1", ResourceId = 730)]
        class Sample : RustPlugin
        {
            void OnPlayerInit(BasePlayer player)
    {
        var message = "Hello! Welcome to server!";
        rust.SendChatMessage({ player, message });
    }
        
        }
    }
    
     
  2. Wulf

    Wulf Community Admin

  3. Thanks!!
    Another question is how to transfer data such as MS SQL? Or where else and how to transmit data? What would then I used them on the web site
     
  4. Wulf

    Wulf Community Admin

    MySQL or MSSQL? For MySQL, you can use the Oxide.Ext.MySql extension. MSSQL isn't supported, so you'd need to use webrequests and an external script on a website to connect to the MSSQL database.
     
  5. Thank you! I just wanted to MS SQL.
    Site ASP.NET, it is more convenient to work with MS SQL, but webrequest also good, where to look in the documentation webrequests oxide C#?
     
  6. Wulf

    Wulf Community Admin