How to you create like !Steam, !servers

How to you create like !Steam, !servers? anyone got a link to tutorial or something?

Anyone know?

Dafaq?

Hook PlayerSay serverside, check text, force player concommand, send usermessage, or do whatever the hell you want.

Ok let me give you an example. If you type !steam, the "browse"r is opened to the Steam Groups Page for the Server. Or if you do !website, the browser is opened on a site…

Download a MOTD addon and change it a bit?

Link?

[lua]if CLIENT then
concommand.Add(“ServersList”,function(pl,cmd,args)
local Frame = vgui.Create(“DFrame”)
Frame:SetSize(ScrW() - 20, ScrH() - 20)
Frame:Center()
Frame:SetTitle(“Servers”)
Frame:MakePopup()
Frame:SetMouseInputEnabled(true)

	local html = vgui.Create("DHTML", Frame)
	html:SetPos(5,25)
	html:SetSize(ScrW() - 30, ScrH() - 30)
	html:OpenURL("Some URL Here")
end)

end

if SERVER then
hook.Add(“PlayerSay”, “ChatHook”, function(Player, Text, Public)
if Text[1] == “!” then
Text = string.sub(Text, 2)
Text = Text:lower()
if Text == “servers” then
Player:ConCommand(“ServersList”)
return “”
end
end
end)
end[/lua]

There you go, think you can expand off of that example alone.

Next time, try to be more specific.

Where do i put my website or where do i put the link to the Servers?

[lua]html:OpenURL(“Some URL Here”)[/lua]

Line 13.

Where should i place the file and what should i call it?

lua/Autorun.

Doesn’t matter what you call it.

-snip-

This thread is 2 weeks old so I think I can still reply here,
The code you posted, as you mentioned, uses a URL, is there any chance you could change it so it reads from a text file or from text inside the file?

[lua]
if CLIENT then
concommand.Add(“ServersList”,function(pl,cmd,args)
local Frame = vgui.Create(“DFrame”)
Frame:SetSize(ScrW() - 20, ScrH() - 20)
Frame:Center()
Frame:SetTitle(“Servers”)
Frame:MakePopup()
Frame:SetMouseInputEnabled(true)

    local html = vgui.Create("DHTML", Frame)
    html:SetPos(5,25)
    html:SetSize(ScrW() - 30, ScrH() - 30)
    html:SetHTML( file.Read( "htmlfile.txt", "DATA" ) )
end)

end

if SERVER then
hook.Add(“PlayerSay”, “ChatHook”, function(Player, Text, Public)
if Text[1] == “!” then
Text = string.sub(Text, 2)
Text = Text:lower()
if Text == “servers” then
Player:ConCommand(“ServersList”)
return “”
end
end
end)
end
[/lua]

See what i did on line 13?
just save your text file with the html shizzle in it in your data folder and it should work