Advertisement
Guest User

Untitled

a guest
Feb 18th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.05 KB | None | 0 0
  1. /*
  2. I|_____________
  3.  |I°°°°°°°°°°°°°°°°°°|
  4.  I|°°°°DENNIS    °°°°|
  5.  I|°°°°°°°°°°°°°°°°°°|
  6.  I|_____________|
  7.  I|
  8.  |I
  9.  |I
  10.  |I
  11. RADIO SYSTEM BY VENOMKING / DENNIS
  12. Dies ist Geistiges Eigentum von VenomKing , jegliches Entfernen der Namen oder Copyright kann mit einer Anzeige
  13. bestraft werden.
  14. Dennis/VenomKing (c) Radio System
  15. */
  16.  
  17. #include <a_samp>
  18. #define DIALOG_RADIO 55435
  19. #define FILTERSCRIPT
  20. #define ROT 0xAA3333AA
  21. public OnFilterScriptInit()
  22. {
  23.     print("\n--------------------------------------");
  24.     print(" Radio System by VenomKing Loaded.");
  25.     print("--------------------------------------\n");
  26.     return 1;
  27. }
  28.  
  29. public OnFilterScriptExit()
  30. {
  31.     return 1;
  32. }
  33.  
  34. public OnPlayerDeath(playerid, killerid, reason)
  35. {
  36.     StopAudioStreamForPlayer(playerid);
  37.     return 1;
  38. }
  39.  
  40. public OnPlayerCommandText(playerid, cmdtext[])
  41. {
  42.     if(strcmp(cmdtext,"/radio",true)==0)
  43.     {
  44.         if(IsPlayerInAnyVehicle(playerid))ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST, "VenomKing Radio", "ClubTime.fm\nTechnoBase.fm\n{00FFFF}Hosebase.fm\nTrancebase.fm\nRadio 91 2\nBlackBeats.fm\nRadio ausschalten", "Auswählen", "Beenden");
  45.         else SendClientMessage(playerid,0x00FF00AA,"Du bist in keinem Fahrzeug");StopAudioStreamForPlayer(playerid);
  46.         return 1;
  47.     }
  48.     return 1;
  49. }
  50.  
  51. public OnPlayerExitVehicle(playerid, vehicleid)
  52. {
  53.     StopAudioStreamForPlayer(playerid);
  54.     return 1;
  55. }
  56.  
  57. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  58. {
  59.     if(response)
  60.     {
  61.         switch(dialogid == DIALOG_RADIO)
  62.         {
  63.             case 1:
  64.             {
  65.                 switch(listitem)
  66.                 {
  67.                     case 0:
  68.                     {
  69.                         StopAudioStreamForPlayer(playerid);
  70.                         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
  71.                         PlayAudioStreamForPlayer(playerid, "http://listen.clubtime.fm/dsl.pls");
  72.                         SendClientMessage(playerid,ROT,"Du hast Clubtime.fm Angemacht.");
  73.                         return 1;
  74.                     }
  75.                     case 1:
  76.                     {
  77.                         StopAudioStreamForPlayer(playerid);
  78.                         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
  79.                         PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
  80.                         SendClientMessage(playerid,ROT,"Du hast Technobase.fm Angemacht.");
  81.                         return 1;
  82.                     }
  83.                     case 2:
  84.                     {
  85.                         StopAudioStreamForPlayer(playerid);
  86.                         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
  87.                         PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
  88.                         SendClientMessage(playerid,ROT,"Du hast Housetime.fm Angemacht.");
  89.                         return 1;
  90.                     }
  91.                     case 3:
  92.                     {
  93.                         StopAudioStreamForPlayer(playerid);
  94.                         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
  95.                         PlayAudioStreamForPlayer(playerid, "http://listen.trancebase.fm/dsl.pls");
  96.                         SendClientMessage(playerid,ROT,"Trancebase.fm");
  97.                         return 1;
  98.                     }
  99.                     case 4:
  100.                     {
  101.                         StopAudioStreamForPlayer(playerid);
  102.                         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
  103.                         PlayAudioStreamForPlayer(playerid, "http://applikation.radio912.de/");
  104.                         SendClientMessage(playerid,ROT,"Du hast Radio 91.2 Angemacht.");
  105.                         return 1;
  106.                     }
  107.                     case 5:
  108.                     {
  109.                         StopAudioStreamForPlayer(playerid);
  110.                         PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
  111.                         PlayAudioStreamForPlayer(playerid, "http://stream.blackbeats.fm/");
  112.                         SendClientMessage(playerid,ROT,"Du hast Blackbeats.fm eingeschaltet!");
  113.                         return 1;
  114.                     }
  115.                     case 6:
  116.                     {
  117.                         StopAudioStreamForPlayer(playerid);
  118.                         SendClientMessage(playerid,ROT,"Du hast das TOSHIBA Radio v1.0 Ausgemacht.");
  119.                     }
  120.                 }
  121.             }
  122.         }
  123.     }
  124.     return 1;
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement