View Single Post
Author Message
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 01-07-2017 , 11:51   [CS:GO] Open MOTD window without redirect page (javascript)
Reply With Quote #1

Hello, here is small code, that will open up for you the HTML MOTD page in CS:GO without making a custom redirect page.

PHP Code:
void OpenMOTD(int clientchar url[500])
{
    
char UrlJS[500];
    
Format(UrlJS500"javascript: var x = screen.width * 0.90;var y = screen.height * 0.90;window.open(\"%s\", \"Really boomix, JS?\",\"scrollbars=yes, width='+x+',height='+y+'\");"url);
    
ShowMOTDPanel(client"Open HTML MOTD"UrlJSMOTDPANEL_TYPE_URL );


This feature supporting javascript can be really useful, you can pretty much do alot of things that I couldnt figure out how to do before with only the motd. Atleast so far I haven't seen anyone using this method, thats why I tought it might be cool to show it to you.

If you have any ideas for what more this could be useful, just write bellow.
__________________
boomix is offline