[HELP] Audio streamer in area
#1

pawn Код:
if(dialogid == DIALOG_MUSIC)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        if(response)
        {
           for(new i; i < MAX_PLAYERS; i++)
           {
              if(IsPlayerInRangeOfPoint(i, 20.0, X, Y, Z))
              {
                 PlayAudioStreamForPlayer(i, inputtext);
              }
           }
        }
    }
Reply
#2

So, what's the problem ? , I Mean , what do you need ?
Reply
#3

Sorry, when the player approaches the point, nothing happens.

1 - I give the command /play
2 - I insert the link
3 - I listen to music, but others do not hear you approach.
Reply
#4

This might help you https://sampforum.blast.hk/showthread.php?tid=290595
Reply
#5

Not work
pawn Код:
if(dialogid == DIALOG_MUSICA_LINK)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        if(response)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(IsPlayerInRangeOfPoint(i, 20.0 , X, Y, Z))
                    {
                        PlayAudioStreamForPlayer(i, inputtext, X, Y, Z, 20.0, 1);
                        return 1;
                    }
                    else return 1;
                }
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)