function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=1078,y=984,z=9} --change {x=1078,y=984,z=9} to your
if item.itemid == XXXX and item.actionid == 7548 and isPlayerPzLocked(cid) == FALSE then --item.itemid == XXXX (change XXXX to scroll id)
doSendMagicEffect(cid, CONST_ME_POFF)
doTeleportThing(cid, local.pos)
elseif isPlayerPzLocked(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have pz lock, try again when u don't have it.")
return FALSE
end
end