/radio dialog a little help - 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: /radio dialog a little help (
/showthread.php?tid=369899)
/radio dialog a little help -
kbalor - 18.08.2012
How to stream ONLY to the player who choose the song?
Info: In PlayerName 1 Choose Song 1.. Then play the song only to him/her..
Do I need to get the player position??
pawn Код:
#define DIALOG_RADIO 1113
pawn Код:
CMD:radio(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Radio", "Song 1: Sample \nSong 2: Sample2 \nSong 3: Sample3 \nSong 4: Sample4", "Choose", "Close");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == DIALOG_RADIO)
{
switch(listitem)
{
case 0: //PlayAudiStreamForPlayer
case 1: //PlayAudiStreamForPlayer
case 2: //PlayAudiStreamForPlayer
case 3: //PlayAudiStreamForPlayer
case 4: //PlayAudiStreamForPlayer
}
return 1;
}
Re: /radio dialog a little help -
TaLhA XIV - 18.08.2012
No,this will only stream music for the player who uses this cmd.
Re: /radio dialog a little help -
kbalor - 18.08.2012
Quote:
Originally Posted by TaLhA XIV
No,this will only stream music for the player who uses this cmd.
|
EDIT: This is what im looking for thanks.
Re: /radio dialog a little help -
kbalor - 18.08.2012
Is that possible to Remove the
Audio Stream: http:/sample,com/sample/hotlink/sample- sample.mp3 in sendclientmessage when player play the song?