Where are you Experienced, Need your help
#1

Well, I Want to put my own song on the random music i'll explain how:
When you join the server directly i want to listen to the song and it'll finishes till the player spawn i mean the song stops when the player spawn and choose the skin.
Reply
#2

Code:
public OnPlayerConnect( playerid )
{
    PlayAudioStreamForPlayer( playerid, "http://YourWebsite.com/YourMP3" );
    return 1;
}
public OnPlayerSpawn( playerid )
{
     StopAudioStreamForPlayer( playerid );
     return 1;
}
Reply
#3

Well, I Did like you told me but i have a problem on this " { } " i didnt know where to exactly put it because i have some createobjects but idk i have to put it like that
{
PlayAudioStreamForPlayer( playerid, "http://YourWebsite.com/YourMP3" );
return 1;
}

Or Like that ( without { } )
PlayAudioStreamForPlayer( playerid, "http://YourWebsite.com/YourMP3" );
return 1;
Also in onplayerspawn same probleme i have some checkpoints idk that i have to put it on the first or in the last
PS: I Have a song in my desktop but didn't know how to upload it on a website
Hope you reply me.
Take a look here:
http://i66.tinypic.com/ic8ylh.png
http://i63.tinypic.com/fawtid.png
Reply
#4

Code:
public OnPlayerConnect( playerid )
{
    Your Objects......
    PlayAudioStreamForPlayer( playerid, "http://YourWebsite.com/YourMP3" );
    return 1;
}
public OnPlayerSpawn( playerid )
{
     YourCheckpoint.................
     StopAudioStreamForPlayer( playerid );
     return 1;
}
or if you didn't understand send me a Pm with your OnPlayerSpawn and OnPlayerConnect code.
Reply
#5

Check your PMs
Reply
#6

check your Friend xD.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)