I need his help friends, I need a Lua or a menu to activate and deactivate the show damage, but for a player activates and deactivates the show damage, The server DR # Doghouse Contains that lua in F2, Thanks
Forum
CS2D Scripts Activate & Deactivate Show damage requestActivate & Deactivate Show damage request
3 replies 1
I need his help friends, I need a Lua or a menu to activate and deactivate the show damage, but for a player activates and deactivates the show damage, The server DR # Doghouse Contains that lua in F2, Thanks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
-------------------------------------------- -- Show Damage Script by FastLine Advance -------------------------------------------- sd = {} function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end sd.damage = initArray(32) sd.showtimer = initArray(32) sd.showdamage = {} addhook('join','sd.join') function sd.join(id) sd.showdamage[id] = "ON" end addhook('serveraction','sd.serveraction') function sd.serveraction(id,act) if act == 1 then if sd.showdamage[id] == "ON" then men = "OFF" else men = "ON" end menu(id,"Show damage,"..men) end end addhook('menu','sd.menu') function sd.menu(id,title,button) if title == "Show damage" then if button == 1 then if sd.showdamage[id] == "ON" then sd.showdamage[id] = "OFF" msg2(id,string.char(169).."255255255Show damage is "..string.char(169).."128000064Deactivated") else sd.showdamage[id] = "ON" msg2(id,string.char(169).."255255255Show damage is "..string.char(169).."000128000Activated") end end end end addhook('hit','sd.hit') function sd.hit(id,src,wpn,hp) if hp > 0 then sd.damage[src] = sd.damage[src] + hp sd.show(src) sd.showtimer[src] = 10 end end function sd.show(id) if sd.showdamage[id] == "ON" then parse('hudtxt2 '..id..' 0 "©255255255-'..sd.damage[id]..' HP" 300 200 -1') end end addhook('ms100','sd.check') function sd.check() for i = 1,32 do if player(i,'exists') then if sd.showtimer[i] > 0 then sd.showtimer[i] = sd.showtimer[i] - 1 else sd.damage[i] = 0 parse('hudtxt2 '..i..' 0 "" 320 240 0') end end end end
- Your Welcome.
1