SA-MP Forums Archive
PlayerPlaySound - 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 (/showthread.php?tid=92754)



PlayerPlaySound - [mad]MLK - 21.08.2009

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?


Re: PlayerPlaySound - JaTochNietDan - 21.08.2009

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


Re: PlayerPlaySound - [mad]MLK - 22.08.2009

i already have the sound id, so what do i do?


Re: PlayerPlaySound - pliva_sb - 22.08.2009

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



Re: PlayerPlaySound - johnathon956 - 15.03.2010

bump

thanks worked great