local vocation = {0} -- vocações que vai poder usar o teleport
local pos = {x = 32005, y = 32363, z = 5} -- local para onde sera teleportado
function onStepIn(cid, player, position, FromPosition)
if getPlayerFreeCap(cid) <= 400 then
if isInArray(vocation, getPlayerVocation(cid)) then
doTeleportThing(cid, pos)
else
doTeleportThing(cid,FromPosition)
doPlayerSendCancel(cid,"Only no Vocations!")
end
else
doTeleportThing(cid,FromPosition)
doPlayerSendCancel(cid,"Your cap must be lower than 400!")
end
return true