1. 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. tomasekpro

    tomasekpro Naked Wanderer

    Hello guys,
    I need Stop Timer when on server are 0 players. (REPEAT TIMER)
     
  2. tomasekpro

    tomasekpro Naked Wanderer

    SOLVED!
     
  3. mcnovinho08

    mcnovinho08 Scavenger Plugin Developer

    What do you mean, what are you going to do?
     
  4. tomasekpro

    tomasekpro Naked Wanderer

    I maked Beacon plugin (meters left to airdrop)
    and i have timer and it's spamming Noticepopup for player..
    But if 0 players online... Writing error CL ... something.
    This Timer detecting if 0 players on server. If it is true.. It destroy timer1.

    Yes, I know my english is very bad... Don't hate me :D
     
  5. mcnovinho08

    mcnovinho08 Scavenger Plugin Developer

    Code (Text):
    List<string> PlayersInSv = new List<string>();
    int PlayersI = 0;

    void OnPlayerConnected(NetUser netUser)
    {
    string ID = netuser.userID.ToString();
    Players++;
    Players.Add(ID);
    if (PlayersI < 0) {
    ....
    }
    else if (PlayersI < 0 ) {
    .....
    }
    }

     
    As I did not understand what you wanted to do I mounted a basic thing you can use it in other voids basically when the player enters add + a number then if player = 0 this function happens more if player is = 1 or greater happens .... .