Raised This Month: $71 Target: $400
 17% 

[CS:GO] MOTD and displaying web pages


Post New Thread Reply   
 
Thread Tools Display Modes
Lubricant Jam
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 11-07-2018 , 04:20   Re: [CS:GO] MOTD and displaying web pages
Reply With Quote #11

Quote:
Originally Posted by foxsay View Post
Make navigation page with use full info add to server website advert server website button with chat adverts best solution
Exactly like mine, I would've sent mine as an example but you've already done it.
Lubricant Jam is offline
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 11-07-2018 , 08:57   Re: [CS:GO] MOTD and displaying web pages
Reply With Quote #12

But well, I want to generate the URL based on their Steam ID due to profiles in Multi 1v1 plugin. That cannot be done like this and how we could do it in the MOTD.
ShawnCZek is offline
Lubricant Jam
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 11-08-2018 , 06:22   Re: [CS:GO] MOTD and displaying web pages
Reply With Quote #13

Quote:
Originally Posted by ShawnCZek View Post
But well, I want to generate the URL based on their Steam ID due to profiles in Multi 1v1 plugin. That cannot be done like this and how we could do it in the MOTD.
Then make your website using steamauth and have player profiles, like mine.
Lubricant Jam is offline
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 11-08-2018 , 12:58   Re: [CS:GO] MOTD and displaying web pages
Reply With Quote #14

It does. But before, he could type "!rank" and the page with his profile has opened. When the MOTD got removed, I want to do that if the player types "!rank", the link in the scoreboard will change to link to his profile.
ShawnCZek is offline
arne1288
Veteran Member
Join Date: Apr 2012
Old 11-09-2018 , 06:31   Re: [CS:GO] MOTD and displaying web pages
Reply With Quote #15

Quote:
Originally Posted by ShawnCZek View Post
It does. But before, he could type "!rank" and the page with his profile has opened. When the MOTD got removed, I want to do that if the player types "!rank", the link in the scoreboard will change to link to his profile.
I believe the client (e.g. each player) is loading the server's "motd.txt" file ONLY while connecting towards your game server, and not in the middle of a map.

As such, your best bet is to attempt to modify "motd.txt" using a plugin, each time a player connects, and see if that adjusts it "fast enough".

E.g. if Steam Profile "76561197960265730" connects, you adjust "motd.txt" to hold https://example.net/stats.php?playerid=76561197960265730, and likewise, if it is Steam Profile "76561197960265731", then you adjust to https://example.net/stats.php?playerid=76561197960265731.

Since it is happening at the connecting state, I doubt you should count on it to be 100% accurate, like if multiple players are connecting to your server at the exact same second, then you could end up on Steam Profile 2 getting Steam Profile 1's link, and so on.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread]

Last edited by arne1288; 11-09-2018 at 06:32.
arne1288 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-09-2018 , 17:47   Re: [CS:GO] MOTD and displaying web pages
Reply With Quote #16

Just use sign in through steam. As your in the steam overlay its two clicks to get authenticated.
__________________
Neuro Toxin is offline
Reply


Thread Tools
Display Modes

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 11:31.


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