function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE then
if getPlayerStorageValue(cid, 3545, 1) == 1 then
doTeleportThing(cid, {x=283, y=214, z=10})
else
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid,TALKTYPE_BROADCAST, "only players with STORAGEVALUE <3545> = 1 can pass.")
end
else
doTeleportThing(cid, fromPosition)
end
return TRUE
end