PHP:
function onUse(cid, item, frompos, item2, topos)
--config--
local brama = 1543
local pos1= {x=958, y=972, z=7}
local pos2= {x=958, y=973, z=7}
local pos3= {x=958, y=972, z=5}
local pos4= {x=958, y=973, z=5}
if item.uid == 7000 and item.itemid == 9827 then
doCreateItem(brama, 1, pos1)
doCreateItem(brama, 1, pos2)
doRemoveItem(item.uid, pos3)
doRemoveItem(item.uid, pos4)
end
if item.uid == 7000 and item.itemid == 9828 then
doCreateItem(brama, 1, pos3)
doCreateItem(brama, 1, pos4)
doRemoveItem(item.uid, pos1)
doRemoveItem(item.uid, pos2)
end
return true
end
there is something wrong?? the gate is appearing but not disappearing