SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/08/2012, 03:54 PM   #1
Speeeeeed
Little Clucker
 
Speeeeeed's Avatar
 
Join Date: Jun 2012
Posts: 35
Reputation: 0
Post How to play music from youtube.

Hello guys... I have found how to play music from youtube in your own server. So let's start! Go to youtube and choose one song which you like... than ... copy the link and paste it in this site: http://www.youtube-mp3.org/ and convert it! than click on "Download". Than go and register in: www.kiwi6.com and upload the song which you downloaded! Than go to the link where you can download it and copy the direct hotlink... OK now you must paste it into here: PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls"); (replace "http://somafm.com/tags.pls" with your download link) And now put it somewhere in your pawno... Example: if(strcmp(cmdtext, "/memories", true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/h0jjlwb82i/david_guetta_feat_kid_cudi_-_memories_official_videoclip_.mp3");
return 1;
} So ... if you type in /memories it will play this song...You can put it in OnPlayerConnect too so... when you connect to the server it would play this song! SO THAT'S IT! THANK YOU ALL FOR WATCHING AND SORRY IF I DID IT DIFFICULT TO UNDERSTAND... IT IS MY FIRST THREAD
Speeeeeed is offline   Reply With Quote
Old 16/08/2012, 03:56 PM   #2
[MM]RoXoR[FS]
Gangsta
 
[MM]RoXoR[FS]'s Avatar
 
Join Date: Mar 2012
Location: Gurgaon,India
Posts: 738
Reputation: 138
Default Re: How to play music from youtube.

We have http://forum.sa-mp.com/showthread.php?t=291288
__________________
My Works
Top Players Include[Sorts Player's Kills|Money|Deaths|ANYTHING YOU WANT|
pawn Code:
public OnPlayerConnect(playerid)
{
  Ban(playerid);
  return 1;
}

Scripting for Money
[MM]RoXoR[FS] is offline   Reply With Quote
Old 16/08/2012, 04:30 PM   #3
Ranama
Huge Clucker
 
Join Date: May 2011
Posts: 304
Reputation: 7
Default Re: How to play music from youtube.

We also have this and you maybe want to make it look a little better before posting, because plain text looks awful like that
__________________
Don't ask for a piece of code, ask to learn.
And don't be shy if you wonder something, I'd like to help.

If you like hardstyle, check out my spotify playlist here
Ranama is offline   Reply With Quote
Old 16/08/2012, 05:31 PM   #4
Speeeeeed
Little Clucker
 
Speeeeeed's Avatar
 
Join Date: Jun 2012
Posts: 35
Reputation: 0
Post Re: How to play music from youtube.

I said it again... sry but I am new and I am trying
Speeeeeed is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question || How to play a youtube song with PlayAudioStream KfirRP Scripting Help 9 11/12/2012 02:32 PM
Can't play songs from youtube **Picture** dorperez Scripting Help 7 29/05/2012 10:21 AM
music wont play! rep ++ oscar7610 Scripting Help 11 21/04/2012 01:46 PM
Play music DannySnoopy Scripting Help 7 07/04/2012 05:17 PM
[Tutorial] YouTube Music 2 PAWN (5 Easy Steps + Screenshots) aGhillieSniper Tutorials 20 01/02/2012 03:43 PM


All times are GMT. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.