Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.93 KB | None | 0 0
  1. local wayPointManager = WayPointManager()
  2. local enemyHeroes = GetEnemyHeroes()
  3. local allyHeroes = GetAllyHeroes()
  4. local scripters = {}
  5.  
  6. local maxClicks = 0
  7.  
  8. function OnDraw()
  9.         if enemyHeroes and #enemyHeroes > 1 then
  10.                 for i, enemy in ipairs(enemyHeroes) do
  11.                         if enemy.charName == "Vayne" then
  12.                                 if wayPointManager:GetWayPointChangeRate(enemy, 1) > maxClicks then
  13.                                         maxClicks = wayPointManager:GetWayPointChangeRate(enemy, 1)
  14.                                 end
  15.                         end
  16.                
  17.                         if wayPointManager:GetWayPointChangeRate(enemy, 1) > 12 then
  18.                                 table.insert(scripters, enemy)
  19.                                 table.remove(enemyHeroes, i)
  20.                                 i = i - 1
  21.                         end
  22.                 end
  23.         else
  24.                 enemyHeroes = nil
  25.         end
  26.  
  27.         if allyHeroes and #allyHeroes > 1 then
  28.                 for i, ally in ipairs(allyHeroes) do
  29.                         if ally.charName == "Vayne" then
  30.                                 if wayPointManager:GetWayPointChangeRate(ally, 1) > maxClicks then
  31.                                         maxClicks = wayPointManager:GetWayPointChangeRate(ally, 1)
  32.                                 end
  33.                         end
  34.                
  35.                         if wayPointManager:GetWayPointChangeRate(ally, 1) > 12 then
  36.                                 table.insert(scripters, ally)
  37.                                 table.remove(allyHeroes, i)
  38.                                 i = i - 1
  39.                         end
  40.                 end
  41.         else
  42.                 allyHeroes = nil
  43.         end
  44.        
  45.         for i, cheater in ipairs(scripters) do
  46.                 DrawText(cheater.charName, 16, 10, 10 + (10 * i), ARGB(255, 255, 255, 255))
  47.         end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement