Jump to content

[Intrebare]Intro Music


AlexMaican

Recommended Posts

Buna ziua, imi poate spune cineva cum pot adauga muzica de intro la server`ul meu ? Adica : Cand player`ul trebuie sa se inregistreze/logheze sa fie o muzica.Script`ul il am dar am o problema: Nush cum sa pun muzica :)) Uitati cod`ul

 

public OnPlayerConnect(playerid) {

PlayAudioStreamForPlayer(playerid, "URL.mp3");

}

public OnPlayerSpawn(playerid) {

    StopAudioStreamForPlayer(playerid);

}

La URL.mp3 ce pun? stiu ca ar trebeii sa fie ceva gen "un ip" iar la final .mp3 ...cum fac sa pun muzica?

 

Link to comment
Share on other sites

Acolo pui URL de la melodie,dar nu trebuie sa fie de la YouTube,de exemplu,daca ai un site cu acces la FTP pui o melodie in FTP,si pui URL de la site si o bara cu melodia.

Exemplu: http://siteulmeu.ro/Melodia_Mea.mp3

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Link to comment
Share on other sites

Salut ! Ba da , poti . Pe un site de gazduit melodii . Dar iti poti face un domeniu gratuit la hostprofil.ro si iti urci melodia pe FTP acolo apoi iei link-ul spre melodie si pui in loc de URL.mp3 .

 

Exemplu de site care gazduieste melodii si ofera cod : http://www.uploadmusic.org , e printre cele mai bune . Alegi melodia , apesi pe Upload si dupa ce se incarca iti vor apasa doua casute in care sunt niste coduri HTML de genul asta : 

<a href="http://www.uploadmusic.org"><object type="application/x-shockwave-flash" width="17"
height="17"data="http://www.uploadmusic.org/musicplayer.swf?song_url=http://www.uploadmusic.org/MUSIC/7259411447544058.mp3&autoplay=true"><param  name="movie"value="http://www.uploadmusic.org/musicplayer.swf?song_url=http://www.uploadmusic.org/MUSIC/7259411447544058.mp3&song_title=uploadmusic.org&autoplay=true"
/></object><img src="http://www.uploadmusic.org/smallplayer.gif" border="0">
<br>Upload Music</a>

Eh , tu o sa extragi din acel cod doar link-ul care se termina in .mp3 , de la http://www.uploadmusic.org/MUSIC/cifrele.mp3 , aia iei tu si inlocuiesti in PlayAudioStreamForPlayer. Bafta !

 

Link to comment
Share on other sites

1 oră în urmă, AlexMaican a spus:
  Ascunde conținuturi


PlayAudioStreamForPlayer(playerid, "http://www.uploadmusic.org/intro/275251447571713.mp3"); ?

 

e bine asa? intro se numeste melodia . Este bun asa?

Da.

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.