Üdv all készitettem 1 scriptet amin 3-4 db rádiot tudsz lejátszani
- CLASS FM
- Neo FM
- Rádio1
- Mixrádio
- Leálitása Stop
#include <a_samp>
#include <zcmd>
public OnFilterScriptInit()
{
print(\"------------------------\");
print(\"Scriptet Készitette ZzzzZ\");
print(\"------------------------\");
return 1;
}
#define ZeneDialog 200
COMMAND:(zene,playerid,params[])
{
ShowPlayerDialog(playerid,ZeneDialog,DIALOG_STYLE_INPUT,\"{ff000}Rádiok\",\"Class FM\\nNeofm\\nRádio1\\nMixrádio\\nStop\",\"Lejátsz\",\"\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == ZeneDialog && response)
{
if(strcmp(inputtext,\"ClassFM\",true) == 0)
{
PlayAudioStreamForPlayer(playerid,\"http://91.82.85.41:9216/;stream\");
}
else if(strcmp(inputtext,\"NeoFM\",true))
{
PlayAudioStreamForPlayer(playerid,\"http://91.82.85.41:8080/;stream\");
}
else if(strcmp(inputtext,\"Rádio1\",true) == 0)
{
PlayAudioStreamForPlayer(playerid,\"http://195.70.35.172:8000/radio1.mp3\");
}
else if(strcmp(inputtext,\"Mixrádio\",true) == 0)
{
PlayAudioStreamForPlayer(playerid,\"http://savetofile.net:8450/;stream\");
}
else if(strcmp(inputtext,\"Stop\",true) == 0)
{
StopAudioStreamForPlayer(playerid);
}
}
return 1;
}