18.08.2012, 13:39
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??
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;
}