Guest User

Untitled

a guest
Feb 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function onSay(cid, words, param, channel)
  2. if(not checkExhausted(cid, 666, 10)) then
  3. return false
  4. end
  5. local tmp = getWorldUpTime()
  6. local hours = math.ceil(tmp / 3600) - 1
  7. local minutes = math.ceil((tmp - (3600 * hours)) / 60)
  8. if(minutes == 60) then
  9. minutes = 0
  10. hours = hours + 1
  11. end
  12.  
  13. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Uptime: " .. hours .. " hours and " .. minutes .. " minutes.")
  14. return true
  15. end
Add Comment
Please, Sign In to add comment