Initial commit
This commit is contained in:
26
addons/plogs/lua/plogs_hooks/cuffs.lua
Normal file
26
addons/plogs/lua/plogs_hooks/cuffs.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
plogs.Register('Handcuff', false)
|
||||
|
||||
plogs.AddHook('OnHandcuffed', function(pl, targ)
|
||||
plogs.PlayerLog(pl, 'Handcuff', pl:NameID() .. ' cuffed ' .. targ:NameID(), {
|
||||
['Name'] = pl:Name(),
|
||||
['SteamID'] = pl:SteamID(),
|
||||
['Target Name'] = targ:Name(),
|
||||
['Target SteamID'] = targ:SteamID()
|
||||
})
|
||||
end)
|
||||
|
||||
plogs.AddHook('OnHandcuffBreak', function(pl, cuffs, friend)
|
||||
if IsValid(friend) then
|
||||
plogs.PlayerLog(pl, 'Handcuff', friend:NameID() .. ' uncuffed ' .. pl:NameID(), {
|
||||
['Name'] = pl:Name(),
|
||||
['SteamID'] = pl:SteamID(),
|
||||
['Fried Name'] = friend:Name(),
|
||||
['Target SteamID'] = friend:SteamID()
|
||||
})
|
||||
else
|
||||
plogs.PlayerLog(pl, 'Handcuff', pl:NameID() .. ' broke free from thier handcuffs', {
|
||||
['Name'] = pl:Name(),
|
||||
['SteamID'] = pl:SteamID()
|
||||
})
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user