mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 05:43:46 +03:00
Upload
This commit is contained in:
39
lua/autorun/client/advdupe2_cl_init.lua
Normal file
39
lua/autorun/client/advdupe2_cl_init.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
AdvDupe2 = {
|
||||
Version = "1.1.0",
|
||||
Revision = 51,
|
||||
InfoText = {},
|
||||
DataFolder = "advdupe2",
|
||||
FileRenameTryLimit = 256,
|
||||
ProgressBar = {}
|
||||
}
|
||||
|
||||
if(!file.Exists(AdvDupe2.DataFolder, "DATA"))then
|
||||
file.CreateDir(AdvDupe2.DataFolder)
|
||||
end
|
||||
|
||||
include( "advdupe2/file_browser.lua" )
|
||||
include( "advdupe2/sh_codec.lua" )
|
||||
include( "advdupe2/cl_file.lua" )
|
||||
include( "advdupe2/cl_ghost.lua" )
|
||||
|
||||
function AdvDupe2.Notify(msg,typ,dur)
|
||||
surface.PlaySound(typ == 1 and "buttons/button10.wav" or "ambient/water/drip1.wav")
|
||||
GAMEMODE:AddNotify(msg, typ or NOTIFY_GENERIC, dur or 5)
|
||||
//if not game.SinglePlayer() then
|
||||
print("[AdvDupe2Notify]\t"..msg)
|
||||
//end
|
||||
end
|
||||
|
||||
net.Receive("AdvDupe2Notify", function()
|
||||
AdvDupe2.Notify(net.ReadString(), net.ReadUInt(8), net.ReadFloat())
|
||||
end)
|
||||
Reference in New Issue
Block a user