Elexonic
Well-Known Member
- Joined
- Jun 18, 2008
- Messages
- 1,920
- Reaction score
- 59
Need set player storage with an object .. but I want that last one hour storage. and that when you remove the storage to that player.
as serious?
i made this script.. but don`t work.. i think.. no remove storage..
as serious?
i made this script.. but don`t work.. i think.. no remove storage..
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
exhaustionInSeconds = 3,
storage = 11551
}
if exhaustion.check(cid, config.storage) == false then
exhaustion.set(cid, config.storage, config.exhaustionInSeconds * 60)
local animText = math.random(1,200)
doSendMagicEffect(fromPosition, 10)
doSendAnimatedText(fromPosition, '!Bonus Vip Access!', animText)
else
doPlayerSendCancel(cid, "You bonus for vip access is still active " .. config.exhaustionInSeconds .. " seconds.")
end
return true
end