1. Hello
    I am Brazilian
    I already I program in C #, VB and C ++
    can someone show me the first steps to
    set up a project so I can start making plugins

    I'm sorry if there is already a topical
    I searched and not found

    I found this link which is very useful
    http://docs.oxidemod.org/#broadcastchat

    grateful!
     
  2. Wulf

    Wulf Community Admin

    1. Setup a local development server by following the steps here.
    2. Once you've started the server once, create YourPluginName.cs in the server/yourserveridentity/oxide/plugins.
    3. Open YourPluginName.cs with Visual Studio (preferably 2015) or your favorite editor, and start writing your plugin.
    4. If you need examples of CSharp plugins, look at the examples found around the forum or Resources section.
     
  3. If you're using Visual Studio 2015, you should clone the Oxide repository from Github and create your C# plugin files in Oxide.Ext.Rust/Plugins/ alongside the SamplePlugin.cs file. That way all references will be resolved and you will have intellisense for the Oxide core, the C# plugin API as well as the main Rust assembly.
     
  4. thanks guys
    so no need to create a project?
    only create the arquivo.cs and use the correct imports?

    I do not know why
    more my oxide has no folder
    my rust server is "C:\steamcmd\rust_server\server"
    e have "C:\steamcmd\rust_server\server\plugins" <-here I install the plugins more functions normally
    I must have done something wrong in the installation kkkkkk

    e have "C:\steamcmd\rust_server\server\my_server_identity"
    and has folders "cfg","persistence" and "save"
    is there any page talking more on imports available?
     
  5. Wulf

    Wulf Community Admin

    Make sure you've installed Oxide in the right location and have started the server at least once. The folders won't appear till you've done that.
     
  6. You use the Oxide.Ext.Rust project in the Oxide solution for development and just need the .cs file when you deploy to a server.
     
  7. yes I've started the server
    [DOUBLEPOST=1426303797,1426271743][/DOUBLEPOST]a simple example of hello world
    C #
    Code:
    using System.Collections.Generic;
    using System;
    using System.Reflection;
    using System.Data;
    using UnityEngine;
    using Oxide.Core;
    using Oxide.Core.Configuration;
    using Oxide.Core.Logging;
    using Oxide.Core.Plugins;namespace Oxide.Plugins
    {
        [Info("HelloWord", "igor", 1.0)]
        class HelloWord : RustPlugin
        {
           void OnPlayerInit(BasePlayer player){
               SendReply((BasePlayer)player, "HelloWord");
           }
        }
    }
     
    Last edited by a moderator: Mar 14, 2015