Nada....
Eu tenho um que funciona perfeitamente só que só para players vs players, veja:
local arena = {
frompos = {x = 1000, y = 1009, z = 7},
topos = {x = 1011, y = 1019, z = 7},
exitpos = {x = 1013, y = 1015, z = 7}
}
function onPrepareDeath(player, creature, lastHitKiller, mostDamageKiller)
if player:isPlayer() then
local ppos = player:getPosition()
if isInRange(ppos, arena.frompos, arena.topos) then
local maxhp = player:getMaxHealth()
player:addHealth(maxhp)
addEvent(doCreatureAddHealth, 100, player:getId(), maxhp)
end
if isInRange(ppos, arena.frompos, arena.topos) then
player:teleportTo(arena.exitpos)
return true
end
end
return true
end
function onLogin(player)
player:registerEvent("arena")
return true
end
esqueci de citar, tfs 1.1