Code:
function onSay(player, words, param)
local hours = player:getStorageValue(questStorage) > 0 and math.ceil((player:getStorageValue(questStorage)-os.time())/60/60) or 0
if player:getStorageValue(bonusStorage) > os.time() then
player:sendTextMessage(TALKTYPE_ORANGE_2, "You have "..hours.." hour(s) of time remainning.")
else
player:sendTextMessage(TALKTYPE_ORANGE_2, "You don't have any quest activated.")
end
return false
end
Result:
You have 4 hour (s) of time remainning.
Hello, i tried to make this look like:
Code:
You have 3 hour (s) and 27 minute (s) of time remainning.
But i don't really know how to.. Can please someone help me?