05.05.2013, 10:55
use this :-
pawn Код:
#define AddMusica 45
//OnPlayerCommandText
if(strcmp(cmdtext,"/addm",true) == 0)
{
ShowPlayerDialog(playerid, 45, DIALOG_STYLE_INPUT, "Adicionar Musica","Para ouvires a musica tens d ecolocar o link em .mp3","Adicionar!","Cancelar!");
return true;
}
//OnDialogResponse
/*Line 94 */if(dialogid == 45){
if(response){
OnPlayerCommandText(playerid,"/radio");
}
else{
new linkmusica;
PlayAudioStreamForPlayer(playerid, "%s", linkmusica);
}
}
return true;
}