[Ajuda] Distancia som.
#1

bom, preciso de uma ajuda.

eu procurei alguns lugares, no search e etc..
bom, o sistema de som tem assim.

Код:
new Float:Pos[3];
                                GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
                                for(new i = 0; i <MAX_PLAYERS; i++){
                                    if(IsPlayerInRangeOfPoint(i,10.0,Pos[0],Pos[1],Pos[2])){
                                                PlayAudioStreamForPlayer(i,inputtext);
ele nao faz aquela distancia que da efeito do som aumentando.
oque posso fazer para que fique assim?

procurei a vi algo assim

Код:
     new Float:X, Float:Y, Float:Z, Float:Distance = 100.0;
     GetPlayerPos(playerid, X, Y, Z);
     PlayAudioStreamForPlayer(playerid, "[URL]", X, Y, Z, Distance, 1);
     return 1;
    }
nгo sei como implementar isso na minha .. caso alguem puder ajudar.
obrigado
Reply
#2

alguem?
Reply
#3

Tente:
Код:
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
for(new i = 0; i <MAX_PLAYERS; i++)
{
	if(IsPlayerInRangeOfPoint(i,10.0,Pos[0],Pos[1],Pos[2]))
	{
 		PlayAudioStreamForPlayer(i, inputtext, Pos[0], Pos[1], Pos[2], 10.0, 1);
	}
}
Reply
#4

nгo funciona amigo, ele continua tocando.

Ex: o player usar o comando, coloca o link, eu saio de perto e ainda toca
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)