AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Advance Media Player (https://forums.alliedmods.net/showthread.php?t=11671)

Cheap_Suit 03-25-2005 23:50

Advance Media Player
 
2 Attachment(s)
.: Description :.

Player's can play music without downloading from your server. This will not work on mods without MOTDs. If it's your first time using this, just run the plugin to generate the required files (which will be in your configs folder.) Now to add music edit the amp_medialist.ini. You can also use the command amx_addmedia to add music.

Mods that worked so far: CS, DOD.
Media format that worked so far: asx, mp3, wma.

.: Client Commands :.

say /playmusic - Show media menu.
say /stopmusic - Stops current media.
say /reload - Reload current media

.: Admin Commands :.

amx_addmedia - usage: <media name> <media url> | WARNING: BE SURE NOT TO HAVE A TYPO.
amx_setmedia - usage: <@all|playerID> <media ID> | set media for player(s)
amx_reloadmedia - reload's the amp_medialist.ini file.
amx_listmedia - show's all media available also to get the media id for admins.
amx_listeners - show's all current media playing.

.: History :.
  • Version 1.0
    • Initial release; lost changelog.
  • Version 2.0
    • Second release; lost changelog.
  • Version 3.0
    • Rewrote plugin.
    • Added media groups.
    • Added media ratings.
  • Version 3.1
    • Rewrote plugin(again, made it simpler)
    • Removed media groups.
    • Removed media ratings.
    • Added admin commands.
    • Added more client commands.
DLs: 5494

ramoto 05-28-2005 16:27

<object id="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft Windows Media Player components...">
<param name="Filename" value="URL OF MUSIC">
<param name="AnimationAtStart" value="false">
<param name="TransparentAtStart" value="false">
<param name="ShowControls" value="true">
<param name="PlayCount" value="false">
<param name="AutoPlay" value="true">
</object>

Where do u put the code?

Cheap_Suit 05-28-2005 16:29

in an html file, i made some demos look at them

ramoto 05-28-2005 19:11

where?

also how do u create a html file?

Spartan-117 05-29-2005 08:38

can u play the music off ur computer?

if not anyone know a good site to get music from?

Bolox 16 05-29-2005 11:17

Help Me PLease
 
im in the game i dont no wat to type to play the music wat do i do with the cmusic.zip

kid741010 05-29-2005 13:37

godess
this's so cool :shock:

Cheap_Suit 05-29-2005 18:53

ok ppls

you can edit an existing html by:

-right click
--edit

you can also make your own html file from a notepad just save it as <name>.html

cmusic goes to amxx/config

How to add ur every own music:

open a notepad

this is the code I use in hardtrance

// background colour
<body bgcolor="#000">

// font colour
<font color="#ffff">

//just some info about what are they going listen
<center>You are listening to Hard Trance.. Brought you by DI

//the code for Window Media Player
<center><object id="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft Windows Media Player components...">
<param name="Filename" value="http://www.di.fm/wma/hardtrance.asx">
<param name="AnimationAtStart" value="false">
<param name="TransparentAtStart" value="false">
<param name="ShowControls" value="true">
<param name="PlayCount" value="false">
<param name="AutoPlay" value="true">
</object>

http://www.di.fm/wma/hardtrance.asx is the link to the music

//this an easier version (no controler)
<bgsound src="URL OF MUSIC">

After this save it as .html
eg.
hardtrance.html
put this file in cmusic folder

now if you want to listen to this in the game say:
/hardtrance


OTHER Files:
mstop - stop the playing the music
music - you must add a list of music here for people know the command

hope this will be helpful :roll:

djplasma 05-31-2005 04:15

It would be nice if this plugin at least advertized its own main command.

/musiclist
/stopmusic

:)

Bambe 06-30-2005 06:00

if i play a music on server
everybody can hear the music?
or the music can hearing only my self ?
thx explanation.... :)


All times are GMT -4. The time now is 20:16.

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