Advertisement
Guest User

Radio

a guest
Sep 13th, 2011
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.50 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define tb 0xFFC800FF
  4. #define hb 0x0055FFFF
  5. #define ht 0xFF00C3FF
  6. #define trb 0x87FF00FF
  7. #define ct 0x00C3FFFF
  8. #define cbt 0x8C00FFFF
  9. #define DIALOG_WEAREONE1 1
  10. #define DIALOG_CREDITS1 2
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print("\n--------------------------------------");
  15.     print("             Radio Filterscript by Ghost");
  16.     print("----------------------------------------");
  17.     return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22.     return 1;
  23. }
  24.  
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28.     return 1;
  29. }
  30.  
  31. public OnPlayerDisconnect(playerid, reason)
  32. {
  33.     return 1;
  34. }
  35.  
  36. public OnPlayerSpawn(playerid)
  37. {
  38.     return 1;
  39. }
  40.  
  41. public OnPlayerDeath(playerid, killerid, reason)
  42. {
  43.     return 1;
  44. }
  45.  
  46. public OnVehicleSpawn(vehicleid)
  47. {
  48.     return 1;
  49. }
  50.  
  51. public OnVehicleDeath(vehicleid, killerid)
  52. {
  53.     return 1;
  54. }
  55.  
  56. public OnPlayerText(playerid, text[])
  57. {
  58.     return 1;
  59. }
  60.  
  61. public OnPlayerCommandText(playerid, cmdtext[])
  62. {
  63.     if(strcmp("/weareone", cmdtext,true) == 0)
  64.     {
  65.         ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"We aRe oNe","Technobase.FM\nHardbase.FM\nHousetime.FM\nTrancebase.FM\nCoretime.FM\nClubtime.FM\nAusschalten","Hören","Abbrechen");
  66.         return 1;
  67.     }
  68.     if(strcmp("/credits", cmdtext,true) == 0)
  69.     {
  70.         ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Credits","Scripting:Ghost\nIdee:Ghost\nStreams from: http://www.weareone.fm/","Ok","Ok");
  71.         return 1;
  72.     }
  73.     return 1;
  74. }
  75.  
  76. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  77. {
  78.     return 1;
  79. }
  80.  
  81. public OnPlayerExitVehicle(playerid, vehicleid)
  82. {
  83.     return 1;
  84. }
  85.  
  86. public OnPlayerStateChange(playerid, newstate, oldstate)
  87. {
  88.     return 1;
  89. }
  90.  
  91. public OnPlayerEnterCheckpoint(playerid)
  92. {
  93.     return 1;
  94. }
  95.  
  96. public OnPlayerLeaveCheckpoint(playerid)
  97. {
  98.     return 1;
  99. }
  100.  
  101. public OnPlayerEnterRaceCheckpoint(playerid)
  102. {
  103.     return 1;
  104. }
  105.  
  106. public OnPlayerLeaveRaceCheckpoint(playerid)
  107. {
  108.     return 1;
  109. }
  110.  
  111. public OnRconCommand(cmd[])
  112. {
  113.     return 1;
  114. }
  115.  
  116. public OnPlayerRequestSpawn(playerid)
  117. {
  118.     return 1;
  119. }
  120.  
  121. public OnObjectMoved(objectid)
  122. {
  123.     return 1;
  124. }
  125.  
  126. public OnPlayerObjectMoved(playerid, objectid)
  127. {
  128.     return 1;
  129. }
  130.  
  131. public OnPlayerPickUpPickup(playerid, pickupid)
  132. {
  133.     return 1;
  134. }
  135.  
  136. public OnVehicleMod(playerid, vehicleid, componentid)
  137. {
  138.     return 1;
  139. }
  140.  
  141. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  142. {
  143.     return 1;
  144. }
  145.  
  146. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  147. {
  148.     return 1;
  149. }
  150.  
  151. public OnPlayerSelectedMenuRow(playerid, row)
  152. {
  153.     return 1;
  154. }
  155.  
  156. public OnPlayerExitedMenu(playerid)
  157. {
  158.     return 1;
  159. }
  160.  
  161. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  162. {
  163.     return 1;
  164. }
  165.  
  166. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  167. {
  168.     return 1;
  169. }
  170.  
  171. public OnRconLoginAttempt(ip[], password[], success)
  172. {
  173.     return 1;
  174. }
  175.  
  176. public OnPlayerUpdate(playerid)
  177. {
  178.     return 1;
  179. }
  180.  
  181. public OnPlayerStreamIn(playerid, forplayerid)
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnPlayerStreamOut(playerid, forplayerid)
  187. {
  188.     return 1;
  189. }
  190.  
  191. public OnVehicleStreamIn(vehicleid, forplayerid)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnVehicleStreamOut(vehicleid, forplayerid)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  202. {
  203.     if(dialogid == DIALOG_WEAREONE1)
  204.     {
  205.         if (response)
  206.         {
  207.         if(listitem == 0)
  208.         {
  209.             SendClientMessage(playerid,tb,"Du hörst Technobase.FM.");
  210.             PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
  211.         }
  212.         if(listitem == 1)
  213.         {
  214.             SendClientMessage(playerid,hb,"Du hörst Hardbase.FM.");
  215.             PlayAudioStreamForPlayer(playerid, "http://listen.hardbase.fm/dsl.pls");
  216.         }
  217.         if(listitem == 2)
  218.         {
  219.             SendClientMessage(playerid,ht,"Du hörst Housetime.FM.");
  220.             PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
  221.         }
  222.         if(listitem == 3)
  223.         {
  224.             SendClientMessage(playerid,trb,"Du hörst Trancebase.FM.");
  225.             PlayAudioStreamForPlayer(playerid, "http://listen.trancebase.fm/dsl.pls");
  226.         }
  227.         if(listitem == 4)
  228.         {
  229.             SendClientMessage(playerid,ct,"Du hörst Coretime.FM.");
  230.             PlayAudioStreamForPlayer(playerid, "http://listen.coretime.fm/dsl.pls");
  231.         }
  232.         if(listitem == 5)
  233.         {
  234.             SendClientMessage(playerid,cbt,"Du hörst Clubtime.FM.");
  235.             PlayAudioStreamForPlayer(playerid, "http://listen.Clubtime.fm/dsl.pls");
  236.         }
  237.         if(listitem == 6)
  238.         {
  239.             SendClientMessage(playerid,ht,"Radio aus.");
  240.             StopAudioStreamForPlayer(playerid);
  241.         }
  242.         }
  243.     }
  244.     return 1;
  245. }
  246.  
  247. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  248. {
  249.     return 1;
  250. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement