local ffi = require('ffi')
ffi.cdef [[
unsigned long GetTickCount();
]]
local function getTickCount()
return ffi.C.GetTickCount()
end
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('gtc', function()
sampAddChatMessage(getTickCount(), -1)
end)
wait(-1)
end