SA-MP Forums Archive
Stop play sound - 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: Stop play sound (/showthread.php?tid=300027)



Stop play sound - MathijsS - 28.11.2011

Hi all
I made a code so when a player join, their is a sound that's play, exaple:
Код:
public OnPlayerConnect(playerid)
	{
	PlayerPlaySound(playerid, 1185, 0.0, 0.0, 10.0);
	return 1;
}
It does'nt stop, it plays forever. I don't now how to fix it, can anyone help me?


Re: Stop play sound - |_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011

maybe
https://sampwiki.blast.hk/wiki/StopAudioStreamForPlayer


Re: Stop play sound - MathijsS - 28.11.2011

Quote:
Originally Posted by |_ⒾⓇⓄN_ⒹⓄG_|
Посмотреть сообщение
its a sound id, not a stream, butt thanks


Re: Stop play sound - |_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011

just create a little sound to stop that one...
easy


Re: Stop play sound - MathijsS - 28.11.2011

Quote:
Originally Posted by |_ⒾⓇⓄN_ⒹⓄG_|
Посмотреть сообщение
just create a little sound to stop that one...
easy
Thankyou, i did'nt think about that!