mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
Upload
This commit is contained in:
1036
addons/eprotect_1.4.20/lua/e_protect/client/cl_eprotect.lua
Normal file
1036
addons/eprotect_1.4.20/lua/e_protect/client/cl_eprotect.lua
Normal file
File diff suppressed because it is too large
Load Diff
31
addons/eprotect_1.4.20/lua/e_protect/client/cl_miscs.lua
Normal file
31
addons/eprotect_1.4.20/lua/e_protect/client/cl_miscs.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
--[[
|
||||
| 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)
|
||||
40
addons/eprotect_1.4.20/lua/e_protect/client/cl_overrides.lua
Normal file
40
addons/eprotect_1.4.20/lua/e_protect/client/cl_overrides.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
eProtect = eProtect or {}
|
||||
eProtect.overrides = eProtect.overrides or {}
|
||||
|
||||
if vgui and !eProtect.overrides["vguiCreate"] then
|
||||
local oldFunc = vgui.Create
|
||||
|
||||
vgui.Create = function(...)
|
||||
local pnl = oldFunc(...)
|
||||
|
||||
hook.Run("eP:PostInitPanel", pnl)
|
||||
|
||||
return pnl
|
||||
end
|
||||
|
||||
eProtect.overrides["vguiCreate"] = true
|
||||
end
|
||||
|
||||
if MsgC and !eProtect.overrides["MsgC"] then
|
||||
local oldFunc = MsgC
|
||||
|
||||
MsgC = function(...)
|
||||
local pnl = oldFunc(...)
|
||||
|
||||
hook.Run("eP:MsgCExecuted", {...})
|
||||
|
||||
return pnl
|
||||
end
|
||||
|
||||
eProtect.overrides["MsgC"] = true
|
||||
end
|
||||
11
addons/eprotect_1.4.20/lua/e_protect/client/cl_utils.lua
Normal file
11
addons/eprotect_1.4.20/lua/e_protect/client/cl_utils.lua
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user