#include <a_samp>
#define KOLKOS_RADIOS 2
new radios[] = {"http://icecast3.play.cz/evropa2-128.mp3.m3u",
"http://ice2.europa2.sk/fm-europa2sk-128"};
new radios_names[] = {"Evropos 2",
"Prej SK evropa XDD"};
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/radio_xddd", cmdtext, true, 10) == 0)
{
new stros[256];
for(new i = 0; i < KOLKOS_RADIOS; i ++)
{
format(stros,sizeof(stros),"%s%s\n",stros,radios_names[i]);
}
ShowPlayerDialog(playerid,6969,DIALOG_STYLE_LIST,"Radios ty kokos",stros,"Jebej to radio","Stopnut radios");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 6969)
{
if(response)
{
PlayAudioStreamForPlayer(playerid, radios[listitem]);
}else StopAudioStreamForPlayer(playerid);
}
return 1;
}
Ke scriptu,
je to jednoduchý a furt jedna a ta samá písnička dokola... Tak jsem udělal malej rework, nejsem si jistej jestli funguje protože samp nemam asi tak 2-3 roky, po případě SKIBIGU ORPAV MI TO