I want when I choose ninja, the image shouldn't be removed yet when I choose "yay", the other "yay" images should be removed. Please help guys, thank you for your support.
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
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
addhook("spawn","spawn_hook") function spawn_hook(id) parse("equip 1 84") end addhook("serveraction","serveraction_hook") function serveraction_hook(id,act) if act == 1 then menu(id,"MAIN MENU,ORK|CLASS,NINJA|CLASS,YAYLAR|Menu,KILICLAR|Menu,ASALAR|Menu,HANCERLER|Menu") end end addhook("menu","menu_hook") function menu_hook(id,title,button) if (title == "MAIN MENU") then if button == 1 then freeimage(id) id=image("gfx/ork.PNG",3,0,1+200) end if button == 2 then freeimage(id) id=image("gfx/ninja.PNG",3,0,1+200) return 1 end if button == 3 then menu(id,"Yay Menu,Aura,Monster Eye,Crimson Web") end if button == 4 then menu(id,"Kilic Menu,Aura,Monster Eye,Crimson Web") end if button == 5 then menu(id,"Asa Menu,Aura,Monster Eye,Crimson Web") end if button == 6 then menu(id,"Hancer Menu,Aura,Monster Eye,Crimson Web") end end if title == "Yay Menu" then if button == 1 then menu(id,"Aura Yaylar,AURA|C,AURA|B,AURA|A,AURA|S,AURA|R,AURA|SR") end end if title == "Aura Yaylar" then if button == 1 then image("gfx/aura.PNG",3,0,1+200) end if button == 2 then image("gfx/aura2.PNG",3,0,1+200) end if button == 3 then image("gfx/aura3.PNG",3,0,1+200) end if button == 4 then image("gfx/aura4.PNG",3,0,1+200) end if button == 5 then image("gfx/aura5.PNG",3,0,1+200) end if button == 6 then image("gfx/aura6.PNG",3,0,1+200) end end end
edited 2×, last 06.01.18 11:16:27 am