From 0a490d7d811c682a8d0f5a74840583028f13822a Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 17 Nov 2017 00:08:55 -0500 Subject: Various updates Fixed a few problems with dependencies --- gamemode/server/sv_loadplayer.lua | 2 +- gamemode/server/sv_noclip.lua | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 gamemode/server/sv_noclip.lua (limited to 'gamemode/server') diff --git a/gamemode/server/sv_loadplayer.lua b/gamemode/server/sv_loadplayer.lua index f8c2568..faeaaf3 100644 --- a/gamemode/server/sv_loadplayer.lua +++ b/gamemode/server/sv_loadplayer.lua @@ -18,7 +18,7 @@ end hook.Add("PlayerInitialSpawn","ArteryPlayerLoad",function(pl) local modelnum = pl:UniqueID() % (#models) - timer.Simple(1,function() + timer.Simple(10,function() delayplayerload(pl) end) pl:SetModel(models[modelnum]) diff --git a/gamemode/server/sv_noclip.lua b/gamemode/server/sv_noclip.lua new file mode 100644 index 0000000..f36d563 --- /dev/null +++ b/gamemode/server/sv_noclip.lua @@ -0,0 +1,6 @@ +--Allow admins to noclip + +local function DisableNoclip( ply ) + return ply:IsAdmin() +end +hook.Add( "PlayerNoClip", "DisableNoclip", DisableNoclip ) -- cgit v1.2.3-70-g09d2