ellvo
Advanced OT User
- Joined
- Sep 23, 2016
- Messages
- 1,223
- Reaction score
- 173
As guys under corrected me,reposting
I would need some help with os time() how it is working like or exactly,I need help with something like I need to set storage 9999,1 for 1 minute how to do that.
if player:getStorageValue(56148) < 0 then
player:setStorageValue(cid, 56148, os.time()+ 1 * 60) -- (it is default -1 need to make it 1 idk how)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You may enter this tp again in 1 minute.')
end
any ideas ?
if player:getStorageValue(56148) == 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'It is less then one minute you have entered the tp.')
end
I would need some help with os time() how it is working like or exactly,I need help with something like I need to set storage 9999,1 for 1 minute how to do that.
if player:getStorageValue(56148) < 0 then
player:setStorageValue(cid, 56148, os.time()+ 1 * 60) -- (it is default -1 need to make it 1 idk how)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You may enter this tp again in 1 minute.')
end
any ideas ?
if player:getStorageValue(56148) == 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'It is less then one minute you have entered the tp.')
end
Last edited: