The EXP Multiplier don't work
When kill, only receive +100 exp
1
2
2
if exp[id] < asd[id] then 		exp[id]=exp[id]+100+lvl[od]*12
And when level up, the maximum exp increase +150
asd[id]=150*lvl[id]+15
How do multiplier? like:
When LeveL UP, the maximum exp increase 100*The LeveL+25 (For example, if i am level 2, multiplier 100*2+25)
And when kill, receive stages, like: 50+(Double, triple, maximum 6x bonus), for example: I killed 5 in sequence, 50+(50*5)
And how save the current exp and level in a file and update every 5 minutes the current exp and lvl?
The Full code here
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
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
function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end lvl=initArray(32) exp=initArray(32) asd=initArray(32) sk1=initArray(32) sk2=initArray(32) sk3=initArray(32) h=initArray(32) hi=initArray(32) mai=initArray(32) mo=initArray(32) t=initArray(32) am=initArray(32) dme=initArray(32) n=initArray(32) no=initArray(32) skd=initArray(32) buss=initArray(32) quay=initArray(32) inbuss=initArray(32) bhor=initArray(32) tr1=initArray(32) tr2=initArray(32) msh = initArray(32) count=0 cou=0 addhook("ms100","ms_hud") function ms_hud() for id = 1,32 do if (player(id,"exists")) then		 	 asd[id]=150*lvl[id]+15 	 hi[id]=310*lvl[id]+1000+am[id]*2000	 		 	 mai[id]=273*lvl[id]+15	 parse('hudtxt2 '..id..' 45 "©255255255 Player: '..player(id,"name")..' " 0 105') 			 		 parse('hudtxt2 '..id..' 48 "©255000255 Level: '..lvl[id]..' " 0 125') parse('hudtxt2 '..id..' 49 "©255255100 Exp: '..exp[id]..'/'..asd[id]..' " 0 142') 		if h[id]>hi[id] then h[id]=hi[id] end 		if n[id]>3 then n[id]=3 end 		if lvl[id]>150 then lvl[id]=150 end 		if h[id]<0 then h[id]=player(id,"health") end 	if exp[id] == asd[id] or exp[id] > asd[id] and lvl[id]<150 then 		exp[id]=exp[id]-asd[id] 		lvl[id]=lvl[id]+1 		h[id]= hi[id] 		msg2(id,"©000255000LeveL UP!@C") 		msg("©255075000"..player(id,"name").." LeveL UP to "..lvl[id].." !") 	end 	 end	 		 end end addhook("kill","ms_kill") function ms_kill(id,od) 	if exp[id] < asd[id] then 		exp[id]=exp[id]+100+lvl[od]*12 	end	 	if exp[id] == asd[id] or exp[id] > asd[id] and lvl[id]<150 then 		exp[id]=exp[id]-asd[id] 		lvl[id]=lvl[id]+1 		h[id]= hi[id] 		msg2(id,"©000255000LeveL UP!@C") 		msg("©255075000"..player(id,"name").." LeveL UP to "..lvl[id].." !") 	end 	mo[id]=mo[id]+37*lvl[od]+125 +45*buss[od] end