1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
addhook("serveraction","test_") function test_(id,action) if action == 1 then menu(id,"Ability, Fast Reload|"..rprice..", Fast Building|"..bprice.."") elseif action == 1 and freload[id]==1 then menu(id,"Ability,(Fast Reload|Bought), Fast Building|"..bprice.."") elseif action == 1 and fbuild[id]==1 then menu(id,"Ability, Fast Reload|"..rprice..",(Fast Building|Bought)") elseif action == 1 and freload[id]==1 and fbuild[id]==1 then menu(id,"Ability,(Fast Reload|Bought),(Fast Building|Bought)") end end
I just make 2 menus in there, but it waste my time to make it 1 by 1
I've saw a simpler script from nowhere but I forget it's parts and I dont know how I can start it I think it be like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function test_() if freload[id]==1 then rmenu="(Fast Reload|Bought)" else rmenu="Fast Reload|"..rprice.." end if fbuild[id]==1 then bmenu="(Fast Build|Bought)" else bmenu="Fast Build|"..bprice.." end end addhook("serveraction","test") function test(id,action) if action==1 then menu(id,"Ability,"..rmenu..","..bmenu.."") end end
I think the last one is simpler because I just need to copy-paste then edit it, and it doesnt hurt my eyes anymore,. or maybe someone can fix my script or make a new simpler one thanks
1× editiert, zuletzt 20.12.14 20:01:25