18.10.2016, 10:56
PHP код:
if (strcmp("/dmusica", cmdtext, true) == 0) {
if(pAdmin[playerid] != 5)
return false;
ShowPlayerDialog(playerid, 2016, DIALOG_STYLE_INPUT, "{D6E1EB}*******", "{FFFFFF}Escribe el titulo de la canciуn", "Aceptar", "Cancelar");
return true;
}
else if (strcmp("/musica", cmdtext, true, 7) == 0) {
if(pAdmin[playerid] != 5)
return false;
if(!cmdtext[7])return SendClientMessage(playerid, 0xD6E1EBFF, "/musica [titulo]");
format(ola, sizeof(ola), "https://6t.pe/?song=%s", cmdtext[7]);
PlayAudioStreamForPlayer(playerid, ola);
return 1;
}