Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Cliport Item V.1
- Autor: Skymagnum/Skyforever
- You can post in other forums if you take credits :)
- ]]
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local canPassAtWalls = false
- local removeAtUse = true
- if not isWalkable(toPosition, true, true, true) then
- doPlayerSendCancel(cid, "Sorry, not possible.") return true
- end
- if canPassAtWalls == false and not isSightClear(fromPosition, toPosition, true))then
- doPlayerSendCancel(cid, "Sorry, you can't do it.") return true
- end
- doTeleportThing(cid, toPosition, false)
- doSendDistanceShoot(fromPosition, toPosition, 30)
- if removeAtUse then
- doRemoveItem(item.uid, 1)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement