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
function openwebsite( pl, text, teamonly ) if (text == "/web") then pl:SendLua([[gui.OpenURL("http://xxx.xxx")]]) end end hook.Add( "PlayerSay", "Chat", openwebsite)
I would like to hide the /web, and to force player to say
/me is browsering the website