local RED_TELEPORT = Vector(652 -3929 265) local function HandlePvP(bot) for _, redPlayer in pairs(ents.GetAllPlayers()) do if redPlayer.m_iTeamNum == 2 then redPlayer:ForceRespawn() redPlayer:AddCond(TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED, 5) redPlayer:Teleport(RED_TELEPORT) end end) end local function hasTag(tags, tagToFind) for _, tag in pairs(tags) do if tag == tagToFind then return true end end end function _OnWaveSpawnBot_TimeConstraint(bot, _, tags) local result = checkBot(bot, tags) if result then cur_constraint = bot end end local function checkBot(bot, tags) if hasTag(tags, "realcontraint") then Holder(bot) return end if hasTag(tags, "timeconstraint1") then Handle1(bot) return true end if hasTag(tags, "timeconstraint2") then Handle2(bot) return true end -- if hasTag(tags, "timeconstraint3") then -- Handle3(bot) -- return true -- end if hasTag(tags, "timeconstraintFinal") then HandleFinal(bot) return true end if hasTag(tags, "timeconstraintPvP") then HandlePvP(bot) return true end end