PlayerPlaySound How do i stop it?
#1

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
Reply
#2

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.
Reply
#3

PlayerPlaySound(playerid,1039,0, 0, 0);
Use this ^^
Reply
#4

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)
Reply
#5

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

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);
Reply
#7

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

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 =]
Reply
#9

It works for me only half of the time?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)