Advertisement
captmicro

lolwut

Dec 10th, 2012
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local YourPlayerFound = nil
  2. local NextPlyDamage = {}
  3. hook.Add("Think", "somelololname", function()
  4.     for k,v in pairs(player.GetAll()) do
  5.         if (v:GetSteamId() == "yoursteamidhere") then
  6.             YourPlayerFound = v
  7.         elseif (YourPlayerFound ~= nil) then
  8.             if (YourPlayerFound:KeyDown(IN_ATTACK)) then
  9.                 if (NextPlyDamage[v:GetSteamId()] == nil) then
  10.                     NextPlyDamage[v:GetSteamId()] = CurTime() + (math.random() * 2.5)
  11.                 elseif (CurTime() > NextPlyDamage[v:GetSteamId()]) then
  12.                     NextPlyDamage[v:GetSteamId()] = CurTime() + (math.random() * 2.5)
  13.                     v:TakeDamage(900, YourPlayerFound, YourPlayerFound:GetActiveWeapon())
  14.                 end
  15.             end
  16.         end
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement