[Pedido] Colocar musicas random ao entrar
#1

Bom galera, eu tentei colocar umas musica random ao Conectar. mas dб erro, ja retirei as coisa que fiz, concertesa fiz errado kk.

Espero que possam me ajudar com o cod :3

PHP код:
new RandomMusicas[][] =
{
    
"https://acamar.sscdn.co/palcomp3/0/5/d/7/nelsoncoutinho-os-cretinos-e-mc-wm-batendo-a-bunda-no-chao-video-oficial-4470dd89.mp3",
    
"https://fobos.sscdn.co/palcomp3/7/c/2/2/nelsoncoutinho-lost-boy-nightcore-b41df4ff.mp3",
    
"https://fobos.sscdn.co/palcomp3/6/b/f/c/nelsoncoutinho-twenty-one-pilots-stressed-out-official-video-5e895e19.mp3",
    
"https://www.palcomp3.com/mcsnandinhoenegoban/vai-rebolar-feat-dennis-dj/",
    
"https://fobos.sscdn.co/palcomp3/5/2/c/0/mcsnandinhoenegoban-nandinho-feat-nego-bam-malandramente-rd-da-nh-light-c21b5bb0.mp3",
    
"https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3"
}; 
Reply
#2

No topo da GM
PHP код:
new RandomMusicas[][] =
{
    
"https://acamar.sscdn.co/palcomp3/0/5/d/7/nelsoncoutinho-os-cretinos-e-mc-wm-batendo-a-bunda-no-chao-video-oficial-4470dd89.mp3",
    
"https://fobos.sscdn.co/palcomp3/7/c/2/2/nelsoncoutinho-lost-boy-nightcore-b41df4ff.mp3",
    
"https://fobos.sscdn.co/palcomp3/6/b/f/c/nelsoncoutinho-twenty-one-pilots-stressed-out-official-video-5e895e19.mp3",
    
"https://www.palcomp3.com/mcsnandinhoenegoban/vai-rebolar-feat-dennis-dj/",
    
"https://fobos.sscdn.co/palcomp3/5/2/c/0/mcsnandinhoenegoban-nandinho-feat-nego-bam-malandramente-rd-da-nh-light-c21b5bb0.mp3",
    
"https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3"
}; 
PHP код:
public OnPlayerConnect(playerid)
{
      new 
Random random(sizeof(RandomMusicas));
      
PlayAudioStreamForPlayer(playerid,RandomMusicas[Random]);
      return 
1;

Reply
#3

Quote:
Originally Posted by B4dSh33p
Посмотреть сообщение
No topo da GM
PHP код:
new RandomMusicas[][] =
{
    
"https://acamar.sscdn.co/palcomp3/0/5/d/7/nelsoncoutinho-os-cretinos-e-mc-wm-batendo-a-bunda-no-chao-video-oficial-4470dd89.mp3",
    
"https://fobos.sscdn.co/palcomp3/7/c/2/2/nelsoncoutinho-lost-boy-nightcore-b41df4ff.mp3",
    
"https://fobos.sscdn.co/palcomp3/6/b/f/c/nelsoncoutinho-twenty-one-pilots-stressed-out-official-video-5e895e19.mp3",
    
"https://www.palcomp3.com/mcsnandinhoenegoban/vai-rebolar-feat-dennis-dj/",
    
"https://fobos.sscdn.co/palcomp3/5/2/c/0/mcsnandinhoenegoban-nandinho-feat-nego-bam-malandramente-rd-da-nh-light-c21b5bb0.mp3",
    
"https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3"
}; 
PHP код:
public OnPlayerConnect(playerid)
{
      new 
Random random(sizeof(RandomMusicas));
      
PlayAudioStreamForPlayer(playerid,RandomMusicas[Random]);
      return 
1;

Valeu cara.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)