silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,484
- Solutions
- 9
- Reaction score
- 217
well guys, in tfs 1.0 have a function interesting
how I can update this function to tfs 1.1?
Code:
function teleportAllPlayersFromAnother(fromArea, toPos)
for x = fromArea[1].x, fromArea[2].x do
for y = fromArea[1].y, fromArea[2].y do
for z = fromArea[1].z, fromArea[2].z do
if(getThingfromPos({x = x, y = y, z = z, stackpos = 255}).uid > 0) then
local thing = getThingfromPos({x = x, y = y, z = z, stackpos = 255})
local player = Player(thing.uid)
if thing and player then
doTeleportThing(thing.uid, toPos)
end
end
end
end
end
return true
end