Advertisement
alditojeje

Untitled

Mar 22nd, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function eventPlayerWon(playerName, tiempoRonda, tiempoRespawn)
  2. if respawn then
  3. tfm.exec.respawnPlayer(playerName)
  4. colorReyes()
  5. end
  6. tfm.exec.setPlayerScore(playerName, 1, true)
  7. str = "\n<textformat tabstops='[70, 170, 300]'>"
  8. table.insert(times, {time = tiempoRespawn / 100, name = playerName})
  9. table.sort(times, function(i, v) return i.time < v.time end)
  10. for i, completion in ipairs(times) do
  11. if i <= 15 then
  12. if i < 10 then i = 0 .. i end
  13. str = str ..
  14. (i .. ' | ' .. completion.name .. '\t| ' ..
  15. completion.time .. 's\n')
  16. end
  17. end
  18. str = str .. '</textformat>'
  19. for nombre, p in pairs(tfm.get.room.playerList) do records(nombre) end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement