Where are you Experienced, Need your help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Where are you Experienced, Need your help (
/showthread.php?tid=610086)
Where are you Experienced, Need your help -
Blondz - 19.06.2016
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.
Re: Where are you Experienced, Need your help -
FuNkYTheGreat - 19.06.2016
Code:
public OnPlayerConnect( playerid )
{
PlayAudioStreamForPlayer( playerid, "http://YourWebsite.com/YourMP3" );
return 1;
}
public OnPlayerSpawn( playerid )
{
StopAudioStreamForPlayer( playerid );
return 1;
}
Re: Where are you Experienced, Need your help -
Blondz - 19.06.2016
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
Re: Where are you Experienced, Need your help -
FuNkYTheGreat - 19.06.2016
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.
Re: Where are you Experienced, Need your help -
Blondz - 19.06.2016
Check your PMs
Re: Where are you Experienced, Need your help -
FuNkYTheGreat - 19.06.2016
check your Friend xD.