This commit is contained in:
Not 2022-03-28 13:12:43 +02:00
parent 3101d29dcc
commit 2e5c209a65

View File

@ -3,7 +3,7 @@
local FILENAME = "leaderboard.txt"
local lb = {}
local timeFinished = 0
local disable = true
local disable = false
local prevLap = 0
local splits = {}
local PATCH = nil
@ -103,12 +103,16 @@ local function ingame()
end
local function initLeaderboard(player)
disable = ingame() > 1
if disable and leveltime < startTime then
disable = ingame() > 1
else
disable = disable or ingame() > 1
end
end
addHook("PlayerSpawn", initLeaderboard)
local function doyoudare(player)
if disable or player.spectator then
if ingame() > 1 or player.spectator then
CONS_Printf(player, "How dare you")
return false
end