Tenta ai
function onUse(cid, item, fromPosition, itemEx, toPosition)
local exhausted = 60 -- Tempo em segundos
if getPlayerStorageValue(cid, 112333) > os.time() then
doPlayerSendCancel(cid, "You are exhausted.")
return true
end
setPlayerStorageValue(cid, 112333, os.time() + exhausted)
end
return true
function Wall()
local x = true
local B = {
{1054,{x=1084, y=859, z=7, stackpos = 1}}, -- id da parede e pos da parede
{1054,{x=1084, y=860, z=7, stackpos = 1}}
}
for i = 1, #B do
if getTileItemById(B[i][2], B[i][1]).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(B[i][2]).uid,1)
else
doCreateItem(B[i][1], 1, B[i][2])
end
end
end
Wall()
addEvent(Wall, 5000)
doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
return true
end





info
Grupo: Visconde
Registrado: 27/01/13
Posts: 443
Reputação: +83
Gênero: Masculino
#Edit, resolvido.
Editado Dezembro 4 por ScythePhantom