mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
59 lines
2.0 KiB
Lua
59 lines
2.0 KiB
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/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
/*--------------------------------------------------
|
||
|
|
=============== Dummy Autorun ===============
|
||
|
|
*** Copyright (c) 2012-2015 by DrVrej, All rights reserved. ***
|
||
|
|
No parts of this code or any of its contents may be reproduced, copied, modified or adapted,
|
||
|
|
without the prior written consent of the author, unless otherwise indicated for stand-alone materials.
|
||
|
|
INFO: Used to load autorun file for Dummy
|
||
|
|
--------------------------------------------------*/
|
||
|
|
-- Addon Information(Important!):
|
||
|
|
local PublicAddonName = "Project VJ Base"
|
||
|
|
local AddonName = "Project VJ Base"
|
||
|
|
local AddonType = "SNPC"
|
||
|
|
-- Don't edit anything below this! ------------------------------------------------
|
||
|
|
|
||
|
|
local VJExists = "lua/autorun/vj_base_autorun_old.lua"
|
||
|
|
|
||
|
|
if CLIENT then
|
||
|
|
if (!file.Exists("autorun/vj_base_autorun.lua","LUA")) then
|
||
|
|
chat.AddText(Color(0,200,200),PublicAddonName,
|
||
|
|
Color(0,255,0)," was unable to install, you are missing ",
|
||
|
|
Color(255,100,0),"VJ Base!"
|
||
|
|
)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
timer.Simple(1,function()
|
||
|
|
if (!file.Exists("autorun/vj_base_autorun.lua","LUA")) then
|
||
|
|
if not VJF then
|
||
|
|
if CLIENT then
|
||
|
|
VJF = vgui.Create('DFrame')
|
||
|
|
VJF:SetTitle("VJ Base is not installed")
|
||
|
|
VJF:SetSize(900, 800)
|
||
|
|
VJF:SetPos((ScrW() - VJF:GetWide()) / 2, (ScrH() - VJF:GetTall()) / 2)
|
||
|
|
VJF:MakePopup()
|
||
|
|
VJF.Paint = function()
|
||
|
|
draw.RoundedBox( 8, 0, 0, VJF:GetWide(), VJF:GetTall(), Color( 200, 0, 0, 150 ) )
|
||
|
|
end
|
||
|
|
local VJURL = vgui.Create('DHTML')
|
||
|
|
VJURL:SetParent(VJF)
|
||
|
|
VJURL:SetPos(VJF:GetWide()*0.005, VJF:GetTall()*0.03)
|
||
|
|
local x,y = VJF:GetSize()
|
||
|
|
VJURL:SetSize(x*0.99,y*0.96)
|
||
|
|
VJURL:SetAllowLua(true)
|
||
|
|
VJURL:OpenURL('https://sites.google.com/site/vrejgaming/vjbasemissing')
|
||
|
|
elseif SERVER then
|
||
|
|
timer.Create("VJBASEMissing", 5, 0, function() print("VJ Base is Missing! Download it from the workshop!") end)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end)
|