diff options
| -rw-r--r-- | zones/lua/zones.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/zones/lua/zones.lua b/zones/lua/zones.lua index 00cf4b8..c0a252f 100644 --- a/zones/lua/zones.lua +++ b/zones/lua/zones.lua @@ -185,15 +185,18 @@ if SERVER then end local sync = false + local syncply function zones.Sync(ply) sync = true + syncply = ply end hook.Add("Tick","zones_sync",function() if sync then net.Start("zones_sync") net.WriteTable(zones.List) - if ply then - net.Send(ply) + if syncply then + net.Send(syncply) + syncply = nil else net.Broadcast() end |
