cs source music in motd

Post Reply
blue2023
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Oct 02, 2011 3:38 pm

cs source music in motd

Post by blue2023 »

every where i look i find a html code for <noembed> and that does not work. <embed> however, does. motd is working fine in with music and all in browser, but in game it is missing the music. i did run across 1 thread on sourcemod website where someone mentioned that it used to work but now, possibly due to updates, does not. can any one confirm this or provide alternative to offer music on motd. thanks.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: cs source music in motd

Post by kraze »

I have not tested this in a long time but it should work with just some simple html code. Most people usually just embed a Youtube video and set it to auto start.

Another method is to directly link the music in your motd.
<embed src="yourmusic.mid"> <noembed> <bgsound src="yourmusic.mid"> </noembed>
<embed src="yourmusic.mid" width="140" height="40" autostart="false" loop="FALSE"></embed>
The HTML above should help you.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
blue2023
New to forums
New to forums
Posts: 9
Joined: Sun Oct 02, 2011 3:38 pm

Re: cs source music in motd

Post by blue2023 »

i tried both of those with neither one working "playing music".

here is what i have already:

<html>
<body style="background-color:#303030">
<font size="3" face="neuropol" color="#FFFF00">
<h1><b>Welcome to Dallas Good Ole' Fashion CS</b><h1>
<hr /></font>
<font size="2" face="neuropol" color="#FFFF00">
<p>*Good Ole' Fashion CS with THE BEST reg possible*</p>
<hr />
<p>*Cut loose and have a good time!* <br> *FF is ON*</p>
<hr />
<p>*Admins wanted* <br> *Possible team sponsorship available*</p>
<BGSOUND src="http://paid.site.nfoservers.com/025.mp3"/>
</body>
</html>

everything loads including music on url page. everything but music loads in cs:s

url: http://paid.site.nfoservers.com/motd.html
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: cs source music in motd

Post by kraze »

Take this line of code;
<embed src="yourmusic.mid" width="140" height="40" autostart="true" loop="FALSE"></embed>
Then replace;
I have a feeling the sound is being loaded but not being told to auto start.


If all above fails you can create a new page on your site, with a Windows media player embed code. Then use the direct link to that page as the source. If the updates didn't break it, I am extremely positive it will work.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
blue2023
New to forums
New to forums
Posts: 9
Joined: Sun Oct 02, 2011 3:38 pm

Re: cs source music in motd

Post by blue2023 »

something didnt work. it is like you suggested now and browser locks up now for some reason.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: cs source music in motd

Post by kraze »

The actual browser or MOTD?
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
blue2023
New to forums
New to forums
Posts: 9
Joined: Sun Oct 02, 2011 3:38 pm

Re: cs source music in motd

Post by blue2023 »

the actual browser locked up. had to ctrl alt delete . source did not play anything
blue2023
New to forums
New to forums
Posts: 9
Joined: Sun Oct 02, 2011 3:38 pm

Re: cs source music in motd

Post by blue2023 »

i tried what you recc and use media player coding. it works on url but not in game. only text is displayed. here is the code:

<html>
<body style="background-color:#303030">
<font size="3" face="neuropol" color="#FFFF00">
<h1><b>Welcome to Dallas Good Ole' Fashion CS</b><h1>
<hr /></font>
<font size="2" face="neuropol" color="#FFFF00">
<p>*Good Ole' Fashion CS with THE BEST reg possible*</p>
<hr />
<p>*Cut loose and have a good time!* <br> *FF is ON*</p>
<hr />
<p>*Admins wanted* <br> *Possible team sponsorship available*</p>
</body>
</html>
<OBJECT id='mediaPlayer1' width="180" height="50"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/co ... 5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://paid.site.nfoservers.com/025.mp3">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name ="ShowAudioControls"value="false">
<param name="ShowStatusBar" value="false">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="420" height="380"
src="Stream URL or Full File Path Goes Here" autostart="true" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
Post Reply