Try:
ArenaPVP = {
-- frompos --topos -- exit
{{x=499, y=489, z=9}, {x=515, y=498, z=9}, {x=517, y=493, z=8}} --1
}
function onPrepareDeath(cid, deathList)
for i=1, #deathList do
if isPlayer(deathList[i]) == TRUE then
for _, area in pairs(ArenaPVP)...