AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How does cs 1.6 render html in motds (https://forums.alliedmods.net/showthread.php?t=319680)

Watermelonnable 11-14-2019 17:47

How does cs 1.6 render html in motds
 
How does it work? Can I use modern js/css inside a motd and expect it to work fine?

DJEarthQuake 11-14-2019 18:10

Re: How does cs 1.6 render html in motds
 
It will take Java script. Nothing large though. Use this to play with. Look at how default MOTD on Counter-Strike does it. Older mods like TFC won't work at all. Put code in testing.txt of base directory. Say test and it opens up your code in MOTD window. It's very limited what can be done that's why this little code never advanced either. I immediately wanted a way to pick our own browsers instead of this. It's a joke really but some patience I would love to see what you create.

Code:
#include <amxmodx> public plugin_init(){ register_clcmd("say test","HandleSay"); register_plugin("MOTD-TEST","A","SPiNX|2019"); } public HandleSay(id){ new motd[2048]; format(motd, charsmax(motd), ""); show_motd(id, "testing.txt", "Table test"); }

Code from sites like http://goldsrc.live/ are stable. I used to play video on youtube years ago. It's horrible now. Good luck.

^SmileY 11-14-2019 19:17

Re: How does cs 1.6 render html in motds
 
In CS 1.6, MOTD uses ugly Chromium 18. What more i can say?
You can use modern languages but not sure if it will be 100% compatible!

Watermelonnable 11-15-2019 11:40

Re: How does cs 1.6 render html in motds
 
Quote:

Originally Posted by ^SmileY (Post 2672967)
In CS 1.6, MOTD uses ugly Chromium 18

Ok this is what I wanted to know. Kinda expected tho. Thank you!


All times are GMT -4. The time now is 02:41.

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