Raised This Month: $32 Target: $400
 8% 

Solved CS:GO MOTD don't working [HELP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-10-2018 , 05:22   CS:GO MOTD don't working [HELP]
Reply With Quote #1

Hey, can some one help me please, Code:

PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
RegConsoleCmd("sm_motd"MOTD);
}

public 
Action:MOTD(clientargs)
{
    
ShowMOTDPanel(client"Test Title""https://steamcommunity.com"MOTDPANEL_TYPE_URL);
    
PrintToChat(client"Showing Steam Page.");
    return 
Plugin_Handled;

thanks.

Last edited by iskenderkebab33; 11-03-2018 at 17:35.
iskenderkebab33 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-10-2018 , 19:41   Re: CS:GO MOTD don't working [HELP]
Reply With Quote #2

https://steamcommunity.com/app/730/d...5977588418810/

This has the correct way to get a MOTD window to display (a redirect page with a Javascript window.open call).

Also note MOTD windows are playing funny buggers atm.
__________________

Last edited by Neuro Toxin; 07-10-2018 at 19:42.
Neuro Toxin is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 07-10-2018 , 19:49   Re: CS:GO MOTD don't working [HELP]
Reply With Quote #3

Multiple things may be in play:
  • Check to make sure that sv_disable_motd isn't set to 1, which is CS:GO's default value.
  • The game's MOTD panel isn't visible after the initial on-join MOTD is displayed and dismissed.
  • Popup panels are broken in the Steam Client Beta.
  • Panorama lacks support for MOTDs.
If your issue is one of the first two, VGUI Cache Buster (disclaimer: I wrote dis) handles those cases transparently so developers don't have to finagle their own workarounds for cross-game compatibility (see the various CS:GO-specific plugins for displaying HTML pages).

Neuro Toxin also posted a similar, but different minimal solution (externally hosted page using a query string instead of a location hash) right as I was making this post, should you want to slipstream it into your own plugins and not worry about an external plugin dependency.

For the other two, you'll just have to sit tight and hope Valve fixes them.
__________________
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 / coffee)

Last edited by nosoop; 07-10-2018 at 19:49.
nosoop 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 21:30.


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