NotAvailable Posted May 19, 2010 Share Posted May 19, 2010 (edited) Welcome, to my first resource! I made a Music resource, so when someone joins your server they will hear the music. Description: Made by: Me For all the MTA'ers that need music on their servers. Installation: 1. Download the resource. leave it Zipped. 2.open it. There you will see a .MP3 file. Put your own .MP3 file in the folder and delete the Default one. 3. Open: music.lua there you will see a line like this: local sound = playSound("baseball.mp3",true) Change: baseball.mp3 to your .mp3 EXAMPLE: local sound = playSound("[b]mysong[/b].mp3",true) 4. Now when you did step 3, Open: meta.xml And change: <file src="baseball.mp3" /> To: <file src="mysong.mp3" /> 5. Put the ZIP into your Resources folder. 6. Start your server CMD and type in: upgrade 7. Then type in CMD : start music 8. Then it should begin with playing your .MP3 DOWNLOAD: http://www.community.multitheftauto.com/index.ph ... ils&id=762 VIDEO: https://www.youtube.com/watch?v=KtpDIpOqPlE GreetZ, Jesse Edited July 3, 2010 by Guest Link to comment
Gamesnert Posted May 19, 2010 Share Posted May 19, 2010 Some people can't script at all. Even though I tend to agree this is kind of useless, people who want to run a server, but can't script and don't want to learn scripting either, might want to use this. Link to comment
B!ERPuNK Posted May 19, 2010 Share Posted May 19, 2010 Nice. Simple but well it works . Maybe once you've learned some more scripting you can start on a basic MP3 player, by adding a playlist with a few songs and adding commands as /nextsong, /prevsong and /stopmusic. Link to comment
NotAvailable Posted May 19, 2010 Author Share Posted May 19, 2010 Nice. Simple but well it works . Maybe once you've learned some more scripting you can start on a basic MP3 player, by adding a playlist with a few songs and adding commands as /nextsong, /prevsong and /stopmusic. Yh thats what im trying to reach Link to comment
karlis Posted May 19, 2010 Share Posted May 19, 2010 export functions to play/stop, selecting tracks, switching hem, setting 3d position, volume, etc Link to comment
Jason_Gregory Posted May 19, 2010 Share Posted May 19, 2010 Whats that ? Are you greating a MP3 / MP4 (with Frames) Player or ?!? Link to comment
Ransom Posted May 19, 2010 Share Posted May 19, 2010 Then bow down before my greatness 1 Link to comment
kevin11 Posted May 20, 2010 Share Posted May 20, 2010 (edited) Pretty useless, since you can find a code for it in mta wiki. What's the point? Isn't it easier to copy & paste the wiki code to lua and put own music than downloading a zip file and edit it.. You could make this more better with more features, so far it's useless. dont blame him mr RELEASE TODAY and after 5 days u delete the line... we know ur good in scripting (i tried ur anticheat, i download sobeit and went into zombie mod and i got killed instantly, so youre good scripter, but u dont give him a chance with ur negative reply) Edited May 20, 2010 by Guest Link to comment
darkdreamingdan Posted May 20, 2010 Share Posted May 20, 2010 Please stay on topic. The resource released may be a simple copy paste from the wiki, but nevertheless is legitimate. I'd like to see the expansion of this resource so that it's less controversial. There's little else to discuss on this matter. Link to comment
Xierra Posted May 21, 2010 Share Posted May 21, 2010 I agree Talidan, but also always remember this message: A thousand miles of journey begins with a single step. Means, every thing starts in newbie, then you'll master it. That's the secret behind how it all starts. Even IJs or the MTA Team started with just a simple script (like when they're still a child, I think ), and they now master it, so they made MTA. And yes Jesseunit has taken a single step forward. I myself had sucessfully made a real time DX text with DX rectangles for the decoration! You'll get used to it if you keep making scripts. Now go and improve / make new scripts! Ontopic: This script is simple. Everybody who wants to learn can make this in a few minutes. Good job btw. Link to comment
NotAvailable Posted May 21, 2010 Author Share Posted May 21, 2010 I agree Talidan, but also always remember this message:A thousand miles of journey begins with a single step. Means, every thing starts in newbie, then you'll master it. That's the secret behind how it all starts. Even IJs or the MTA Team started with just a simple script (like when they're still a child, I think ), and they now master it, so they made MTA. And yes Jesseunit has taken a single step forward. I myself had sucessfully made a real time DX text with DX rectangles for the decoration! You'll get used to it if you keep making scripts. Now go and improve / make new scripts! Ontopic: This script is simple. Everybody who wants to learn can make this in a few minutes. Good job btw. Thanks i agree with you 50 Cent born in a Gangster Hood he worked his all the way up to his Rich life. Im at the moment improving my scripting Link to comment
darkdreamingdan Posted May 21, 2010 Share Posted May 21, 2010 Okay, i've had to purge irrelevant posts now. I'm going to say one more time, stay on topic Link to comment
Strika Posted May 21, 2010 Share Posted May 21, 2010 Resources like this are unnecessary and is just making san andreas cheap, thats one of the reasons why sa-mp gets players in the first place, keeping gta sa just like it is. Sad but truth. However this also brings interest at times in MTA as its something different. Link to comment
kevin11 Posted May 26, 2010 Share Posted May 26, 2010 Resources like this are unnecessary and is just making san andreas cheap, thats one of the reasons why sa-mp gets players in the first place, keeping gta sa just like it is. Sad but truth. However this also brings interest at times in MTA as its something different. lol nice bullcrap story anyways i think its nice first script Link to comment
Strika Posted May 26, 2010 Share Posted May 26, 2010 Resources like this are unnecessary and is just making san andreas cheap, thats one of the reasons why sa-mp gets players in the first place, keeping gta sa just like it is. Sad but truth. However this also brings interest at times in MTA as its something different. lol nice bullcrap story anyways i think its nice first script Thanks asshole. Link to comment
Dark Dragon Posted May 27, 2010 Share Posted May 27, 2010 would you please listen to what talidan said? also treat other members with respect, do not insult each other. Link to comment
[KoG]Rouche Posted May 30, 2010 Share Posted May 30, 2010 I added this script on my server ! But The music play everytime !!! I want only when i Died ... Is it possible ? Link to comment
Xierra Posted May 30, 2010 Share Posted May 30, 2010 Just edit it by editing onClientResourceStart to onPlayerWasted, means everytime the local player dies, it plays the song. Link to comment
Xierra Posted May 30, 2010 Share Posted May 30, 2010 Oh yeah, you're right, sorry. use onClientPlayerWasted event. Just a lil offtopic: Anyway, are you in [HLS]? I'm a mapper of the server. Link to comment
[KoG]Rouche Posted June 20, 2010 Share Posted June 20, 2010 ... is it possible to edit script to play music only one time ? Link to comment
kevin11 Posted June 20, 2010 Share Posted June 20, 2010 change local sound = playSound("mysong.mp3",true) to local sound = playSound("mysong.mp3",false) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now