Jump to content

Comanda Radio


Gireada

Recommended Posts

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

 

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.