English Zombie Swarm Lua Request (Simple)

49 replies
Goto Page
To the start Previous 1 2 3 Next To the start
24.03.12 10:06:01 pm
Up
Yates
User
Offline Off
user krabob 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.
www.nakedgreenman.com | www.ngmhost.com | thread offtopic UnrealBash is back! | For all those who whine about me using things; here.
24.03.12 10:06:31 pm
Up
EP
User
Offline Off
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
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
24.03.12 10:29:56 pm
Up
Suprise
BANNED
Offline Off
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!
I'm a gay nazi nigger.
25.03.12 02:56:13 pm
Up
BcY
User
Offline Off
@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
25.03.12 06:10:20 pm
Up
sheeL
User
Offline Off
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
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
edited 1×, last 25.03.12 07:32:59 pm
25.03.12 08:11:59 pm
Up
BcY
User
Offline Off
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?
25.03.12 08:35:02 pm
Up
sheeL
User
Offline Off
user 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?



heey !
I did not understand, explain better

this?

Code:
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
25.03.12 08:51:48 pm
Up
BcY
User
Offline Off
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.
25.03.12 11:42:21 pm
Up
sheeL
User
Offline Off
user 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.


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
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
26.03.12 04:31:37 pm
Up
BcY
User
Offline Off
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.
26.03.12 05:38:57 pm
Up
Jhony
User
Offline Off
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
26.03.12 05:41:30 pm
Up
sheeL
User
Offline Off
user 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


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
26.03.12 05:44:25 pm
Up
BcY
User
Offline Off
ok. but why humans have got claw?
26.03.12 05:52:03 pm
Up
sheeL
User
Offline Off
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
26.03.12 06:00:12 pm
Up
BcY
User
Offline Off
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.
26.03.12 06:06:29 pm
Up
sheeL
User
Offline Off
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"
26.03.12 06:18:16 pm
Up
BcY
User
Offline Off
ok please change it..
im very gratefull to you..
26.03.12 09:19:33 pm
Up
sheeL
User
Offline Off
user BcY has written:
ok please change it..
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
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 !
26.03.12 11:00:31 pm
Up
Jhony
User
Offline Off
user sheeL has written:
user BcY has written:
ok please change it..
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
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
27.03.12 02:09:48 pm
Up
Yates
User
Offline Off
@user 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.
www.nakedgreenman.com | www.ngmhost.com | thread offtopic UnrealBash is back! | For all those who whine about me using things; here.
To the start Previous 1 2 3 Next To the start