Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStepIn(cid, item, pos)
- local times = 12 -- Não mexa, = equação (TOTAL MINUTES/IDLE MINUTES)
- if not isPlayer(cid) then return true end
- if getPlayerStorageValue(cid, 1437) > -1 then return true end
- for i = 1, times do
- addEvent(doPlayerResetIdleTime, 10*60*1000, cid, true)
- setPlayerStorageValue(cid, 1437, -1)
- end
- return true
- end
- function onStepOut(cid, item, pos)
- if isPlayer(cid) then
- setPlayerStorageValue(cid, 1437, 1)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement