Forum

> > CS2D > Scripts > script if health thing
Forums overviewCS2D overview Scripts overviewLog in to reply

English script if health thing

10 replies
To the start Previous 1 Next To the start

old script if health thing

robed
User Off Offline

Quote
hi guys

how do you make that thing (-if health with addhook-)

like example

if health == 100% then image......

can you show me the addhook and the others please.

old Re: script if health thing

TimeQuesT
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
addhook ("ms100","ms")
function ms()

for i=0,32 do

if (player(id,"exists") and player(id,"health")>=100) then

image (xxx);

end
end
end

old Re: script if health thing

Yates
Reviewer Off Offline

Quote
Someone already has made this before.
Haha, then every idiot that used a hack said that it looked the same. Haha, they failed. You could just see everyone that has used/is using hacks.

old Re: script if health thing

Infinite Rain
Reviewer Off Offline

Quote
1
2
3
4
5
6
addhook('hit', '_hit')
function _hit(id)
	if player(id, 'health') == 12 then-- anything u want
		--MAKE STUUFZ
	end
end

old Re: script if health thing

kalis
User Off Offline

Quote
let make with spawn hook =.=
make with second or ms ? not right if player health == 100 then
player will get many image

old Re: script if health thing

robed
User Off Offline

Quote
oooh thanks guys,
but how can i add freeimage in the script

1
2
3
4
5
6
7
addhook('hit', '_hit')
function _hit(id)
     if player(id, 'health') == 12 then-- anything u want
     elseif player(id, 'health') == 12 then-- freeimage(id) before

     end
end


just like that?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview