Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FILTERSCRIPT sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
- /*
- http://i.imgur.com/OPd36TA.png
- http://i.imgur.com/OPd36TA.png
- http://i.imgur.com/OPd36TA.png
- http://i.imgur.com/OPd36TA.png
- http://i.imgur.com/OPd36TA.png
- */
- #include <a_samp>
- #include <zcmd>
- new
- Text:radioSA[12],
- Text:radioTDS[2],
- bool:sRadioSA[MAX_PLAYERS],
- bool:aRadioSA[MAX_PLAYERS]
- ;
- new spritesRadioSA[][]={
- {"radio_bounce"},
- {"radio_csr"},
- {"radio_KDST"},
- {"radio_kjah"},
- {"radio_krose"},
- {"radio_mastersounds"},
- {"radio_playback"},
- {"radio_RADIOX"},
- {"radio_RLS"},
- {"radio_SFUR"},
- {"radio_WCTR"},
- {"radio_TPLAYER"}
- };
- new stationRadioSA[][]={
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_bounce.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_csr.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_KDST.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_kjah.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_krose.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_mastersounds.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_playback.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_RADIOX.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_RLS.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_SFUR.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_WCTR.ogg"},
- {"http:///www.your.hosting/your_gamemode/scriptfiles/radioSA/radio_TPLAYER.ogg"}
- };
- // Add your track list here
- new trackRadioSA[][]={
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"},
- {"http://"}
- };
- public OnFilterScriptInit(){
- new Float:sizeDEFAUT[13],Float:sizeADD;
- sizeDEFAUT[0] = 18.399997;
- sizeADD = 48.999996;
- for (new x=0; x<sizeof radioSA; x++){
- if(x==0) radioSA[x] = TextDrawCreate(sizeDEFAUT[0], 359.893341, "LD_SPAC:white");
- else{
- sizeDEFAUT[x] += floatadd(floatadd(sizeDEFAUT[x-1], sizeDEFAUT[x]), sizeADD);
- radioSA[x] = TextDrawCreate(sizeDEFAUT[x], 359.893341, "LD_SPAC:white");
- }
- TextDrawLetterSize(radioSA[x], 0.000000, 0.000000);
- TextDrawTextSize(radioSA[x], 42.400005, 44.053314);
- TextDrawAlignment(radioSA[x], 1);
- TextDrawColor(radioSA[x], -1);
- TextDrawSetShadow(radioSA[x], 0);
- TextDrawSetOutline(radioSA[x], 0);
- TextDrawFont(radioSA[x], 4);
- TextDrawSetSelectable(radioSA[x], true);
- new s[30];
- format(s, sizeof s, "fronten1:%s", spritesRadioSA[x]);
- TextDrawSetString(radioSA[x], s);
- }
- radioTDS[0] = TextDrawCreate(638.799987, 346.459991, "usebox");
- TextDrawLetterSize(radioTDS[0], 0.000000, 7.896667);
- TextDrawTextSize(radioTDS[0], -2.000000, 0.000000);
- radioTDS[1] = TextDrawCreate(634.799987, 344.966674, "usebox");
- TextDrawLetterSize(radioTDS[1], 0.000000, 8.228516);
- TextDrawTextSize(radioTDS[1], 607.599975, 0.000000);
- for (new x=0; x<sizeof radioTDS; x++){
- TextDrawAlignment(radioTDS[1], 1);
- TextDrawColor(radioTDS[x], 0);
- TextDrawUseBox(radioTDS[x], true);
- TextDrawBoxColor(radioTDS[x], 102);
- TextDrawSetShadow(radioTDS[x], 0);
- TextDrawSetOutline(radioTDS[x], 0);
- TextDrawFont(radioTDS[x], 0);
- TextDrawSetSelectable(radioTDS[x], false);
- }
- return true;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid){
- if(_:clickedid == INVALID_TEXT_DRAW && sRadioSA[playerid] == true && aRadioSA[playerid] == true) SelectTextDraw(playerid, 0x500000FF);
- else CancelSelectTextDraw(playerid);
- new s[144];
- for (new x=0; x<sizeof radioSA; x++){
- if(clickedid == radioSA[x]){
- StopAudioStreamForPlayer(playerid), PlayAudioStreamForPlayer(playerid, stationRadioSA[x]);
- for (new c=0; c<32; c++)SendClientMessage(playerid, -1, " ");
- format(s, sizeof s, "{FFFFFF}INFO: {FFAF00}reproduced the station of radio: {FFFFFF}'%s'",spritesRadioSA[x]);
- SendClientMessage(playerid, -1, s);
- break;
- }
- }
- if(clickedid == radioSA[11]){
- StopAudioStreamForPlayer(playerid), PlayAudioStreamForPlayer(playerid, trackRadioSA[random(sizeof trackRadioSA)]);
- for (new c=0; c<32; c++)SendClientMessage(playerid, -1, " ");
- format(s, sizeof s, "{FFFFFF}INFO: {FFAF00}reproduced the station of radio: {FFFFFF}'track player{FFAF00}(random){FFFFFF}'");
- SendClientMessage(playerid, -1, s);
- }
- return true;
- }
- COMMAND:radio(playerid, params[]){
- new s[144];
- if(!aRadioSA[playerid]){
- StopAudioStreamForPlayer(playerid), PlayAudioStreamForPlayer(playerid, "https://upload.wikimedia.org/wikipedia/en/8/8d/GTA_V_Main_Theme.ogg");
- for (new c=0; c<32; c++)SendClientMessage(playerid, -1, " ");
- for (new x=0; x<sizeof radioSA; x++) TextDrawShowForPlayer(playerid,radioSA[x]);
- for (new x=0; x<sizeof radioTDS; x++) TextDrawShowForPlayer(playerid,radioTDS[x]);
- SelectTextDraw(playerid, 0x500000FF);
- sRadioSA[playerid] = true;
- aRadioSA[playerid] = true;
- format(s, sizeof s, "{FFFFFF}INFO: {FFAF00}station of radio: {00D300}'ON'");
- SendClientMessage(playerid, -1, s);
- }else{
- StopAudioStreamForPlayer(playerid), PlayAudioStreamForPlayer(playerid, "https://upload.wikimedia.org/wikipedia/en/8/8d/GTA_V_Main_Theme.ogg");
- for (new c=0; c<32; c++)SendClientMessage(playerid, -1, " ");
- for (new x=0; x<sizeof radioSA; x++) TextDrawHideForPlayer(playerid,radioSA[x]);
- for (new x=0; x<sizeof radioTDS; x++) TextDrawHideForPlayer(playerid,radioTDS[x]);
- CancelSelectTextDraw(playerid);
- sRadioSA[playerid] = false;
- aRadioSA[playerid] = false;
- format(s, sizeof s, "{FFFFFF}INFO: {FFAF00}station of radio: {D20000}'OFF'");
- SendClientMessage(playerid, -1, s);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement