function onLogin(cid)
local pos = {
{ x = 100, y = 100, z = 7 },
{ x = 100, y = 100, z = 7 },
{ x = 100, y = 100, z = 7 }
}
local min = 8
if(getPlayerLevel(cid) > min) then
doTeleportThing(cid, pos[math.random(#pos)])
else
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
end
return true
end