local vipstorage = 11551 --your storage value for VIP
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,vipstorage) >= 1 then
if getCreaturePosition(cid).y < toPosition.y then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
else
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
end
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 30)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but you must be a VIP to enter this area.")
end
return TRUE
end