Raised This Month: $52 Target: $400

[CS:GO] Open MOTD window without redirect page (javascript)

Post New Thread Reply   
Thread Tools Display Modes
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 05-13-2018 , 16:24   Re: [CS:GO] Open MOTD window without redirect page (javascript)
Reply With Quote #11

I'm pretty sure this suffers from an update a while back where pages on the same domain dont refresh.

This was my crafty fix.

Neuro Toxin is offline
Senior Member
Join Date: Aug 2014
Old 05-14-2018 , 20:16   Re: [CS:GO] Open MOTD window without redirect page (javascript)
Reply With Quote #12

Recent versions of the Source SDK block URLs that don't start with http or https (or aren't about:blank).

Here's my take on the workaround. No external custom service required (so no third-party trust), but it does require a static page, which is still against the idea of this thread.

If you can't / don't want to host a static page with embedded URLs in hashes (which is how my workaround works), you could theoretically preload a custom popup page into the InfoPanel stringtable with your JavaScript and send it over to the client, but based on my experience with stringtables, you'd need a delay for it to propagate before displaying it.

Attached my personal test plugin for it; check the ShowMOTDPopupStandalone and related functions. Haven't booted up CS:GO in a while so I'm not completely sure they're still in working order.
Attached Files
File Type: sp Get Plugin or Get Source (motd_display.sp - 150 views - 5.6 KB)
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH)

Last edited by nosoop; 05-14-2018 at 20:23.
nosoop is offline

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 12:45.

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