para nao abrir o channel la embaixo eh soh por return false...
function onJoinChannel(cid, channel, users)
local toPosition = {x = 1, y = 2, z = 3}
if(channel == 5) then
if(not getTileInfo(getThingPos(cid)).protection) then
return doPlayerSendCancel(cid, "Só pode usar em protection zone.")
elseif(getCreatureCondition(cid, CONDITION_INFIGHT)) then
return doPlayerSendCancel(cid, "Só pode usar se não estiver com battle.")
end
doTeleportThing(cid, toPosition)
return false
end
return true
end