Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ********************************************************************************
- Radio System By JohnnyYz
- Credits JohnnyYz
- WebSite www.necro-zone.com | www.rss-ro.com
- ********************************************************************************
- */
- //******************************************************************************
- #include " a_samp "
- #include " zcmd "
- #include " sscanf2 "
- //******************************************************************************
- new Text:TD_RADIO [ 10 ];
- //******************************************************************************
- public OnFilterScriptInit()
- {
- TD_RADIO [ 0 ] = TextDrawCreate(17.199996, 151.580001, "usebox");
- TextDrawLetterSize(TD_RADIO [ 0 ], 0.000000, 15.695188);
- TextDrawTextSize(TD_RADIO [ 0 ], 107.599899, 0.000000);
- TextDrawAlignment(TD_RADIO [ 0 ], 1);
- TextDrawColor(TD_RADIO [ 0 ], 0);
- TextDrawUseBox(TD_RADIO [ 0 ], true);
- TextDrawBoxColor(TD_RADIO [ 0 ], 102);
- TextDrawSetShadow(TD_RADIO [ 0 ], 0);
- TextDrawSetOutline(TD_RADIO [ 0 ], 0);
- TextDrawFont(TD_RADIO [ 0 ], 0);
- TextDrawSetPreviewModel(TD_RADIO [ 0 ], 9);
- TextDrawSetPreviewRot(TD_RADIO [ 0 ], 160.000000, 0.000000, 0.000000, 0.000000);
- TD_RADIO [ 1 ] = TextDrawCreate(16.799995, 150.079971, "Radio");
- TextDrawLetterSize(TD_RADIO [ 1 ], 0.449999, 1.600000);
- TextDrawAlignment(TD_RADIO [ 1 ], 1);
- TextDrawColor(TD_RADIO [ 1 ], -65281);
- TextDrawUseBox(TD_RADIO [ 1 ], true);
- TextDrawBoxColor(TD_RADIO [ 1 ], 0);
- TextDrawSetShadow(TD_RADIO [ 1 ], 0);
- TextDrawSetOutline(TD_RADIO [ 1 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 1 ], 51);
- TextDrawFont(TD_RADIO [ 1 ], 0);
- TextDrawSetProportional(TD_RADIO [ 1 ], 1);
- TD_RADIO [ 2 ] = TextDrawCreate(16.799989, 168.000000, "]]]]]]");
- TextDrawLetterSize(TD_RADIO [ 2 ], 0.449999, 1.600000);
- TextDrawTextSize(TD_RADIO [ 2 ], -228.800018, -111.253311);
- TextDrawAlignment(TD_RADIO [ 2 ], 1);
- TextDrawColor(TD_RADIO [ 2 ], 16711935);
- TextDrawUseBox(TD_RADIO [ 2 ], true);
- TextDrawBoxColor(TD_RADIO [ 2 ], 0);
- TextDrawSetShadow(TD_RADIO [ 2 ], 0);
- TextDrawSetOutline(TD_RADIO [ 2 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 2 ], 51);
- TextDrawFont(TD_RADIO [ 2 ], 0);
- TextDrawSetProportional(TD_RADIO [ 2 ], 1);
- TD_RADIO [ 3 ] = TextDrawCreate(16.000032, 267.306854, "]]]]]]");
- TextDrawLetterSize(TD_RADIO [ 3 ], 0.449999, 1.600000);
- TextDrawAlignment(TD_RADIO [ 3 ], 1);
- TextDrawColor(TD_RADIO [ 3 ], 16711935);
- TextDrawSetShadow(TD_RADIO [ 3 ], 0);
- TextDrawSetOutline(TD_RADIO [ 3 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 3 ], 51);
- TextDrawFont(TD_RADIO [ 3 ], 2);
- TextDrawSetProportional(TD_RADIO [ 3 ], 1);
- TD_RADIO [ 4 ] = TextDrawCreate(17.599998, 280.000183, "Necro-Zone");
- TextDrawLetterSize(TD_RADIO [ 4 ], 0.449999, 1.600000);
- TextDrawTextSize(TD_RADIO [ 4 ], -66.399688, -113.493576);
- TextDrawAlignment(TD_RADIO [ 4 ], 1);
- TextDrawColor(TD_RADIO [ 4 ], -65281);
- TextDrawUseBox(TD_RADIO [ 4 ], true);
- TextDrawBoxColor(TD_RADIO [ 4 ], 0);
- TextDrawSetShadow(TD_RADIO [ 4 ], 0);
- TextDrawSetOutline(TD_RADIO [ 4 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 4 ], 51);
- TextDrawFont(TD_RADIO [ 4 ], 0);
- TextDrawSetProportional(TD_RADIO [ 4 ], 1);
- TD_RADIO [ 5 ] = TextDrawCreate(31.199972, 186.666687, "KISS FM");
- TextDrawLetterSize(TD_RADIO [ 5 ], 0.449999, 1.600000);
- TextDrawTextSize(TD_RADIO [ 5 ], -116.000022, -39.573329);
- TextDrawAlignment(TD_RADIO [ 5 ], 1);
- TextDrawColor(TD_RADIO [ 5 ], -1);
- TextDrawSetShadow(TD_RADIO [ 5 ], 0);
- TextDrawSetOutline(TD_RADIO [ 5 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 5 ], 51);
- TextDrawFont(TD_RADIO [ 5 ], 1);
- TextDrawSetProportional(TD_RADIO [ 5 ], 1);
- TD_RADIO [ 6 ] = TextDrawCreate(30.399982, 201.599899, "Radio FM");
- TextDrawLetterSize(TD_RADIO [ 6 ], 0.449999, 1.600000);
- TextDrawAlignment(TD_RADIO [ 6 ], 1);
- TextDrawColor(TD_RADIO [ 6 ], -1);
- TextDrawSetShadow(TD_RADIO [ 6 ], 0);
- TextDrawSetOutline(TD_RADIO [ 6 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 6 ], 51);
- TextDrawFont(TD_RADIO [ 6 ], 1);
- TextDrawSetProportional(TD_RADIO [ 6 ], 1);
- TD_RADIO [ 7 ] = TextDrawCreate(29.599994, 218.026565, "GDD");
- TextDrawLetterSize(TD_RADIO [ 7 ], 0.449999, 1.600000);
- TextDrawAlignment(TD_RADIO [ 7 ], 1);
- TextDrawColor(TD_RADIO [ 7 ], -1);
- TextDrawSetShadow(TD_RADIO [ 7 ], 0);
- TextDrawSetOutline(TD_RADIO [ 7 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 7 ], 51);
- TextDrawFont(TD_RADIO [ 7 ], 1);
- TextDrawSetProportional(TD_RADIO [ 7 ], 1);
- TD_RADIO [ 8 ] = TextDrawCreate(30.399700, 235.199890, "RadioWISH");
- TextDrawLetterSize(TD_RADIO [ 8 ], 0.449999, 1.600000);
- TextDrawAlignment(TD_RADIO [ 8 ], 1);
- TextDrawColor(TD_RADIO [ 8 ], -1);
- TextDrawSetShadow(TD_RADIO [ 8 ], 0);
- TextDrawSetOutline(TD_RADIO [ 8 ], 1);
- TextDrawBackgroundColor(TD_RADIO [ 8 ], 51);
- TextDrawFont(TD_RADIO [ 8 ], 1);
- TextDrawSetProportional(TD_RADIO [ 8 ], 1);
- //==============================================================================
- TextDrawSetSelectable(TD_RADIO [ 5 ], false);
- TextDrawSetSelectable(TD_RADIO [ 6 ], true);
- TextDrawSetSelectable(TD_RADIO [ 7 ], true);
- TextDrawSetSelectable(TD_RADIO [ 8 ], true);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawDestroy(TD_RADIO [ 0 ]);
- TextDrawDestroy(TD_RADIO [ 1 ]);
- TextDrawDestroy(TD_RADIO [ 2 ]);
- TextDrawDestroy(TD_RADIO [ 3 ]);
- TextDrawDestroy(TD_RADIO [ 4 ]);
- TextDrawDestroy(TD_RADIO [ 5 ]);
- TextDrawDestroy(TD_RADIO [ 6 ]);
- TextDrawDestroy(TD_RADIO [ 7 ]);
- TextDrawDestroy(TD_RADIO [ 8 ]);
- return 1;
- }
- //******************************************************************************
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(_:clickedid != 65535)
- {
- if(clickedid == TD_RADIO [ 6 ])
- {
- HideRadio( playerid );
- PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3");
- }
- if(clickedid == TD_RADIO [ 7 ])
- {
- HideRadio( playerid );
- PlayAudioStreamForPlayer(playerid, "http://www.greudedifuzat.eu/greudedifuzat.m3u");
- }
- if(clickedid == TD_RADIO [ 8 ])
- {
- HideRadio( playerid );
- PlayAudioStreamForPlayer(playerid, "http://www.radiowish.ro/live.m3u");
- }
- }
- return 1;
- }
- //******************************************************************************
- COMMAND:radio(playerid, params[])
- {
- ShowRadio( playerid );
- return 1;
- }
- //******************************************************************************
- stock ShowRadio( playerid )
- {
- TextDrawShowForPlayer(playerid,TD_RADIO [ 0 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 1 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 2 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 3 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 4 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 6 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 7 ]);
- TextDrawShowForPlayer(playerid,TD_RADIO [ 8 ]);
- //******************************************************************************
- SelectTextDraw(playerid, 0xFF0000FF);
- return 1;
- }
- //******************************************************************************
- stock HideRadio( playerid )
- {
- TextDrawHideForPlayer(playerid,TD_RADIO [ 0 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 1 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 2 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 3 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 4 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 6 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 7 ]);
- TextDrawHideForPlayer(playerid,TD_RADIO [ 8 ]);
- CancelSelectTextDraw(playerid);
- return 1;
- }
- /*
- ********************************************************************************
- Radio System By JohnnyYz
- Credits JohnnyYz
- WebSite www.necro-zone.com | www.rss-ro.com
- ********************************************************************************
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement