function onStepIn(cid, item, position, fromPosition)
return isPlayer(cid) and getPlayerStorageValue(cid, vip_Storage) == 1 and doTeleportThing(cid, {x = x, y = y, z = z}) or doTeleportThing(cid, fromPosition, false) and doCreatureSay(cid, "Youre not Vip.", 19)
end
function onStepIn(cid, item, pos)
newPos = {x=100, y=100, z=7}
if getPlayerStorageValue(cid, VIPSTORAGE) < 0 then
doCreatureSay(cid, "Only VIP players can enter here", TALKTYPE_ORANGE_1)
return TRUE
end
doTeleportThing(cid,newPos)
doSendMagicEffect(newPos,10)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
return TRUE
end
<movevent type="StepIn" uniqueid="2000" script="vip.lua"/>