1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
rounds = 15;
current = 0;
modes = {1, 2, 20, 21, 22, 31}; --Add more modes if you want to
imageName = "round" --Put your image's name between the quotes
image("gfx/"..imageName..".png", 68, 207, 2);
parse("hudtxt 1 \"\169000050255Rounds:\169250250250 "..current.."/"..rounds.."\" 25 200 0"); --This is made to initiate the hudtxt once you first join the server
function _sr(mode)
if current == rounds then
current = 0;
parse("restart 0");
end
end
function _er(mode)
for _, i in ipairs(modes) do
if mode == i then
current = current + 1;
break;
end
end
if mode == 5 then
current = 0;
end
image("gfx/"..imageName..".png", 68, 207, 2);
parse("hudtxt 1 \"\169000050255Rounds:\169250250250 "..current.."/"..rounds.."\" 25 200 0");
end
addhook("endround", "_er")
addhook("startround", "_sr")