Lua problem Center message
1 reply



23.07.10 03:19:31 pm
Sorry for posting both lua thread and own...
Hello, I'm very n00b in Lua and tried to make it that when I say @ before a message it will be in the middle but I have a problem... Please help
I think it can be a problem with the say hook or the @*
---
edit: Is it possible to take USGN's from a text list on the internet?
Hello, I'm very n00b in Lua and tried to make it that when I say @ before a message it will be in the middle but I have a problem... Please help

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
adhook("say", "adminsay")
function adminsay(id, message)
if (player(id,"usgn")==62805) then
if (message == @*) then
return 1
parse("msg"..id(message, "text").."@C"
else
return 0
end
else
return 0
end
end
function adminsay(id, message)
if (player(id,"usgn")==62805) then
if (message == @*) then
return 1
parse("msg"..id(message, "text").."@C"
else
return 0
end
else
return 0
end
end
I think it can be a problem with the say hook or the @*
---
edit: Is it possible to take USGN's from a text list on the internet?



