Forum

> > CS2D > Scripts > Score,Health,Deaths. auslesen
Forums overviewCS2D overview Scripts overviewLog in to reply

German Score,Health,Deaths. auslesen

4 replies
To the start Previous 1 Next To the start

old Score,Health,Deaths. auslesen

Anti-Grav
User Off Offline

Quote
Ich habe seit zwei Tagen das Problem das ich es einfach nicht schaffe score,health und deaths in einem hudtxt anzeigen! Bitte helft mir.

Mein Code bisher:

1
2
score = player(id,"score")
parse('hudtxt2 '..id..' 2  " Dein Score: '..score..' " 10 150')

Ich habe bereits einen Hudtxt mit der id 1

old Re: Score,Health,Deaths. auslesen

Banaan
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
addhook("ms100","hud_update")

function hud_update()
	for i,v in ipairs(player(0,"table")) do
		parse("hudtxt2 "..v.." 2 \" Score: "..player(v,"score").." \" 10 150")
		parse("hudtxt2 "..v.." 3 \" Health: "..player(v,"health").." \" 10 170")
		parse("hudtxt2 "..v.." 4 \" Deaths: "..player(v,"deaths").." \" 10 190")
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview