Radio
#4

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/radio", true))
	{
		if(!IsPlayerInVehicle(playerid)){
			SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle); return 1;
		}
		new string[3000];
		strcat(string,"{FF0000}Stop Radio\n");
		strcat(string,"{0000FF}181.FM - POWER 181\n");
		strcat(string,"{006400}181.FM - Chilled\n");
		strcat(string,"{FF8C00}181.FM - Party\n");
		strcat(string,"{008000}181.FM - Highway 181\n");
		strcat(string,"{4B00B0}181.FM - Kickin' Country\n");
		strcat(string,"{00FF00}COUNTRY 108\n");
		strcat(string,"{FFC0CB}DEFJAY.COM - 100% R&B\n");
		strcat(string,"{A52A2A}Antena1 SP 94,7 FM\n");
		strcat(string,"{808080}idobi Radio\n");
		strcat(string,"{FF0000}America Country Radio\n");
		strcat(string,"{0000FF}Absolutely Smooth Jazz - SKY.FM\n");
		strcat(string,"{006400}SmoothJazz.com Global Radio\n");
		strcat(string,"{FF8C00}CnR Radio\n");
		strcat(string,"{008000}))) POLSKASTACJA .PL )))\n");
		strcat(string,"{4B00B0}NOISEfm.pl - Niezalezne Radio Rock\n");
		strcat(string,"{00FF00}RadioTeenTal Indian and Bollywood\n");
		strcat(string,"{FFC0CB}DUBSTEP.FM\n");
		strcat(string,"{A52A2A}PARTY VIBE RADIO\n");
		strcat(string,"{808080}RADIO ORO MARBELLA EN DIRECTO\n");
		strcat(string,"{FF0000}Radio Nueva Vida\n");
		strcat(string,"{4B00B0}Radio538\n");
		strcat(string,"{A52A2A}Back2Noize Hardstyle\n");
		strcat(string,"{0000FF}Radio Hardstyle\n");
		strcat(string,"{A52A2A}Studio Brussel\n");
		strcat(string,"{FFC0CB}MNM Belgium\n");
		ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST,"{ADD8E6}mmtech {90EE90}Radio",string,"Select","Cancel");
		return 1;
	}
To stop the music, you'd have to do it in "OnPlayerStateChange"
Reply


Messages In This Thread
Radio - by AwokenNeoX - 06.03.2014, 18:48
Re : Radio - by Clad - 06.03.2014, 18:53
AW: Re : Radio - by AwokenNeoX - 06.03.2014, 18:54
Re: Radio - by BKarner - 06.03.2014, 18:59
Re: Radio - by CutX - 06.03.2014, 19:08
AW: Radio - by AwokenNeoX - 06.03.2014, 19:10
Re: Radio - by daan_deurloo - 06.03.2014, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)