diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-08-09 17:53:52 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-08-09 17:53:52 -0400 |
| commit | d4f197a35c207c9891d3f4dc5e9708af48c935de (patch) | |
| tree | ee8fd3960c3a3fb4ecaf0f62b50d251f007ebaf3 /gamemode/server/sv_pac.lua | |
| parent | 2fe3c4551344870e3784733fce2d95027b5c8382 (diff) | |
| download | artery-d4f197a35c207c9891d3f4dc5e9708af48c935de.tar.gz artery-d4f197a35c207c9891d3f4dc5e9708af48c935de.tar.bz2 artery-d4f197a35c207c9891d3f4dc5e9708af48c935de.zip | |
Added some weapons
Diffstat (limited to 'gamemode/server/sv_pac.lua')
| -rw-r--r-- | gamemode/server/sv_pac.lua | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/gamemode/server/sv_pac.lua b/gamemode/server/sv_pac.lua index 27b2ed9..fc436f4 100644 --- a/gamemode/server/sv_pac.lua +++ b/gamemode/server/sv_pac.lua @@ -5,24 +5,5 @@ hook.Add("PrePACConfigApply", "donators only", function(ply, outfit_data) end) hook.Add( "PrePACEditorOpen", "RestrictToSuperadmin", function( ply ) - if not ply:IsSuperAdmin( ) then - return false - end + return ply:IsSuperAdmin(), "This is accessable only to superadmins" end ) - -util.AddNetworkString("requestpac") -util.AddNetworkString("responsepac") - ---be able to stream pac data to clients on-demand -net.Receive("requestpac",function(ln,ply) - local name = net.ReadString() - local pdata = file.Read(string.format("artery/pac/%s.txt",name)) --make sure to have the .txt, so dot-dot-slash attacks can't read the mysql file. - net.Start("responsepac") - net.WriteString(pdata) - net.Send(ply) -end) - -hook.Add("PlayerInitialSpawn", "AllowPacThings",function(ply) - --pac.SetupENT(ply, false) - PrintTable(pac) -end) |
