[Tool/Web/Other] SA-MP mp3 Dialog creator
#1

With this you can create easy a mp3 system for your script.
All you have that doing is paste name of track and url
Download:
http://www.mediafire.com/download/yw...ialog+v1.0.exe
Reply
#2

This script was created by you ? If this is the case, it's not bad for beginners who do not know how to. REP+1
Reply
#3

Quote:
Originally Posted by nton
Посмотреть сообщение
With this you can create easy a mp3 system for your script.
All you have that doing is paste name of track and url
Download:
http://www.mediafire.com/download/yw...ialog+v1.0.exe
You are not allowed to release anything without source code.
Reply
#4

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
:start
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
Reply
#5

Quote:
Originally Posted by nton
Посмотреть сообщение
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
lol wtf give the .cpp file or w/e source code file you used which has the corresponding code above.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)