SA-MP Forums Archive
Streaming more than 1 song using Dropbox - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Streaming more than 1 song using Dropbox (/showthread.php?tid=419536)



Streaming more than 1 song using Dropbox - TheCyber - 01.03.2013

Hey guys,

Basically, I stopped using this radio script since I wanted to stream my own songs that I uploaded on Dropbox. The question is, how can I play like more than 1 song? Since I do On‌PlayerSpawn => PlayAudioStreamForPlayer "link".

I want more than 1 link so I can play like 15 songs in a row (15 different links). Any help is appreciated.

Cheers!


Re: Streaming more than 1 song using Dropbox - RajatPawar - 01.03.2013

You can maybe - Check out the length (time) of the songs, then set timers for each one. Or just make a list and allow the user to choose. Or - I am asking an experienced scripter:
Can you use HTTP functions to GET_POST_DATA from the link and see if it is still streaming, OnPlayerUpdate, and then if it isn't, play the next song?


Re: Streaming more than 1 song using Dropbox - TheCyber - 05.03.2013

I have no idea what you're talking about mate. I'm a bit of a noob though sorry...


Re: Streaming more than 1 song using Dropbox - SilverKiller - 05.03.2013

You can use a timer!