[Help]PlayerPlaySound
#1

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

Plz dont delete my post | Plz help my
Reply
#3

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

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

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)