Advertisement
Guest User

Untitled

a guest
Jul 5th, 2016
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. plogs.Register('Hits', true, Color(51, 128, 255))
  2.  
  3. plogs.AddHook('qf_onHitAccepted', function(target, customer, amount)
  4.     plogs.PlayerLog(customer, 'Hits', target:NameID()..' has been added to the hit list by '..customer:NameID()..' for $'..amount, {
  5.         ['Customer Name']       = customer:Name(),
  6.         ['Customer SteamID']    = customer:SteamID(),
  7.         ['Target Name']         = target:Name(),
  8.         ['Target SteamID']      = target:SteamID(),
  9.     })
  10. end)
  11.  
  12. plogs.AddHook('qf_onHitCompleted', function(hitman, target, amount)
  13.     plogs.PlayerLog(hitman, 'Hits', hitman:NameID() .. ' completed a hit on ' .. target:NameID() .. ' for $'..amount, {
  14.         ['Hitman Name']         = hitman:Name(),
  15.         ['Hitman SteamID']      = hitman:SteamID(),
  16.         ['Target Name']         = target:Name(),
  17.         ['Target SteamID']      = target:SteamID(),
  18.     })
  19. end)
  20.  
  21. plogs.AddHook('qf_onHitFailed', function(target, reason)
  22.     plogs.PlayerLog(target, 'Hits', 'The hit on '..target:NameID()..' was removed from the hit list. Reason: '..reason, {
  23.         ['Target Name']         = target:Name(),
  24.         ['Target SteamID']      = target:SteamID(),
  25.     })
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement