SA-MP Forums Archive
PlayAudioStreamForPlayer Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayAudioStreamForPlayer Help (/showthread.php?tid=406886)



PlayAudioStreamForPlayer Help - jakejohnsonusa - 11.01.2013

When doing PlayAudioStreamForPlayer Is there a way to get rid of the "Audio Stream: mysoundlinkhere.mp3" ? It's a bit annoying.

Thanks in advance!


Re: PlayAudioStreamForPlayer Help - DiGiTaL_AnGeL - 11.01.2013

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
When doing PlayAudioStreamForPlayer Is there a way to get rid of the "Audio Stream: mysoundlinkhere.mp3" ? It's a bit annoying.

Thanks in advance!
I think the only way to do that is by modifying a_samp.ini


Re: PlayAudioStreamForPlayer Help - Threshold - 12.01.2013

There is no way to actually disable this message, unless you are willing to use Incognito's Audio plugin. However, you can type a command, I can't remember exactly what it is, but I have a feeling it's /audiomsg which toggles the status of the message, and unless you can convince every player that joins your server to type that, you may have to resort to the plugin.


Re: PlayAudioStreamForPlayer Help - jakejohnsonusa - 12.01.2013

I would be willing to use his streamer, but how?

I need to convert the following code, I can't find how to include the location where to play the sound...

pawn Код:
if ((newkeys & KEY_CROUCH) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        new Float:x;
        new Float:y;
        new Float:z;
        GetPlayerPos(playerid,x,y,z);
        for (new i = 0; i != MAX_PLAYERS; ++i)
        {
            if (IsPlayerConnected(i))
            {
               
                PlayAudioStreamForPlayer(i, "http://mysoundlinkhere.mp3", x, y, z, 3200, 1);
            }
        }
    }



Re: PlayAudioStreamForPlayer Help - EAsT-OAK_510 - 12.01.2013

You can do this:

When someone enters a vehicle you can send them a message saying Hint: Use /audiomsg to disable "Now Streaming text" or something.


Re: PlayAudioStreamForPlayer Help - Threshold - 12.01.2013

Read here on how the code/plugin works.

https://sampforum.blast.hk/showthread.php?tid=82162


Re: PlayAudioStreamForPlayer Help - jakejohnsonusa - 12.01.2013

I did, I know I need Audio_PlayStreamed and Audio_Set3DPosition but I don't understand the handleid... Anyone help me figure this out please?