Music in Skin Selection Problem
#1

Well I'm trying to play a song in the skin selection so i did.

Code:
public OnPlayerRequestClass(playerid, classid)
{
PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/h286pk3c97/themusic.mp3");
if(classid == 0) GameTextForPlayer(playerid,"~b~blahblah",2000,5);
{
    SetPlayerPos(playerid,1268.7476,-900.2996,42.8828);
    SetPlayerCameraPos(playerid,1268.6455,-904.1758,42.8828);
    SetPlayerFacingAngle(playerid,187.4978);
    SetPlayerCameraLookAt(playerid,1268.7476,-900.2996,42.882);
but the music plays in skin selection, but stops when i press left or right then starts again from the beginning and when i press spawn it continues to play, any help?
Reply
#2

Put PlayAudioStreamForPlayer under OnPlayerConnect
Reply
#3

Well now it stops restarting when going left or right but it continues to play after u spawn
Reply
#4

Under OnPlayerSpawn add a function that will stop the music from playing.
Reply
#5

Like...
Reply
#6

pawn Code:
StopAudioStreamForPlayer(playerid);
Reply
#7

You really need to start searching.

StopAudioStreamForPlayer().
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)