Wie kann auf seinem SAMP Server ,sein eigenes Radio haben?
Eigenes Radio
- [GGR]GamerXDFreak
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
indem man eins scriptet?
-
indem du die sender hiermit abrufst
http://wiki.sa-mp.com/wiki/PlayAudioStreamForPlayer -
Wenn du eine IP von einem Radio brauchst, kannst du hier nach deinem Radiosender suchen:
http://www.xatworld.com/radio-search/
gebe unten bei Keywords einfach den Radiosender ein und drücke auf Search. Und dann machst du einfachbei:
public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext,"/radio",true)==0) { if(IsPlayerInAnyVehicle(playerid))ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST, "{FC0000}Radio","{00D2FC}ClubTime.fm\n{00D2FC}TechnoBase.fm\n{00D2FC}Hosebase.fm\n{00D2FC}Trancebase.fm\n{00D2FC}Radio 91 2\n{00D2FC}BlackBeats.fm\n{FC0000}Radio ausschalten","Auswählen","Beenden"); else SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug");StopAudioStreamForPlayer(playerid); } return 1;}und dann bei public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(response) { switch(dialogid == DIALOG_RADIO) { case 1: { switch(listitem) { case 0: { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); PlayAudioStreamForPlayer(playerid, "http://listen.clubtime.fm/dsl.pls"); SendClientMessage(playerid,Rosa,"Du hast Clubtime.fm eingeschaltet."); return 1; } case 1: { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls"); SendClientMessage(playerid,Rosa,"Du hast Technobase.fm eingeschaltet."); return 1; } case 2: { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls"); SendClientMessage(playerid,Rosa,"Du hast Housetime.fm eingeschaltet."); return 1; } case 3: { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); PlayAudioStreamForPlayer(playerid, "http://listen.trancebase.fm/dsl.pls"); SendClientMessage(playerid,Rosa,"Du hast Trancebase.fm eingeschaltet"); return 1; } case 4: { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); PlayAudioStreamForPlayer(playerid, "http://applikation.radio912.de/"); SendClientMessage(playerid,Rosa,"Du hast Radio 91.2 eingeschaltet."); return 1; } case 5: { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); PlayAudioStreamForPlayer(playerid, "http://stream.blackbeats.fm/"); SendClientMessage(playerid,Rosa,"Du hast Blackbeats.fm eingeschaltet!"); return 1; } case 6: { StopAudioStreamForPlayer(playerid); SendClientMessage(playerid,Rosa,"Du hast das Radio Ausgemacht."); } } } } } return 1;} -
Mann sollte schon orndlich posten
Dilaog
if(response)
{
switch(dialogid == DIALOG_RADIO)
{
case 1:
{
switch(listitem)
{
case 0:
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.clubtime.fm/dsl.pls");
SendClientMessage(playerid,Rosa,"Du hast Clubtime.fm eingeschaltet.");
return 1;
}
case 1:
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
SendClientMessage(playerid,Rosa,"Du hast Technobase.fm eingeschaltet.");
return 1;
}
case 2:
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
SendClientMessage(playerid,Rosa,"Du hast Housetime.fm eingeschaltet.");
return 1;
}
case 3:
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.trancebase.fm/dsl.pls");
SendClientMessage(playerid,Rosa,"Du hast Trancebase.fm eingeschaltet");
return 1;
}
case 4:
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://applikation.radio912.de/");
SendClientMessage(playerid,Rosa,"Du hast Radio 91.2 eingeschaltet.");
return 1;
}
case 5:
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://stream.blackbeats.fm/");
SendClientMessage(playerid,Rosa,"Du hast Blackbeats.fm eingeschaltet!");
return 1;
}
case 6:
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid,Rosa,"Du hast das Radio Ausgemacht.");
}
}
}
}
return 1;
}Befehl
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/radio",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST, "{FC0000}Radio","{00D2FC}ClubTime.fm\n{00D2FC}TechnoBase.fm\n{00D2FC}Hosebase.fm\n{00D2FC}Trancebase.fm\n{00D2FC}Radio 91 2\n{00D2FC}BlackBeats.fm\n{FC0000}Radio ausschalten","Auswählen","Beenden");
}
else
{
SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug");
StopAudioStreamForPlayer(playerid);
}
}
return 1;
} -
breadfish.de
Hat das Thema geschlossen.