Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * IP do Servidor: 192.95.6.22:7710 - BRASIL NOVO MUNDO 0.3.7 Creditos: Jimmy
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <a_http>
- #include "ZCMD"
- #if defined FILTERSCRIPT
- #define DIALOG_SAMP_DJ 406
- new PlayerText:_SAMP_DJ[14];
- new MusicaN[MAX_PLAYERS];
- forward PlayAudioStreamByName(playerid, name[]);
- forward PlayAudioStreamByNameEx(index, response_code, data[]);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Sistema SAMP DJ - By Jimmy");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- CMD:abrirpaineldj(playerid, params[])
- {
- SelectTextDraw(playerid , 0xFFFFFFFF);
- for(new T = 0; T < sizeof(_SAMP_DJ); ++T) PlayerTextDrawShow(playerid, _SAMP_DJ[T]);
- return 1;
- }
- CMD:fecharpaineldj(playerid, params[])
- {
- for(new T = 0; T < sizeof(_SAMP_DJ); ++T) PlayerTextDrawHide(playerid, _SAMP_DJ[T]);
- CancelSelectTextDraw(playerid);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- CarregarText(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_SAMP_DJ)
- {
- if(!response || strlen(inputtext) < 1 || strlen(inputtext) > 25) return ShowPlayerDialog(playerid, DIALOG_SAMP_DJ, DIALOG_STYLE_INPUT, "{F6A100}Music", "\n{FFFFFF}What Music ?:\n", "Ok", "Close");
- format(MusicaN[playerid], 60, "%s", inputtext);
- PlayerTextDrawSetString(playerid, _SAMP_DJ[11], inputtext);
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == _SAMP_DJ[11])
- {
- ShowPlayerDialog(playerid, DIALOG_SAMP_DJ, DIALOG_STYLE_INPUT, "{F6A100}Music", "\n{FFFFFF}What Music ?\n", "Ok", "Close");
- }
- if(playertextid == _SAMP_DJ[12])
- {
- if(MusicaN[playerid] == 0) return ShowPlayerDialog(playerid, DIALOG_SAMP_DJ, DIALOG_STYLE_INPUT, "{F6A100}Music", "\n{FFFFFF}What Music ?\n", "Ok", "Close");
- PlayAudioStreamByName(playerid, MusicaN[playerid]);
- SendClientMessage(playerid, -1, "Please wait !..");
- }
- if(playertextid == _SAMP_DJ[13])
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- StopAudioStreamForPlayer(i);
- MusicaN[i] = 0;
- PlayerTextDrawSetString(playerid, _SAMP_DJ[11], "Choose your Music");
- }
- }
- return 1;
- }
- public PlayAudioStreamByName(playerid, name[])
- {
- for(new i; i < strlen(name); i++) {
- if(name[i] == ' ') name[i] = '+';
- }
- new str[160];
- format(str, 160, "topbrasilnovomundo.16mb.com/SAMP.php?q=%s", name);
- HTTP(playerid, HTTP_GET, str, "", "PlayAudioStreamByNameEx");
- return 1;
- }
- public PlayAudioStreamByNameEx(index, response_code, data[])
- {
- if(response_code == 200)
- {
- for(new i = 0; i < MAX_PLAYERS; i++){PlayAudioStreamForPlayer(i, data);}
- }
- return 1;
- }
- CarregarText(playerid)
- {
- _SAMP_DJ[0] = CreatePlayerTextDraw(playerid, 509.222137, 107.796279, "usebox");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[0], 0.000000, 27.510494);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[0], 116.888877, 0.000000);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[0], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[0], 0);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[0], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[0], 471604479);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[0], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[0], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[0], 0);
- _SAMP_DJ[1] = CreatePlayerTextDraw(playerid, 144.999969, 212.074111, "ld_pool:ball");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[1], 135.000061, 126.518554);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[1], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[1], 471604479);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[1], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[1], 0);
- PlayerTextDrawBackgroundColor(playerid, _SAMP_DJ[1], 65535);
- PlayerTextDrawFont(playerid, _SAMP_DJ[1], 4);
- _SAMP_DJ[2] = CreatePlayerTextDraw(playerid, 347.222259, 208.444442, "ld_pool:ball");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[2], 0.018333, 0.295555);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[2], 133.888900, 123.925918);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[2], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[2], 471604479);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[2], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[2], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[2], 4);
- _SAMP_DJ[3] = CreatePlayerTextDraw(playerid, 255.888885, 125.944450, "usebox");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[3], 0.000000, 3.485800);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[3], 138.555557, 0.000000);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[3], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[3], 0);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[3], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[3], 102);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[3], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[3], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[3], 0);
- _SAMP_DJ[4] = CreatePlayerTextDraw(playerid, 253.111114, 129.055557, "usebox");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[4], 0.000000, 2.856172);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[4], 140.777770, 0.000000);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[4], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[4], -2147483393);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[4], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[4], -2147483393);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[4], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[4], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[4], 0);
- _SAMP_DJ[5] = CreatePlayerTextDraw(playerid, 150.555557, 133.259262, "SAMP DJ");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[5], 0.498333, 1.807406);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[5], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[5], -1);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[5], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[5], 1);
- PlayerTextDrawBackgroundColor(playerid, _SAMP_DJ[5], 51);
- PlayerTextDrawFont(playerid, _SAMP_DJ[5], 2);
- PlayerTextDrawSetProportional(playerid, _SAMP_DJ[5], 1);
- _SAMP_DJ[6] = CreatePlayerTextDraw(playerid, 176.666625, 213.629699, "hud:sitem16");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[6], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[6], 37.777778, 67.925895);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[6], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[6], -1);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[6], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[6], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[6], 4);
- _SAMP_DJ[7] = CreatePlayerTextDraw(playerid, 372.777832, 210.518493, "hud:sitem16");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[7], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[7], 42.777763, 65.851837);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[7], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[7], -1);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[7], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[7], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[7], 4);
- _SAMP_DJ[8] = CreatePlayerTextDraw(playerid, 197.777770, 261.333312, "ld_pool:ball");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[8], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[8], 29.444437, 30.074056);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[8], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[8], -2147483393);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[8], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[8], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[8], 4);
- _SAMP_DJ[9] = CreatePlayerTextDraw(playerid, 399.444427, 257.703674, "ld_pool:ball");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[9], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[9], 29.999990, 29.037012);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[9], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[9], -2147483393);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[9], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[9], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[9], 4);
- _SAMP_DJ[10] = CreatePlayerTextDraw(playerid, 380.888885, 186.611114, "usebox");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[10], 0.000000, 1.354114);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[10], 228.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[10], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[10], 0);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[10], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[10], 102);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[10], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[10], 0);
- PlayerTextDrawFont(playerid, _SAMP_DJ[10], 2);
- _SAMP_DJ[11] = CreatePlayerTextDraw(playerid, 235.555526, 188.740722, "Choose your Music");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[11], 0.262222, 0.910371);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[11], 373.888732, 15.833328);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[11], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[11], -1061109505);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[11], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[11], 471604479);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[11], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[11], 1);
- PlayerTextDrawBackgroundColor(playerid, _SAMP_DJ[11], 471604479);
- PlayerTextDrawFont(playerid, _SAMP_DJ[11], 1);
- PlayerTextDrawSetProportional(playerid, _SAMP_DJ[11], 1);
- PlayerTextDrawSetSelectable(playerid, _SAMP_DJ[11], true);
- _SAMP_DJ[12] = CreatePlayerTextDraw(playerid, 317.777282, 209.999908, "Play");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[12], 0.288332, 1.039999);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[12], 339.444580, 15.833328);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[12], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[12], 471604479);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[12], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[12], 471604479);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[12], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[12], 1);
- PlayerTextDrawBackgroundColor(playerid, _SAMP_DJ[12], 255);
- PlayerTextDrawFont(playerid, _SAMP_DJ[12], 3);
- PlayerTextDrawSetProportional(playerid, _SAMP_DJ[12], 1);
- PlayerTextDrawSetSelectable(playerid, _SAMP_DJ[12], true);
- _SAMP_DJ[13] = CreatePlayerTextDraw(playerid, 265.000122, 209.999984, "Stop");
- PlayerTextDrawLetterSize(playerid, _SAMP_DJ[13], 0.304443, 1.060740);
- PlayerTextDrawTextSize(playerid, _SAMP_DJ[13], 292.222290, 15.833328);
- PlayerTextDrawAlignment(playerid, _SAMP_DJ[13], 1);
- PlayerTextDrawColor(playerid, _SAMP_DJ[13], 471604479);
- PlayerTextDrawUseBox(playerid, _SAMP_DJ[13], true);
- PlayerTextDrawBoxColor(playerid, _SAMP_DJ[13], 471604479);
- PlayerTextDrawSetShadow(playerid, _SAMP_DJ[13], 0);
- PlayerTextDrawSetOutline(playerid, _SAMP_DJ[13], 1);
- PlayerTextDrawBackgroundColor(playerid, _SAMP_DJ[13], 255);
- PlayerTextDrawFont(playerid, _SAMP_DJ[13], 3);
- PlayerTextDrawSetProportional(playerid, _SAMP_DJ[13], 1);
- PlayerTextDrawSetSelectable(playerid, _SAMP_DJ[13], true);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement