this script take money to teleport you so pos
function onStepIn(cid, item, position, fromPosition)
if (isPlayer(cid) and getPlayerMoney(cid) >= 1000000) then
doTeleportThing(cid, {x = 1207, y = 1152, z = 6}, true)
doPlayerRemoveMoney(cid, 1000000)...