SA-MP Forums Archive
PlayAudioStreamForPlayer - 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 (/showthread.php?tid=381984)



PlayAudioStreamForPlayer - Maniek - 01.10.2012

When I'm using PlayAudioStreamForPlayer always show me in chat something like this "Audio stream: (and here is my url stream)". Is there any way to stop showing this text?


Re: PlayAudioStreamForPlayer - TreePuncher - 01.10.2012

I dunno well, maybe you could make everyone type /audiomsg lmao. I tryed already to
pawn Код:
OnPlayerConnect(playerid)
{
     return OnPlayerCommandText(playerid, "/audiomsg");
}
Still i didnt found nothing different lmao


Re: PlayAudioStreamForPlayer - Maniek - 01.10.2012

I think you don't understand me. Just use
Код:
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");
and you will see that command send msg to chat.


Re: PlayAudioStreamForPlayer - Maniek - 01.10.2012

I'm in shock... why team SA-MP include message in this function? It's like put message "Object was create." in function CreateObject. Total absurdity!


Re: PlayAudioStreamForPlayer - Maniek - 01.10.2012

Quote:
Originally Posted by ******
Посмотреть сообщение
So that you can't secretly steal another server's stream without your players noticing. If there were no messages I could just link to your stream and sap your bandwidth instead of mine and no-one would ever know.
Please do not blame me. I completely forgot that someone in such a way it could use.


Re: PlayAudioStreamForPlayer - Extremo - 01.10.2012

The only known way to fix this is by making a buffer large enough to hold the last 50 or whatever lines for every single player and setting the chat back to exactly that(after clearing it of course). That way it at least appears as if the message wasn't sent.