bradette19
Member
Hello, I want to add something to my script but I don't really know how.
A broadcast message to the player to told him is Double xp have expired.
Here my script
A broadcast message to the player to told him is Double xp have expired.
Here my script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if player:getStorageValue(1234) >= os.time() then
player:say('You already have double exp!', TALKTYPE_MONSTER_SAY)
return true
end
player:setStorageValue(1234, os.time() + 7200)
Item(item.uid):remove(1)
player:say('Your 2 hours of double XP has started!', TALKTYPE_MONSTER_SAY)
return true
end