nevix
Tunzodus.net
Whats happining, no errors nothing but item didn't dissapear after function.
But nothing no errors. Help me please solve this
Code:
zeCreateTeleportPosition = {x = 32342,y = 32220,z = 7} --Where should the teleport be created?
function startZombie()
local specs = Game.getSpectators(zeWaitingRoomPos, false, true, 0, zeWaitingRoomRadiusX, 0, zeWaitingRoomRadiusY)
if Game.getStorageValue(zeJoinedCountGlobalStorage) < zeMinPlayers then
for i = 1, #specs do
specs[i]:teleportTo(specs[i]:getTown():getTemplePosition(), false)
specs[i]:setStorageValue(zeJoinStorage, 0)
end
resetVariables()
broadcastMessage('Zombie Event failed to start, because of to little players joined the event!', MESSAGE_STATUS_WARNING)
doRemoveItem(getTileItemById(zeCreateTeleportPosition, 11798).uid, 1)
return true
end
for i = 1, #specs do
specs[i]:teleportTo(zeZombieArena)
end
broadcastMessage("Zombie Event has started, good luck to all participant.", MESSAGE_STATUS_WARNING)
Game.setStorageValue(zeStartedGlobalStorage, 2)
doStartZombieEvasion()
end
But nothing no errors. Help me please solve this