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



delete - sirvanec - 24.12.2014

delete


Re: PlayAudioStreamForPlayer chat spam - Banana_Ghost - 24.12.2014

are you using a loop?


Re: PlayAudioStreamForPlayer chat spam - sirvanec - 24.12.2014

Yes i'm using a loop


Re: PlayAudioStreamForPlayer chat spam - Threshold - 24.12.2014

Show us your code


Re: PlayAudioStreamForPlayer chat spam - sirvanec - 24.12.2014

I got the same problem if i trying sendclientmessagetoall


Re: PlayAudioStreamForPlayer chat spam - BornHuman - 24.12.2014

Try adding 'return 1;' after TextMessage(estring,fstring);


AW: PlayAudioStreamForPlayer chat spam - Flori - 24.12.2014

You loop through all players and then send a message to everyone for each player.
It's like:

for player 1 a sendclientmessagetoall
for player 2 a sendclientmessagetoall
...

That's the reason for the spam. Just use SendClientMessage(i,COLOR,MESSAGE);


Re: PlayAudioStreamForPlayer chat spam - sirvanec - 24.12.2014

But you can see i don't you sendclientmessagetoall or something... how i can fix my code? Thanks BornHuman i will try this..


AW: PlayAudioStreamForPlayer chat spam - Flori - 24.12.2014

And where shall i know what "TextMessage" does?

Also a return 1 won't help here. You need to send to each player only a message.


Re: PlayAudioStreamForPlayer chat spam - sirvanec - 24.12.2014

Yes Flori i tried. Spam problem is fixed but the music did not start now.. Look at the picture TextMessage it helps to write there..