Grillo1995
New Member
Hi Otlanders
I have this code: DOUBLE EXP POTION
And have warningin tfs:
Everything works fine the script, but just give this warning on tfs, I would like to take it off!
Hug and thanks.
I have this code: DOUBLE EXP POTION
Code:
local tempo = 600
local storage = 770546
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if player:getStorageValue(storage) >= os.time() then
player:sendTextMessage(MESSAGE_INFO_DESCR, 'You already have double EXP! Ended: ' .. os.date("%X", player:getStorageValue(storage)) .. ' .')
cid:sendMagicEffect(3)
return true
end
player:setStorageValue(storage, os.time() + tempo)
Item(item.uid):remove(1)
player:sendTextMessage(MESSAGE_INFO_DESCR, 'Your 10 minutes of double EXP has started! Ended: ' .. os.date("%X", player:getStorageValue(storage)) .. ' .')
cid:sendMagicEffect(14)
addEvent(function(playerid)
local player = Player(playerid)
player:sendMagicEffect(5)
player:sendTextMessage(MESSAGE_INFO_DESCR, 'Your DOUBLE EXP is finished.')
end, 600000, cid)
return true
end
And have warningin tfs:
Everything works fine the script, but just give this warning on tfs, I would like to take it off!
Hug and thanks.