SA-MP Forums Archive
[FilterScript] Rбdio JFS Music Basic v1.0 - 0.3d RC1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] Rбdio JFS Music Basic v1.0 - 0.3d RC1 (/showthread.php?tid=283183)



Rбdio JFS Music Basic v1.0 - 0.3d RC1 - JonathanFeitosa - 13.09.2011

Olб, No Tutorial de Hoje, Vou Posta um Sistema de Rбdio Basico, Onde Vocк Poderб Evoluir Ainda Mais.


O Que Tem Nesse FilterScript ?

Sistema de Rбdio ( /radio ).
Sistema de Rбdio Em Carro, Onde o Motorista e Passageiro Poderб Acessar e Escutar.


Pode me dar Dicas e Sugestхes ?

Profissгo DJ.
O DJ que й o Administrador, Escolhe Qualquer Mъsica Onde Todos Escuta ( LOOP ).
Mъsicas Em Festas.
Mъsica ao Entrar no Servidor.


Quais as Mъsicas e os Artistas Do FilterScript ?

Artista: B.O.B Mъsica: Magic
Artista: Charlie Brown Mъsica: Ela Vai Voltar
Artista: Travis McCoy ft. Bruno Mars Mъsica: Billionarie
Artista: David Mъsica: Guetta Getting Over You
Artista: Train Mъsica: Hey Soul Sister
Artista: Bruno Mars Mъsica: The Lazy Song
Artista: David Guerra ft. Florida Mъsica: Club Cant Handle Me
Artista: Bonde da Stronda Mъsica: Mansгo Thug Stronda
Artista: Black Eyed Peas Mъsica: The Time


Onde Eu Posso Ouvir Essas Mъsicas e como Funciona o FilterScript ?

[ame]http://www.youtube.com/watch?v=7sYtK3vdCKw[/ame]

Como Posso Trocar as Mъsicas do FilterScript?

Entгo Vamos Usar Apenas 6 Passos, Vamos Lб.

1 - Abra o Site www.4shared.com
2 - Pesquisa a Sua Mъsica, Depois de Achar Click em cima Dela. (Eu Vou Pesquisar a The Lazy Song de Bruno Mars).
3 - Depois Vai Abrir uma Pбgina Parecida Com Essa Aqui, Depois Aperte CTRL + U.
4 - Vai Aparecer uma Pбgina Parecida Com Essa Aqui, Depois Aperte CTRL + G Para Pesquisar Na Pagina, e Pesquise Por:

PHP код:
<meta property="og:audio" 
5 - Vai Aparecer um Code Parecido Com Esse:
PHP код:
<meta property="og:audio" content="http://dc417.4shared.com/img/686549780/2191361/dlink__2Fdownload_2F15pt7e2e_3Ftsid_3D20110913-211837-893d1d5d/preview.mp3" /> 
6 - Pegue o Link Que й :
PHP код:
http://dc417.4shared.com/img/686549780/2191361/dlink__2Fdownload_2F15pt7e2e_3Ftsid_3D20110913-211837-893d1d5d/preview.mp3 
Pronto, Depois Sу й Usar na Funзгo, Para Testar Se Pegou, Acesse esse Link й Confira.

Code Final:

pawn Код:
PlayAudioStreamForPlayer(playerid,"http://dc417.4shared.com/img/686549780/2191361/dlink__2Fdownload_2F15pt7e2e_3Ftsid_3D20110913-211837-893d1d5d/preview.mp3");

Aperte Aqui Para fazer o Download.
Crйditos: Jonathan Feitosa e 4shared.
Visualize o FilterScript
pawn Код:
// Crйditos: Jonathan Feitosa.
// Site: projetosjfs.tk ( Em Breve Novo Site, Atualizado. )

#include <a_samp>
#define ListadeMusica 9924
new EscutandoMusica[MAX_PLAYERS];
//-------------------------------------------------

public OnFilterScriptInit()
{
    print("[Rбdio JFS Music] - Carregando...\n\n");
    print("[Rбdio JFS Music] - Carregando Mъsicas...\n");
    print("[Rбdio JFS Music] - Carregando Lista...\n\n");
    print("[Rбdio JFS Music] - Carregado!");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/radio",true) == 0)
    {
        ShowPlayerDialog(playerid, ListadeMusica, DIALOG_STYLE_LIST,
        "{E40000}Sistema de Rбdio JFS Music v1.0",
        "{FFFFFF}B.O.B {F900E0}Magic\n{FFFFFF}Charlie Brown {F900E0}Ela Vai Voltar\n{FFFFFF}Travis McCoy ft. Bruno Mars {F900E0}Billionarie\n{FFFFFF}David Guetta {F900E0}Getting Over You\n{FFFFFF}Train {F900E0}Hey, Soul Sister\n{FFFFFF}Bruno Mars {F900E0}The Lazy Song\n{FFFFFF}David Guerra ft. Florida {F900E0}Club Cant Handle Me\n{FFFFFF}Bonde da Stronda {F900E0}Mansгo Thug Stronda\n{FFFFFF}Black Eyed Peas {F900E0}The Time\n{FFFFFF}Parar de Tocar",
        "Escutar", "Cancelar");
        return true;
    }
    return false;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == ListadeMusica)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // Magic
                PlayAudioStreamForPlayer(playerid, "http://dc353.4shared.com/img/352812161/69b21de9/dlink__2Fdownload_2FQLj8YKEh_3Ftsid_3D20110913-175123-86141340/preview.mp3");
                return true;
            }
            if(listitem == 1)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // Charlie Brown - Ela Vai Voltar
                PlayAudioStreamForPlayer(playerid, "http://dc93.4shared.com/img/78252245/5073c61e/dlink__2Fdownload_2FZ7mYk7HX_3Ftsid_3D20110913-200010-e328e31c/preview.mp3");
                return true;
            }
            if(listitem == 2)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // Billionare
                PlayAudioStreamForPlayer(playerid, "http://dc250.4shared.com/img/335123204/961f8bcd/dlink__2Fdownload_2Fr7HXE28I_3Ftsid_3D20110913-175631-2861127d/preview.mp3");
                return true;
            }
            if(listitem == 3)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // Getting Over You
                PlayAudioStreamForPlayer(playerid, "http://dc251.4shared.com/img/308678631/27eddab7/dlink__2Fdownload_2FEMEhSFR2_3Ftsid_3D20110913-174425-f241abe5/preview.mp3");
                return true;
            }
            if(listitem == 4)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // Hey, Soul Sister
                PlayAudioStreamForPlayer(playerid, "http://dc424.4shared.com/img/746176870/4a5b610f/dlink__2Fdownload_2F1jcIn-qy_3Ftsid_3D20110913-180243-6044a397/preview.mp3");
                return true;
            }
            if(listitem == 5)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // The Lazy
                PlayAudioStreamForPlayer(playerid, "http://dc219.4shared.com/img/749605517/c165f3d6/dlink__2Fdownload_2FJvaHFy98_3Ftsid_3D20110913-180147-b793cb74/preview.mp3");
                return true;
            }
            if(listitem == 6)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // Club Cant
                PlayAudioStreamForPlayer(playerid, "http://dc236.4shared.com/img/336902468/d2b9b027/dlink__2Fdownload_2FRL2oeFcS_3Ftsid_3D20110913-180245-7dc5917c/preview.mp3");
                return true;
            }
            if(listitem == 7)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                SendClientMessage(playerid, -1, "Essa Mъsica Pode Demorar 20 Segundos Para Tocar. Pois й Original.");
                // Mansгo Thug Stronda
                PlayAudioStreamForPlayer(playerid, "http://dc152.4shared.com/img/125284859/2be1fc4d/dlink__2Fdownload_2Fi1kXd0e_5F_3Ftsid_3D20110913-180402-3df03ebb/preview.mp3");
                return true;
            }
            if(listitem == 8)
            {
                if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela");
                EscutandoMusica[playerid] = 1;
                // The Time
                PlayAudioStreamForPlayer(playerid, "http://dc260.4shared.com/img/470143579/9ff3ce06/dlink__2Fdownload_2FHb6cQBGZ_3Ftsid_3D20110913-180637-6ee36551/preview.mp3");
                return true;
            }
            if(listitem == 9)
            {
                EscutandoMusica[playerid] = 0;
                SendClientMessage(playerid, -1, "Mъsica Desligada.");
                StopAudioStreamForPlayer(playerid);
                return true;
            }
            return true;
        }
        return true;
    }
    return true;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        if(EscutandoMusica[playerid] == 0)
        {
            ShowPlayerDialog(playerid, ListadeMusica, DIALOG_STYLE_LIST,
            "{E40000}Sistema de Rбdio JFS Music v1.0",
            "{FFFFFF}B.O.B {F900E0}Magic\n{FFFFFF}Charlie Brown {F900E0}Ela Vai Voltar\n{FFFFFF}Travis McCoy ft. Bruno Mars {F900E0}Billionarie\n{FFFFFF}David Guetta {F900E0}Getting Over You\n{FFFFFF}Train {F900E0}Hey, Soul Sister\n{FFFFFF}Bruno Mars {F900E0}The Lazy Song\n{FFFFFF}David Guerra ft. Florida {F900E0}Club Cant Handle Me\n{FFFFFF}Bonde da Stronda {F900E0}Mansгo Thug Stronda\n{FFFFFF}Black Eyed Peas {F900E0}The Time\n{FFFFFF}Parar de Tocar",
            "Escutar", "Cancelar");
            return true;
        }
    }
    else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
    {
        StopAudioStreamForPlayer(playerid);
        EscutandoMusica[playerid] = 0;
    }
    return true;
}



Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - BrunoBSF - 13.09.2011

