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 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
|
||||
|
Loading…
Reference in New Issue
Block a user