Forum

> > CS2D > Scripts > life and armor show in the text hudt
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch life and armor show in the text hudt

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben life and armor show in the text hudt

pipex
User Off Offline

Zitieren
I want to create a lua hudtext above shows a bar to display the life and armor

example

life: 100
Armor: 100

plis

Admin/Mod Kommentar

scripting questions go to the scripts forum. I know, it's very hard to do that right! moved!

alt Re: life and armor show in the text hudt

Glix
User Off Offline

Zitieren
user TimeQuesT hat geschrieben
user pipex hat geschrieben
I want to create a lua hudtext abo...

What stops you to do it?


Lol. I if knowed how to do this shit. He did't will make this thread. So shut the fuck up. You come just comment crap or shit every time to threads.

alt Re: life and armor show in the text hudt

TimeQuesT
User Off Offline

Zitieren
I don't know whats your problem?
Actually I just ask myself what he wants. He should learn how to explain better.

user Glix hat geschrieben
Lol. I if knowed how to do this shit. He did't will make this thread. So shut the fuck up. You come just comment crap or shit every time to threads.


You have to learn some english...
My english isn't the best, but I think everyone can understand it.

@user pipex:
Cause I'm a very nice guy I give you a example...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--copied from resources...

function hud2(hudid,pid,text,x,y) --global and easier function to create huds
if x== nil and y==nil then
parse ("hudtxt2 "..pid.." "..hudid.." \""..text.."\" 5 300") --default if x and y are NULL
else
parse ("hudtxt2 "..pid.." "..hudid.." \""..text.."\" "..x.." "..y)
end
end

--continue

addhook ("ms100","DuKrebskopf");
function DuKrebskopf()
for id=1,32 do -- loop every player
if (player(id,"exists")) then --check if exists
hud2(0,id,("Health:"..player(id,"health")),100,100) --display health
hud2(1,id,("Armor:"..player(id,"armor")),100,115) --display armor
end
end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht