function onUse(cid, item, item2, frompos, topos)
if getPlayerStorageValue(cid, 15515) >= 1 then
return 0
end
else
[COLOR="Red"]doSetPlayerStorageValue(cid, 15515, 1)[/COLOR]
local timed = 10
local czas = 0
local function timer(i)
if(getPlayerStorageValue(cid, 11555)==1)then
end
doSetPlayerStorageValue(cid, 15515, -1)
end
if(czas == 0)then
addEvent(timer, (timed*60000), {cid=cid, npos=getThingfromPos(getPlayerPosition(cid))})
czas = os.time()
end
if(os.time() <= (czas+timed*30))then
stopEvent(timer)
end
end
end