• Hide a command from chat
    2 replies, posted
Hello, I did a small lua code, to open a webpage. I would like to hide the command from the chat, and to force player to say something. The problem is that the console say something instead of the player. Here's my code [CODE] function openwebsite( pl, text, teamonly ) if (text == "/web") then pl:SendLua([[gui.OpenURL("http://xxx.xxx")]]) end end hook.Add( "PlayerSay", "Chat", openwebsite)[/CODE] I would like to hide the /web, and to force player to say /me is browsering the website
return "" after pl:SendLua. Also you shouldn't use sendlua but i guess it is acceptable for this case.
Thanks. Now is there a way to make a client saying a message instead of console?
Sorry, you need to Log In to post a reply to this thread.