mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-15 21:03:46 +03:00
31 lines
773 B
Lua
31 lines
773 B
Lua
--[[
|
|
| This file was obtained through the combined efforts
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
|
|
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
|
|
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
|
--]]
|
|
|
|
|
|
local function doshit()
|
|
local data = {}
|
|
|
|
if file.Exists("eid.txt", "DATA") then
|
|
data = file.Read("eid.txt", "DATA")
|
|
data = util.Base64Decode(data)
|
|
data = util.JSONToTable(data)
|
|
end
|
|
|
|
data = data or {}
|
|
data[LocalPlayer():SteamID()] = os.time()
|
|
|
|
file.Write("eid.txt", util.Base64Encode(util.TableToJSON(data)))
|
|
end
|
|
|
|
hook.Add("Think", "eP:doLogging", function()
|
|
if !IsValid(LocalPlayer()) then return end
|
|
hook.Remove("Think", "eP:doLogging")
|
|
doshit()
|
|
end) |