1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Oxide for Rust Legacy has been discontinued and is no longer supported. No updates or additions will be made, and Rust Legacy-specific plugin submissions will no longer be accepted. We recommend upgrading to the latest version of Rust as able.
    Dismiss Notice
  1. PreFiX

    PreFiX Plugin Developer

    Code (Text):

            //disconnect
            void OnPlayerDisconected(uLink.NetworkPlayer networkPlayer)
            {
                Puts("Working");
            }
     
    As you can see I have some code out here and it doesn't do anything. Atleast Puts("Working"); should it be okey....
    --- Double Post Merged, Apr 27, 2016 ---
    I think I found the problem!!!!
    Oxide API for Rust Legacy contains bad example (Bad function name)!
    It should be
    Code (Text):

    void OnPlayerDisconnected(uLink.NetworkPlayer networkPlayer)
    {
    Puts("OnPlayerDisconnected works!");
    }
     
    @Wulf fix api example :)
     
    Last edited: Apr 27, 2016
    Wulf likes this.
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Fixed, thanks. ;)
     
  3. PreFiX

    PreFiX Plugin Developer

    It's still not fixed yet.
    [​IMG]
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Locally it is. ;)

    I just haven't pushed it yet.