[AJUDA]PlayAudioStreamForPlayer
#21

Quote:
Originally Posted by WalkerXD
View Post
Nгo daria pos iria bugar todos os outros comandos que eu uso o float !

(mesmo assim tentei e nao deu)
mals por te passar info errada, e pq n to em casa e to sem o pwno, nem deu pra testar.. mals aae
Reply
#22

alguem consegue pegar o link desse arquivo? http://www.4shared.com/audio/rECKWCj9/headshot.html? por favor
Reply
#23

http://www.sodicas.org/como-colocar-...erfil-do-orkut

VEJA O SEGUNDO METADO, PEGUE O CODE FINAL (QUE SERIA PARA COLOCAR NO PERFIL) E COLOQUE COMO LINK DO PlayAudioStreamForPlayer...
Reply
#24

Ta ae delete http://dc442.4shared.com/img/1023071...b8/preview.mp3

@Topic porfavor alquem ajuda na minha duvida do inicio !
Reply
#25

Quote:
Originally Posted by delete
View Post
alguem consegue pegar o link desse arquivo? http://www.4shared.com/audio/rECKWCj9/headshot.html? por favor
http://dc442.4shared.com/img/1023071...au43WIwNZbTaCg
Reply
#26

Quote:
Originally Posted by WalkerXD
View Post
Ta ae delete http://dc442.4shared.com/img/1023071...b8/preview.mp3

@Topic porfavor alquem ajuda na minha duvida do inicio !
troque seu comando por esse:
pawn Code:
if (strcmp("/radiop", cmdtext, true) == 0)
{
        for(new Players = 0; Players < MAX_PLAYERS; Players ++)
        {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        PlayAudioStreamForPlayer(playerid, "link.mp3 que voce conseguiu", X, Y, Z, 20.0, 1);
        }
}
return 1;
se der, +rep, se nao poste no que deu...
Reply
#27

Quote:
Originally Posted by WalkerXD
View Post
Ta ae delete http://dc442.4shared.com/img/1023071...b8/preview.mp3

@Topic porfavor alquem ajuda na minha duvida do inicio !
pawn Code:
if (strcmp("/radiop", cmdtext, true) == 0)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        for(new Players = 0; Players < MAX_PLAYERS; Players ++)
        {
            if(IsPlayerInRangeOfPoint(Players, 10.0, X, Y, Z))
            {
                PlayAudioStreamForPlayer(Players, "link.mp3 que eu arrumei aki", X, Y, Z, 10.0, 1);
            }
        }
        return 1;
    }
Reply
#28

Quote:
Originally Posted by Los
View Post
pawn Code:
if (strcmp("/radiop", cmdtext, true) == 0)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        for(new Players = 0; Players < MAX_PLAYERS; Players ++)
        {
            if(IsPlayerInRangeOfPoint(Players, 10.0, X, Y, Z))
            {
                PlayAudioStreamForPlayer(Players, "link.mp3 que eu arrumei aki", X, Y, Z, 10.0, 1);
            }
        }
        return 1;
    }
Agora sim funcionol Vlw mesmo !
Reply
#29

pawn Code:
stock ProxAudio ( playerid, url [ ], Float:distance = 30.0 )
{
    new Float:x,
        Float:y,
        Float:z;

    new s = GetMaxPlayers ( );

    GetPlayerPos ( playerid, x, y, z );

    while ( s -- )
    {
        if ( IsPlayerConnected ( s ) && IsPlayerInRangeOfPoint ( s, distance, x, y, z ) )
        {
            PlayAudioStreamForPlayer ( s, url );
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)