Muito Bom Jon Emo


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - Miqueias Barros - 13.09.2011

Boa Jonathan, muito bom - fuma mel -


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - Marlon_Lorran - 13.09.2011

Ja vi um parecido com esse.

https://sampforum.blast.hk/showthread.php?tid=248209

Very Good.


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - RebeloX - 13.09.2011

Sugestгo: colocar som de sirene de cop, tipo /sirenon

uma duvida tambem posso upar sons?


Respuesta: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - ReDKiiL - 13.09.2011

e como faзo para colocar radio? em arquivo .asx ja tentou ?


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - Juninho_Oakley - 13.09.2011

Muito Bom Jon 10/10 Sempre Ownando!


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - JonathanFeitosa - 14.09.2011

Quote:
Originally Posted by BlueX
Посмотреть сообщение
Sugestгo: colocar som de sirene de cop, tipo /sirenon

uma duvida tambem posso upar sons?
pode, upar 4shared, й faz o que eu fiz em formato mp3.


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - ApolloRJ - 14.09.2011

pawn Код:
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(67) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(75) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(83) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(91) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(99) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(107) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(115) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(124) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(132) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(139) : error 017: undefined symbol "StopAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(164) : error 017: undefined symbol "StopAudioStreamForPlayer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
O que eu errei?


Re: Rбdio JFS Music Basic v1.0 - 0.3d RC1 - [O.z]Caroline - 14.09.2011

Quote:
Originally Posted by ApolloRJ
Посмотреть сообщение
pawn Код:
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(67) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(75) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(83) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(91) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(99) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(107) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(115) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(124) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(132) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(139) : error 017: undefined symbol "StopAudioStreamForPlayer"
C:\Users\ApolloRJ\Desktop\RadioJFSMusic.pwn(164) : error 017: undefined symbol "StopAudioStreamForPlayer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
O que eu errei?
bote isto no topo:
pawn Код:
native PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
native StopAudioStreamForPlayer(playerid);