[HELP]PlayerPlaySound
#1

Although he would like to reproduce No. 185 of player music, it does not reproduce at all.

Although he would like to pass music at the time of ClassSelection, it does not work at all.

Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
SetPlayerSpecialAction(playerid,5);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 10.0);
return 1;
}

Is it wrong now?
Reply
#2

My SAMP version is 0.3d.
Reply
#3

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerSpecialAction(playerid,5);
    PlayerPlaySound(playerid, 1185, 0.0, 0.0, 10.0);
    return 1;
}
Reply
#4

Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
SetPlayerSpecialAction(playerid,5);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 10.0);
return 1;
}

public SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,-2093.3120,2312.8262,25.9141);
SetPlayerFacingAngle(playerid, 277.1146);
SetPlayerCameraPos(playerid,-2090.034179,2311.972167,26.926900);
SetPlayerCameraLookAt(playerid,-2093.3120,2312.8262,25.9141);
}

It has become like this.
Reply
#5

Quote:
Originally Posted by glanz14
View Post
It has become like this.
Code:
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
SetPlayerSpecialAction(playerid,5);
return 1;
}

public SetupPlayerForClassSelection(playerid)
{
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 10.0);
SetPlayerPos(playerid,-2093.3120,2312.8262,25.9141);
SetPlayerFacingAngle(playerid, 277.1146);
SetPlayerCameraPos(playerid,-2090.034179,2311.972167,26.926900);
SetPlayerCameraLookAt(playerid,-2093.3120,2312.8262,25.9141);
}
Reply
#6

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
    SetPlayerPos(playerid,-2093.3120,2312.8262,25.9141);
    SetPlayerFacingAngle(playerid, 277.1146);
    SetPlayerCameraPos(playerid,-2090.034179,2311.972167,26.926900);
    SetPlayerCameraLookAt(playerid,-2093.3120,2312.8262,25.9141);
    SetPlayerSpecialAction(playerid,5);
    return 1;
}
This should work. Are you even having any problems with this? Or do you just want to know if it's right?
Reply
#7

Thank you for the reply.

Although both were tried, music does not flow too.
It seems that it sounds if it is an ordinary sound effect, but only music does not flow.
Reply
#8

i have no idea what you mean
PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
try to replace that playerplaysound with the old one maybe?

edit:
if you have the cracked version of the game
it might not have the sound files so sound effects wont play
Reply
#9

Sorry, I edited my post above and you might not have seen it.
pawn Code:
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
The floats should be 0 if you're playing it directly to the player.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)