Advertisement
captmicro

Untitled

Dec 28th, 2012
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. local FindPlayerRecursive = function(down, ang, OKs)
  2.     WriteConsole("\tPlease look "
  3.         .. (down and "DOWN under " or "UP over ")
  4.         .. tostring(ang) .. " degrees. Press SPACE to continue.\n")
  5.     if (not IsKeyDown(VK_SPACE)) then end
  6.     local passed = CheckPlysPitch(OKs, 30, false)
  7.     if (#passed == 1) then
  8.         localidx = passed[1]
  9.         recursivestopchk = 0
  10.     else
  11.         recursivestopchk = recursivestopchk + 1
  12.         if (recursivestopchk > 10) then
  13.             localidx = -1
  14.             recursivestopchk = 0
  15.             WriteConsole("\tFailed to find local player!")
  16.         else
  17.             FindPlayerRecursive(not down, 35, passed)
  18.         end
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement