This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

View File

@@ -0,0 +1,45 @@
--[[
| 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/
--]]
local PLUGIN = PLUGIN
function PLUGIN:PlayerLoadedCharacter(client, character, currentChar)
net.Start("SetupWaypoints")
net.WriteBool(true)
net.WriteTable(self.waypoints)
net.Send(client)
end
timer.Create("ixWaypointUpdate", 60, 0, function()
local curTime = CurTime()
local toRemove = {}
for k, waypoint in pairs(PLUGIN.waypoints) do
if (waypoint.time < curTime) then
table.insert(toRemove, k)
end
end
if (#toRemove > 0) then
table.sort(toRemove)
for i = #toRemove, 1, -1 do
table.remove(PLUGIN.waypoints, toRemove[i])
end
ix.combineNotify:AddNotification("NTC:// Mise à jour de lindex de liaison montante visuelle", Color(0, 200, 150, 255))
net.Start("SetupWaypoints")
net.WriteBool(true)
net.WriteTable(PLUGIN.waypoints)
net.Broadcast()
end
end)