- #include <a_samp>
- #include <zcmd>
- //rádió
- #define DIALOG_RADIO 983
- #define piros 0xff0000AA
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- new iter = GetVehicleModel(playerid), bool:hlp;
- switch(iter)
- {
- case 460, 476, 511, 512, 513, 519, 520, 553, 577, 592, 593, 417, 425, 447, 469, 487, 488, 497, 548, 563, 441, 464, 465, 501, 564, 594, 590, 569, 537, 538, 570, 449, 472, 473, 493, 495, 484, 430, 454, 453, 452, 446, 581, 462, 521, 463, 522, 523, 461, 448, 471, 468, 586, 509, 481, 510:
- {
- hlp = true;
- }
- }
- if(!hlp)
- {
- new pina = -1;
- while(pina != MAX_PLAYERS)
- {
- pina += 1;
- if(IsPlayerInVehicle(pina, vehicleid))
- {
- PlayAudioStreamForPlayer(playerid, "http://www.sztarnet.hu/ClassFM/mp3_adas_1.m3u");
- }
- }
- return 1;
- }
- hlp = false;
- return 1;
- }
- CMD:radio(playerid, params[])
- {
- ShowPlayerDialog(playerid, 983, DIALOG_STYLE_LIST, "Rádió", "Class FM\nNeo FM\nMulatós\nRádió1\nRockVilág\nRádió 88 Club", "Hallgat", "Kikapcsolás");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new vid = GetPlayerVehicleID(playerid);
- if(dialogid == 983)
- {
- if(!response)
- {
- StopAudioStreamForPlayer(playerid);
- }
- if(listitem == 0)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vid))
- {
- PlayAudioStreamForPlayer(i, "http://www.sztarnet.hu/ClassFM/mp3_adas_1.m3u");
- SendClientMessage(playerid, piros, "Te a Class FM-et hallgatod!");
- }
- }
- }
- if(listitem == 1)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vid))
- {
- PlayAudioStreamForPlayer(i, "http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u");
- SendClientMessage(playerid, piros, "Te a Neo FM-et hallgatod!");
- }
- }
- }
- if(listitem == 2)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vid))
- {
- PlayAudioStreamForPlayer(i, "http://www.rtvstat.hu/play.m3u?1126&8");
- SendClientMessage(playerid, piros, "Te a Mulatós csatornát hallgatod!");
- }
- }
- }
- if(listitem == 3)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vid))
- {
- PlayAudioStreamForPlayer(i, "http://195.70.35.172:8000/radio1.mp3");
- SendClientMessage(playerid, piros, "Te a Rádió 1-et hallgatod!");
- }
- }
- }
- if(listitem == 4)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vid))
- {
- PlayAudioStreamForPlayer(i, "http://94.199.128.124:8800/rockvilag1");
- SendClientMessage(playerid, piros, "Te a RockVilág-ot hallgatod!");
- }
- }
- }
- if(listitem == 5)
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vid))
- {
- PlayAudioStreamForPlayer(i, "http://www.rtvstat.hu/play.m3u?1028&4");
- SendClientMessage(playerid, piros, "Te a Rádió 88 Club-ot hallgatod!");
- }
- }
- }
- return 1;
- }
- return 1;
- }