Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_WHITE 0xFFFFFFAA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Online Radios By xXitsgodzillaXx");
- print("--------------------------------------\n");
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Online Radios By xXitsgodzillaXx");
- print("----------------------------------\n");
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/music", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "================Music!===========================");
- SendClientMessage(playerid, COLOR_WHITE, "/alternative /classicrock /metal /hiphop /techno");
- SendClientMessage(playerid, COLOR_WHITE, "/dubstep /stopmusuc");
- SendClientMessage(playerid, COLOR_WHITE, "Note, the radio stations are still beta.");
- SendClientMessage(playerid, COLOR_GREEN, "================Music!===========================");
- return 1;
- }
- if (strcmp("/alternative", cmdtext, true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=237394");
- return 1;
- }
- if (strcmp("/classicrock", cmdtext, true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=285516");
- return 1;
- }
- if (strcmp("/metal", cmdtext, true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022");
- return 1;
- }
- if (strcmp("/techno", cmdtext, true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200");
- return 1;
- }
- if (strcmp("/hiphop", cmdtext, true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
- return 1;
- }
- if (strcmp("/dubstep", cmdtext, true) == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057197");
- return 1;
- }
- if (strcmp("/stopmusic", cmdtext, true) == 0)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement