I downloaded this lua ... and I'm changing (I do not use another)
as put
hen you pass lvl +10 / item?
I am learning
this is the code where I work
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end level=initArray(32) exp=initArray(32) asd=initArray(32) function string.split(text,b) local cmd = {} if b then b = b else b = "%s" end b = "[^"..b.."]+" for o in string.gmatch(text,b) do table.insert(cmd,o) end return cmd end addhook("ms100","ms_hud") function ms_hud() for id = 1,32 do if (player(id,"exists")) then 		 	 asd[id]=123*level[id]+1	 		 parse('hudtxt2 '..id..' 48 "©000255000Server Level: '..level[id]..' " 13 117') parse('hudtxt2 '..id..' 49 "©000255000Server Exp: '..exp[id]..'/'..asd[id]..' " 13 129') 	 end	 		 end end addhook("objectkill","objectkill") function objectkill(id,player) if exp[player] < asd[player] then exp[player]=exp[player]+100 end	 if exp[player] == asd[player] or exp[player] > asd[player] then exp[player]=0 level[player]=level[player]+1 msg2(player,"©000255000Level up!@C") parse("sv_sound2 "..id.." levelup.wav") msg("©255075000"..player(id,"name").." reached "..level[player].." level!") end end addhook("kill","ms_kill") function ms_kill(id) if exp[id] < asd[id] then exp[id]=exp[id]+100 end	 if exp[id] == asd[id] or exp[id] > asd[id] then exp[id]=0 level[id]=level[id]+1 msg2(id,"©000255000Level up!@C") parse("sv_sound2 "..id.." levelup.wav") msg("©255075000"..player(id,"name").." reached "..level[id].." level!") end end addhook("spawn","spawn") function spawn(id) if level[id] >= 2 and level[id] < 3 then 			--id=image("gfx/vkillerc.png",1,0,100+id) 			--imageblend(id,0) 			--imagealpha(id,0.5) 			addsetmaxhealth(id, 500) 			--id=setmaxhealth ("105") 			 		elseif level[id] >= 3 and level[id] < 4 then 			id=image("gfx/bossc.bmp",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5) 		elseif level[id] >= 4 and level[id] < 5 then 			id=image("gfx/tdtc.png",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5)	 					elseif level[id] >= 5 and level[id] < 6 then 			id=image("gfx/00.png",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5)	 					elseif level[id] >= 6 and level[id] < 7 then 			id=image("gfx/01.png",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5)	 								elseif level[id] >= 7 and level[id] < 8 then 			id=image("gfx/06.png",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5)	 			 								elseif level[id] >= 8 and level[id] < 9 then 			id=image("gfx/03.png",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5)	 											elseif level[id] >= 9 and level[id] < 99 then 			id=image("gfx/05.png",1,0,100+id) 			imageblend(id,0) 			imagealpha(id,0.5)	 		end end addhook("leave","save_leave") function save_die(id) if (player(id,"usgn")>0) then io.output(io.open("sys/lua/saves/"..player(id,"usgn")..".txt","w+")) io.write(exp[id].." "..level[id]) io.close() end end addhook("die","save_die") function save_die(id) if (player(id,"usgn")>0) then io.output(io.open("sys/lua/saves/"..player(id,"usgn")..".txt","w+")) io.write(exp[id].." "..level[id]) io.close() end end addhook("join","save_join") function save_join(id) if (player(id,"usgn")>0) then for line in io.lines("sys/lua/saves/"..player(id,"usgn")..".txt") do line = line:split() local ms_exp = tonumber(line[1]) local ms_level = tonumber(line[2]) level[id]=ms_level exp[id]=ms_exp end end end