SA-MP Forums Archive
[Include] [INC]AudioStream - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]AudioStream (/showthread.php?tid=511490)



[INC]AudioStream - iRaiDeN - 05.05.2014

Information
Hello, everyone, today I built a thing called AudioStream, basically the player can play songs on *******, by linking to *******, you will do the dirty work, published in the meantime, I saw one of those, so short enjoy.
Features
PHP код:
PlayAudioForPlayer(clientid,url[])
PlayAudioForAll(url[])
StopAudioForPlayer(clientid)
StopAudioForAll() 
Credits
PHP код:
/*
    * The big credtt to: iRaiDeN;
        * Give you relief mode, play songs without convert;
            * Features:
                - PlayAudioForPlayer(clientid,url[])
                    - PlayAudioForAll(url[])
                        - StopAudioForPlayer(clientid)
                            - StopAudioForAll()
    ********************* Enjoy ********************************************* */ 
Exampels
PHP код:
OnPlayerConnect(playerid)
{
    
PlayAudioForPlayer(playerid,"www.youtube.com/watch?v=l3Bpvl8S5h8");
    
PlayAudioForAll("www.youtube.com/watch?v=l3Bpvl8S5h8");
    
SetTimerEx("EndMusic",5000,false,"d",playerid);
}
forward EndMusic(playerid);
public 
EndMusic(playerid) return StopAudioForPlayer(playerid),StopAudioForAll(); 
Download
Pastebin.
solidfiles.
Have Fun!



Re: [INC]AudioStream - VladimirMark - 05.05.2014

Hmm that's great PlayTube but this seams better
Great Job Bro


Re: [INC]AudioStream - iRaiDeN - 05.05.2014

Quote:
Originally Posted by VladimirMark
Посмотреть сообщение
Hmm that's great PlayTube but this seams better
Great Job Bro
thanks!


Re: [INC]AudioStream - XK - 06.05.2014

is it the same as your filterscript?


Re: [INC]AudioStream - GeasyW - 06.05.2014

Great Job bro!


Re: [INC]AudioStream - iRaiDeN - 06.05.2014

Quote:
Originally Posted by GeasyW
Посмотреть сообщение
Great Job bro!
thanks!


Re: [INC]AudioStream - nickdodd25 - 06.05.2014

Do you even own the domain/php file used for getting the ******* audio? If not you should be posting some credits to the person that actually did the hard part and made the php side for this to even work. Same goes for your filterscript that does the same thing.