PHP код:
if(dialogid == DIALOG_MUSICAS)
{
if(response)
{
if(((strval(inputtext)) == 1) || (strcmp(inputtext, "hunter", true) == 0))
{
PlayAudioStreamForPlayer(playerid, "http://live.hunter.fm/live/");
SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Radio Hunter {FFFF00}Selecionada {FFFFFF}!");
}
if(((strval(inputtext)) == 2) || (strcmp(inputtext, "malandramente", true) == 0))
{
PlayAudioStreamForPlayer(playerid, "https://fobos.sscdn.co/palcomp3/5/2/c/0/mcsnandinhoenegoban-nandinho-feat-nego-bam-malandramente-rd-da-nh-light-c21b5bb0.mp3");
SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Malandramente {FFFF00}Selecionada {FFFFFF}!");
}
if(((strval(inputtext)) == 3) || (strcmp(inputtext, "favela", true) == 0))
{
PlayAudioStreamForPlayer(playerid, "https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3");
SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Baile de Favela {FFFF00}Selecionada {FFFFFF}!");
}
if(((strval(inputtext)) == 4) || (strcmp(inputtext, "desligar", true) == 0))
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Radio {FFFF00}Desligada {FFFFFF}!");
}
}
}