Hello I'm using this script for teleport players in area 1x1 then teleport them back:
local function doTeleportBack(cid, tid, pPos, pos)
if isPlayer(cid) then
doTeleportThing(cid, pos, false)
end
if isPlayer(tid) then
doTeleportThing(tid, pPos, false)
end...