So I'm using the isInArea function. I don't know why but it doesn't seem to be working.
Here is my code:
local arena = {
frompos = {x=32389, y=32188, z=7},
topos = {x=32403, y=32201, z=7},
exit = {x=32404, y=32204, z=7}
}
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if...