ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, \"Fejléc\", \"ide a dolgokat, amiket akarsz\", \"Gomb1\", \"Gomb2l\");
ShowPlayerDialog(playerid, 245, DIALOG_STYLE_LIST, \"Rádió\", \"R1\\nR2\\nR3\\nR4\", \"Gomb1\", \"Gomb2l\");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == PSONG_DIALOG) {TogglePlayerControllable(playerid, true);if(response == 1) { switch(listitem) { case 0: { SendClientMessage(playerid, ZOLD, \"Rádió1\" ); PlayAudioStreamForPlayer(playerid, \"RádióLink\"); } case 1: { SendClientMessage(playerid, ZOLD, \"Rádió2\" ); PlayAudioStreamForPlayer(playerid, \"RádióLink\"); } case 2: { SendClientMessage(playerid, ZOLD, \"Rádió3\" ); PlayAudioStreamForPlayer(playerid, \"RádióLink\"); } case 3: { SendClientMessage(playerid, ZOLD, \"Rádió4\" ); PlayAudioStreamForPlayer(playerid, \"RádióLink\"); } }}return 1;} return 0;}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == PSONG_DIALOG) {TogglePlayerControllable(playerid, true);if(response == 1) { switch(listitem) { case 0: { SendClientMessage(playerid, ZOLD, \"RiseFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.risefm.hu/inc/balaton_playlist.m3u\"); } }}return 1;} return 0;}
#define PSONG_DIALOG 245 // a psong_dialog a 245 os erteket veszi fel
SendClientMessage(playerid, ZOLD, \"RiseFM\" );A zold definiálva van, mint: \"#define ZOLD #008000\"
#define ZOLD #008000
0x38FF06FF0xF6BB0AA
{c42d2d}{874a4a}
SendClientMessage(playerid, ZOLD, \"hello {c42d2d} hello\");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { ShowPlayerDialog(playerid, 245, DIALOG_STYLE_LIST, \"Rádió\", \"R1\\nR2\\nR3\\nR4\", \"Gomb1\", \"Gomb2l\");if(dialogid == PSONG_DIALOG) { TogglePlayerControllable(playerid, true); if(response == 1) { switch(listitem) { case 0: { SendClientMessage(playerid, COLOR_GREEN, \"RiseFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.risefm.hu/inc/balaton_playlist.m3u\"); } } } return 1; } return 0; }
CMD:radio(playerid,params[]){ ShowPlayerDialog(playerid, PSONG_DIALOG, DIALOG_STYLE_LIST, \"Rádió\", \"R1\\nR2\\nR3\\nR4\", \"Gomb1\", \"Gomb2l\"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == PSONG_DIALOG) { TogglePlayerControllable(playerid, true); if(response == 1) { switch(listitem) { case 0: { SendClientMessage(playerid, COLOR_GREEN, \"RiseFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.risefm.hu/inc/balaton_playlist.m3u\"); } } } return 1; } return 0; }