Forum

> > CS2D > Scripts > Select Color Lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Select Color Lua

1 reply
To the start Previous 1 Next To the start

old Select Color Lua

sheeL
User Off Offline

Quote
my lua no work
please fix
plz

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
color={}
addhook("join","lolz")
function lolz(id)
color[id]=0
end

addhook("serveraction","lol")
function lol(id,a)
if a == 1 then --F2
if player(id,"usgn")== 45813
menu(id,"Settings,Red Color,Pink color,Blue Color")
end
end
end

addhook("menu","lold")
function lold(id,a,b)
if a == "Settings" then
if b == 1 then
color[id]=1
elseif b ==2 then
color[id]=2
elseif b==3 then
color[id]=4
end
end
end

addhook("say","lola")
function lola(id,txt)
if txt ~= "rank" then
if color[id]==1 then
msg("©255000000"..player(id,"name").." [Admin]: "..txt)
     elseif color[id]==2 then
msg("©255000255"..player(id,"name").." [Admin]: "..txt)
     elseif color[id]==3 then
msg("©000000255"..player(id,"name").." [Admin]: "..txt)
end
end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview