how to fix this?
#1

hey guys,

i have made it that when a player joins server and chooses a skin(onplayerrequestclass) then there plays a song while the player is choosing his skin... but now i have a problem... when a player presses on the NEXT button to choose another skin then the screen stops moving for about 5 seconds and then the song starts again... how can i make it that the song just doesn't stops but just goes on with playing?

this is my code:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2106.7463,1002.0556,45.6641);
    SetPlayerCameraPos(playerid, 2111.1670,999.0892,45.6591);
    SetPlayerCameraLookAt(playerid, 2106.7463,1002.0556,45.6641);
    SetPlayerFacingAngle(playerid, 270.1425);
    PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/get?video_id=_ovdm2yX4MA&h=e5dda6ce00166e58122425f9180b27bd&r=1328027258209");
    return 1;
}
can anyone help me?

greets niels
Reply
#2

If you use PlayAudioStreamForPlayer in OnPlayerRequestClass, it is called every time a player looks at a player class.

Moving it to OnPlayerConnect should solve the problem
Reply
#3

ah ok thnx man i will try XD

EDIT: yeah it works thnx for help man REP+
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)