The functions (1) This :
More
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
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
function rp_action(id,a) 	if a == 1 then 		if drop_system_m == 1 then 			menu(id,"Drop System,$100 |0.1k ,$500 |0.5k,$1000 |1k,$5000 |5k,$10000 |10k,$50000 |50k,$100000 |100k,Buy menu") 		else 			gmsg2(id,"255000000","Drop System is off!@C") 		end 	elseif a == 2 then 		if rp_ct[id]==true then 			menu(id,"CT Menu,Settings,Teleport,License System,Commands,Add-on,VIP,options") 		else 			if tele_sys == 1 then 				if rp_license[id] > 0 then 					if rp_arrest[id] == true then 						gmsg2(id,"255000000","No phone , TV , .. on jail") 					else 						menu(id,"T Menu,Teleport,Add ons,Add on color,VIP,More") 					end 				else 					gmsg2(id,"255000000","You must to be licenced!") 				end 			end 		end 	elseif a == 3 then 		if (rp_ct[id]==true) and (rp_Adminlevel[id]>= wallhack_lv ) then 			local rot = player(id,"rot") 			if rot < -90 then rot = rot + 360 end 			local angle = math.rad(math.abs( rot + 90 )) - math.pi 			local x = player(id,"x") + math.cos(angle) * 32 			local y = player(id,"y") + math.sin(angle) * 32 			if x > 0 and y > 0 and x < map("xsize") * 32 and y < map("ysize") * 32 then 				parse("setpos "..id.." "..x.." "..y) 			end 		end 	end end
And This is Nember 2 functions :
More
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
if BB==nil then BB={} end BB.mapvote={} function initArray(m) 	local array = {} 	for i = 1, m 	do array[i]=0 	end 		return array end maps = {} maps = {"de_dust","de_dust2","de_dust3","de_dust4","aim_shotgun","ctf_acid","lol","aimtest","Yates`s test","Nooooooooooooooooooooooob"} voted=initArray(32) count_down = 60 endsec = 30 votestarted = 0 voteend = 0 no = 0 yes = 0 locked=false function selectmenu(id, page) 	local page = page or 1 	local pages = math.ceil(#maps / 6) 	if page < 1 then page = pages end 	if page > pages then page = 1 end 	local m = 'Vote for map'.. page 	for i = 6 * page - 5, 6 * page do 		if maps[i] then m = m ..', '.. maps[i] else m = m ..',' end 	end 	if page == pages then m = m ..',,<<- First page' else m = m ..',,Next page -->' end 	if page == 1 then m = m ..',Last page ->>' else m = m ..',<-- Previvius page' end 	menu(id, m) end addhook("menu", "BB.mapvote.mapmenu") function BB.mapvote.mapmenu(id, title, button) local page = title:match('Vote for map([%d]+)') if page ~= nil then page = tonumber(page) 		 if locked == false then if button == 8 then selectmenu(id, page + 1) end if button == 9 then selectmenu(id, page - 1) end if button <= 6 then 				maptovote = (page - 1) * 6 + button 				msg("©000255000"..player(id,"name").." called a vote to "..maps[maptovote].."") 				msg("©255255255Press [F3] for YES, [F4] for NO!") 				msg("©000255000"..player(id,"name").." voted YES!") 				yes = yes+1 				voted[id] = 1 				parse('hudtxt 42 "©000255000Called a vote For: '..maps[maptovote]..'" 5 410') 				votestarted = 1 				locked=true 			end 		end 	end end addhook("second","BB.mapvote.countdown") function BB.mapvote.countdown() 	if votestarted == 1 then 		if count_down == 0 then 			if yes > no then 				voteend = 1 				msg("©000255000The poll is ACCEPTED!") 				parse("sv_sound The mapvote system/end9.ogg") 				parse('hudtxt 42 "" 5 410') 				parse('hudtxt 43 "" 200 410') 				addhook("second","BB.mapvote.lastseconds") 			end 			if yes < no then 				msg("©255000000The poll is REJECTED!") 				parse("sv_sound The mapvote system/rj.ogg") 				locked=false 				parse('hudtxt 42 "" 5 410') 				parse('hudtxt 43 "" 200 410') 			end 			if yes == no then 				msg("©255255255The poll is DRAW!") 				parse('hudtxt 42 "" 5 410') 				parse('hudtxt 43 "" 5 423') 				locked=false 			end 			votestarted = 0 			count_down = 60 			for all = 1,32 do 				voted[all] = 0 			end 			no = 0 			yes = 0 		else 			parse('hudtxt 43 "©255255255Time: '..count_down..' YES: '..yes..' NO: '..no..'" 5 423') 			count_down=count_down-1 		end 	end 	if voteend == 1 then 		endsec = endsec-1 	end 	if endsec == -1 then 		parse("map "..maps[maptovote].."") 		endsec = 30 		yes = 0 		no = 0 		count_down = 60 	end end addhook("serveraction","BB.mapvote.votemenu") function BB.mapvote.votemenu(id,action) 	if action == 1 then 		if locked == false then 			selectmenu(id, 1) 		end 	end end function BB.mapvote.lastseconds() 	for id=1,32 do 		parse('hudtxt 2 "©000255000Mapchange to '..maps[maptovote]..' in '..endsec..' seconds" 5 425') 	end end addhook("serveraction","BB.mapvote.votechoose") function BB.mapvote.votechoose(id,action) 	if action == 2 then 		if voted[id] == 0 then 			if votestarted == 1 then 				yes = yes+1 				voted[id] = 1 				msg("©000255000"..player(id,"name").." voted YES!") 				parse("sv_sound2 "..id.." The mapvote system/voted.ogg") 			end 		else 			msg2(id,"©255000000You've already voted!@C") 		end 	elseif action == 3 then 		if voted[id] == 0 then 			if votestarted == 1 then 				no = no+1 				voted[id] = 1 				msg("©000255000"..player(id,"name").." voted NO!") 				parse("sv_sound2 "..id.." The mapvote system/voted.ogg") 			end 		else 			msg2(id,"©255000000You've already voted!@C") 		end 	end end addhook("join","BB.mapvote.join") function BB.mapvote.join(id) 	if votestarted == 1 then 		voted[id] = 1 	end end
i can make 2 functios in button (F2) ?