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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
-- Football Characters Script by Blazzingxx
if lua==nil then lua={} end
lua.server={}
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
lua.server.type=initArray(32)
lua.server.ball=initArray(32)
function lua.server.classmenu(id)
	menu(id,"Select Your Type,Goal Keeper|(200 hp Speed 1.0),Defender|(140 hp Speed 1.1) ,Midfielder|(100 hp Speed 1.4),Striker|(80 hp Speed 1.5)")	
end
addhook("team","lua.server.team")
function lua.server.team(id,team)
	if (team>0) then
		lua.server.classmenu(id)
	end
end
addhook("menu","lua.server.menu")
function lua.server.menu(id,menu,sel)
	if (menu=="Select Your Type") then
		if (sel>=0 and sel<=6) then
			lua.server.type[id]=sel
			if (player(id,"health")>0) then
				parse("killplayer "..id)
			end
		end
	end
end
addhook("spawn","lua.server.spawn")
function lua.server.spawn(id)
	if (lua.server.type[id]<=1) then
		parse ("setmaxhealth "..id.." 200")
		parse ("speedmod "..id.." 1")
		return "41";
	end
	if (lua.server.type[id]==2) then
		parse ("setmaxhealth "..id.." 140")
		parse ("speedmod "..id.." 5")
		return
	end
	if (lua.server.type[id]==3) then
		parse ("setmaxhealth "..id.." 100")
		parse ("speedmod "..id.." 10")
		return
	end
	if (lua.server.type[id]==4) then
		parse ("setmaxhealth "..id.." 80")
		parse ("speedmod "..id.." 15")
		return
	end
end
addhook("hit","lua.server.snowball")
function lua.server.snowball(id,source,weapon,hpdmg,apdmg)
	if (hpdmg > 0) then
		if(weapon==75) then
			if lua.server.ball[source]==1 then
			lua.server.ball[source]=0
			lua.server.ball[id]=1
			parse("strip "..source.." 75")
			parse("equip "..id.." 75")
			msg(""..player(id,"name").." has the ball")
			end
		end
		 if(weapon==50) then
			if lua.server.ball[id]==1 then
			lua.server.ball[id]=0
			lua.server.ball[source]=1
			parse("strip "..id.." 75")
			parse("equip "..source.." 75")
			msg(""..player(source,"name").." has the ball")
			end
		end
	end
end
addhook("buy","lua.server.buy")
function lua.server.buy()
	return 1
end
addhook("walkover","lua.server.walkover")
function lua.server.walkover(id,iid,type)
	if type>=75 then
		lua.server.ball[id]=1
		return 0
	end
end
Thats working on your map