<meta property="og:audio"
<meta property="og:audio" content="http://dc417.4shared.com/img/686549780/2191361/dlink__2Fdownload_2F15pt7e2e_3Ftsid_3D20110913-211837-893d1d5d/preview.mp3" />
http://dc417.4shared.com/img/686549780/2191361/dlink__2Fdownload_2F15pt7e2e_3Ftsid_3D20110913-211837-893d1d5d/preview.mp3
PlayAudioStreamForPlayer(playerid,"http://dc417.4shared.com/img/686549780/2191361/dlink__2Fdownload_2F15pt7e2e_3Ftsid_3D20110913-211837-893d1d5d/preview.mp3");
// 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;
}
Sugestгo: colocar som de sirene de cop, tipo /sirenon
uma duvida tambem posso upar sons? |
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.
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);