#define RADIOADMIN 33333
////======================================================
dcmd_musica(playerid, params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 4) {
new string[1024], string1[512], string2[512];
format(string1, sizeof(string1), "Car Thief\nRedux\nFaint\nBreaking The Habit\nXFiles Theme\nRage Quit: Happy Wheels\nNew Divide\nLeslie RS3L Train Horn\nPass The Mic\nThe Move\nThree MC's One DJ\nShe's Crafty\nUnreal Superhero 3\nTriple Trouble\nAlive\nIn The End\nWaiting For The End\n");
format(string2, sizeof(string2), "The Catalyst\nIntergalactic-Original\nHold It, Now Hit It\nShake Your Rump\nIntergalactic-New\nSabotage\nSay It\nCh-Check It Out\nCrawlspace\nOh Word?\nTime To Build\nBrass Monkey\nCarol Of The Bells\nSiberian Sleigh Ride\nChristmas Canon Rock\nLights\nSomebody That I Used To Know");
format(string, sizeof(string), "%s%s", string1, string2);
ShowPlayerDialog(playerid, RADIOADMIN, DIALOG_STYLE_LIST, "Lista de musica del servidor", string, "Confirmar", "Cerrar");
return 1;
}
return 1;
}
//// ==========================================
dcmd(musica,6,cmdtext);
//// ==========================================
if(dialogid == RADIOADMIN)
{
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
}
if(listitem == 1)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/tomek-n-redux/download");
}
if(listitem == 2)
{
PlayAudioStreamForAll("http://users2.ml.mindenkilapja.hu/users/runemasters/uploads/linkin-park-faint_1_.mp3");
}
if(listitem == 3)
{
PlayAudioStreamForAll("http://rog.magma-net.pl/muza/Meteora/09-Breaking%20the%20habit%20.MP3");
}
if(listitem == 4)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/the-x-files-theme/download");
}
if(listitem == 5)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/rage-quit-happy-wheels/download");
}
if(listitem == 6)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/linkin-park-new-divide/download");
}
if(listitem == 7)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/leslie-rs3l/download");
}
if(listitem == 8)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/pass-the-mic/download");
}
if(listitem == 9)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/the-move/download");
}
if(listitem == 10)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-three-mcs-and-one/download");
}
if(listitem == 11)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-shes-crafty/download");
}
if(listitem == 12)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/keygen-music-unreal-superhero/download");
}
if(listitem == 13)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-triple-trouble-hd/download");
}
if(listitem == 14)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-alive-with-lyrics/download");
}
if(listitem == 15)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/linkin-park-in-the-end-1/download");
}
if(listitem == 16)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/waiting-for-the-end-official/download");
}
if(listitem == 17)
{
PlayAudioStreamForAll("http://mm-mobile.net/uploads/files/1288263559_linkin-park-the-catalyst.mp3");
}
if(listitem == 18)
{
PlayAudioStreamForAll("http://joeandrhonda.com/Intergalactic%20Original.mp3");
}
if(listitem == 19)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/the-beastie-boys-hold-it-now/download");
}
if(listitem == 20)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-shake-your-rump/download");
}
if(listitem == 21)
{
PlayAudioStreamForAll("http://biablo.blolol.com/random/beastieboys/10%20-%20Track%2010%20-%20Album.mp3");
}
if(listitem == 22)
{
PlayAudioStreamForAll("http://fuelfriendsmp3.com/listenup/Sabotage.mp3");
}
if(listitem == 23)
{
PlayAudioStreamForAll("http://moransa.com/music/Beastie%20Boys%20-%20Hot%20Sauce%20Committee%20Part%20Two/05-beastie_boys-say_it.mp3");
}
if(listitem == 24)
{
PlayAudioStreamForAll("http://soundcloud.com/noahfallon/beastie-boys-ch-check-it-out/download");
}
if(listitem == 25)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Crawlspace.mp3");
}
if(listitem == 26)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Oh_Word.mp3");
}
if(listitem == 27)
{
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Time_to_Build.mp3");
}
if(listitem == 28)
{
PlayAudioStreamForAll("http://moransa.com/music/Beastie%20Boys%20-%20Licensed%20to%20Ill/11%20Brass%20Monkey.mp3");
}
if(listitem == 29)
{
PlayAudioStreamForAll("http://stuff.mit.edu/afs/sipb/user/lnemzer/Public/Music/Trans-Siberian%20Orchestra%20feat.%20Metallica%20-%20Carol%20of%20the%20Bells.mp3");
}
if(listitem == 30)
{
PlayAudioStreamForAll("http://www.blahblahonline.com/muzak/12-trans_siberian_orchestra-siberian_sleigh_ride-fntx.mp3");
}
if(listitem == 31)
{
PlayAudioStreamForAll("http://www.cc.chu.edu.tw/~b9206043/ChristmasCanonRock.mp3");
}
if(listitem == 32)
{
PlayAudioStreamForAll("http://ahasbeenthatneverwas.files.wordpress.com/2010/08/ellie-goulding-lights-itunes-bonus-track.mp3");
}
if(listitem == 33)
{
PlayAudioStreamForAll("http://safetyfunandlearning.files.wordpress.com/2011/07/gotye-somebody-that-i-used-to-know-feat-kimbra.mp3");
}
}
return 1;
}
return 1;
}
/////=================================================
stock PlayAudioStreamForAll(url[])
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, url);
}
}
}
#include <a_samp>
#define RADIOADMIN (3)
dcmd_musica(playerid, params[])
{
static str[1024];
strcat(str, "Nombre del Tema 1\n");
strcat(str, "Nombre del Tema 2\n");
strcat(str, "Nombre del Tema 3\n");
strcat(str, "Nombre del Tema 4\n");
strcat(str, "Nombre del Tema 5\n");
strcat(str, "Nombre del Tema 6\n");
strcat(str, "Nombre del Tema 7\n");
strcat(str, "Nombre del Tema 8\n");
strcat(str, "Nombre del Tema 9\n");
strcat(str, "Nombre del Tema 10\n");
strcat(str, "Nombre del Tema 11");
ShowPlayerDialog(playerid, RADIOADMIN+0, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Siguiente");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
static str[1024];
switch(dialogid) {
case RADIOADMIN+0: {
if(!response) {
strcat(str, "Nombre del Tema 1\n");
strcat(str, "Nombre del Tema 2\n");
strcat(str, "Nombre del Tema 3\n");
strcat(str, "Nombre del Tema 4\n");
strcat(str, "Nombre del Tema 5\n");
strcat(str, "Nombre del Tema 6\n");
strcat(str, "Nombre del Tema 7\n");
strcat(str, "Nombre del Tema 8\n");
strcat(str, "Nombre del Tema 9\n");
strcat(str, "Nombre del Tema 10\n");
strcat(str, "Nombre del Tema 11");
ShowPlayerDialog(playerid, RADIOADMIN+1, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Siguiente");
}
if(response) {
switch(listitem) {
case 0: //Tu PlayAudioStreamForAll
case 1: //Tu PlayAudioStreamForAll
case 2: //Tu PlayAudioStreamForAll
case 3: //Tu PlayAudioStreamForAll
case 4: //Tu PlayAudioStreamForAll
case 5: //Tu PlayAudioStreamForAll
case 6: //Tu PlayAudioStreamForAll
case 7: //Tu PlayAudioStreamForAll
case 8: //Tu PlayAudioStreamForAll
case 9: //Tu PlayAudioStreamForAll
case 10: //Tu PlayAudioStreamForAll
}
}
}
case RADIOADMIN+1: {
if(!response) {
strcat(str, "Nombre del Tema 1\n");
strcat(str, "Nombre del Tema 2\n");
strcat(str, "Nombre del Tema 3\n");
strcat(str, "Nombre del Tema 4\n");
strcat(str, "Nombre del Tema 5\n");
strcat(str, "Nombre del Tema 6\n");
strcat(str, "Nombre del Tema 7\n");
strcat(str, "Nombre del Tema 8\n");
strcat(str, "Nombre del Tema 9\n");
strcat(str, "Nombre del Tema 10\n");
strcat(str, "Nombre del Tema 11");
ShowPlayerDialog(playerid, RADIOADMIN+2, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Inicio");
}
if(response) {
switch(listitem) {
case 0: //Tu PlayAudioStreamForAll
case 1: //Tu PlayAudioStreamForAll
case 2: //Tu PlayAudioStreamForAll
case 3: //Tu PlayAudioStreamForAll
case 4: //Tu PlayAudioStreamForAll
case 5: //Tu PlayAudioStreamForAll
case 6: //Tu PlayAudioStreamForAll
case 7: //Tu PlayAudioStreamForAll
case 8: //Tu PlayAudioStreamForAll
case 9: //Tu PlayAudioStreamForAll
case 10: //Tu PlayAudioStreamForAll
}
}
}
case RADIOADMIN+2: {
if(!response) {
strcat(str, "Nombre del Tema 1\n");
strcat(str, "Nombre del Tema 2\n");
strcat(str, "Nombre del Tema 3\n");
strcat(str, "Nombre del Tema 4\n");
strcat(str, "Nombre del Tema 5\n");
strcat(str, "Nombre del Tema 6\n");
strcat(str, "Nombre del Tema 7\n");
strcat(str, "Nombre del Tema 8\n");
strcat(str, "Nombre del Tema 9\n");
strcat(str, "Nombre del Tema 10\n");
strcat(str, "Nombre del Tema 11");
ShowPlayerDialog(playerid, RADIOADMIN+0, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Siguiente");
}
if(response) {
switch(listitem) {
case 0: //Tu PlayAudioStreamForAll
case 1: //Tu PlayAudioStreamForAll
case 2: //Tu PlayAudioStreamForAll
case 3: //Tu PlayAudioStreamForAll
case 4: //Tu PlayAudioStreamForAll
case 5: //Tu PlayAudioStreamForAll
case 6: //Tu PlayAudioStreamForAll
case 7: //Tu PlayAudioStreamForAll
case 8: //Tu PlayAudioStreamForAll
case 9: //Tu PlayAudioStreamForAll
case 10: //Tu PlayAudioStreamForAll
}
}
}
}
return 1;
}
stock PlayAudioStreamForAll(url[]) {
for(new i = 0; i < GetMaxPlayers(); i++)
if(IsPlayerConnected(i)) break;
PlayAudioStreamForPlayer(i, url);
}
|
el maximo de listitems es el maximo de numero que puede contener una variable xd
|
.
.
.pwn(1199) : warning 203: symbol is never used: "params" .pwn(7730) : warning 217: loose indentation .pwn(7730) : error 017: undefined symbol "i"
dcmd_musica(playerid, params[])
{
static str[1024];
strcat(str, "Nombre del Tema 1\n");
strcat(str, "Nombre del Tema 2\n");
strcat(str, "Nombre del Tema 3\n");
strcat(str, "Nombre del Tema 4\n");
strcat(str, "Nombre del Tema 5\n");
strcat(str, "Nombre del Tema 6\n");
strcat(str, "Nombre del Tema 7\n");
strcat(str, "Nombre del Tema 8\n");
strcat(str, "Nombre del Tema 9\n");
strcat(str, "Nombre del Tema 10\n");
strcat(str, "Nombre del Tema 11");
ShowPlayerDialog(playerid, RADIOADMIN+0, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Siguiente");
return 1;
}
dcmd_musica(playerid, params[])
{
#pragma unused params
static str[1024];
strcat(str, "Nombre del Tema 1\n");
strcat(str, "Nombre del Tema 2\n");
strcat(str, "Nombre del Tema 3\n");
strcat(str, "Nombre del Tema 4\n");
strcat(str, "Nombre del Tema 5\n");
strcat(str, "Nombre del Tema 6\n");
strcat(str, "Nombre del Tema 7\n");
strcat(str, "Nombre del Tema 8\n");
strcat(str, "Nombre del Tema 9\n");
strcat(str, "Nombre del Tema 10\n");
strcat(str, "Nombre del Tema 11");
ShowPlayerDialog(playerid, RADIOADMIN+0, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Siguiente");
return 1;
}
stock PlayAudioStreamForAll(url[]) {
for(new i = 0; i < GetMaxPlayers(); i++) {
if(IsPlayerConnected(i)) {
PlayAudioStreamForPlayer(i, url);
}
}
}
.#include <a_samp>
#define RADIOADMIN (1)
COMMAND:test(playerid, params[])
{
new str[501];
format(str, 501, "\
Nombre del Tema 1 \n\
Nombre del Tema 2 \n\
Nombre del Tema 3 \n\
Nombre del Tema 4 \n\
Nombre del Tema 5 \n\
Nombre del Tema 6 \n\
Nombre del Tema 7 \n\
Nombre del Tema 8 \n\
Nombre del Tema 9 \n\
Nombre del Tema 10 \n\
Nombre del Tema 11 \n\
Nombre del Tema 12 \n\
Nombre del Tema 13 \n\
Nombre del Tema 14 \n\
Nombre del Tema 15 \n\
Nombre del Tema 16 \n\
Nombre del Tema 17 \n\
Nombre del Tema 18 \n\
Nombre del Tema 19 \n\
Nombre del Tema 20 ");
ShowPlayerDialog(playerid, RADIOADMIN+0, DIALOG_STYLE_LIST, "Lista de musica del servidor", str, "Confirmar", "Cerrar");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid) {
case RADIOADMIN+0: {
if(response) {
switch(listitem) {
case 0: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 1");
}
case 1: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 2");
}
case 2: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 3");
}
case 3: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 4");
}
case 4: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 5");
}
case 5: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 6");
}
case 6: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 7");
}
case 7: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 8");
}
case 8: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 9");
}
case 9: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 10");
}
case 10: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 11");
}
case 11: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 12");
}
case 12: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 13");
}
case 13: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 14");
}
case 14: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 15");
}
case 15: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 16");
}
case 16: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 17");
}
case 17: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 18");
}
case 18: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 19");
}
case 19: {
PlayAudioStreamForAll("http://music.freeman-stat.us/bboys/Car_Thief.mp3");
SendClientMessage(playerid, -1, "Has Reproducido el Tema 20");
}
}
}
}
}
return 1;
}
stock PlayAudioStreamForAll(url[]) {
for(new i = 0; i < GetMaxPlayers(); i++) {
if(IsPlayerConnected(i)) {
PlayAudioStreamForPlayer(i, url);
}
}
}