Jump to content

script Radio System CMD ( Dialog ) By BTomas


DNLS

Recommended Posts

Zdravím. Prostě a jelikož u příspěvku BTomase bylo DMCD, rozhodl jsem se to dát do CMD. Obsahuje to úplně to samé, takže funkce je stejná.

 

http://pawno.cz/files/download/32-radiosystem/

 

Není to moje práce, takže mě nemusíte hodnotit  :copy:

Edited by Daniels
Link to comment
Share on other sites

~> To v žádném případě není přes YSI. Jen si nahrál include... TOHLE je přes YSI:

 

 

 

#include <a_samp>
#include <YSI_Visual\y_commands>
#include <YSI_Visual\y_dialog>
#include <YSI_Coding\y_inline>
#include <YSI_Server\y_scriptinit>

public OnScriptInit() {

	print("Radio System By BTomas");
	return (true);
}

YCMD:radio(playerid, params[], help)
{
	Dialog_ShowCallback(playerid, using callback dDialogRadio, DIALOG_STYLE_LIST,"Radio System by BTomas","Fun Radio\nThe Vibe of Vegas\nDance Radio\nEvropa 2\nHipHopStage\nFrekvence 1\nVypnout Radio", "Spustit","Zavrit");
	return (true);
}


forward dDialogRadio(playerid, dialogid, response, listitem, inputtext[]);
public dDialogRadio(playerid, dialogid, response, listitem, inputtext[]) {

	if (!response) return (true);
	switch(listitem)
	{
		case 0: SendClientMessage(playerid, 0xFF6600 , "[ RadioSystem ] Spustil si radio Fun Radio.") , PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3.m3u");
		case 1: SendClientMessage(playerid, 0xFF6600 , "[ RadioSystem ] Spustil si radio The Vibe Of Vegas.") , PlayAudioStreamForPlayer(playerid,"http://108.61.73.117:8074/listen.pls");
		case 2: SendClientMessage(playerid, 0xFF6600 , "[ RadioSystem ] Spustil si radio Dance Radio.") , PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/danceradio128.mp3.m3u");
		case 3: SendClientMessage(playerid, 0xFF6600 , "[ RadioSystem ] Spustil si radio Evropa 2.") , PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/evropa2-128.mp3.m3u");
		case 4: SendClientMessage(playerid, 0xFF6600 , "[ RadioSystem ] Spustil si radio HipHopStage.") , PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/hiphopstage192.mp3.m3u");
		case 5: SendClientMessage(playerid, 0xFF6600 , "[ Rado System ] Spustil si radio Frekvence 1.") , PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/frekvence1-128.mp3.m3u");
		case 6: SendClientMessage(playerid, 0xFF0000FF , "[ RadioSystem ] Rádio úspěšně vypnuté.") , StopAudioStreamForPlayer(playerid);
	}
	return (true);
}

 

Link to comment
Share on other sites

Tak. Přejmenováno na YCMD.

~> Ale stejně jsi ho nepoužil...s y_cmd se nepracuje:

 

 

CMD:prikaz(playerid, params[]) { 
ale

 

YCMD:prikaz(playerid, params[], help) {
Link to comment
Share on other sites

~> Ale stejně jsi ho nepoužil...s y_cmd se nepracuje:

 

 

CMD:prikaz(playerid, params[]) { 
ale

 

YCMD:prikaz(playerid, params[], help) {

 

Přejmenováno na CMD, ještě něco? :d

Link to comment
Share on other sites

Přejmenováno na CMD, ještě něco? :d

~> To bych tu vypisoval hodiny. Tak vše potřebné je již ve spoileru v prvním příspěvku.

Link to comment
Share on other sites

Zdravím. Prostě a jelikož u příspěvku BTomase bylo DMCD, rozhodl jsem se to dát do CMD. Obsahuje to úplně to samé, takže funkce je stejná.

 

http://pawno.cz/files/download/32-radiosystem/

 

Není to moje práce, takže mě nemusíte hodnotit  :copy:

 

 

Mas chybu, napsal si "DMCD" ma to byt DCMD :d

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...