Fuggy 2 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 čau lidi dám to na server a napise ze jsme to zpustil ale nejede proc ????? #include <a_samp> public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Radiosystem By [VIP]_of_[Fuggy]"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0x008000FF, "Pro spuštění Online Rádia napiš /radia"); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/radia", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x008000FF, "/frekvence1"); SendClientMessage(playerid, 0x008000FF, "/impuls - Rádio Impuls [CZ]"); SendClientMessage(playerid, 0x008000FF, "/evropa 2 - Rádio Evropa 2 [CZ]"); SendClientMessage(playerid, 0x008000FF, "/europa 2 - Rádio Europa 2 [sK]"); // Příkazy pro rádia (Dejte si rádií kolik chcete ) return 1; } //__________________________________________________________________________________________________| if (strcmp("/frekvence1", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x008000FF, "Spustil jsis Frekvenci 1"); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast4.play...e1-128.mp3.m3u"); return 1; } //__________________________________________________________________________________________________| if (strcmp("/impuls", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x008000FF, "Spustil jsis Impuls"); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast5.play...uls128.mp3.m3u"); return 1; } //__________________________________________________________________________________________________| if (strcmp("/evropa2", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x008000FF, "Spustil jsis Evropu 2"); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast3.play...pa2-128.mp3.m3u"); return 1; } //__________________________________________________________________________________________________| /* if (strcmp("/europa2", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x008000FF, "Spustil jsis Europu 2"); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://ice2.europa2....-europa2sk-128"); return 1; }*/ //__________________________________________________________________________________________________| if (strcmp("/stopradio", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x008000FF, "Vypnul jsis rádio"); StopAudioStreamForPlayer(playerid); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 linky na rádia sú chybné Link to comment Share on other sites More sharing options...
0 Fuggy 2 Odesláno: 8. Únor, 2013 Author Share Odesláno: 8. Únor, 2013 a da se nak udelat aby jsem tam dal svoji hudbu treba naky rap/hip hop atd ??? Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 ano, tak že upneš niekde na svoj web...alebo pozri na oficiálne fórko tam som videl systém ktorí prehráva cez YouTube (ale niesom si istý či to pôjde na Linuxe) Link to comment Share on other sites More sharing options...
0 Fuggy 2 Odesláno: 8. Únor, 2013 Author Share Odesláno: 8. Únor, 2013 a kde sezenu sprany url radii ???? pls das me to tu ??? aby to jelo ??? Link to comment Share on other sites More sharing options...
0 DooM 93 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 Proboha Proste na svuj ftp server upnes nejakou pisnicku a pak cestu k ni vlozis do kodu(Samozrejme do funkce PlayAudioStreamForPlayer) : http://www.[tvuj web].xx/[Nazev slozky]/[Nazev souboru].mp3 napriklad... PlayAudioStreamForPlayer(playerid, "http://www.[tvuj web].xx/[Nazev slozky]/[Nazev souboru].mp3"); Link to comment Share on other sites More sharing options...
0 Fuggy 2 Odesláno: 8. Únor, 2013 Author Share Odesláno: 8. Únor, 2013 jak upnu ??? a kde vemu ty kody na radia a vlastni pisnicky ???? Link to comment Share on other sites More sharing options...
0 Volfik 9 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 No Comment... | :huh:| Link to comment Share on other sites More sharing options...
0 D4n09 71 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 jaj tak je asi novacek tak do nej hned nepicu*te 1 Link to comment Share on other sites More sharing options...
0 ERIK518 27 Odesláno: 8. Únor, 2013 Share Odesláno: 8. Únor, 2013 Upnuť asi myslia aby si to tam nahral na svoj FTP a potom dal do kódu (pawna) cestu k tej pesničke ak som dobre porozumel. 1 Link to comment Share on other sites More sharing options...
0 stickycz 0 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Díky moc jste mi pomohly. Ale teď bych potřeboval vědět jak tu MP3 stopnu. Jde o to že po připojení na server ( public OnPlayerConnect(playerid) ) začne hrát moje MP3 ale po spawnu ( předpokládám public OnPlayerSpawn(playerid) ) potřebuju aby přestala hrát. Link to comment Share on other sites More sharing options...
0 Lukes_CZ 17 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Díky moc jste mi pomohly. Ale teď bych potřeboval vědět jak tu MP3 stopnu. Jde o to že po připojení na server ( public OnPlayerConnect(playerid) ) začne hrát moje MP3 ale po spawnu ( předpokládám public OnPlayerSpawn(playerid) ) potřebuju aby přestala hrát. StopAudioStreamForPlayer(playerid); ? 1 Link to comment Share on other sites More sharing options...
0 deleted 5 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Dej do OnPlayerSpawn totok StopAudioStreamForPlayer(playerid); 1 Link to comment Share on other sites More sharing options...
0 stickycz 0 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Díky jste borci. Link to comment Share on other sites More sharing options...
Dotaz
Fuggy 2
čau lidi dám to na server a napise ze jsme to zpustil ale nejede proc ?????
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Radiosystem By [VIP]_of_[Fuggy]");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0x008000FF, "Pro spuštění Online Rádia napiš /radia");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/radia", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF, "/frekvence1");
SendClientMessage(playerid, 0x008000FF, "/impuls - Rádio Impuls [CZ]");
SendClientMessage(playerid, 0x008000FF, "/evropa 2 - Rádio Evropa 2 [CZ]");
SendClientMessage(playerid, 0x008000FF, "/europa 2 - Rádio Europa 2 [sK]"); // Příkazy pro rádia (Dejte si rádií kolik chcete )
return 1;
}
//__________________________________________________________________________________________________|
if (strcmp("/frekvence1", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF, "Spustil jsis Frekvenci 1");
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://icecast4.play...e1-128.mp3.m3u");
return 1;
}
//__________________________________________________________________________________________________|
if (strcmp("/impuls", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF, "Spustil jsis Impuls");
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://icecast5.play...uls128.mp3.m3u");
return 1;
}
//__________________________________________________________________________________________________|
if (strcmp("/evropa2", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF, "Spustil jsis Evropu 2");
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://icecast3.play...pa2-128.mp3.m3u");
return 1;
}
//__________________________________________________________________________________________________|
/* if (strcmp("/europa2", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF, "Spustil jsis Europu 2");
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://ice2.europa2....-europa2sk-128");
return 1;
}*/
//__________________________________________________________________________________________________|
if (strcmp("/stopradio", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF, "Vypnul jsis rádio");
StopAudioStreamForPlayer(playerid);
return 1;
}
return 0;
}
Link to comment
Share on other sites
13 odpovědí na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now