I know this may be slightly far fetched but is it possible to have a command (such as !donate) that opens up a webpage through the steam in game browser?
If there is i would love to be insisted into what the code is or a link to another post that i couldn't find
Thanks
(fyi i dont know if this would be a lua thing. i am just assuming it would be but correct me if i am wrong)
Not sure where I got this originally from, but here:
[lua]function SteamBrowser( pl, text, teamonly )
if (text == "!page") then -- Change "!page" to what ever you want to be typed to open up the page.
pl:SendLua([[gui.OpenURL("ADDRESS")]]) -- Change ADDRESS to your chosen page.
for k, v in pairs(player.GetAll()) do v:ChatPrint( "" .. pl:Nick() .. " has checked page X! (Type !page)" )
end
end
end
hook.Add( "PlayerSay", "Chat", SteamBrowser )[/lua]
I take no credit out of it, since I have not made it. :)
That works a charm :) thank you
The majority of people hate steam browser. Maybe just open VGUI box linked to an html page?
Sorry, you need to Log In to post a reply to this thread.