Raised This Month: $ Target: $400
 0% 

Webpanel opening in game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-12-2018 , 20:36   Re: Webpanel opening in game
Reply With Quote #1

Think of the MOTD window as a simple web browser. If you want to send a particular player's information to a website that is being shown, you'd need to encode that information into the URL.

For example, if you want to send a player's SteamID, you'd send them to a url like this:

Code:
show_motd(id, "http://www.website.com/webpage.php?steamid=STEAM_0:0:123456")
But you would dynamically format the URL string to include the player's actual SteamID. Also, if you are going to be sending generic text (text which you are not 100% all of the characters it might contain) then you need to first URL encode the text before putting it in the URL.

If you don't do this then there won't be any game-specific information sent. However, as with all websites, the website can still get your IP address and anything therefore derived.
__________________

Last edited by fysiks; 06-12-2018 at 20:37.
fysiks is offline
krikus62
Senior Member
Join Date: Jan 2015
Old 06-13-2018 , 08:26   Re: Webpanel opening in game
Reply With Quote #2

Ah that is not great news, I expected that by opening a motd window from within a game, the game would pass in an object or something with some info of who or what opened the window.
__________________
My plugins:
Spoiler
krikus62 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-13-2018 , 22:37   Re: Webpanel opening in game
Reply With Quote #3

Quote:
Originally Posted by krikus62 View Post
Ah that is not great news, I expected that by opening a motd window from within a game, the game would pass in an object or something with some info of who or what opened the window.
Well, its the only news.

It's simply a web browser and is not directly linked into the game or its data.
__________________

Last edited by fysiks; 06-13-2018 at 22:38.
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode