local font_flag = require('moonloader').font_flag
local my_font = renderCreateFont('Verdana', 12, font_flag.BOLD + font_flag.SHADOW)
local n = false
local function timer(c)
if n then return end
n = true
local time = os.clock()
while true do wait(0)
renderFontDrawText(my_font, c, 10, 400, 0xFFFFFFFF)
if os.clock() - time > 1 then
c = c - 1
time = os.clock()
end
if c == 0 then break end
end
n = false
end
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('timer', function()
lua_thread.create(timer, 10)
end)
wait(-1)
end