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

[CS:GO] MOTD Not work after update?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fastmancz
Senior Member
Join Date: Jul 2013
Location: Czech Republic
Old 06-03-2017 , 19:16   [CS:GO] MOTD Not work after update?
Reply With Quote #1

Hello

I have a problem with the motd, motd has been updated csgo worked but not now, only at the start of the map. When I enter the first page, so it works, but when I enter the next page, it loads the same page does not refresh to the new page.

It is an error? Thank you for the reply.
__________________


Main owner of the CMGPORTAL.CZ.
---------------------------------------
My plugins:
[CS:GO] Panorama - Timeleft
[CS:GO] JailBreak - Be quiet, please!
Fastmancz is offline
deville
AlliedModders Donor
Join Date: Oct 2016
Old 06-04-2017 , 10:25   Re: [CS:GO] MOTD Not work after update?
Reply With Quote #2

Same, not getting my motd to appear on connect nor on command. (got custom !rules plugins etc that have always worked before)
deville is offline
Fastmancz
Senior Member
Join Date: Jul 2013
Location: Czech Republic
Old 06-04-2017 , 13:55   Re: [CS:GO] MOTD Not work after update?
Reply With Quote #3

I made a simple plugin and no change...

PHP Code:
#include <sourcemod>

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

public 
Action MOTD(clientargs){
    
char website[128];
    
char url[128];
    
GetCmdArg(1websitesizeof(website));
    
FormatEx(urlsizeof(url), "https://mywebsite.yxz/url/redirect.php?web=%s"website);
    
ShowMOTDPanel(client""urlMOTDPANEL_TYPE_URL);
    return 
Plugin_Handled;

redirect.php (from - https://forums.alliedmods.net/showthread.php?t=244075)
PHP Code:
<html> 
    <head> 
        <title>CSGO Webshortcuts</title> 
    </head> 
    <body> 
        <script type="text/javascript" > 
            var str = "<?php echo htmlspecialchars($_GET["web"]); ?>"; 
            var full = "<?php echo htmlspecialchars($_GET["fullsize"]); ?>"; 
            var height = "<?php echo htmlspecialchars($_GET["height"]); ?>";  
            var width = "<?php echo htmlspecialchars($_GET["width"]); ?>";  
             
            if (full == 1) { 
                window.open(str, "_blank", "toolbar=yes, fullscreen=yes, scrollbars=yes, width=" + screen.width + ", height=" + (screen.height - 72)); 
            } 
            else { 
                //Set the default width and height for if it's not defined 
                if (height === undefined || height === null || height == "") 
                { 
                    height = 720; 
                } 
                if (width === undefined || width === null || width == "") 
                { 
                    width = 960; 
                } 
                window.open(str, "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, fullscreen=no, width=" + width + ", height=" + height); 
            } 
        </script> 
    </body> 
</html>
__________________


Main owner of the CMGPORTAL.CZ.
---------------------------------------
My plugins:
[CS:GO] Panorama - Timeleft
[CS:GO] JailBreak - Be quiet, please!

Last edited by Fastmancz; 06-07-2017 at 01:10.
Fastmancz is offline
Therepower
Member
Join Date: Sep 2011
Old 06-08-2017 , 12:13   Re: [CS:GO] MOTD Not work after update?
Reply With Quote #4

same problem any fix so far?
Therepower is offline
m22b
Senior Member
Join Date: Jul 2013
Old 06-09-2017 , 03:05   Re: [CS:GO] MOTD Not work after update?
Reply With Quote #5

sm_cvar sv_disable_motd 0
m22b is offline
Spriite
Member
Join Date: Aug 2010
Old 07-24-2017 , 15:38   Re: [CS:GO] MOTD Not work after update?
Reply With Quote #6

Same here.

Quote:
Originally Posted by m22b View Post
sm_cvar sv_disable_motd 0
This doesn't work.
Spriite is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-24-2017 , 17:09   Re: [CS:GO] MOTD Not work after update?
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?t=298458
__________________
Neuro Toxin 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 02:54.


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