Advertisement
captmicro

Untitled

Jan 3rd, 2013
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. if (aimbot or bhop or trigbot) then
  2.         if (localidx ~= -1) then
  3.             local test = GetRadarEntity(localidx)
  4.             if (RadarPlayer.name(test) ~= o_NameStr) then
  5.                 localidx = -1
  6.             end
  7.         end
  8.         if (localidx == -1) then
  9.             WriteConsole("Finding local player index... ")
  10.             local i = 0
  11.             for i=0,128 do
  12.                 local test = GetRadarEntity(i)
  13.                 local name = RadarPlayer.name(test)
  14.                 if (name == o_NameStr) then
  15.                     localidx = i
  16.                 end
  17.             end
  18.             if (localidx ~= -1) then
  19.                 WriteConsole(" Found! Index #" .. tostring(localidx) .. ". @ " .. tostring(GetEntity(localidx)) .. "\n")
  20.             else
  21.                 WriteConsole(" Not found!\n")
  22.             end
  23.         end
  24.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement