View Single Post
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 05-02-2017 , 07:52   Re: [ANY] SoundCloud ( v1.7 Updated 12/25/2015 )
Reply With Quote #97

Quote:
Originally Posted by slowww View Post
after this sourcemod and metamod update !scstop and !scstopall it's not working.
This plugin was broken due to the recent CSGO update:
http://blog.counter-strike.net/index.php/2017/04/18614/

Relevant change:
Code:
MOTD custom URLs are now restricted to http:// and https:// protocols only.
Plugins like this use a motd window with the URL about:blank.
However, as that does not start with http:// or https://, it fails.

One solution is to hook the VGUI motd windows and detect about:blank urls and replace them with something else. However, this requires you run another plugin. In my opinion its better to simply update all relevant plugins.

Any website to use for the redirect (that has no sound will work). For example you could use: http://google.com or http://example.com.

You could also host a blank page somewhere yourself.

However, I feel using: http://about.blank

Is the best solution because the .blank TLD is not valid, so you never connect to a real host, the url lets you know what you are using it for and the page fallbacks tp the browsers error page (no HTML download/fastest load time).
I'm not sure how this solution looks with sm_sc_visible 1 but that doesn't work for me anyway on CSGO.

If someone has a better solution, I'd be happy to hear it.

Updated Version 1.7.1

Working version is attached below.
I updated version to 1.7.1, replaced about:blank url and removed deprecated FCVAR_PLUGIN references.
Attached Files
File Type: sp Get Plugin or Get Source (soundcloud.sp - 224 views - 13.0 KB)
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!


Last edited by Byte; 05-02-2017 at 07:57.
Byte is offline