[Resolved] Server Script

Discussion in 'Help' started by mrshopefully95, Jan 16, 2017.

Moderators: E.T., Zoroark
  1. mrshopefully95

    mrshopefully95 New Member

    Joined:
    Jan 16, 2017
    Messages:
    3
    Likes Received:
    0
    Hey there,

    I tried to open a Server in PO and I want to list all players that will log in, but I think there are missing some scripts for that.

    Can somebody help me please?
     
  2. Strudels

    Strudels ・◡・ Super Moderator Server Administrator Super Moderator Server Administrator

    Joined:
    Oct 31, 2013
    Messages:
    322
    Likes Received:
    1,104
    PO Trainer Name:
    Strudels/Ripper Roo
    You need a script(or is it a script function?) that lists players that will log in? Did you mean players that have logged in before?

    Your post isn't very clear.
     
  3. mrshopefully95

    mrshopefully95 New Member

    Joined:
    Jan 16, 2017
    Messages:
    3
    Likes Received:
    0
    Oh sorry xD
    I mean a script that lists all players, which are logged in in my server.
     
  4. Strudels

    Strudels ・◡・ Super Moderator Server Administrator Super Moderator Server Administrator

    Joined:
    Oct 31, 2013
    Messages:
    322
    Likes Received:
    1,104
    PO Trainer Name:
    Strudels/Ripper Roo
    Does your server currently run any script at all?

    If you have a form of command system set up you can just make a command that prints
    Code (text):
    1. sys.playerIds().map(function(id) {
    2.     return sys.name(id);
    3. }).join(", ");
     
  5. mrshopefully95

    mrshopefully95 New Member

    Joined:
    Jan 16, 2017
    Messages:
    3
    Likes Received:
    0
  6. Strudels

    Strudels ・◡・ Super Moderator Server Administrator Super Moderator Server Administrator

    Joined:
    Oct 31, 2013
    Messages:
    322
    Likes Received:
    1,104
    PO Trainer Name:
    Strudels/Ripper Roo
Moderators: E.T., Zoroark