I was making a script to show the score everytime when a round starts again, and in fact it's working, but now I want to make if CT's have a higher score than T's, show the score over theirs and vice. (I think this sounds a little bit complicated to explain since I'm not english fluent)
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook("startround","_startround") function _startround() parse("hudtxt 0 \""..string.char(169).."050145255CT: "..game("score_ct").."\" -60 70") parse("hudtxt 1 \""..string.char(169).."255075075T: "..game("score_t").."\" 610 85") parse("hudtxtmove 0 0 400 235 70") timer(1000,"parse","hudtxtmove 0 0 200 235 70") timer(5000,"parse","hudtxtmove 0 0 200 640 70") parse("hudtxtmove 0 1 400 280 85") timer(1000,"parse","hudtxtmove 0 1 200 280 85") timer(5000,"parse","hudtxtmove 0 1 200 -80 85") end
I'm aware that I have to use
1
if game("score_t")=>game("score_ct")
But I'm no sure how to apply this into the code, I'm not skilled to solve it.
edited 2×, last 17.06.16 02:29:33 pm