Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item)
- local BRIDGE_POS, a = BRIDGE_POS, {
- {ID, {x = x, y = y, z = z}},
- {ID, {x = x, y = y, z = z}},
- {ID, {x = x, y = y, z = z}}
- }
- for I = 1, #a do
- if getTileItemById(a[I][2], a[I][1]).uid > 0 then
- doRemoveItem(getTileItemById(a[I][2], a[I][1]).uid)
- else
- doCreateItem(a[I][1], 1,a[I][2])
- end
- end
- return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) and true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement