13.09.2015, 16:31
Hello guys I just made some corrections on this script check my update
SecretBoss's Update
• Fixed a problem that 26th song didn't load
• Chat now clears and then playing the song
• Song now stops after player spawning
Code:
SecretBoss's Update
• Fixed a problem that 26th song didn't load
• Chat now clears and then playing the song
• Song now stops after player spawning
Code:
Code:
//=================================================[Includes] #include <a_samp> //=================================================[Callbacks] public OnFilterScriptInit() { print("\n-------------------------------------------"); print(" Random Music by GreenEye (SecretBoss Update)"); print(" Loaded... "); print("-------------------------------------------\n"); return 1; } public OnFilterScriptExit() { print("\n-------------------------------------------"); print(" Random Music by GreenEye (SecretBoss Update)"); print(" Unloaded... "); print("-------------------------------------------\n"); return 1; } public OnPlayerConnect(playerid) { // Plays random music new rmusic = random(26); switch (rmusic) { case 0: PlayAudioStreamForPlayer(playerid,"https://xsfserver.com/music/Club.mp3"); case 1: PlayAudioStreamForPlayer(playerid,"https://a.tumblr.com/tumblr_mmx0g4qjil8omo1.mp3"); case 2: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/BitchesLoveMe.mp3"); case 3: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/BigPoppa.mp3"); case 4: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/BitchesandBottles.mp3"); case 5: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/CountingStars.mp3"); case 6: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/LoveSosa.mp3"); case 7: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/Gangnam.mp3"); case 8: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/Forever.mp3"); case 9: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/Sexy.mp3"); case 10: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/SexyChick.mp3"); case 11: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/SmokeANigga.mp3"); case 12: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/RapGod.mp3"); case 13: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/animals.mp3"); case 14: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/sPartyRocking.mp3"); case 15: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/WhatIsLove.mp3"); case 16: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/WildBoy.mp3"); case 17: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/MyLife.mp3"); case 18: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/Lights.mp3"); case 19: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/LetItRock.mp3"); case 20: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/GoodLife.mp3"); case 21: PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/HotNigga.mp3"); case 22: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/s/i4t87fvile4omxj/AlorsStremae.mp3?dl=1"); case 23: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/s/vaidubo8ftyv1ce/La%20Policia.mp3?dl=1"); case 24: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/s/54h4ijc7ffxftdx/Black%20Widow.mp3?dl=1"); case 25: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/s/hhn2bf160tgzn0g/MemoriesDG.mp3?dl=1"); } // Clear the chat for(new i = 0; i <= 100; i ++) { SendClientMessage(playerid, -1, " "); } return 1; } public OnPlayerSpawn(playerid) { // Stops all the sounds StopAudioStreamForPlayer(playerid); return 1; }