From 8c18caab1dfbf86297cad146f04e3f744068ce43 Mon Sep 17 00:00:00 2001 From: LostTrackpad <lamhung12700@gmail.com> Date: Wed, 7 Aug 2024 18:56:06 +0700 Subject: [PATCH] Forgot something A final touch to the replay system. --- beatrun/gamemodes/beatrun/gamemode/sh/Checkpoints.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Checkpoints.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Checkpoints.lua index a12073e..9ced775 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Checkpoints.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Checkpoints.lua @@ -144,6 +144,9 @@ if CLIENT then net.Start("Checkpoint_Finish") net.WriteFloat(totaltime) + if !LocalPlayer().InReplay then + notification.AddLegacy("Replay saved as ".."beatrun/replays/" .. game.GetMap() .. "/"..Course_Name .. os.date("%H-%M-%S_%d-%m-%Y", os.time()) .. ".txt", 0, 3) + end net.SendToServer() timealpha = 1000