Initial commit
This commit is contained in:
11
addons/plogs/lua/plogs_hooks/chat.lua
Normal file
11
addons/plogs/lua/plogs_hooks/chat.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
plogs.Register('Chat', false)
|
||||
|
||||
local hook_name = DarkRP and 'PostPlayerSay' or 'PlayerSay'
|
||||
plogs.AddHook(hook_name, function(pl, text)
|
||||
if (text ~= '') then
|
||||
plogs.PlayerLog(pl, 'Chat', pl:NameID() .. ' said ' .. string.Trim(text), {
|
||||
['Name'] = pl:Name(),
|
||||
['SteamID'] = pl:SteamID()
|
||||
})
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user