How to make the screamers by starkkz chase you, with his horror image come out and kill you in very near distance
Forum
CS2D Scripts Sirent ZombieSirent Zombie
4 replies 1
How to make the screamers by starkkz chase you, with his horror image come out and kill you in very near distance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("move","_mv") function _mv(id,x,y) for i=1,32 do if player(i,"exists") and player(id,"team")~=player(i,"team") and player(i,"health")>0 then local x2,y2=player(i,"x"),player(i,"y") local dist=math.sqrt((x2-x)^2 + (y2-y)^2) if dist < 80 then if player(i,"health")<=10 then parse("sethealth "..i.." "..player(i,"health")-(10)) else parse("customkill "..id.." scare "..i) end end end end end
for i = 1, 32 do- Instead, use
for _, i in pairs(player(0, "table")) do
Baloon has written Without image, not tested yet.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("move","_mv") function _mv(id,x,y) for i=1,32 do if player(i,"exists") and player(id,"team")~=player(i,"team") and player(i,"health")>0 then local x2,y2=player(i,"x"),player(i,"y") local dist=math.sqrt((x2-x)^2 + (y2-y)^2) if dist < 80 then if player(i,"health")<=10 then parse("sethealth "..i.." "..player(i,"health")-(10)) else parse("customkill "..id.." scare "..i) end end end end end
at line 7
Quote
if player(i,"health")>10 then
PS:I laughed till im out of ass because of zombie name.
1