Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local YourPlayerFound = nil
- local NextPlyDamage = {}
- hook.Add("Think", "somelololname", function()
- for k,v in pairs(player.GetAll()) do
- if (v:GetSteamId() == "yoursteamidhere") then
- YourPlayerFound = v
- elseif (YourPlayerFound ~= nil) then
- if (YourPlayerFound:KeyDown(IN_ATTACK)) then
- if (NextPlyDamage[v:GetSteamId()] == nil) then
- NextPlyDamage[v:GetSteamId()] = CurTime() + (math.random() * 2.5)
- elseif (CurTime() > NextPlyDamage[v:GetSteamId()]) then
- NextPlyDamage[v:GetSteamId()] = CurTime() + (math.random() * 2.5)
- v:TakeDamage(900, YourPlayerFound, YourPlayerFound:GetActiveWeapon())
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement