I need a startround script! When start the server or map then the next write: Example:
Hudtxt blabla Counter terrorist: CTSCORES
Hudtxt blabla Terrorists: TSCORES
Or zombie;survivor!
Ty in advance :d
Scripts
Team score :d
Team score :d
MAX-russia has written
EngiN33R has written
Teamscore: if team CT then CT team rounds won! addhook("startround","showscores")
function showscores()
	parse("hudtxt 1 \"©255000000T Score:"..game("score_t").."\" 200 5")
	parse("hudtxt 2 \"©000000255CT Score:"..game("score_ct").."\" 400 5")
end
showscores()
EngiN33R
addhook("startround" , "showscores")
addhook("startround" , "showscores")
function showscores()
parse("hudtxt 1 \"©255000000T Score:"..game("score_t").."\" 200 5")
parse("hudtxt 2 \"©000000255CT Score:"..game("score_ct").."\" 400 5")
end
showscores()
Hador, nothing else seems possible aside from your not providing the whole code.
Hador too.
EngiN33R: You don't want to call the function, as it is already added to a hook... (: addhook ("startround", "showscores")
função showscores ()
if player(id,"exists") then
parse ("hudtxt2 "..id.." 1 \ T Score ©255000000".. jogo (" score_t ") .." \ "200 5")
parse ("hudtxt2 "..id.." 2 \ CT Score ©000000255".. jogo (" score_ct ") .." \ "400 5")
end
end
showscores ()
Anders4000: Actually, I do. The hook is startround - sometimes, the execution of a script is not the round beginning. To compensate for that, I call it directly in the script. One step ahead.
EngiN33R has writtenaddhook("startround","showscores")
function showscores()
	parse("hudtxt 1 \"©255000000T Score:"..game("score_t").."\" 200 5")
	parse("hudtxt 2 \"©000000255CT Score:"..game("score_ct").."\" 400 5")
end
showscores()
Suprise: maybe this works!ts = 0
cts = 0
addhook("kill","lol")
function lol(id)
	if player(id,"team")==1 then ts = ts+1 end
	if player(id,"team")==2 then cts = cts+1 end
	parse("hudtxt 1 \"©255000000T Score:"..ts.."\" 200 5")
	parse("hudtxt 2 \"©000000255CT Score:"..cts.."\" 400 5")
end
MikuAuahDark has written
EngiN33R has writtenaddhook("startround","showscores")
function showscores()
	parse("hudtxt 1 \"©255000000T Score:"..game("score_t").."\" 200 5")
	parse("hudtxt 2 \"©000000255CT Score:"..game("score_ct").."\" 400 5")
end
showscores()
MikuAuahDark has written
EngiN33R: but i test it not work!