Help song, choose charater.
#1

Hello everyone, well I have a doubt I want to add a sound when you choose this character on my server. I already got the sound and try to put everything right, but what happens I have a problem when I choose the character after the music never stops.

Please help ..

Greetings.

Sorry for my bad english.
Reply
#2

to stop the song try this
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
Reply
#3

In "OnPlayerSpawn" do PlaySound("whatever music id +1", x, y, z);

So whatever your music id play that id +1 so if it was 1200 you play 1201 to stop.
Reply
#4

The song is: PlayerPlaySound(playerid, 1183, 1958.3783, 1343.1572, 15.3746); Plzz add the +1.
Reply
#5

Quote:
Originally Posted by cyber_punk
In "OnPlayerSpawn" do PlaySound("whatever music id +1", x, y, z);

So whatever your music id play that id +1 so if it was 1200 you play 1201 to stop.
This is not true for all sounds, but only for musics: https://sampwiki.blast.hk/wiki/SoundID
Reply
#6

This is the sound you want:

SOUND_DRIVING_AWARD_TRACK_START 1183 (music)
SOUND_DRIVING_AWARD_TRACK_STOP 1184

Please help put the sound in the beginning of the server when it chooses the character.
Reply
#7

Plz help..
Reply
#8

Quote:
Originally Posted by Sergiy
Quote:
Originally Posted by cyber_punk
In "OnPlayerSpawn" do PlaySound("whatever music id +1", x, y, z);

So whatever your music id play that id +1 so if it was 1200 you play 1201 to stop.
This is not true for all sounds, but only for musics: https://sampwiki.blast.hk/wiki/SoundID
I know that and said it was only on music, Chile its like this....

Under OnPlayerRequestClass put PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);

Now under OnPlayerSpawn put PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);

And the music will stop playing...
Reply
#9

Quote:
Originally Posted by cyber_punk
Quote:
Originally Posted by Sergiy
Quote:
Originally Posted by cyber_punk
In "OnPlayerSpawn" do PlaySound("whatever music id +1", x, y, z);

So whatever your music id play that id +1 so if it was 1200 you play 1201 to stop.
This is not true for all sounds, but only for musics: https://sampwiki.blast.hk/wiki/SoundID
I know that and said it was only on music, Chile its like this....

Under OnPlayerRequestClass put PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);

Now under OnPlayerSpawn put PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);

And the music will stop playing...
Men plz help the music never STOP..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)