Clear events on new game
This commit is contained in:
parent
03c52da72c
commit
3c0e0c0024
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@ ctf.register_on_killedplayer(function(victim, killer, type)
|
||||||
ctf_events.update_all()
|
ctf_events.update_all()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
ctf.register_on_new_game(function()
|
||||||
|
ctf_events.events = {}
|
||||||
|
ctf_events.update_all()
|
||||||
|
end)
|
||||||
|
|
||||||
function ctf_events.update_row(i, player, name, tplayer, evt)
|
function ctf_events.update_row(i, player, name, tplayer, evt)
|
||||||
local idx = "ctf_events:" .. i .. "_one"
|
local idx = "ctf_events:" .. i .. "_one"
|
||||||
local idxa = "ctf_events:" .. i .. "_action"
|
local idxa = "ctf_events:" .. i .. "_action"
|
||||||
|
|
Loading…
Reference in a new issue