Jump to content

AudioStream


CokeJR.

Recommended Posts

Un mic tutorial creat de mine.

Pentru a adauga o melodie cand va conectati pe server procedam in felul urmator:

Mergem la OnPlayerConnect

Si adaugam

PlayAudioStreamForPlayer(playerid, "Link-ul nostru catre melodie");
Exemplu
PlayAudioStreamForPlayer(playerid, "http://gta-cp.info/sounds/Godfather.mp3");
Iar daca doriti sa-se opreasca melodia dupa spawn procedam asa : Mergem la OnPlayerSpawn Si adaugam
StopAudioStreamForPlayer(playerid);

Stiu ca este destul de simplu dar sunt incepator :P

Link to comment
Share on other sites

e simplu dar e ff bun , il stiu dar eu am o problema

Mi-am facut discoteca , am bagat muzica inauntru cand dai enter sa intri in ea etc..cand iesi sa se opreasca

Am adaugat un sunte la inceput cand sa te loghezi si sa se opreasca cand termini si tot asa /radiocar ...etc

Problema este urmatoare !

is momente in car pica serverul ! asa dintrodata , in server crashdetect , zice ca nu cunoaste comanda

[23:00:50]: The server has crashed due to an unknown error

iar acuma ca am scos tot ce tine de Audio Streamer , audio.so numai pica !

Cum fac sa le bag la loc dar sa numai pice serverul deloc:(

Link to comment
Share on other sites

  • 1 month later...

Faci o melodie mp3 nu prea lunga  , dupa aceea o urci pe un host  , daca ai hi2 e bun  ,de exemplu te conectezi la ftp urci mp3-ul , cu numele RPG.mp3 si dupa pui linkul exemplu ai urcat mp3-ul  , domeniu tau este rpg.hi2/not/ro daca ai urcat mp3-ul in foloderul principal al hostului va-fi asa http:/rpg.hi2/not/ro/Rpg.mp3 :)) nu prea stiu sa explic

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.