Jump to content
  • 0

pomoc proc me to nejede


Fuggy

Dotaz

č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

  • 0

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

  • 0

Proboha :facepalm:

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

  • 0

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

  • 0

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); ?

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...