SA-MP Forums Archive
How to stop music on SA-MP? - 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: How to stop music on SA-MP? (/showthread.php?tid=235900)



How to stop music on SA-MP? - Osviux - 06.03.2011

Well i made a command that plays certain music but i dont know how to stop it. Could someone help me?


Re: How to stop music on SA-MP? - Serbish - 06.03.2011

@ OnPlayerSpawn:

pawn Code:
PlayerPlaySound(playerid, 1184, 0, 0, 0);



Re: How to stop music on SA-MP? - Stigg - 06.03.2011

If its PlayerPlaySound your using, use a blank sound id.

When you want the music to stop use:

Code:
PlayerPlaySound(playerid,1186 ,0, 0, 0);
To late....