function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=xxx, y=yyy, z=zzz}
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2075 and getPlayerStorageValue(cid,21444) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doCreatureSay(cid, "Hiho VIP-e Player!!!", TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, "Nie posiadasz vip access.", TALKTYPE_ORANGE_1)
end
return 1
end