Zombie Swarm Lua Request (Simple)
49 replies
-KratoS- has written:Well how about not doing zombie mode then? Use standard mode and give all the TT players claws. This way when a CT player is killed by a TT player he will die and not respawn as a zombie.
But then the T's won't respawn either. Making him come back in a few minutes complaining again.
Code:
i think this works 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
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
function Array(size,value)
local array = {}
for i = 1,size do
array[i] = value
end
return array
end
infected = Array(32,false)
addhook("join","a")
addhook("startround","a")
function a(id)
infected[id] = false
end
addhook("kill","b")
function b(killer,victim)
if player(killer,"team") == 1 and player(victim,"team") == 2 then
infected[victim] = true
end
end
addhook("spawn","c")
function c(id)
if infected[id] == true then
parse("killplayer "..id)
end
end
local array = {}
for i = 1,size do
array[i] = value
end
return array
end
infected = Array(32,false)
addhook("join","a")
addhook("startround","a")
function a(id)
infected[id] = false
end
addhook("kill","b")
function b(killer,victim)
if player(killer,"team") == 1 and player(victim,"team") == 2 then
infected[victim] = true
end
end
addhook("spawn","c")
function c(id)
if infected[id] == true then
parse("killplayer "..id)
end
end
Rly work dude! But then your statics will be suck!
Can you edit that ex. when Zombie cant respawn bcuz he is die again and again so then remove 1 death?
EDIT: Sorry man but doesnt work! When start a new round Humans cant spawn!
Can you edit that ex. when Zombie cant respawn bcuz he is die again and again so then remove 1 death?
EDIT: Sorry man but doesnt work! When start a new round Humans cant spawn!
o.-
Code:
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
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
xp = {}
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
addhook ("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(killer,victim)
if player(killer,"team") == 1 and player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
addhook("die","c")
function c(p,x,y)
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse ("spawnplayer "..p.." "..xp[p].." "..yp[p])
end
addhook("second","clawforall")
function clawforall(id)
for id = 1,32 do
parse("equip "..id.." 78")
end
end
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
addhook ("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(killer,victim)
if player(killer,"team") == 1 and player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
addhook("die","c")
function c(p,x,y)
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse ("spawnplayer "..p.." "..xp[p].." "..yp[p])
end
addhook("second","clawforall")
function clawforall(id)
for id = 1,32 do
parse("equip "..id.." 78")
end
end
works
edited 1×, last 25.03.12 07:32:59 pm
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
it is working.but there is a problem.
when zombie infected a human.he is spawning there but he havent got claw on 1st equip.
and when a human kill a zombie,zombie spawning where is he died..and he havent got claw too. do you understand the problem?
how can i fix it?
when zombie infected a human.he is spawning there but he havent got claw on 1st equip.
and when a human kill a zombie,zombie spawning where is he died..and he havent got claw too. do you understand the problem?
how can i fix it?
BcY has written:it is working.but there is a problem.
when zombie infected a human.he is spawning there but he havent got claw on 1st equip.
and when a human kill a zombie,zombie spawning where is he died..and he havent got claw too. do you understand the problem?
how can i fix it?
when zombie infected a human.he is spawning there but he havent got claw on 1st equip.
and when a human kill a zombie,zombie spawning where is he died..and he havent got claw too. do you understand the problem?
how can i fix it?
heey !
I did not understand, explain better
this?
Code:
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("team","checking")
function checking(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
return false
end
function checking(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
return false
end
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
it is working.but there is a problem.
look:
1-When a zombie infected a human,human is respawning there and turning into zombie
-But he hasnt got claw.
-->zombies must to have claw when they are respawned
3-and when a human kill a zombie,zombie is respawning there
-->Zombies must to spawn in zm base(t spawn)
when
they killed by humans.
look:
1-When a zombie infected a human,human is respawning there and turning into zombie
-But he hasnt got claw.
-->zombies must to have claw when they are respawned
3-and when a human kill a zombie,zombie is respawning there
-->Zombies must to spawn in zm base(t spawn)
when
they killed by humans.
BcY has written:it is working.but there is a problem.
look:
1-When a zombie infected a human,human is respawning there and turning into zombie
-But he hasnt got claw.
-->zombies must to have claw when they are respawned
3-and when a human kill a zombie,zombie is respawning there
-->Zombies must to spawn in zm base(t spawn)
when
they killed by humans.
look:
1-When a zombie infected a human,human is respawning there and turning into zombie
-But he hasnt got claw.
-->zombies must to have claw when they are respawned
3-and when a human kill a zombie,zombie is respawning there
-->Zombies must to spawn in zm base(t spawn)
when
they killed by humans. Code:
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
77
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
77
xp = {}
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
--[[ Hooks and Functions ]]--
addhook("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(p,killer,victim)
if player(killer,"team") == 1 then
if player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
end
addhook("die","c")
function c(p,team,x,y)
local tm=player(p,"team")
if tm == 2 then
tm=2
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse("spawnplayer "..p.." "..xp[p].." "..yp[p])
parse("equip "..p.." 78")
end
end
addhook("die","died")
function died(id,team)
local tx=player(id,"team")
if tx == 2 then
tx=2
parse("equip "..id.." 78")
end
end
addhook("movetile","tile")
function tile(team)
if team == 2 then
for id = 1,32 do
parse("strip "..id.." 78 ")
end
end
end
addhook("move","tilxe")
function tilxe(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
end
addhook("second","sec")
function sec()
for id = 1,32 do
parse("equip "..id.." 78")
end
end
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
--[[ Hooks and Functions ]]--
addhook("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(p,killer,victim)
if player(killer,"team") == 1 then
if player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
end
addhook("die","c")
function c(p,team,x,y)
local tm=player(p,"team")
if tm == 2 then
tm=2
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse("spawnplayer "..p.." "..xp[p].." "..yp[p])
parse("equip "..p.." 78")
end
end
addhook("die","died")
function died(id,team)
local tx=player(id,"team")
if tx == 2 then
tx=2
parse("equip "..id.." 78")
end
end
addhook("movetile","tile")
function tile(team)
if team == 2 then
for id = 1,32 do
parse("strip "..id.." 78 ")
end
end
end
addhook("move","tilxe")
function tilxe(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
end
addhook("second","sec")
function sec()
for id = 1,32 do
parse("equip "..id.." 78")
end
end
Have Fun
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
it is working well then older simple.
but there is a bit problem..
why there are claw on CTs?
look to the picture.
when cts respawned they have claw equip:
http://img411.yukle.tc/images/6621cs.jpg
and
when a zombie infected humans,they havent got claw on hands look to the picture:
http://img411.yukle.tc/images/5444dom_tinysandbox_ph_00000.jpg
please fix..and finish it.
but there is a bit problem..
why there are claw on CTs?
look to the picture.
when cts respawned they have claw equip:
http://img411.yukle.tc/images/6621cs.jpg
and
when a zombie infected humans,they havent got claw on hands look to the picture:
http://img411.yukle.tc/images/5444dom_tinysandbox_ph_00000.jpg
please fix..and finish it.
The Perfect Running:
When the CT walks, he loses his claw when he stands still, the claw is with him, but if she leaves him walk.
When the Zombie Re-born, he has guts, but he has to select it
Enjoy, enteder If not, please comment here
sorry my english here
When the CT walks, he loses his claw when he stands still, the claw is with him, but if she leaves him walk.
When the Zombie Re-born, he has guts, but he has to select it
Enjoy, enteder If not, please comment here
sorry my english here
26.03.12 05:41:30 pm
Jhony has written:The Perfect Running:
When the CT walks, he loses his claw when he stands still, the claw is with him, but if she leaves him walk.
When the Zombie Re-born, he has guts, but he has to select it
Enjoy, enteder If not, please comment here
sorry my english here
When the CT walks, he loses his claw when he stands still, the claw is with him, but if she leaves him walk.
When the Zombie Re-born, he has guts, but he has to select it
Enjoy, enteder If not, please comment here
sorry my english here

Indeed, gain "movetile," does the job,
not use the script with bots
only with player ONLINE
@
BcY: and @
Jhony: There is a catch, two hooks are making the function
sry for my english here
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
Why do not I managed separately
It then
If the CT or Floor Mix, He Loses to Claw
Staying Stopped him if he remains with the floor but if Claw loses
Got it?
CT STOPED = HAVE CLAW
CT WALKING = LOSER CLAW
It then
If the CT or Floor Mix, He Loses to Claw
Staying Stopped him if he remains with the floor but if Claw loses
Got it?
CT STOPED = HAVE CLAW
CT WALKING = LOSER CLAW
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
ok.i have got a last question.
why a infected person havent got claw on his hand.
but there is claw in his equip.
i want to make it on hand automatically.
why a infected person havent got claw on his hand.
but there is claw in his equip.
i want to make it on hand automatically.
It's the hook "second" it changes everything
it is impossible to change this setting
I might add a warning message like this:
"You received a claw"
it is impossible to change this setting
I might add a warning message like this:
"You received a claw"
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
26.03.12 09:19:33 pm
BcY has written:ok please change it..
im very gratefull to you..
im very gratefull to you..

Code:
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
77
78
79
80
81
82
83
84
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
77
78
79
80
81
82
83
84
xp = {}
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
--[[ Hooks and Functions ]]--
addhook("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(p,killer,victim)
if player(killer,"team") == 1 then
if player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
end
addhook("die","c")
function c(p,team,x,y)
local tm=player(p,"team")
if tm == 2 then
tm=2
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse("spawnplayer "..p.." "..xp[p].." "..yp[p])
end
end
addhook("die","died")
function died(id,team)
local tx=player(id,"team")
if tx == 2 then
tx=2
parse("equip "..id.." 78")
end
end
addhook("movetile","tile")
function tile(team)
if team == 2 then
for id = 1,32 do
parse("strip "..id.." 78 ")
end
end
end
addhook("move","tilxe")
function tilxe(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
end
addhook("second","sec")
function sec()
for id = 1,32 do
parse("equip "..id.." 78")
end
end
addhook("always","fail")
function fail()
for p = 1,32 do
parse('hudtxt2 '..p..' 1 "©250100100Zombie Forces < ZM TEAM > Warns : Presh The Button <3> To Enable Claw Weapon " 2 10')
end
return p
end
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
--[[ Hooks and Functions ]]--
addhook("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(p,killer,victim)
if player(killer,"team") == 1 then
if player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
end
addhook("die","c")
function c(p,team,x,y)
local tm=player(p,"team")
if tm == 2 then
tm=2
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse("spawnplayer "..p.." "..xp[p].." "..yp[p])
end
end
addhook("die","died")
function died(id,team)
local tx=player(id,"team")
if tx == 2 then
tx=2
parse("equip "..id.." 78")
end
end
addhook("movetile","tile")
function tile(team)
if team == 2 then
for id = 1,32 do
parse("strip "..id.." 78 ")
end
end
end
addhook("move","tilxe")
function tilxe(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
end
addhook("second","sec")
function sec()
for id = 1,32 do
parse("equip "..id.." 78")
end
end
addhook("always","fail")
function fail()
for p = 1,32 do
parse('hudtxt2 '..p..' 1 "©250100100Zombie Forces < ZM TEAM > Warns : Presh The Button <3> To Enable Claw Weapon " 2 10')
end
return p
end
Have Fun
100 % Working Now !
Que se Realize, oque sempre sonhei, que se Torne verdade, oque Maginei, só então saberei..., que não errei, quanto a ti olhar, eu Amei (8)
sheeL has written:
BcY has written:ok please change it..
im very gratefull to you..
im very gratefull to you..

Code:
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
77
78
79
80
81
82
83
84
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
77
78
79
80
81
82
83
84
xp = {}
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
--[[ Hooks and Functions ]]--
addhook("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(p,killer,victim)
if player(killer,"team") == 1 then
if player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
end
addhook("die","c")
function c(p,team,x,y)
local tm=player(p,"team")
if tm == 2 then
tm=2
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse("spawnplayer "..p.." "..xp[p].." "..yp[p])
end
end
addhook("die","died")
function died(id,team)
local tx=player(id,"team")
if tx == 2 then
tx=2
parse("equip "..id.." 78")
end
end
addhook("movetile","tile")
function tile(team)
if team == 2 then
for id = 1,32 do
parse("strip "..id.." 78 ")
end
end
end
addhook("move","tilxe")
function tilxe(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
end
addhook("second","sec")
function sec()
for id = 1,32 do
parse("equip "..id.." 78")
end
end
addhook("always","fail")
function fail()
for p = 1,32 do
parse('hudtxt2 '..p..' 1 "©250100100Zombie Forces < ZM TEAM > Warns : Presh The Button <3> To Enable Claw Weapon " 2 10')
end
return p
end
yp = {}
function array(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
xp = array(32)
yp = array(32)
--[[ Hooks and Functions ]]--
addhook("join","rt")
function rt(p)
xp[p] = 0
yp[p] = 0
end
addhook("kill","b")
function b(p,killer,victim)
if player(killer,"team") == 1 then
if player(victim,"team") == 2 then
xp[p] = 1
yp[p] = 1
return xp,yp
end
end
end
addhook("die","c")
function c(p,team,x,y)
local tm=player(p,"team")
if tm == 2 then
tm=2
xp[p]=player(p,"x")
yp[p]=player(p,"y")
parse("spawnplayer "..p.." "..xp[p].." "..yp[p])
end
end
addhook("die","died")
function died(id,team)
local tx=player(id,"team")
if tx == 2 then
tx=2
parse("equip "..id.." 78")
end
end
addhook("movetile","tile")
function tile(team)
if team == 2 then
for id = 1,32 do
parse("strip "..id.." 78 ")
end
end
end
addhook("move","tilxe")
function tilxe(id,team)
if team == 2 then
parse("strip "..id.." 78 ")
end
end
addhook("second","sec")
function sec()
for id = 1,32 do
parse("equip "..id.." 78")
end
end
addhook("always","fail")
function fail()
for p = 1,32 do
parse('hudtxt2 '..p..' 1 "©250100100Zombie Forces < ZM TEAM > Warns : Presh The Button <3> To Enable Claw Weapon " 2 10')
end
return p
end
Have Fun
100 % Working Now !

OH YEAH !
@
_Y: Is Possible
@
sheeL: Thank's , You Helped My Life =0
@
Jhony: It isn't. What the OP wanted was that the CT couldn't respawn, now they just change team. He didn't ask for that.
Jhony: It isn't. What the OP wanted was that the CT couldn't respawn, now they just change team. He didn't ask for that. 










