Raised This Month: $ Target: $400
 0% 

Webpanel opening in game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
krikus62
Senior Member
Join Date: Jan 2015
Old 06-11-2018 , 16:48   Webpanel opening in game
Reply With Quote #1

So I was wondering what kind of access does the webpanel in game have? Is there any info about the player sent to the website which is opened?
__________________
My plugins:
Spoiler
krikus62 is offline
Old 06-11-2018, 17:48
Relaxing
This message has been deleted by Relaxing. Reason: Wrong, Incorrect.
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-11-2018 , 18:34   Re: Webpanel opening in game
Reply With Quote #2

I think he means the motd window, maybe im wrong.
maqi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-12-2018 , 20:36   Re: Webpanel opening in game
Reply With Quote #3

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 #4

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 #5

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
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-14-2018 , 12:22   Re: Webpanel opening in game
Reply With Quote #6

However this can be achieved, if you own a web-server, making a php script that retrieves data from the game server, in your example, the player name/id or w/e, then you can use meta refresh to show it in your motd screen.
maqi is offline
Old 06-15-2018, 22:35
fysiks
This message has been deleted by fysiks. Reason: thought this was a different topic.
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 19:01.


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