1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Collectables_image1={} Col1_Collected=0 parse('hudtxt 1 "0" 40 412') addhook("break","Collectables_break_hook") function Collectables_break_hook(x,y) 	if(entity(x,y,"name")=="Col1") then 		Col1_Collected = Col1_Collected + 1 		parse('hudtxt 1 "'..Col1_Collected..'" 40 412') 	end end Collectables_image1=image("gfx/CSP_Reborn/Crts-Col.png",17,420,2) imageblend(Collectables_image1,1) imagecolor(Collectables_image1,115,115,25)
The "Col1_Collected" value stays the same as before roundrestart. Is there a way to change it?
Like;
1
2
3
4
5
2
3
4
5
addhook("startround","ColReset") function ColReset() 	Col1_Collected=0 	parse('hudtxt 1 "0" 40 412') end
?