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. #KodakPlay!!!

    #KodakPlay!!! Plugin Developer

  2. mcnovinho08

    mcnovinho08 Plugin Developer

    Code (Text):
            static int PrimeiroAEntrar = 0;
            static List<string> PrimeiroAEntrar = new List<string>();
            void OnPlayerConnected(NetUser netuser)
                string Name = netuser.displayName;
                string ID = netuser.userID.ToString();
                if (PrimeiroAEntrar == 1) {
                rust.SendChatMessage(netuser, chatPrefix, string.Format(GetMessage("{0} foi o primeiro a entrar no servidor", ID), Name));
                PrimeiroAEntrar.Add(ID);    }
            Quando desconecta o player você coloca
            if (PrimeiroAEntrar == 1) { PrimeiroAEntrar.Clear(); }
    I mounted here quickly I hope I basically help you when the first player comes in will change the int to one like this, sending a message to everyone who is on the server and adding it to a list I hope I have helped!
    --- Double Post Merged, Mar 29, 2017 ---

    Code (Text):
            void OnPlayerDisconnected(NetUser netuser)
                string ID = netuser.userID.ToString();
                if (PrimeiroAEntrar.Contains(ID))
                    PrimeiroAEntrar = 0;
                    obs : quando o cara deslogar basicamente ira limpar os players que entraram depois então o proximo a  entrar seria o primeiro que logou.
                    Você pode colcoar isso basicamente quando reinicia o servidor para ficar melhor
  3. Gute

    Gute Plugin Developer

    In other ways