forked from Not/srb2k-leaderboard
v1.2.10
This commit is contained in:
parent
3101d29dcc
commit
2e5c209a65
@ -3,7 +3,7 @@
|
|||||||
local FILENAME = "leaderboard.txt"
|
local FILENAME = "leaderboard.txt"
|
||||||
local lb = {}
|
local lb = {}
|
||||||
local timeFinished = 0
|
local timeFinished = 0
|
||||||
local disable = true
|
local disable = false
|
||||||
local prevLap = 0
|
local prevLap = 0
|
||||||
local splits = {}
|
local splits = {}
|
||||||
local PATCH = nil
|
local PATCH = nil
|
||||||
@ -103,12 +103,16 @@ local function ingame()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function initLeaderboard(player)
|
local function initLeaderboard(player)
|
||||||
|
if disable and leveltime < startTime then
|
||||||
disable = ingame() > 1
|
disable = ingame() > 1
|
||||||
|
else
|
||||||
|
disable = disable or ingame() > 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
addHook("PlayerSpawn", initLeaderboard)
|
addHook("PlayerSpawn", initLeaderboard)
|
||||||
|
|
||||||
local function doyoudare(player)
|
local function doyoudare(player)
|
||||||
if disable or player.spectator then
|
if ingame() > 1 or player.spectator then
|
||||||
CONS_Printf(player, "How dare you")
|
CONS_Printf(player, "How dare you")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user