AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MOTD and HTML (https://forums.alliedmods.net/showthread.php?t=10747)

TotalNoobScripter 02-27-2005 23:33

MOTD and HTML
 
How would you go about formating a text file in html, and makign a motd load it?

The html would also include some images, if that makes any difference.

Everytime i try to do it, its just the html code, but not what the html code suppsoe to be!

twistedeuphoria 02-27-2005 23:50

Try writing the code to a file then displaying it with the motd command, or is that what you did?

v3x 02-27-2005 23:52

Why not just make it .html?

Geesu 02-28-2005 10:38

are u typing it in notepad? Or like an html editor?

use notepad, if you type it in like frontpage or dreamweaver it will convert the <html> to the something different so it won't be interpreted as html

slurpycof 02-28-2005 11:15

here is an example of my cstrike/motd.txt that I use and includes pictures,

Code:

<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1523">

<title>Server Rules</title></head><body bgcolor="000000">

<font color="#ffffff">

<p align="center">
http://www.clancof.net/download/fdig/cofavatar.jpg<font size="5" color="#ff0000"> </FONT>
<font size="7" color="#ff0000">Rules</FONT><font size="5" color="#ff0000"> </FONT>

http://www.clancof.net/download/fdig/rockthegoat.jpg</P>
</font><font color="#0000FF">
  1. <LI>Racism, discrimination or sexual harassment of any kind will not be tolerated anytime,
    be it verbal and/or written. There is no excuse for it.

    <LI>Respect other players. This is required. Accusing other players of cheating, excess whining about bull-hockey shots and the like are looked down upon.<LI>
    NO SWEARING.

    <LI>Try to treat your fellow gamers as you would like to be treated yourself. Take fights/arguments outside the server, along with your bad attitude.

    <LI>Cheating in any way, shape or form is NOT TOLERATED.

    <LI>Do not use map exploits in the game for any reason whatsoever. The game was designed to be played a certain way. This is how we play.

    <LI>Do not kill hostages intentionally.<LI>Probably the most unusual rule, HAVE FUN!
    [COF] is geared for interactivity. Jump in the forums, say hi, talk to people.




Should you violate a rule (respective of offense):</P>
  1. <LI>You will be warned.
    <LI>Still doing it after being warned? This time you're kicked.
    <LI>Still at it? This time you're BANNED.


<p align="center"></p>

</body>

</html>

________
Suzuki TL1000S

Twilight Suzuka 02-28-2005 12:48

its got to have the .html ending.

slurpycof 02-28-2005 12:54

try what i posted as cstrike/motd.txt and then try it as cstrike/motd.html and see which one works.
________
Yamaha YR-1

xeroblood 02-28-2005 13:31

mine is motd.txt, has HTML in it, links an image from a seperate server, and it works fine..

XxAvalanchexX 02-28-2005 16:14

Also note that HTML code, like colored menus, only work in first-party mods (ie: CS and DoD). I haven't found any third-party mods that support these features.

TotalNoobScripter 02-28-2005 16:40

Quote:

Originally Posted by XxAvalanchexX
Also note that HTML code, like colored menus, only work in first-party mods (ie: CS and DoD). I haven't found any third-party mods that support these features.

Hmm... ohhh that could be a problem.

Thank yall for your posts, *tests stuff*


All times are GMT -4. The time now is 14:07.

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