Please help me with playstreamforplayer! - 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: Please help me with playstreamforplayer! (
/showthread.php?tid=347657)
Please help me with playstreamforplayer! -
Jason_Dealley - 02.06.2012
Well i dont understand how to make a command wich would play my audio stream i have a shoutcast server but for the rest i just dont know if anyone would like to help me with it (like give a pawn code) i would appreciate it.
P.S. my audio stream is : dutchbeastz.listen2myradio.com
Re: Please help me with playstreamforplayer! -
newbienoob - 02.06.2012
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Re: Please help me with playstreamforplayer! -
Jason_Dealley - 02.06.2012
Quote:
Originally Posted by newbienoob
|
I know i watched that already...
i dont really know how to make a .pls
Re: Please help me with playstreamforplayer! -
TheDominator - 02.06.2012
You mean like this:
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/play radio", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "dutchbeastz.listen2myradio.com");
return 1;
}
Re: Please help me with playstreamforplayer! -
Jason_Dealley - 02.06.2012
Quote:
Originally Posted by TheDominator
You mean like this:
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/play radio", cmdtext, true) == 0) { PlayAudioStreamForPlayer(playerid, "dutchbeastz.listen2myradio.com"); return 1; }
|
Yes thank you!
Re: Please help me with playstreamforplayer! -
Jason_Dealley - 02.06.2012
How to create a stop command?
*noob*
Re: Please help me with playstreamforplayer! -
newbienoob - 02.06.2012
https://sampwiki.blast.hk/wiki/StopAudioStreamForPlayer
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/stop radio", cmdtext, true) == 0)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
Re: Please help me with playstreamforplayer! -
Jason_Dealley - 02.06.2012
Thanks all!
Re: Please help me with playstreamforplayer! -
Jason_Dealley - 02.06.2012
Oke trying it
Re: Please help me with playstreamforplayer! -
milanosie - 02.06.2012
Code:
CMD:milanium1(playerid, params[])
{
PlayAudioStreamForPlayer(playerid, "http://k005.kiwi6.com/hotlink/aqly2x8ar6/booster_original_mix.mp3");
SCM(playerid, COLOR_GREEN, "Booster - Milan");
return 1;
}