Sound?
#1

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 2108.1409,1911.1537,10.8203);
  SetPlayerFacingAngle(playerid, 269.9582);
	SetPlayerCameraPos(playerid, 2116.1033,1911.2902,10.8203);
	SetPlayerCameraLookAt(playerid, 2108.1409,1911.1537,10.8203);
 	PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0); <====
	return 1;
}
When i spawn the sound still goes...How can i make when i spawn that the sound turns off??


I tryed

Код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0); 
return 1;
}
But the sound still plays


Can U please help me
Reply
#2

stock StopMusic(playerid)
{
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
}
Reply
#3

Do like this:
pawn Код:
public OnPlayerSpawn(playerid)
{
    StopMusic(playerid);
     return 1;
}
Reply
#4

Quote:
Originally Posted by brett7
stock StopMusic(playerid)
{
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
}
Quote:
Originally Posted by [LRP
Sayaron ]
Do like this:
pawn Код:
public OnPlayerSpawn(playerid)
{
    StopMusic(playerid);
     return 1;
}
Those both codes should work, But i'd prefer the second one mate..

GL!
Reply
#5

Mine works 100%, or should as it works for me
Reply
#6

Use this to stop music:
Код:
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
Reply
#7

Quote:
Originally Posted by X Cutter
Use this to stop music:
Код:
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
lol, no. Use this :P
pawn Код:
public OnPlayerSpawn(playerid)
{
    StopMusic(playerid);
     return 1;
}
Reply
#8

Quote:
Originally Posted by [LRP
Sayaron ]
lol, no. Use this :P
pawn Код:
public OnPlayerSpawn(playerid)
{
    StopMusic(playerid);
     return 1;
}
lol. no. I can only tell you that this function doesnt exist!
If you use a self made function, you need to post the function itself, too.
Reply
#9

Quote:
Originally Posted by [LRP
Sayaron ]
Quote:
Originally Posted by X Cutter
Use this to stop music:
Код:
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
lol, no. Use this :P
pawn Код:
public OnPlayerSpawn(playerid)
{
    StopMusic(playerid);
     return 1;
}
StopMusic doesn't exist.....

EDIT: Whoops somebody posted that before meh lawl....
Reply
#10

Quote:
Originally Posted by X Cutter
Quote:
Originally Posted by [LRP
Sayaron ]
Quote:
Originally Posted by X Cutter
Use this to stop music:
Код:
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
lol, no. Use this :P
pawn Код:
public OnPlayerSpawn(playerid)
{
    StopMusic(playerid);
     return 1;
}
StopMusic doesn't exist.....

EDIT: Whoops somebody posted that before meh....
Why does it work for me then??
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)