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
addhook("serveraction","pm")
function pm(id,act)
	if act==1 then
		s1="Player Menu 1"
		s2="Player Menu 2"
		s3="Player Menu 3"
		s4="Player Menu 4"
		for i=1,#(player(0,"table")) do
			if i<=8 then
				s1=s1..","..player(i,"name")
			end	
			if i==9 then
				s1=s1..",Next"
			end
			if i>8 and i<17 then
				s2=s2..","..player(i,"name")
			end
			if i==17 then
				s2=s2..",Next"
			end
			if i>16 and i<25 then
				s3=s3..","..player(i,"name")
			end
			if i==25 then
				s3=s3..",Next"
			end
			if i>24 then
				s4=s4..","..player(i,"name")
			end
		end
		menu(id,s1)
	end
end
addhook("menu","pm2")
function pm2(id,title,buton)
	if title=="Player Menu 1" then
		if buton==9 then
			menu(id,s2)
		end
	elseif title=="Player Menu 2" then
		if buton==9 then
			menu(id,s3)
		end
	elseif title=="Player Menu 3" then
		if buton==9 then
			menu(id,s4)
		end
	end
end