Radio nгo toca
#1

Galera eu peguei o sistema de rбdio de uma gm, aqueles que coloca no chгo e quem ta perto ouvi, entгo ai eu passei tudo certinho pra minha, mais na hora de toca a musica nгo toca, tipo nem no chat aparece o link '-' sendo que o link й valido, eu testei no gm original e tudo e pego, alguйm sabe oque й?

Код:
	if(dialogid == 6099)
	{
		if(!response) return 1;
		if(!strlen(inputtext))
		{
           	MEGAString[0] = EOS;
           	strcat(MEGAString, "{FFFF00}Digite uma URL de uma Musica,Rбdio ou Som que toque sem precisar dar Play!\n\n");
  			strcat(MEGAString, "{FFFF00}A musica pode demorar atй 10 segundos para comeзar a tocar\n");
			ShowPlayerDialog(playerid,6099,DIALOG_STYLE_INPUT,"URL do Som", MEGAString,"Tocar","Cancelar");
			return 1;
		}
		new localURL[256];
		format(localURL, 256, "%s",inputtext);
		if(strfind(inputtext,"www.*******.com",true) != -1)
		{
			format(localURL, 256, "http://unlimitedlikes.com/revzombie/play.php?q=yt:%s",inputtext);
		}
		PlayAudioStreamForPlayer(playerid,localURL);
		format(localURL, 128, "Ouvindo URL: {FFFF00}%s!",inputtext);
        SendClientMessage(playerid,COLOR_GRAD1,localURL);
        new id;
		SetPlayerAttachedObject(playerid,id,19421,2,0.012999,0.015999,0.000000,90.699928,-13.199942,-86.999931,1.000000,0.945000,1.000000);
		SendClientMessage(playerid, COLOR_GRAD1, "OBS: Nгo estб ouvindo as musicas? aumente o volume da rбdio do seu GTA no menu opзхes de audio.");
		return 1;
	}
Код:
createSound(playerid, urlSound[]){

	static
		Float:Pos[4],
		string[128]
	;

    format(string, sizeof(string), "* %s ligou seu rбdio portбtil.", PlayerName(playerid));
	SendClientMessageInRange(30.0, playerid, string, COLORGZ_EXE,COLORGZ_EXE,COLORGZ_EXE,COLORGZ_EXE,COLORGZ_EXE);

  	ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.1,0,1,1,0,0);

	RemovePlayerAttachedObject(playerid,10);
	RadioMao[playerid] = 1;

	GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
	GetPlayerFacingAngle(playerid, Pos[3]);

	for(new x; x != MAX_SOUNDS; x++){

	    if(!SomInfo[x][somCreated]){

	        SomInfo[x][somCreated] 		= true;

	        SomInfo[x][somWorld]        = GetPlayerVirtualWorld(playerid);

	        SomInfo[x][somVida] 		= 100.0;

	        SomInfo[x][somX] 			= Pos[0];
	        SomInfo[x][somY] 			= Pos[1];
	        SomInfo[x][somZ] 			= Pos[2]-0.95;
	        SomInfo[x][somID]           = playerid;

	        format(SomInfo[x][somLink], 128, urlSound);

            SomInfo[x][somObject] 		= CreateDynamicObject(2226, SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ], 0.0, 0.0, Pos[3], SomInfo[x][somWorld]);

	        format(string, sizeof string, "-o))) Som de: %s", PlayerName(playerid));

            SomInfo[x][somText]         = CreateDynamic3DTextLabel(string, 0x33CCFFF9, SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ]+0.3, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, SomInfo[x][somWorld]);

			return 1;
		}
	}
	
	return 1;
}
Reply


Messages In This Thread
Radio nгo toca - by zCyan - 27.07.2017, 20:00
Re: Radio nгo toca - by zCyan - 27.07.2017, 21:10
Re: Radio nгo toca - by teteu99 - 27.07.2017, 21:54

Forum Jump:


Users browsing this thread: 1 Guest(s)