Raised This Month: $59 Target: $400
 14% 

mp3 player


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   devicenull (200)
Dark_Clutz
Junior Member
Join Date: Apr 2004
Old 08-18-2004 , 18:53   mp3 player
Reply With Quote #1

created by DutchTiger
ported to amxx by Dark_Clutz

/* MP3 v1.0Beta - Steam
* This file is provided as is (no warranties).
*
* Play MP3's on your clients.
* Usage:
* amx_playmp3 <mp3file> - Plays a MP3 file on the client
* amx_repeatmp3 <mp3file> - Repeats a MP3 file on the client
* amx_stopmp3 - Stop all MP3's
*
* The MP3 player will look for it's files in ModDir/sound/mp3
*
* IMPORTANT: You will need to remove the three lines above "public plugin_precache()"
* and the line under under } in that block to enable Precaching of MP3 files.

Code:
public  plugin_precache ( ) {    precache_sound("mp3/techno.mp3")   precache_sound("mp3/shake.mp3")   precache_sound("mp3/yourmp3here.mp3") }

i will eventully try and add a file to grab the mp3's to precache off of but till then this at least works.
Attached Files
File Type: sma Get Plugin or Get Source (mp3.sma - 7056 views - 2.1 KB)
Dark_Clutz is offline
SirTiger
Member
Join Date: Mar 2004
Old 08-18-2004 , 21:51  
Reply With Quote #2

First of all I feel very honored you are porting one of my plugins,
secondly I do like to point out there is a newer version with some new features: MP3 V1.2 pro
Also, precache_sound does not cover MP3 as far as I know.
Please do not get my critism wrong, but it might be things you want to overlook.
I think the precache_generic one is in jghg or engine, not sure which one it was.

Good luck
SirTiger is offline
Dark_Clutz
Junior Member
Join Date: Apr 2004
Old 08-18-2004 , 22:13  
Reply With Quote #3

precache_sound worked fine when i tested it so far. anyways i'll see about the new version so there's an up-todate one on here.
Dark_Clutz is offline
Dark_Clutz
Junior Member
Join Date: Apr 2004
Old 08-18-2004 , 23:40  
Reply With Quote #4

just about done with porting v1.2 just waiting on a few maps to test it.
Dark_Clutz is offline
SirTiger
Member
Join Date: Mar 2004
Old 08-19-2004 , 14:40  
Reply With Quote #5

Quote:
Originally Posted by Dark_Clutz
just about done with porting v1.2 just waiting on a few maps to test it.
If you say so... in AMX it didnt
SirTiger is offline
Dark_Clutz
Junior Member
Join Date: Apr 2004
Old 08-25-2004 , 20:56  
Reply With Quote #6

having some trouble with finding time to finish converting the newer version. so it might take me awhile to get around to it
Dark_Clutz is offline
DirtyDoggT
Junior Member
Join Date: Aug 2004
Old 08-26-2004 , 03:24  
Reply With Quote #7

Has anyone gotten this to work. I think some of us would have some fun with this but I'm getting no luck with it?
__________________
www.DirtyDoggT.com
DirtyDoggT is offline
Dark_Clutz
Junior Member
Join Date: Apr 2004
Old 08-26-2004 , 23:29  
Reply With Quote #8

make sure you change the sma to pre-cache the mp3's you want and they are in the location you want in the precache. also you can use the plugin that's around here for custom precache stuff which would allow you to not have to modify this plugin. it's in the plugins section somewhere
Dark_Clutz is offline
General Hardy
New Member
Join Date: Aug 2004
Old 08-29-2004 , 10:47   This Is Nifty
Reply With Quote #9

I Like This And All But Theres Like A Precache Prob. Its Just Haveing An Error Trying To Load Them... Odd But Maybe Im Doing Something Off.
__________________
Ya Something Like That...
General Hardy is offline
Dark_Clutz
Junior Member
Join Date: Apr 2004
Old 08-29-2004 , 12:25  
Reply With Quote #10

post what you have set to precache in the plugin. i'lll see what i can do to mke it work for you
Dark_Clutz is offline
Reply


Thread Tools
Display Modes

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 05:47.


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