Binding a !servers to F2?


if SERVER then

	function CH_OpenTeleporter( pl, text )
		if (text == "!servers") then
			umsg.Start("CH_ServerTeleporter")
			umsg.End()
			return ""
		end
	end
	hook.Add( "PlayerSay", "CH_OpenTeleporter", CH_OpenTeleporter )

end

How can I make it so instead of typing !servers you can press F2?

Hey pal, I saw you post and wanted to help you out. (SCRIPT TESTED)
[LUA]if SERVER then
function CH_OpenTeleporter()
umsg.Start(“CH_ServerTeleporter”)
umsg.End()
return “”
end
hook.Add( “ShowTeam”, “CH_OpenTeleporter”, CH_OpenTeleporter )
end[/LUA]

http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/favicon.ico