aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/pac/sv_pac.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/pac/sv_pac.lua')
-rw-r--r--gamemode/core/pac/sv_pac.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/gamemode/core/pac/sv_pac.lua b/gamemode/core/pac/sv_pac.lua
index 916430c..6c9a731 100644
--- a/gamemode/core/pac/sv_pac.lua
+++ b/gamemode/core/pac/sv_pac.lua
@@ -140,10 +140,12 @@ function p3.GetPacs(what)
end
--If a player joins the server, tell them all about the pacs that are applied
-net.Receive("artery_getworldpacs",function(ln,ply)
- net.Start("artery_giveworldpacs")
- net.WriteTable(appliedpacs)
- net.Send(ply)
+hook.Add("PlayerLoadout","send_world_pacs",function(ply)
+ timer.Simple(1,function()
+ net.Start("artery_giveworldpacs")
+ net.WriteTable(appliedpacs)
+ net.Send(ply)
+ end)
end)
local max_pacs_in_cache = 10