Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script_name('timestamp')
- script_author('imring')
- function main()
- while not isSampAvailable() do wait(0) end
- font = renderCreateFont('Verdana', 8, 13)
- while true do wait(0)
- resX, resY = getScreenResolution()
- cordY = resY/30+200
- cordX = resX-250
- local month = getMonth(tonumber(os.date('%m', os.time())))
- local time = os.date('%d '..month..' %Y %X', os.time())
- renderFontDrawText(font, time, cordX, cordY, -1)
- end
- end
- function getMonth(month)
- local months = {
- [1] = 'Января',
- [2] = 'Февраля',
- [3] = 'Марта',
- [4] = 'Апреля',
- [5] = 'Мая',
- [6] = 'Июня',
- [7] = 'Июля',
- [8] = 'Августа',
- [9] = 'Сентября',
- [10] = 'Октября',
- [11] = 'Ноября',
- [12] = 'Декабря'
- }
- return months[month]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement