else if(listitem == 3)
{
if(GetPVarType(playerid, "pBoomBox"))
{
foreach(Player, i)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea")))
{
PlayAudioStreamForPlayer(i, "((here))", GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"), 30.0, 1);
}
}
SetPVarString(playerid, "pBoomBoxStation", "((Here is where is want the streamed URL to be))");
}
else
{
PlayAudioStreamForPlayer(playerid, "((Here))");
SetPVarInt(playerid, "MusicIRadio", 1);
}
}
|
Basically, use a DIALOG_STYLE_INPUT dialog and put the code you currently have under the response for that ID. Where you have things like ((here)) or whatever, replace it with: inputtext
|
ShowPlayerDialog( playerid, 9885, DIALOG_STYLE_INPUT, "Stream","Please enter your custom URL.", "Stream", "Cancel" );
ShowPlayerDialog(playerid,RADIO,DIALOG_STYLE_LIST,"Radio Menu","Song1\nSong2\nSong3\n((HERE))\nOff","Select", "Close");
ShowPlayerDialog(playerid,RADIO,DIALOG_STYLE_LIST,"Radio Menu","Song1\nSong2\nSong3\n((HERE))\nOff","Select", "Close");
ShowPlayerDialog( playerid, 9885, DIALOG_STYLE_INPUT, "Stream","Please enter your custom URL.", "Stream", "Cancel" );