leandroluck
New Member
- Joined
- Dec 24, 2010
- Messages
- 104
- Reaction score
- 1
Code:
local days = {
[10] = '00:00', -- [day] = 'hour(s):minute(s)'
[11] = '12:00'
}
function onLogin(cid)
local d = days[os.date('*t').day]
local os, h = os.date('%X'):sub(1, 5), {'', ''}
if d then
h[1] = os:sub(1, 2)..os:sub(-2)
h[2] = d:sub(1, 2)..d:sub(-2)
if tonumber(h[1]) > tonumber(h[2]) then
doPlayerSetRate(cid, SKILL__LEVEL, 2.0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Today is a day of double experience, enjoy!')
end
end
return true
end
I would like to convert this script to tfs 1.x +
but does not have the function doPlayerSetRate