28.06.2013, 16:47
Quote:
yes created by me
in batch programing and converted :P here code: color 3 setlocal EnableDelayedExpansion set filename=Dialogmp3Code.txt del %filename% echo off & cls echo Hello %username% echo enter name of mp3 dialog set /P dialogname="->" echo enter command for %dialogname% dialog set /P dialogcmd="-> /" echo enter id for %dialogname% dialog !(number) set /P dialogid="->" set /A var=1 set /A xar=1 set /A kar=0 set /A far=0 set /A lar=1 set /A gar=2 cls tart echo Track number: %var% echo Enter Name of mp3(if you want stop type 'done'): set /P track[%var%]="->" if !track[%var%]!==done goto create echo Enter url for !track[%var%]! set /P url[%var%]="->" set /A var=%var%+1 cls goto start :create set /A check=%var%-1 set /A check2=%var% set cmdtext=!track[1]! :text cls echo Running... set cmdtext=%cmdtext%\n!track[%gar%]! set /A gar=%gar%+1 if not %gar%==%check2% goto text set cmdtext=%cmdtext%\nstop echo //Created By NTON Thank you for using>>%filename% echo //if you want join my server ip: greekfreeroam.myftp.org:7777>>%filename% echo //DIALOG:>>%filename% echo //ayto balto sto onplayercommandtext //add this onplayercommandtext>>%filename% echo if (strcmp("/%dialogcmd%", cmdtext, true, 10) == 0)>>%filename% echo {>>%filename% echo ShowPlayerDialog(playerid, %dialogid%, DIALOG_STYLE_LIST, "{D82CC1}%dialogname%","%cmdtext%","Ok","Exit");>> %filename% echo return 1;>>%filename% echo }>>%filename% echo //ayto balto sto onplayerdialogresponse //add this on playerdialogresponse>>%filename% echo if(dialogid == %dialogid%)>>%filename% echo {>>%filename% echo if(response)>>%filename% echo {>>%filename% echo switch(listitem)>>%filename% echo {>>%filename% set /A kar=%var%-1 :loop echo case %far%:>>%filename% echo {>>%filename% echo StopAudioStreamForPlayer(playerid);>>%filename% echo PlayAudioStreamForPlayer(playerid, "!url[%lar%]!");>>%filename% echo }>>%filename% set /A far=%far%+1 set /A lar=%lar%+1 if not %far%==%check% goto loop echo case %kar%:>>%filename% echo {>>%filename% echo StopAudioStreamForPlayer(playerid);>>%filename% echo }>>%filename% echo }>>%filename% echo }>>%filename% echo }>>%filename% exit |