HELP ME PLEASE - 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: HELP ME PLEASE (
/showthread.php?tid=409457)
HELP ME PLEASE -
Chris009 - 21.01.2013
Hello I need help I want to add music to my login and registration but how? I don't know how to script it.
But if someone that knew how to and they send me there .pwn file then that will be great.
THANX FOR LISTENING AND FOR THE PERSON THAT WILL GET +REP
ASWELL PLEASE GIVE ME A LINK WHERE I CAN USE OR CONVERT FOR THE MUSIC.
Re: HELP ME PLEASE -
DerickClark - 21.01.2013
https://sampforum.blast.hk/showthread.php?tid=345747
Re: HELP ME PLEASE -
Mr.Anonymous - 21.01.2013
You have to use
PlayAudioStreamForPlayer function for that. Also here is a tutorial for that:
https://sampforum.blast.hk/showthread.php?tid=332729
Re: HELP ME PLEASE -
Chris009 - 21.01.2013
yea but I don't really know how
Re: HELP ME PLEASE -
Chris009 - 21.01.2013
ill rep you anyways
Re: HELP ME PLEASE -
Mr.Anonymous - 21.01.2013
It's easy. Just under your registration system, put:
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://blablabla.com/your-song.mp3");
and after the registration is over, use
StopAudioStreamForPlayer.
Re: HELP ME PLEASE -
Chris009 - 21.01.2013
I don't know where it is or under player connect?
Re: HELP ME PLEASE -
Mr.Anonymous - 21.01.2013
Maybe under
OnPlayerConnect you start the song and stop it when the player spawns.
Respuesta: Re: HELP ME PLEASE -
RiChArD_A - 21.01.2013
Quote:
Originally Posted by Chris009
I don't know where it is or under player connect?
|
Press Control+F and type onplayerconnect then under the brace type PlayAudioStreamForPlayer(playerid, "Link");