Forum

> > CS2D > Scripts > life and armor show in the text hudt
Forums overviewCS2D overview Scripts overviewLog in to reply

English life and armor show in the text hudt

7 replies
To the start Previous 1 Next To the start

moved life and armor show in the text hudt

pipex
User Off Offline

Quote
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 comment

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

old Re: life and armor show in the text hudt

Glix
User Off Offline

Quote
user TimeQuesT has written
user pipex has written
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.

old Re: life and armor show in the text hudt

TimeQuesT
User Off Offline

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

user Glix has written
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview