Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plogs.Register('Hits', true, Color(51, 128, 255))
- plogs.AddHook('qf_onHitAccepted', function(target, customer, amount)
- plogs.PlayerLog(customer, 'Hits', target:NameID()..' has been added to the hit list by '..customer:NameID()..' for $'..amount, {
- ['Customer Name'] = customer:Name(),
- ['Customer SteamID'] = customer:SteamID(),
- ['Target Name'] = target:Name(),
- ['Target SteamID'] = target:SteamID(),
- })
- end)
- plogs.AddHook('qf_onHitCompleted', function(hitman, target, amount)
- plogs.PlayerLog(hitman, 'Hits', hitman:NameID() .. ' completed a hit on ' .. target:NameID() .. ' for $'..amount, {
- ['Hitman Name'] = hitman:Name(),
- ['Hitman SteamID'] = hitman:SteamID(),
- ['Target Name'] = target:Name(),
- ['Target SteamID'] = target:SteamID(),
- })
- end)
- plogs.AddHook('qf_onHitFailed', function(target, reason)
- plogs.PlayerLog(target, 'Hits', 'The hit on '..target:NameID()..' was removed from the hit list. Reason: '..reason, {
- ['Target Name'] = target:Name(),
- ['Target SteamID'] = target:SteamID(),
- })
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement