Raised This Month: $12 Target: $400
 3% 

MOTD wont display


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
deville
AlliedModders Donor
Join Date: Oct 2016
Old 06-04-2017 , 10:36   MOTD wont display
Reply With Quote #1

Since recent csgo updates, it seems like I can't get my motds to display. I'm using a redirect html file and all. Not getting any errors.

Here's a part of the plugin:

PHP Code:
public Action OnCommandShowRules(int clientint args) {

    
QueryClientConVar(client"cl_disablehtmlmotd"view_as<ConVarQueryFinished>(ClientConVar), client);
    return 
Plugin_Handled;
}

public 
ClientConVar(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[]) {

    if (
IsValidClient(client)) 
    {
    if (
StrEqual(cvarValue"1"))

    
PrintToChat(client"Your '%s' is set to '%s', please disable it to see the rules"cvarNamecvarValue);
    
    else{
       
ShowMOTDPanel(client"Devils Playground - HnS Rules""http://devilspg.org/HnS/MOTD/rules.html"MOTDPANEL_TYPE_URL);
          }
    }


Here's rules.html

PHP Code:
<html>
<
head>
<
script type="text/javascript">
window.onload = function(){
    <!-- var 
popup=window.open("http://www.sourcemod.net/sourcemod-site-bounded.png","Test Page :D","height=60,width=393"); -->
var 
screen.width 0.70;
var 
screen.height 0.70;
var 
popup=window.open("http://devilspg.org/HnS/MOTD/index.html","Devils Playground - HnS Rules",'scrollbars=yes,width='+x+',height='+y+',left=0,top=0');
document.write(x+'x'+y);
};
</script>
</head>
<body>
</body>
</html> 
Thanks in advance
deville is offline
Kinsi
Senior Member
Join Date: Apr 2013
Old 06-04-2017 , 10:41   Re: MOTD wont display
Reply With Quote #2

That <!-- in your script does not belong there.
Kinsi is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-04-2017 , 19:07   Re: MOTD wont display
Reply With Quote #3

Lol.

The magic code is commented out.
__________________
Neuro Toxin is offline
deville
AlliedModders Donor
Join Date: Oct 2016
Old 06-05-2017 , 08:24   Re: MOTD wont display
Reply With Quote #4

Noticed. That was a finished script that I found on the forums from before. Although it works now either way, made 0 changes, just waited 1 day. Mods can close
deville 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 01:26.


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