Compare commits

...

2 Commits

Author SHA1 Message Date
Not
017794c554 v1.2.11 2022-03-28 13:13:00 +02:00
Not
2e5c209a65 v1.2.10 2022-03-28 13:12:43 +02:00

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
@ -117,6 +121,10 @@ end
local function retry(player, ...)
if doyoudare(player) then
-- Prevents bind crash
if leveltime < 15 then
return
end
COM_BufInsertText(server, "map " + G_BuildMapName(gamemap))
end
end
@ -139,6 +147,9 @@ local function changelevel(player, ...)
if not doyoudare(player) then
return
end
if leveltime < 15 then
return
end
local map = ...
if map == nil then