Advertisement
Robonado

10 Melhores

Apr 30th, 2015
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. Leaderboard= table.foreach(table,function(i,v) _G[i]= v; end) or function()
  2.     local str, lb= '<n>%d. <v>%s <n>- <j>%s', {};
  3.     r= foreach(tfm.get.room.playerList,function(i,v) lb[#lb+1]= {s=v.score,n=i}; end) or sort(lb,function(a,b) return a.s > b.s; end);
  4.     return foreach(lb,function(i,v) r= i < 11 and (not r and str:format(i,v.n,v.s) or r..'\n'..str:format(i,v.n,v.s)) or r; end) or r;
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement