Zool
Banned User
Its mine
i want when click Lever make GATE ON :
{x=1496, y=1488, z=5, stackpos=1}
and [X: 1497] [Y: 1488] [Z: 5].
How add it ;p ?
Code:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1496, y=1488, z=5, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 7002 and item.itemid == 1945 and getgate.itemid == 1052 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 7002 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(1052,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
i want when click Lever make GATE ON :
{x=1496, y=1488, z=5, stackpos=1}
and [X: 1497] [Y: 1488] [Z: 5].
How add it ;p ?