English colour say error

30 replies
Goto Page
To the start Previous 1 2 Next To the start
20.12.11 10:57:15 pm
Up
SilentDash
User
Offline Off
user Primax7 has written:
user SilentDash has written:
Code:
1
2
3
4
5
6
7
8
9
10
11
admins={} -- put there your usgn number

addhook ("say","lol3")
function lol3(id,txt)
local tox=txt:sub(1,10)
     if player(id,"usgn")=="admin" then
     local fullstring = txt:sub(12)
     msg("©000255000"..player(id,"name")..": "..fullstring)
     return 1
     end
end
you can use this...


It not working


which error shows the console?
20.12.11 11:11:57 pm
Up
EP
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
admin = {xxx,xx,x,xxx,xxx} -- Replace xx for your usgn. If you have more just separate them with a "," comma.


addhook("say","adminsay")
function adminsay(id,t)
for adm =1,#admin do
if player(id,"usgn")==admin[adm] then
msg("©255255255"..player(id,"name").." [Admin]: "..t)
return 1
end
end
end

I didn't understand something, do you want to know how to make a Copyright Symbol? If yes it's Alt+184 (184 in the numpad) ©
20.12.11 11:24:57 pm
Up
Cure Pikachu
User
Offline Off
user EP has written:
I didn't understand something, do you want to know how to make a Copyright Symbol? If yes it's Alt+184 (184 in the numpad) ©

It's Alt+0169 (0169 on the numpad) on a standard US keyboard configuration.
IMG:https://i.imgur.com/uUrye71.png
IMG:https://i.imgur.com/xpsyQRX.png
21.12.11 02:02:49 am
Up
Primax7
User
Offline Off
user SilentDash has written:
user Primax7 has written:
user SilentDash has written:
Code:
1
2
3
4
5
6
7
8
9
10
11
admins={} -- put there your usgn number

addhook ("say","lol3")
function lol3(id,txt)
local tox=txt:sub(1,10)
     if player(id,"usgn")=="admin" then
     local fullstring = txt:sub(12)
     msg("©000255000"..player(id,"name")..": "..fullstring)
     return 1
     end
end
you can use this...



It not working


which error shows the console?


What is this for? no lua error but nothing

@user EP: The thing is i cant save © in my notepad
21.12.11 02:07:04 am
Up
SilentDash
User
Offline Off
do you put your usgn id there
Code:
1
admins={}


like
Code:
1
admins={82036}
that must be there ...
21.12.11 02:14:25 am
Up
Primax7
User
Offline Off
user SilentDash has written:
do you put your usgn id there
Code:
1
admins={}


like
Code:
1
admins={82036}
that must be there ...


Well i did it

admins={82036} -- put there your usgn number

addhook ("say","lol3")
function lol3(id,txt)
local tox=txt:sub(1,10)
if player(id,"usgn")=="admin" then
local fullstring = txt:sub(12)
msg("?000255000"..player(id,"name")..": "..fullstring)
return 1
end
end

When i talk is still the same
21.12.11 02:51:17 am
Up
The Camo
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function usgnsc(table,id)
     for _, usgnc in ipairs(table) do
          if player(id,"usgn") == usgnc then
          return true
          end
     end
return false
end
adminsc={82036} --You may add more admins here now without it checking only first usng in table as if its adminsc[1] all the times
addhook ("say","lol3")
function lol3(id,txt)
     if (usgnsc(adminsc,id))==true then
          if txt~="" then
               if player(id,"team")== 1 then
               local textc=string.sub(txt,1,string.len(txt))
               msg("©000255000"..player(id,"name")..": "..textc)
               return 1
               end
          end
     end
end


Try that
21.12.11 04:51:49 am
Up
Primax7
User
Offline Off
user The Camo has written:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function usgnsc(table,id)
     for _, usgnc in ipairs(table) do
          if player(id,"usgn") == usgnc then
          return true
          end
     end
return false
end
adminsc={82036} --You may add more admins here now without it checking only first usng in table as if its adminsc[1] all the times
addhook ("say","lol3")
function lol3(id,txt)
     if (usgnsc(adminsc,id))==true then
          if txt~="" then
               if player(id,"team")== 1 then
               local textc=string.sub(txt,1,string.len(txt))
               msg("©000255000"..player(id,"name")..": "..textc)
               return 1
               end
          end
     end
end


Try that


Is still the same

I hope someone can do something like this

adminsay= admin
adminsayco=" "

this will works without ©
edited 1×, last 21.12.11 05:11:19 am
21.12.11 09:59:24 am
Up
The Camo
User
Offline Off
Thats because it is changing your © into ?...
© is for colors, so without it, there will be no color just a plain yellow text.
21.12.11 02:14:12 pm
Up
SilentDash
User
Offline Off
user Primax7 has written:
I hope someone can do something like this

adminsay= admin
adminsayco=" "

this will works without ©


That won't ... for the colours you need the ©
Only if you want it in the normal msg colour works it without ©
21.12.11 02:32:38 pm
Up
Primax7
User
Offline Off
this one works

Here
To the start Previous 1 2 Next To the start