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



Question about PlayAudioStreamForPlayer - Petricko - 03.03.2012

Hello i have question about PlayAudioStreamForPlayer.
I set this function in some commands, when a player uses command with this function, the chat he writes this:
Код:
Audio stream: http://k004.kiwi6.com/hotlink/4j58710j2b/accessdeniedfemale.mp3
Is it possible to remove it, if so, how?
Thanks in advance


Re: Question about PlayAudioStreamForPlayer - Walsh - 03.03.2012

You can't remove the audio message server-wise. But only clients can toggle this by typing /audiomsg IG.


Re: Question about PlayAudioStreamForPlayer - ricardo178 - 03.03.2012

I don't think it is possible to remove.. All you can do is clean chat after player type it... 5 or 6 blank messages are enough to clean the visible lines.

But if you make the links smaller possible, like using a radio server, so you use it's IP it doesn't look that bad..


Re: Question about PlayAudioStreamForPlayer - Petricko - 03.03.2012

Thank you very much I knew about that command. Since I did some skripter, whether it can be adjusted when the player connects to the server automatically activates the command / audiomsg?


Re: Question about PlayAudioStreamForPlayer - Walsh - 03.03.2012

I think SA-MP saves whether the player has toggled audio messages, but there is absolutely no way to toggle it script-wise. Maybe the development team will change that in later versions, but for now. You're outta luck.


Re: Question about PlayAudioStreamForPlayer - ricardo178 - 03.03.2012

Yes it is saved in sa-mp.cfg in your documents/Gta User Files/SAMP folder.

Код:
fpslimit=90
multicore=1
audioproxyoff=0
timestamp=0
I have no idea if there is any way to force player to type a command, but i don't think so. Max you can do is placing a message with that command when player login.


Re: Question about PlayAudioStreamForPlayer - Petricko - 03.03.2012

Now when I checked a player typing / audiomsg saved as he says ricardo178.
Thanks a lot everyone...


Re: Question about PlayAudioStreamForPlayer - Petricko - 03.03.2012

I have just one question, if they can be inserted into a function or something that only certain players can use a command?


Re: Question about PlayAudioStreamForPlayer - Walsh - 03.03.2012

Quote:
Originally Posted by Petricko
Посмотреть сообщение
I have just one question, if they can be inserted into a function or something that only certain players can use a command?
You can't mess with any command that comes with SA-MP. Those commands are hard-coded into SA-MP's source, and the development team doesn't want it to be touched.