Forum
Scripts
Server info menu!
Server info menu!
7 replies
1

1
2
3
4
5
6
2
3
4
5
6
addhook("serveraction","infomenu")
function infomenu(id,act)
if act==1 then
menu(id,"Info Menu,Help,Help 2,Help 3, Etc")
end
end
Then give each button an info that sends a message to the player, for example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("menu","infomenu")
function buymenu(id,title,buton)
if title=="Info Menu" then
if buton==1 then
		msg2(id,"©000255000Press space to jump!@C")
end
elseif buton==2 then
		msg2(id,"©000255000Server owner is Voyaflexel!@C")
end
elseif buton==3 then
		msg2(id,"©000255000Our site is: Example.com@C")
end
elseif buton==4 then
		msg2(id,"©000255000LoL!@C")
end
end
end
end
PS. code not tested, Good luck.
1
2
3
4
5
6
2
3
4
5
6
addhook("say","tsay")
function tsay(id,txt)
	if txt=="!info2" then
		parse("serverinfo")
	end
end
Suprise has written1
2
3
4
5
6
2
3
4
5
6
addhook("say","tsay")
function tsay(id,txt)
	if txt=="!info2" then
		parse("serverinfo")
	end
end
I don't want open server info i want open menu what looks like server info menu where i can put text
Black Wolf has writtenThx, but i mean the menu where are only text like server info...
I think no way, but you still can do something like it, by:
changeing what i gave you from a msg into a hud text or a hud picture. good luck.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
funcion infomenu(id)
local m = "Serverinfo@b,"
local file = io.open("sys/serverinfo.txt","r")
for line in file:lines() do
m=m..line..","
end
menu(id,m)
end
addhook('say','say')
function say(id,text)
if text:lower() == '!info2' then
infomenu(id)
end
end
Not tested code (sorry for no tabs, Im not sure how to add them on android system), I hope you understand the logic, however you may need several pages of menus because this code can only show you 9 lines of serverinfo.txt
1

Offline