1. Oxide 1.18 has been discontinued and is no longer supported. Please do not post requests for Oxide 1.18 plugins or support.
    We recommend upgrading to Oxide 2.0 as able. Plugins can be easily updated to support it as well.
  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 .... .