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

[CS:GO] Open MOTD window without redirect page (javascript)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 14:09.


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