Initial commit

This commit is contained in:
pavetr
2026-03-15 14:54:49 +03:00
commit 64f8029c06
4027 changed files with 254888 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
plogs.Register('Connections', true, Color(0,255,0))
plogs.AddHook('PlayerInitialSpawn', function(pl)
plogs.PlayerLog(pl, 'Connections', pl:NameID() .. ' has connected', {
['Name'] = pl:Name(),
['SteamID'] = pl:SteamID()
})
if plogs.cfg.EnableMySQL then
plogs.sql.LogIP(pl:SteamID64(), pl:IPAddress())
end
end)
plogs.AddHook('PlayerDisconnected', function(pl)
plogs.PlayerLog(pl, 'Connections', pl:NameID() .. ' has disconnected', {
['Name'] = pl:Name(),
['SteamID'] = pl:SteamID()
})
end)