Raised This Month: $32 Target: $400
 8% 

Advance Media Player


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-25-2005 , 23:50   Advance Media Player
Reply With Quote #1

.: 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
Attached Files
File Type: sma Get Plugin or Get Source (amp.sma - 20699 views - 11.3 KB)
File Type: ini amp_medialist.ini (196 Bytes, 11706 views)
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.

Last edited by Cheap_Suit; 01-16-2008 at 18:10.
Cheap_Suit is offline
ramoto
Member
Join Date: Dec 2004
Old 05-28-2005 , 16:27  
Reply With Quote #2

<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?
ramoto is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-28-2005 , 16:29  
Reply With Quote #3

in an html file, i made some demos look at them
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
ramoto
Member
Join Date: Dec 2004
Old 05-28-2005 , 19:11  
Reply With Quote #4

where?

also how do u create a html file?
ramoto is offline
Spartan-117
Senior Member
Join Date: Dec 2004
Old 05-29-2005 , 08:38  
Reply With Quote #5

can u play the music off ur computer?

if not anyone know a good site to get music from?
Spartan-117 is offline
Bolox 16
Member
Join Date: Mar 2005
Location: Canada,Ontario
Old 05-29-2005 , 11:17   Help Me PLease
Reply With Quote #6

im in the game i dont no wat to type to play the music wat do i do with the cmusic.zip
Bolox 16 is offline
Send a message via AIM to Bolox 16 Send a message via MSN to Bolox 16 Send a message via Yahoo to Bolox 16
kid741010
Junior Member
Join Date: Feb 2005
Old 05-29-2005 , 13:37  
Reply With Quote #7

godess
this's so cool
kid741010 is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-29-2005 , 18:53  
Reply With Quote #8

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
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
djplasma
Junior Member
Join Date: Jul 2004
Location: 205.138.192.120
Old 05-31-2005 , 04:15  
Reply With Quote #9

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

/musiclist
/stopmusic

__________________
e-Infinity - www.151gaming.com - PR, HR, Logistics
djplasma is offline
Send a message via MSN to djplasma
Bambe
New Member
Join Date: Apr 2005
Old 06-30-2005 , 06:00  
Reply With Quote #10

if i play a music on server
everybody can hear the music?
or the music can hearing only my self ?
thx explanation....
Bambe is offline
Reply



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


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