SHOW:
|
|
- or go back to the newest paste.
1 | #include <a_samp> | |
2 | ||
3 | #define FILTERSCRIPT | |
4 | #define radiodialog 1 | |
5 | ||
6 | - | #define COLOR_GREEN 0x33AA33AA |
6 | + | |
7 | - | #define COLOR_WHITE 0xFFFFFFAA |
7 | + | |
8 | ||
9 | - | public OnFilterScriptInit() |
9 | + | |
10 | { | |
11 | - | print("\n--------------------------------------"); |
11 | + | if (strcmp(cmdtext, "/radio", true) == 0) |
12 | - | print(" Online Radios By xXitsgodzillaXx"); |
12 | + | |
13 | - | print("--------------------------------------\n"); |
13 | + | ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, "Radio Stations", "Alternative\nClassic rock\nMetal\nTechno\nHiphop\nDubstep\nJazz\nReggae\nDancepunk\nAdultcomedy\nNewage\nFunk\nStopmusic", "Listen", "Cancel"); |
14 | } | |
15 | return 1; | |
16 | } | |
17 | - | main() |
17 | + | |
18 | public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) | |
19 | - | print("\n----------------------------------"); |
19 | + | |
20 | - | print(" Online Radios By xXitsgodzillaXx"); |
20 | + | if(dialogid == radiodialog) |
21 | - | print("----------------------------------\n"); |
21 | + | { |
22 | if(response) | |
23 | { | |
24 | if(listitem == 0) | |
25 | { | |
26 | - | if(strcmp("/music", cmdtext, true, 10) == 0) |
26 | + | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=237394"); |
27 | } | |
28 | - | SendClientMessage(playerid, COLOR_GREEN, "================Music!==========================="); |
28 | + | if(listitem == 1) |
29 | - | SendClientMessage(playerid, COLOR_WHITE, "/alternative /classicrock /metal /hiphop /techno"); |
29 | + | { |
30 | - | SendClientMessage(playerid, COLOR_WHITE, "/dubstep /stopmusuc"); |
30 | + | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=285516"); |
31 | - | SendClientMessage(playerid, COLOR_WHITE, "Note, the radio stations are still beta."); |
31 | + | } |
32 | - | SendClientMessage(playerid, COLOR_GREEN, "================Music!==========================="); |
32 | + | if(listitem == 2) |
33 | { | |
34 | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022"); | |
35 | - | if (strcmp("/alternative", cmdtext, true) == 0) |
35 | + | } |
36 | if(listitem == 3) | |
37 | - | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=237394"); |
37 | + | { |
38 | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200"); | |
39 | } | |
40 | - | if (strcmp("/classicrock", cmdtext, true) == 0) |
40 | + | if(listitem == 4) |
41 | { | |
42 | - | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=285516"); |
42 | + | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016"); |
43 | } | |
44 | if(listitem == 5) | |
45 | - | if (strcmp("/metal", cmdtext, true) == 0) |
45 | + | { |
46 | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057197"); | |
47 | - | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022"); |
47 | + | } |
48 | if(listitem == 6) | |
49 | { | |
50 | - | if (strcmp("/techno", cmdtext, true) == 0) |
50 | + | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096"); |
51 | } | |
52 | - | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200"); |
52 | + | if(listitem == 7) |
53 | { | |
54 | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855"); | |
55 | - | if (strcmp("/hiphop", cmdtext, true) == 0) |
55 | + | } |
56 | if(listitem == 8) | |
57 | - | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016"); |
57 | + | { |
58 | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1267576"); | |
59 | } | |
60 | - | if (strcmp("/dubstep", cmdtext, true) == 0) |
60 | + | if(listitem == 9) |
61 | { | |
62 | - | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057197"); |
62 | + | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=52807"); |
63 | } | |
64 | if(listitem == 10) | |
65 | - | if (strcmp("/stopmusic", cmdtext, true) == 0) |
65 | + | { |
66 | PlayAudioStreamForPlayer(playerid, "http://173.193.202.125:15236/listen.mp3?authn5d554f84ea9b43d0eca5f44ff9a3ab1a"); | |
67 | - | StopAudioStreamForPlayer(playerid); |
67 | + | } |
68 | if(listitem == 11) | |
69 | - | } |
69 | + | { |
70 | - | return 0; |
70 | + | PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269641"); |
71 | } | |
72 | if(listitem == 12) | |
73 | { | |
74 | StopAudioStreamForPlayer(playerid); | |
75 | } | |
76 | } | |
77 | return 1; | |
78 | } | |
79 | return 0; | |
80 | } |