Johny32GR

AudioScript V.3

Mar 10th, 2013
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.41 KB | None | 0 0
  1. //Johny32 © Radio_Song System For 0.3x+0.3e |2012-2013
  2. //Verision 3
  3.  
  4. #include <a_samp>
  5.  
  6. #if defined FILTERSCRIPT
  7.  
  8. #else
  9. /*[You can remove me!]
  10. This is one Special feature, added on verision 2.
  11. public OnPlayerConnect(playerid)
  12. {
  13.     PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/c3oa28hks0/specialsampserversong.mp3");
  14.     return 1;
  15. }
  16.    
  17. public OnPlayerSpawn(playerid)
  18. {
  19.     StopAudioStreamForPlayer(playerid);
  20.     return 1;
  21. }
  22. [You can remove me!] */
  23.  
  24. public OnPlayerCommandText(playerid, cmdtext[])
  25. {
  26.     //Command
  27.     if(!strcmp(cmdtext, "/help", true))
  28.     {
  29.         SendClientMessage(playerid, 0xB8860BAA, "[Song cmds] /songs /song1-7");
  30.         SendClientMessage(playerid, 0xB8860BAA, "[Radio cmds] /radios /radio1-4");
  31.         SendClientMessage(playerid, 0xB8860BAA, "[GTA Theme songs] /gtassongs /gtasong1-4");
  32.         SendClientMessage(playerid, 0xB8860BAA, "[Best of 90's & 80's mix] /90smix /80smix");
  33.         SendClientMessage(playerid, 0xB8860BAA, "[Extra] /dance /stop");
  34.         return 1;
  35.     }
  36.     //Songs
  37.     if(!strcmp(cmdtext, "/songs", true))
  38.     {
  39.         SendClientMessage(playerid, 0x808000FF, "___|Song List|__");
  40.         SendClientMessage(playerid, 0x10F441AA, "Enrique Iglesias - Finally Found You   = /song1");
  41.         SendClientMessage(playerid, 0x10F441AA, "Jamiroquai - Seven Days In Sunny June  = /song2");
  42.         SendClientMessage(playerid, 0x10F441AA, "Lloyd - Get It Shawty                  = /song3");
  43.         SendClientMessage(playerid, 0x10F441AA, "Chris Wallace - Remember When          = /song4");
  44.         SendClientMessage(playerid, 0x10F441AA, "Eddie Rabbitt - I Love A Rainy Night   = /song5");
  45.         SendClientMessage(playerid, 0x10F441AA, "Justin Timberlake ft Jay-Z - Suit Tie  = /song6");
  46.         SendClientMessage(playerid, 0x10F441AA, "Rob Zombie - Dragula     = /song7");
  47.        
  48.         GameTextForPlayer(playerid,"~b~Audio list:", 900, 3);
  49.         return 1;
  50.     }
  51.     if(!strcmp(cmdtext, "/song1", true))
  52.     {
  53.         SendClientMessage(playerid, 0x808000FF, "[Song] Enrique Iglesias - Finally Found You | /stop");
  54.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/g3tsxan409/finally_found_you_johny32_.mp3");
  55.         return 1;
  56.     }
  57.     if(!strcmp(cmdtext, "/song2", true))
  58.     {
  59.         SendClientMessage(playerid, 0x808000FF, "[Song] Jamiroquai - Seven Days In Sunny June | /stop");
  60.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/4jfr9k8nab/jamiroquai_-_seven_days_in_sunny_june_johny32_.mp3");
  61.         return 1;
  62.     }
  63.     if(!strcmp(cmdtext, "/song3", true))
  64.     {
  65.         SendClientMessage(playerid, 0x808000FF, "[Song] Lloyd - Get It Shawty | /stop");
  66.         PlayAudioStreamForPlayer(playerid, "http:/k005.kiwi6.com/hotlink/e9dgzh92fj/lloyd_-_get_it_shawty_johny32_.mp3");
  67.         return 1;
  68.     }
  69.     if(!strcmp(cmdtext, "/song4", true))
  70.     {
  71.         SendClientMessage(playerid, 0x808000FF, "[Song] Chris Wallace - Remember When | /stop");
  72.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/1v5spm6646/remember_when_push_rewind_johny32_.mp3");
  73.         return 1;
  74.     }
  75.     if(!strcmp(cmdtext, "/song5", true))
  76.     {
  77.         SendClientMessage(playerid, 0x808000FF, "[Song] Eddie Rabbitt - I Love A Rainy Night | /stop");
  78.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/kv8t3hi0vv/eddie_rabbitt_-_i_love_a_rainy_night.mp3");
  79.         return 1;
  80.     }
  81.     if(!strcmp(cmdtext, "/song6", true))
  82.     {
  83.         SendClientMessage(playerid, 0x808000FF, "[Song] Justin Timberlake ft Jay-Z - Suit Tie | /stop");
  84.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/hqto4gc8zp/justin_timberlake_ft_jay-z_-_suit_tie.mp3");
  85.         return 1;
  86.     }
  87.     if(!strcmp(cmdtext, "/song7", true))
  88.     {
  89.         SendClientMessage(playerid, 0x808000FF, "[Song] Rob Zombie - Dragula | /stop");
  90.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/qw525f998n/rob_zombie_-_dragula");
  91.         return 1;
  92.     }
  93.     //Radios
  94.     if(!strcmp(cmdtext, "/radios", true))
  95.     {
  96.         SendClientMessage(playerid, 0xFFA500FF, "___|Radio List|__");
  97.         SendClientMessage(playerid, 0x10F441AA, "Soma Fm             = /radio1");
  98.         SendClientMessage(playerid, 0x10F441AA, "Sky Fm              = /radio2");
  99.         SendClientMessage(playerid, 0x10F441AA, "Ibiza Global Radio  = /radio3");
  100.         SendClientMessage(playerid, 0x10F441AA, "Hit104              = /radio4");
  101.         GameTextForPlayer(playerid,"~b~Audio list:", 900, 3);
  102.         return 1;
  103.     }
  104.     if(!strcmp(cmdtext, "/radio1", true))
  105.     {
  106.         SendClientMessage(playerid, 0xFFA500FF, "[Radio] Soma fm | /stop");
  107.         PlayAudioStreamForPlayer(playerid, "http:/somafm.com/tags.pls");
  108.         return 1;
  109.     }
  110.     if(!strcmp(cmdtext, "/radio2", true))
  111.     {
  112.         SendClientMessage(playerid, 0xFFA500FF, "[Radio] Sky Fm | /stop");
  113.         PlayAudioStreamForPlayer(playerid, "http:/yp.shoutcast.com/sbin/tunein-station.pls?id=86433");
  114.         return 1;
  115.     }
  116.     if(!strcmp(cmdtext, "/radio3", true))
  117.     {
  118.         SendClientMessage(playerid, 0xFFA500FF, "[Radio] Ibiza Global Radio | /stop");
  119.         PlayAudioStreamForPlayer(playerid, "http:/yp.shoutcast.com/sbin/tunein-station.pls?id=108900");
  120.         return 1;
  121.     }
  122.     if(!strcmp(cmdtext, "/radio4", true))
  123.     {
  124.         SendClientMessage(playerid, 0xFFA500FF, "[Radio] Hit-104 | /stop");
  125.         PlayAudioStreamForPlayer(playerid, "http:/tuner.hit104.com:80");
  126.         return 1;
  127.     }
  128.     if(!strcmp(cmdtext, "/radio5", true))
  129.     {
  130.         SendClientMessage(playerid, 0xFFA500FF, "[Radio] Rap & Hip hop | /stop");
  131.         PlayAudioStreamForPlayer(playerid, "http:/105-stream-02.datacomm.ch:8000/105dope");
  132.         return 1;
  133.     }
  134.     //Gta theme songs
  135.     if(!strcmp(cmdtext, "/gtassongs", true))
  136.     {
  137.         SendClientMessage(playerid, 0xFFA500FF, "___|Gta Theme Songs List|__");
  138.         SendClientMessage(playerid, 0x10F441AA, "Gta SA  =  /gtasong1");
  139.         SendClientMessage(playerid, 0x10F441AA, "Gta VC  =  /gtasong2");
  140.         SendClientMessage(playerid, 0x10F441AA, "Gta III =  /gtasong3");
  141.         SendClientMessage(playerid, 0x10F441AA, "Gta IV  =  /gtasong4");
  142.         GameTextForPlayer(playerid,"~b~Audio list:", 900, 3);
  143.         return 1;
  144.     }
  145.     if(!strcmp(cmdtext, "/gtasong1", true))
  146.     {
  147.         SendClientMessage(playerid, 0xFFA500FF, "Gta SA | /stop");
  148.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/6m057l4mpy/sathemesong.mp3");
  149.         return 1;
  150.     }
  151.     if(!strcmp(cmdtext, "/gtasong2", true))
  152.     {
  153.         SendClientMessage(playerid, 0xFFA500FF, "Gta VC | /stop");
  154.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/f7e0s3xs15/vcthemesong.mp3");
  155.         return 1;
  156.     }
  157.     if(!strcmp(cmdtext, "/gtasong3", true))
  158.     {
  159.         SendClientMessage(playerid, 0xFFA500FF, "Gta 3 | /stop");
  160.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/8gbf7rtiq4/gta3themesong.mp3");
  161.         return 1;
  162.     }
  163.     if(!strcmp(cmdtext, "/gtasong4", true))
  164.     {
  165.         SendClientMessage(playerid, 0xFFA500FF, "Gta IV | /stop");
  166.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/12kovixpxe/ivthemesong.mp3");
  167.         return 1;
  168.     }
  169.     //Extra
  170.     if(strcmp(cmdtext, "/dance", true) == 0)
  171.     {
  172.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4); //If you dont like this anim check this: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2); REPLACE IT if you like to put this
  173.     GameTextForPlayer(playerid,"~b~ Press F or Enter to stop the anim", 1000, 5);
  174.     return 1;
  175.     }
  176.     if(!strcmp(cmdtext, "/stop", true))
  177.     {
  178.         GameTextForPlayer(playerid,"~y~ Audio stoped!", 300, 1);
  179.         StopAudioStreamForPlayer(playerid);
  180.         return 1;
  181.     }
  182.     //90s
  183.     if(!strcmp(cmdtext, "/90smix", true))
  184.     {
  185.         SendClientMessage(playerid, 0xFFA500FF, "90's Special Mix | /stop");
  186.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/ahnpljpnq5/90sbest_.mp3");
  187.         GameTextForPlayer(playerid,"~p~enjoy!", 100, 1);
  188.         return 1;
  189.     }
  190.     //80s
  191.     if(!strcmp(cmdtext, "/80smix", true))
  192.     {
  193.         SendClientMessage(playerid, 0xFFA500FF, "80's Special Mix | /stop");
  194.         PlayAudioStreamForPlayer(playerid, "http:/k007.kiwi6.com/hotlink/83xiog97kl/80sbest_.mp3");
  195.         GameTextForPlayer(playerid,"~p~enjoy!", 100, 1);
  196.         return 1;
  197.     }
  198.     return 0;
  199. }
  200.  
  201. #endif
Advertisement
Add Comment
Please, Sign In to add comment