when u press button color exp : red then u say color exp : ©25552552554m4axmya Tn "..txt)
Forum
Scripts
How to create menu chat color
How to create menu chat color
11 replies
1

when u press button color exp : red then u say color exp : ©25552552554m4axmya Tn "..txt)
I guess you mean something like this:
Yates - Shit menu colour say changer
Zeik: it sucks
Just a side noteThe script made by
Ace Howl works without problems with the exception that it occupies all the serveraction buttons without letting space for other scripts which may use serveraction button. For that, here I've just tweaked it a bit from 12 to 14 line.1
2
3
4
5
2
3
4
5
function txt.sa(id, action) 	if action == 1 then 		menu(id,"Chat Colour,White,Pink,Red,Orange,Green,Blue,Brown,Gray,Black") 	end end
Can you tell me why so I can fix the sucky part? Or are you just mad and would like to throw out pathetic insults? Both are fine by me, whatever makes your day I guess.
Ace Howl's code.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
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
maincolor = {
	"White=255255255",
	"Pink=255128255",
	"Red=255000000",
	"Orange=255128000",
	"Green=000255000",
	"Blue=000000255",
	"Brown=128064000",
	"Gray=128128128",
	"Black=000000000"
}
playercolor = {}
for id = 1, 32 do
	playercolor[id] = 0
end
for index, hook in ipairs({"serveraction", "menu", "say"}) do
	addhook(hook, hook .. "hook")
end
function serveractionhook(id, action)
	if (action == 1) then
		local contents = "Chat Color,"
		
		for index, value in ipairs(maincolor) do
			local name = value:match("(%s*)=(%d*)")
			
			contents = contents .. name .. (index < #maincolor and "," or "")
		end
		
		menu(id, contents)
	end
end
function menuhook(id, title, button)
	if (title == "Chat Color") then
		if (button >= 1 and button <= 9) then
			playercolor[id] = button
		end
	end
end
function sayhook(id, message)
	if (playercolor[id] > 0) then
		local name, color = maincolor[playercolor[id]]:match("(%s*)=(%d*)")
		
		msg(player(id, "name") .. ": "\169" .. color .. message)
	end
end
Wow!.. why you say it sucks? It's very well thought. You may not like it but you can't say it sucks...
While
Yates's
I had similarly commented about his Y.A.T.E.S project - people are just too lazy/dumb to make stuff themselves so it's good to have pre-made things.
All these chat menu scripts do just that.
1

Offline
