Forum
CS2D Scripts can i make max health biggercan i make max health bigger
20 replies1
setmaxhealth <id> <amount>
If it was unlimited, most of kids/angry admins would abuse it.
Soo, don't even think about it.
Bobakrome for u maybe inpossible i bilieve
i ll try open thats zmmbie script and try find out how if no one hlp me
P.S:
Edit--
Kantos has written
lol its not in npc zombie is in zombie mod its possible but u dnt know how and me
i ll try open thats zmmbie script and try find out how if no one hlp me
i ll try open thats zmmbie script and try find out how if no one hlp me
Woah u edited i didn't know sorry
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Max_HP = 1000 HP_ID = {} for k = 1, 32 do 	HP_ID[k] = Max_HP end addhook('hit', 'HP_Hit') function HP_Hit(id, source, weapon, hpdmg, apdmg) 	if HP_ID[id] > 100 then 		HP_ID[id] = HP_ID[id] - hpdmg 		parse('hudtxt2 '..id..' 1 "Health: '.. HP_ID[id] ..'" 100 400 0') 		return 1 	else 		HP_ID[id] = HP_ID[id] - hpdmg 		parse('hudtxt2 '..id..' 1 "Health: '.. HP_ID[id] ..'" 100 400 0') 	end end addhook('spawn', 'HP_Spawn') function HP_Spawn(id) 	HP_ID[id] = Max_HP 	parse('hudtxt2 '..id..' 1 "Health: '.. HP_ID[id] ..'" 100 400 0') end
here you are
After that you should use addhook('hit','hithook') and make the hpdmg hit the variable[id] instead of the player.
Alistaire has written
That's like 1 fucking easy thing to do. First you must declare a variable[id] and then place how much health it has.
After that you should use addhook('hit','hithook') and make the hpdmg hit the variable[id] instead of the player.
After that you should use addhook('hit','hithook') and make the hpdmg hit the variable[id] instead of the player.
I already made one