SA-MP Forums Archive
PlayerPlaySound How do i stop it? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PlayerPlaySound How do i stop it? (/showthread.php?tid=75061)



PlayerPlaySound How do i stop it? - aspire5630 - 28.04.2009

ok i have it so when you choose your skin you have
PlayerPlaySound
how do i make it so when u spawn, it
PlayerStopSound or something, stops the music



Re: PlayerPlaySound How do i stop it? - MenaceX^ - 28.04.2009

Nice question, there is a specific sound.
Though it's PlayerPlaySound(playerid,soundid);
the soundid needs to be a specific sound which I don't remember its ID.



Re: PlayerPlaySound How do i stop it? - Diler - 28.04.2009

PlayerPlaySound(playerid,1039,0, 0, 0);
Use this ^^


Re: PlayerPlaySound How do i stop it? - aspire5630 - 28.04.2009

Quote:
Originally Posted by Diler
PlayerPlaySound(playerid,1039,0, 0, 0);
Use this ^^
The music still plays, when i spawn :S
i need it to stop playing once u have picked your charecter (skin)


Re: PlayerPlaySound How do i stop it? - Diler - 28.04.2009

forward dzwiekoff(playerid);
public dzwiekoff(playerid)
{
PlayerPlaySound(playerid,1098,0.0,0.0,0.0);
return 1;
}
+
SetTimerEx("dzwiekoff", 5000, 0, "d", playerid);


Re: PlayerPlaySound How do i stop it? - Metorea - 28.04.2009

Add 1 to the sound ID

E.G. say OnPlayerRequestClass You have this:

PlayerPlaySound(playerid,1039,0, 0, 0);

Put OnPlayerSpawn

PlayerPlaySound(playerid,1040,0, 0, 0);


Re: PlayerPlaySound How do i stop it? - Pyrokid - 29.04.2009

Just put and ID that doesn't exist like 1063 for example.


Re: PlayerPlaySound How do i stop it? - Blacklite - 29.04.2009

Quote:
Originally Posted by Metorea
Add 1 to the sound ID

E.G. say OnPlayerRequestClass You have this:

PlayerPlaySound(playerid,1039,0, 0, 0);

Put OnPlayerSpawn

PlayerPlaySound(playerid,1040,0, 0, 0);
Yes, I can confirm that this works. Try it =]


Re: PlayerPlaySound How do i stop it? - Rizard - 26.07.2009

It works for me only half of the time?