Niko_Hs

Simple Radio System (MultiPlayerArena.it)

Sep 13th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.92 KB | None | 0 0
  1. #include <a_samp>
  2. #define MUSICAID 7561 //id a caso, attenzione ! se lo hai già cambialo.
  3. #include <zcmd>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print(" Radio sistem");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17.     return 1;
  18. }
  19.  
  20. #else
  21.  
  22. main()
  23. {
  24.     print("\n----------------------------------");
  25.     print(" Blank Gamemode by your name here");
  26.     print("----------------------------------\n");
  27. }
  28.  
  29. #endif
  30.  
  31. public OnGameModeInit()
  32. {
  33.     return 1;
  34. }
  35.  
  36. public OnGameModeExit()
  37. {
  38.     return 1;
  39. }
  40.  
  41. public OnPlayerConnect(playerid)
  42. {
  43.     return 1;
  44. }
  45.  
  46. public OnPlayerDisconnect(playerid, reason)
  47. {
  48.     return 1;
  49. }
  50.  
  51. public OnPlayerSpawn(playerid)
  52. {
  53.     return 1;
  54. }
  55.  
  56. public OnPlayerDeath(playerid, killerid, reason)
  57. {
  58.     return 1;
  59. }
  60.  
  61. public OnVehicleSpawn(vehicleid)
  62. {
  63.     return 1;
  64. }
  65.  
  66. public OnVehicleDeath(vehicleid, killerid)
  67. {
  68.     return 1;
  69. }
  70.  
  71. public OnPlayerText(playerid, text[])
  72. {
  73.     return 1;
  74. }
  75.  
  76. public OnPlayerCommandText(playerid, cmdtext[])
  77. {
  78.  
  79.     return 0;
  80. }
  81.  
  82. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnPlayerExitVehicle(playerid, vehicleid)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerStateChange(playerid, newstate, oldstate)
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerEnterCheckpoint(playerid)
  98. {
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerLeaveCheckpoint(playerid)
  103. {
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerEnterRaceCheckpoint(playerid)
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerLeaveRaceCheckpoint(playerid)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnRconCommand(cmd[])
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerRequestSpawn(playerid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnObjectMoved(objectid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerObjectMoved(playerid, objectid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnPlayerPickUpPickup(playerid, pickupid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnVehicleMod(playerid, vehicleid, componentid)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerSelectedMenuRow(playerid, row)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerExitedMenu(playerid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnRconLoginAttempt(ip[], password[], success)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerUpdate(playerid)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerStreamIn(playerid, forplayerid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerStreamOut(playerid, forplayerid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnVehicleStreamIn(vehicleid, forplayerid)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnVehicleStreamOut(vehicleid, forplayerid)
  203. {
  204.     return 1;
  205. }
  206.  
  207. CMD:musica(playerid,params[])
  208. {
  209. ShowPlayerDialog(playerid, MUSICAID, DIALOG_STYLE_LIST, "Musica", "1. Welcome to the club\2. Celebrate summer\n3. Nessaja techno\n4. Canzone4\n5. Canzone5\n6.Canzone6\n7. Canzone7\n8. Canzone8\n9. Canzone9\n10. Canzone10", "Play", "Chiudi");
  210. return 1;
  211. }
  212.  
  213. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  214. {
  215. if(dialogid == MUSICAID)
  216. {
  217. if(response)
  218. {
  219. if(listitem == 0)
  220. {
  221. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/91992442/Manian%20-%20Welcome%20to%20the%20Club%20(Radio%20Edit).mp3");
  222. SendClientMessage(playerid, -1, "Stai ascoltando: Welcome to the club");
  223. }
  224. if(listitem == 1)
  225. {
  226. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/91992442/Lacuna%20-%20Celebrate%20The%20Summer%20(%20Techno%20Remix%20).mp3");
  227. SendClientMessage(playerid, -1, "Stai ascoltando: Celebrate summer");
  228. }
  229. if(listitem == 2)
  230. {
  231. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/91992442/Sunset%20Project%20Meets%20Tomtrax%20-%20Nessaja%20Techno%20Remix%20.mp3");
  232. SendClientMessage(playerid, -1, "Stai ascoltando: Nessaja techno");
  233. }
  234. if(listitem == 3)
  235. {
  236. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 4");
  237. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 4");
  238. }
  239. if(listitem == 4)
  240. {
  241. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 5");
  242. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 5");
  243. }
  244. if(listitem == 5)
  245. {
  246. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 6");
  247. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 6");
  248. }
  249. if(listitem == 6)
  250. {
  251. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 7");
  252. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 7");
  253. }
  254. if(listitem == 7)
  255. {
  256. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 8");
  257. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 8");
  258. }
  259. if(listitem == 8)
  260. {
  261. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 9");
  262. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 9");
  263. }
  264. if(listitem == 9)
  265. {
  266. PlayAudioStreamForPlayer(playerid, "LINK-MUSICA 10");
  267. SendClientMessage(playerid, -1, "Stai ascoltando: titolo musica 10");
  268. }
  269. }
  270. }
  271. return 1;
  272. }
Advertisement
Add Comment
Please, Sign In to add comment