Hier mein Radio System habe ich selber geschrieben!
#define DIALOG_RADIO 1
f(strcmp(cmdtext, "/radio", true) == 0)
{
if(IsPlayerConnected(playerid))
{
ShowPlayerDialog(playerid, DIALOG_RADIO,DIALOG_STYLE_LIST, "Radio System", "Technobase.FM.\nHardbase.FM\nRadio Aus", "Weiter", "Abbrechen");
}
return 1;
}
if(dialogid == DIALOG_RADIO)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, 0x00ABFFFF, "Technobase.FM!");
PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
}
if(listitem == 1)
{
SendClientMessage(playerid, 0x00ABFFFF, "Hardbase.FM!");
PlayAudioStreamForPlayer(playerid, "http://listen.hardbase.fm/dsl.pls");
}
if(listitem == 2)
{
SendClientMessage(playerid, 0x00ABFFFF, "Radio Aus!");
StopAudioStreamForPlayer(playerid);
}
return 1;
}
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
StopAudioStreamForPlayer(playerid);
}
return 1;
}
#edit Wenn man aus denn Auto geht geht das Radio aus!