Hello, I'm using this system GlobalEvent - [TFS 1.2] Zombie Arena (https://otland.net/threads/tfs-1-2-zombie-arena.258250/)
tfs 1.3 revscript
but the player dies for the zombie (loses loot) and the event does not end, there is no error on the console
Please help me
tfs 1.3 revscript
but the player dies for the zombie (loses loot) and the event does not end, there is no error on the console
Lua:
local ZombieArenaKill = CreatureEvent("ZombieArenaKill")
-- When player dies in Zombie Arena
function ZombieArenaKill.onDeath(player, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
-- Has the event started?
if not zombieArena:isStarted() then
return false
end
-- Did a player die?
if player:isPlayer() then
-- Is the player doing the event?
if not zombieArena:isPlayerOnEvent(player) then
return false
end
zombieArena:removePlayer(player)
zombieArena:debug(player:getName() .. " got teleported to " .. player:getTown():getName() .. ".")
zombieArena:checkArena()
end
return true
end
ZombieArenaKill:register()
Please help me