16.12.2012, 17:16
How can i change from " if(!strcmp(cmdtext " to " CMD: "
Radio Filterscript from:
https://sampforum.blast.hk/showthread.php?tid=390385
Quote:
// 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 RADIO 66 #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Radio Filterscript by Matt"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/radio", true)) { ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST,"Radio","Stop Radio\n 1 181.FM - POWER 181\n 2 181.FM - Party 181\n 3 181.FM - POWER 181 2\n 4 181.FM - Highway 181\n 5 COUNTRY 108\n 6 HotJamz\n 7 idobi Radio Pop\n 8 DEFJAY.COM - 100% R&B\n 9 Reggae141\n 10 Absolutely Smooth Jazz\n 11 KCRW ECLECTIC24\n 12 UG-Rap\n 13 Mastradio\n 14 Indian Hindi Desi Bollywood\n 15 DUBSTEP.FM\n 16 FILTH.FM\n 17 Techno\n 18 Spanish\n 19 Radio Nueva Vida\n 20 Classical & Flamenco Guitar - SKY.FM","Select","Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == RADIO) { if(listitem == 0) { StopAudioStreamForPlayer(playerid); GameTextForPlayer(playerid, "Radio Stopped.",2500,1); } if(listitem == 1) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283896"); GameTextForPlayer(playerid, "Playing 181.FM - POWER 181...",2500,1); } if(listitem == 2) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=508962"); GameTextForPlayer(playerid, "Playing 181.FM - Party 181...",2500,1); } if(listitem == 3) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=37184"); GameTextForPlayer(playerid, "Playing 181.FM - POWER 181 2...",2500,1); } if(listitem == 4) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=297243"); GameTextForPlayer(playerid, "Playing 181.FM - Highway 181...",2500,1); } if(listitem == 5) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=248370"); GameTextForPlayer(playerid, "Playing COUNTRY 108...",2500,1); } if(listitem == 6) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=32999"); GameTextForPlayer(playerid, "Playing HotJamz...",2500,1); } if(listitem == 7) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897"); GameTextForPlayer(playerid, "Playing idobi Radio Pop...",2500,1); } if(listitem == { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=65456"); GameTextForPlayer(playerid, "Playing DEFJAY.COM - 100% R&B...",2500,1); } if(listitem == 9) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1654897"); GameTextForPlayer(playerid, "Playing Reggae141...",2500,1); } if(listitem == 10) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=86433"); GameTextForPlayer(playerid, "Playing Absolutely Smooth Jazz...",2500,1); } if(listitem == 11) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=56697"); GameTextForPlayer(playerid, "Playing KCRW ECLECTIC24...",2500,1); } if(listitem == 12) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=9054"); GameTextForPlayer(playerid, "Playing UG-Rap...",2500,1); } if(listitem == 13) { PlayAudioStreamForPlayer(playerid, "http://stream.mastradio.net:8000/listen.pls"); GameTextForPlayer(playerid, "Playing Mastradio...",2500,1); } if(listitem == 14) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=686098"); GameTextForPlayer(playerid, "Playing Indian Hindi Desi Bollywood...",2500,1); } if(listitem == 15) { PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://72.233.84.175/listen.pls&t=.pls"); GameTextForPlayer(playerid, "Playing DUBSTEP.FM...",2500,1); } if(listitem == 16) { PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://lemon.citrus3.com:8062/listen.pls&t=.pls"); GameTextForPlayer(playerid, "Playing FILTH FM ...",2500,1); } if(listitem == 17) { 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 == 1 { 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 == 19) { PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://sc1.christiannetcast.com:9138/listen.pls&t=.pls"); GameTextForPlayer(playerid, "Playing Radio Nueva Vida...",2500,1); } if(listitem == 20) { PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=230249"); GameTextForPlayer(playerid, "Playing Classical & Flamenco Guitar - SKY.FM...",2500,1); } } } |
https://sampforum.blast.hk/showthread.php?tid=390385