Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inf = {}
- inf.Ban = {"Crencoder", "Snatcher Aghanim Rosh"}
- inf.Enable = Menu.AddOption(inf.Ban, "Enable", "")
- inf.fontItem = Renderer.LoadFont("Arial", 18, Enum.FontWeight.EXTRABOLD)
- function inf.OnUpdate()
- if not Heroes.GetLocal() or not Engine.IsInGame() or not Menu.IsEnabled(inf.Enable) then
- return
- end
- myHero = Heroes.GetLocal()
- items = PhysicalItems.GetAll()
- if items and #items > 0 then
- for i=0, #items do
- item = items[i]
- if item then
- item2 = PhysicalItem.GetItem(item)
- if Ability.GetName(item2) == "item_ultimate_scepter_2" then
- myPos = Entity.GetAbsOrigin(myHero)
- pos1 = Vector(-2361.3220214844, 1868.6048583984, 159.998046875)
- if (myPos - pos1):Length2D() < 500 then
- Player.PrepareUnitOrders(Players.GetLocal(), Enum.UnitOrder.DOTA_UNIT_ORDER_PICKUP_ITEM, item, Vector(0, 0, 0), nil, Enum.PlayerOrderIssuer.DOTA_ORDER_ISSUER_PASSED_UNIT_ONLY, myHero)
- end
- end
- end
- end
- end
- end
- return inf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement