Forum

> > CS2D > Scripts > Zombie Swarm Lua Request (Simple)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Zombie Swarm Lua Request (Simple)

49 Antworten
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

alt Re: Zombie Swarm Lua Request (Simple)

Yates
Reviewer Off Offline

Zitieren
user krabob hat geschrieben
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.

alt Re: Zombie Swarm Lua Request (Simple)

EP
User Off Offline

Zitieren
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
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
i think this works

alt Re: Zombie Swarm Lua Request (Simple)

Suprise
BANNED Off Offline

Zitieren
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!

alt Re: Zombie Swarm Lua Request (Simple)

BcY
Reviewer Off Offline

Zitieren
@user EP:
it isnt working well.when a zombie killed a human and if you click for spawn.it is adding +1 death score in your lua.

what is the problem..please fix it..


__
But you understood me ,@user EP

alt Re: Zombie Swarm Lua Request (Simple)

sheeL
User Off Offline

Zitieren
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
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

works
1× editiert, zuletzt 25.03.12 19:32:59

alt Re: Zombie Swarm Lua Request (Simple)

BcY
Reviewer Off Offline

Zitieren
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?

alt Re: Zombie Swarm Lua Request (Simple)

sheeL
User Off Offline

Zitieren
user BcY hat geschrieben
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?



heey !
I did not understand, explain better

this?

1
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

alt Re: Zombie Swarm Lua Request (Simple)

BcY
Reviewer Off Offline

Zitieren
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.

alt Re: Zombie Swarm Lua Request (Simple)

sheeL
User Off Offline

Zitieren
user BcY hat geschrieben
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.


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
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

Have Fun

alt Re: Zombie Swarm Lua Request (Simple)

Jhony
User Off Offline

Zitieren
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

alt Perfect Works

sheeL
User Off Offline

Zitieren
user Jhony hat geschrieben
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


Indeed, gain "movetile," does the job,
not use the script with bots
only with player ONLINE
@user BcY: and @user Jhony:
There is a catch, two hooks are making the function
sry for my english here

alt Re: Zombie Swarm Lua Request (Simple)

sheeL
User Off Offline

Zitieren
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

alt Re: Zombie Swarm Lua Request (Simple)

BcY
Reviewer Off Offline

Zitieren
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.

alt Re: Zombie Swarm Lua Request (Simple)

sheeL
User Off Offline

Zitieren
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"

alt oh Yeaaah !

sheeL
User Off Offline

Zitieren
user BcY hat geschrieben
ok please change it..
im very gratefull to you..


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
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

Have Fun
100 % Working Now !

alt Re: Zombie Swarm Lua Request (Simple)

Jhony
User Off Offline

Zitieren
user sheeL hat geschrieben
user BcY hat geschrieben
ok please change it..
im very gratefull to you..


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
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

Have Fun
100 % Working Now !


OH YEAH !
@user Yates: Is Possible
@user sheeL: Thank's , You Helped My Life =0
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht