Jump to content

Recommended Posts

Posted

Sunt Gireada, un utilizator a vrut sa vada cum pui radio pe server.

Sa incepem.

Avem nevoie de functia [pawn]PlayAudioStreamForPlayer[/pawn] si de a sti sa facem comenzi.

Functia [pawn]PlayAudioStreamForPlayer[/pawn]

Ex:[pawn]PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");[/pawn]

playerid - id-ul jucatorului.

http://somafm.com/tags.pls - este un url de la un streamer. Atentie extensiile valide sunt .mp3 , .pls

Pasul 1.

Cream comanda:

[pawn]

CMD:radio(playerid, params[])

{

return 1;

}[/pawn]

Pasul 2.

In corpul comenzii adaugam functia cu url-ul streamer-ului.

[pawn]

CMD:radio(playerid, params[])

{

              PlayAudioStreamForPlayer(playerid, "http://asculta.radioklass.ro:90/listen.pls");

return 1;

}[/pawn]

Si gata am creeat comanda.

Streamere gasiti aici. Streamer

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.