English Lua problem Center message

1 reply
Goto Page
To the start Previous 1 Next To the start
23.07.10 03:19:31 pm
Up
VegBerg
User
Offline Off
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

Code:
1
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


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?
23.07.10 04:37:14 pm
Up
DC
Admin
Offline Off
spam. don't post the same stuff twice.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start