Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/radio", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new sradio[1900];
- strcat(sradio, "{FFFFFF}RadioWISH {FF0000}\t\t\t /radiowish\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio HiT FM {FF0000}\t\t\t /radiohit\n", 1900 );
- strcat(sradio, "{FFFFFF}Contact FM {FF0000}\t\t\t /contactfm\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio Romanian Hip-Hop {FF0000}\t /romanianhiphop\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio Romanian Manele {FF0000}\t /romanianmanele\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio Romanian Popular {FF0000}\t /romanianpopular\n", 1900 );
- strcat(sradio, "{FFFFFF}Pro FM {FF0000}\t\t\t\t /profm\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio GMusic Rock {FF0000}\t\t /gmusic\n", 1900 );
- strcat(sradio, "{FFFFFF}radio-tube.pl Dubstep {FF0000}\t\t /radiotube\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio Mafia {FF0000}\t\t\t /radiomafia\n", 1900 );
- strcat(sradio, "{FFFFFF}Radio Greu de Difuzat {FF0000}\t\t /greudedifuzat\n", 1900 );
- strcat(sradio, "{FF0000}Opreste radioul \t\t /stopradio", 1900 );
- ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "{FFFFFF}Meniu {FF0000}Radio", sradio, "Selecteaza","Inchide");
- }
- return 1;
- }
- if(strcmp(cmd, "/radiohit", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio HiT FM (/radiohit)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://www.radio-hit.ro/asculta.m3u");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio hit~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/radiowish", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}RadioWISH (/radiowish)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://www.radiowish.ro/live.m3u");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio wish~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/contactfm", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Contact FM (/contactfm)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://www.contactfm.ro/listen.pls");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~contact fm~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/romanianhiphop", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Hip-Hop (/romanianhiphop)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/hiphop.pls");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian hip-hop~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/romanianpopular", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Popular (/romanianpopular)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/popular.pls");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian popular~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/romanianmanele", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Manele (/romanianmanele)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/manele.pls");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian manele~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/profm", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Pro FM (/profm)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~pro fm~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/gmusic", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio GMusic Rock (/gmusic)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://www.radiogmusic.com/rock.m3u");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio gmusci rock~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/radiotube", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}radio-tube.pl Dubstep (/radiotube)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://s4.radiohost.pl:8154/listen.pls");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio-tube.pl dubstep~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/radiomafia", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Mafia (/radiomafia)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://www.radiomafia.ro/listen.m3u");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio mafia~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/greudedifuzat", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Greu de Difuzat (/greudedifuzat)",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- PlayAudioStreamForPlayer(playerid, "http://www.greudedifuzat.eu/greudedifuzat.m3u");
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio greu de difuzat~w~...", 1500, 3);
- }
- return 1;
- }
- if(strcmp(cmd, "/stopradio", true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "Radio oprit.");
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement