Jump to content

How to make a TOP online time like this


Recommended Posts

  
table = {} 
  
for i,v in pairs (getAccounts()) do 
local time = getAccountData(v, "on_time") 
table.insert(table,{v,time}) 
end 
  
table.sort(table) 
  
local 1= table[1] 
local 2= table[2] 
local 3= table[3] 
local first = getAccountName(1[1]) 
local secound= getAccountName(2[1]) 
local third= getAccountName(3[1]) 
  

Not tested, and could be put together better, but quick example.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...