AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   mp3 player (https://forums.alliedmods.net/showthread.php?t=5013)

Dark_Clutz 08-18-2004 17:53

mp3 player
 
1 Attachment(s)
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.

SirTiger 08-18-2004 20:51

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 :)

Dark_Clutz 08-18-2004 21:13

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 08-18-2004 22:40

just about done with porting v1.2 just waiting on a few maps to test it.

SirTiger 08-19-2004 13:40

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 :)

Dark_Clutz 08-25-2004 19:56

having some trouble with finding time to finish converting the newer version. so it might take me awhile to get around to it

DirtyDoggT 08-26-2004 02:24

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?

Dark_Clutz 08-26-2004 22:29

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

General Hardy 08-29-2004 09:47

This Is Nifty
 
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.

Dark_Clutz 08-29-2004 11:25

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


All times are GMT -4. The time now is 15:09.

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