Add pro-only area in chest
This commit is contained in:
parent
4514afdfe4
commit
82529b56e3
5 changed files with 70 additions and 20 deletions
|
@ -41,6 +41,7 @@ local function calc_scores(players)
|
|||
return one.score > two.score
|
||||
end)
|
||||
end
|
||||
ctf_stats.calc_scores = calc_scores
|
||||
|
||||
function ctf_stats.get_formspec(title, players)
|
||||
calc_scores(players)
|
||||
|
|
|
@ -53,7 +53,8 @@ function ctf_stats.player(name)
|
|||
kills = 0,
|
||||
deaths = 0,
|
||||
captures = 0,
|
||||
attempts = 0
|
||||
attempts = 0,
|
||||
score = -1,
|
||||
}
|
||||
ctf_stats.players[name] = player
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue