PlayerPlaySound
#1

How do you stop "PlayerPlaySound" becasuse when i set a sound to play in class selection it still plays in spawn help? how can i stop it?
Reply
#2

https://sampwiki.blast.hk/wiki/SoundID

Find the ID of the _STOP one you need, and add it under OnPlayerSpawn like you are adding a normal sound
Reply
#3

i already have the sound id, so what do i do?
Reply
#4

Quote:
Originally Posted by [mad
MLK (sampx-hosting.co.cc) ]
i already have the sound id, so what do i do?
like this

SOUND_BIKE_AWARD_TRACK_START 1185
SOUND_BIKE_AWARD_TRACK_STOP 1186

public OnPlayerConnect(playerid)
Код:
PlayerPlaySound(playerid,1185, 0.0, 0.0, 0.0); //Start Sound
and when player login or spawn

Код:
PlayerPlaySound(playerid,1186, 0.0, 0.0, 0.0); //Stop Sound
Reply
#5

bump

thanks worked great
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)