• Request: Easy - Chat text into variable.
    1 replies, posted
This looks fairly simple but I've never done LUA and don't want to start learning another language, not this week anyway. Basics: Needs to store the following into an array. message[3] =Time message[4] = Name message[5] = SteamID message[6] = Message (Text in chat) If anyone could throw that snipper together it would be great, I am wanting it to do this for every line of chat said. So on local.message or w/e . I'm making the web gui currently. So if nobody has helped within a day or so I guess I can try myself ;) -edit [code] function PlayerSpoke() message[1] = tonumber(os.time()); message[2] = tostring(ply:Nick); message[3] = tostring(ply:SteamID); message[4] = tostring(text); message[5] = tobool(Player:IPAddress); end hook.Add("PlayerSay", 1, PlayerSpoke); [/code] But how todo the message :)
Oh, so i pretty much made it heh. [url]http://www.facepunch.com/showthread.php?p=18738247#post18738247[/url]
Sorry, you need to Log In to post a reply to this thread.