The color of the chat for all players, open you can use the menu
Open menu f2
Scripts
The color of the chat for all players, open menu
The color of the chat for all players, open menu
1

The color of the chat for all players, open you can use the menu
Open menu f2
No it's not
NeptooN: What kind of reply is that? I mean, the script for what you are looking for exists. chat = {}
txt = {}
for id = 1,32 do
chat[id] = {mode = 0}
end
addhook("menu","colorsmenu")
addhook("say","colorsmsg")
addhook ("serveraction","menu_colors")
function menu_colors(id,action)
if action==1 then
menu(id,"Admin Chat Color,White,Pink,Red,Orange,Green,Blue,Brown,Gray,Remove Colors|X")
end
end
function colorsmenu(id,tit,btn)
if tit=="Admin Chat Color" then
if btn == 1 then
chat[id].mode = 1
msg2(id,"\169255255255Chat colour has been changed to White.@C")
elseif btn == 2 then
chat[id].mode = 2
msg2(id,"\169255128255Chat colour has been changed to Pink.@C")
elseif btn == 3 then
chat[id].mode = 3
msg2(id,"\169255000000Chat colour has been changed to Red.@C")
elseif btn == 4 then
chat[id].mode = 4
msg2(id,"\169255128000Chat colour has been changed to Orange.@C")
elseif btn == 5 then
chat[id].mode = 5
msg2(id,"\169000255000Chat colour has been changed to Green.@C")
elseif btn == 6 then
chat[id].mode = 6
msg2(id,"\169000000255Chat colour has been changed to Blue.@C")
elseif btn == 7 then
chat[id].mode = 7
msg2(id,"\169128064000Chat colour has been changed to Brown.@C")
elseif btn == 8 then
chat[id].mode = 8
msg2(id,"\169128128128Chat colour has been changed to Gray.@C")
elseif btn == 9 then
chat[id].mode = 0
msg2(id,"Chat colour has been changed to default.@C")
end
end
end
function colorsmsg(id,txt)
msg(teamclr(id)..""..player(id,"name")..": "..returnmsg(id)..""..txt)
return 1
end
function returnmsg(id)
if chat[id].mode == 0 then
return "\169255255000"
elseif chat[id].mode == 1 then
return "\169255255255"
elseif chat[id].mode == 2 then
return "\169255128255"
elseif chat[id].mode == 3 then
return "\169255000000"
elseif chat[id].mode == 4 then
return "\169255128000"
elseif chat[id].mode == 5 then
return "\169000255000"
elseif chat[id].mode == 6 then
return "\169000000255"
elseif chat[id].mode == 7 then
return "\169128064000"
elseif chat[id].mode == 8 then
return "\169128128128"
elseif chat[id].mode == 9 then
return "\169255255000"
end
end
function teamclr(id)
if player(id,"team") == 1 then
return "\169255025000"
elseif player(id,"team") == 2 then
return "\169050150255"
end
end
Baloon has written

Yates: Unless he means that he wants pre-defined rainbow colors. In which case you could improve your script to have a bunch of colored squares which you can click to set to the color you want instead of using the sliders. Just an idea to improve it.
Scott: thank you
chat = {}
txt = {}
for id = 1,32 do
chat[id] = {mode = 0}
end
addhook("menu","colorsmenu")
addhook("say","colorsmsg")
addhook ("serveraction","menu_colors")
function menu_colors(id,action)
if action==1 then
menu(id,"Menu color,Chat colors")
end
end
adhook("menu","Menu_fes")
function Menu_fes(id,title,buton")
if title=="Menu colors" then
if buton==1 then
menu(id,"White,Pink,Red,Orange,Green,Blue,Brown,Gray,Remove Colors|X")
end
end
end
function colorsmenu(id,tit,btn)
if tit=="Chat Colors" then
if btn == 1 then
chat[id].mode = 1
msg2(id,"\169255255255Chat colour has been changed to White.@C")
elseif btn == 2 then
chat[id].mode = 2
msg2(id,"\169255128255Chat colour has been changed to Pink.@C")
elseif btn == 3 then
chat[id].mode = 3
msg2(id,"\169255000000Chat colour has been changed to Red.@C")
elseif btn == 4 then
chat[id].mode = 4
msg2(id,"\169255128000Chat colour has been changed to Orange.@C")
elseif btn == 5 then
chat[id].mode = 5
msg2(id,"\169000255000Chat colour has been changed to Green.@C")
elseif btn == 6 then
chat[id].mode = 6
msg2(id,"\169000000255Chat colour has been changed to Blue.@C")
elseif btn == 7 then
chat[id].mode = 7
msg2(id,"\169128064000Chat colour has been changed to Brown.@C")
elseif btn == 8 then
chat[id].mode = 8
msg2(id,"\169128128128Chat colour has been changed to Gray.@C")
elseif btn == 9 then
chat[id].mode = 0
msg2(id,"Chat colour has been changed to default.@C")
end
end
end
function colorsmsg(id,txt)
msg(teamclr(id)..""..player(id,"name")..": "..returnmsg(id)..""..txt)
return 1
end
function returnmsg(id)
if chat[id].mode == 0 then
return "\169255255000"
elseif chat[id].mode == 1 then
return "\169255255255"
elseif chat[id].mode == 2 then
return "\169255128255"
elseif chat[id].mode == 3 then
return "\169255000000"
elseif chat[id].mode == 4 then
return "\169255128000"
elseif chat[id].mode == 5 then
return "\169000255000"
elseif chat[id].mode == 6 then
return "\169000000255"
elseif chat[id].mode == 7 then
return "\169128064000"
elseif chat[id].mode == 8 then
return "\169128128128"
elseif chat[id].mode == 9 then
return "\169255255000"
end
end
function teamclr(id)
if player(id,"team") == 1 then
return "\169255025000"
elseif player(id,"team") == 2 then
return "\169050150255"
end
end
1
