Johny32GR

AudioScript V.2

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