{ if (strcmp("/mycommand", cmdtext, true, 10) == 0) { PlayAudioStreamForPlayer(playerid, "my url"); return 1; } return 0; }
C:\Users\Dino\Desktop\Untitled.pwn(0) : fatal error 100: cannot read from file: "C:\Users\Dino\Desktop\Untitled.pwn" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Thx i did it and it work now but how can i make command like "/play" and playaudiostreamforplayer plays for everybody on the server?
|
// Radio Filterscript made by Matt #include <a_samp> #pragma tabsize 0 //COLORS #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_BRIGHTRED 0xFF0000AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_PINK 0xFF66FFAA #define COLOR_BLUE 0x3A47DEFF #define COLOR_TAN 0xBDB76BAA #define COLOR_PURPLE 0x800080AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_ORANGE 0xFF9900AA #define COLOR_INDIGO 0x4B00B0AA #define COLOR_BLACK 0x00000000 #define COLOR_DARKGREY 0x696969FF #define COLOR_RED 0xFF000000 #define COLOR_LBLUE 0x33CCFF19 #define DIALOG_RADIO 1 #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Randoooooooooooooooooooooooooooooooooom"); print("----------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/radio", true)) { ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST,"Radio","Stop Radio\n 1. ILoveRadio\n 2. Q-Music\n 3. Special Stunt Server Live-Stream\n 4. 181.FM - The Buzz\n 5. 181.fm - The Eagle\n 6. Reggae141\n 7. idobi Radio Pop\n 8. 181.FM - POWER 181\n 9. HotJamz(Hip Hop)\n 10. COUNTRY 108\n 11. Metal\n 12. DEFJAY.COM - 100% R&B\n 13. Absolutely Smooth Jazz\n 14. Rap\n 15. Mastradio\n 16. Techno\n 17. Spanish\n 18. Spanish\n 19. #MUSIK.MAIN\n 20. #MUSIK.CLUB","Select","Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_RADIO) { if(listitem == 0) { StopAudioStreamForPlayer(playerid); GameTextForPlayer(playerid, "Radio Stopped.",2500,1); } if(listitem == 1) { PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen.m3u"); GameTextForPlayer(playerid, "Playing I Love Radio...",2500,1); } if(listitem == 2) { PlayAudioStreamForPlayer(playerid, "http://streaming.q-music.be/QBE_HI"); GameTextForPlayer(playerid, "Playing Q-Music...",2500,1); } if(listitem == 3) { PlayAudioStreamForPlayer(playerid, "http://specialserver.listen2myradio.com/media/playradio1921324.asx"); GameTextForPlayer(playerid, "Playing Special Stunt Server Live Stream...",2500,1); } if(listitem == 4) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586"); GameTextForPlayer(playerid, "Playing 181.FM - The Buzz ...",2500,1); } if(listitem == 5) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1026951"); GameTextForPlayer(playerid, "Playing 181.fm - The Eagle...",2500,1); } if(listitem == 6) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855"); GameTextForPlayer(playerid, "Playing Reggae141...",2500,1); } if(listitem == 7) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585"); GameTextForPlayer(playerid, "Playing idobi Radio Pop...",2500,1); } if(listitem == 8) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283896"); GameTextForPlayer(playerid, "Playing 181.FM - POWER 181...",2500,1); } if(listitem == 9) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=32999"); GameTextForPlayer(playerid, "Playing HotJamz...",2500,1); } if(listitem == 10) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=201287"); GameTextForPlayer(playerid, "Playing COUNTRY 108...",2500,1); } if(listitem == 11) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280610"); GameTextForPlayer(playerid, "Playing Metal...",2500,1); } if(listitem == 12) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=65456"); GameTextForPlayer(playerid, "Playing DEFJAY.COM - 100% R&B...",2500,1); } if(listitem == 13) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=86433"); GameTextForPlayer(playerid, "Playing Absolutely Smooth Jazz...",2500,1); } if(listitem == 14) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=9054"); GameTextForPlayer(playerid, "Playing UG-Rap...",2500,1); } if(listitem == 15) { PlayAudioStreamForPlayer(playerid, "http://stream.mastradio.net:8000/listen.pls"); GameTextForPlayer(playerid, "Playing Mastradio...",2500,1); } if(listitem == 16) { PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://85.17.26.115:80/listen.pls&t=.pls"); GameTextForPlayer(playerid, "Playing Techno...",2500,1); } if(listitem == 17) { PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://92.48.107.35:8004/listen.pls&t=.pls"); GameTextForPlayer(playerid, "Playing Spanish...",2500,1); } if(listitem == 18) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=3204"); GameTextForPlayer(playerid, "Playing Spanish...",2500,1); } if(listitem == 19) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=200487"); GameTextForPlayer(playerid, "Playing #MUSIK.MAIN Rock...",2500,1); } if(listitem == 20) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151938"); GameTextForPlayer(playerid, "Playing #MUSIK.CLUB Dance...",2500,1); } } }