You would need to store player data in a database of some sort, or vault, and then read all records to display the disconnected player data. Your current code handles only those that are actively connected.
There are some things in your code that are wrong as well.