SA-MP Forums Archive
[Help]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: [Help]PlayerPlaySound (/showthread.php?tid=116078)



[Help]PlayerPlaySound - JetfighterV - 27.12.2009

Why the PlayerPlaySound function when attached, and continue to elect a magnet for playing the music. Why?
This my code :

PlayerPlaySound( playerid, 1187, 0.0, 0.0, 0.0 );
SetPlayerPos(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerCameraPos(playerid, -2445.4675,-83.2549,34.2572);
SetPlayerCameraLookAt(playerid, -2446.6492,-78.0747,34.1809);
SetPlayerFacingAngle(playerid, 180.0);
ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1);


Re: [Help]PlayerPlaySound - JetfighterV - 27.12.2009

Plz dont delete my post | Plz help my


Re: [Help]PlayerPlaySound - patchkinson - 27.12.2009

when you want it to stop do
PlayerPlaySound( playerid, 1188, 0.0, 0.0, 0.0 );

so like you play your sound at playerrequestclass
so to stop it at spawn do
PlayerPlaySound( playerid, 1188, 0.0, 0.0, 0.0 );
under onplayerspawn



Re: [Help]PlayerPlaySound - JetfighterV - 27.12.2009

under onplayerspawn and playerrequestclass is not work | I want to gather the skin only to play


Re: [Help]PlayerPlaySound - patchkinson - 27.12.2009

Quote:
Originally Posted by JetfighterV
under onplayerspawn and playerrequestclass is not work | I want to gather the skin only to play
wuuuut?
you tell it to do this
PlayerPlaySound( playerid, 1187, 0.0, 0.0, 0.0 );

and it plays the sound
but it doesnt stop
to make it stop
just add this
PlayerPlaySound( playerid, 1188, 0.0, 0.0, 0.0 );
in the place where you want it to stop... whats hard in that?