Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Creditos: Feito por Jimmy Servidor BRASIL NOVO MUNDO 0.3.7 IP: 198.50.140.128:7784
- #define FILTERSCRIPT
- #include <a_samp>
- #include <sscanf2>
- #include <ZCMD>
- #if defined FILTERSCRIPT
- #define DIALOG_CALCULAR_A1 300
- #define DIALOG_CALCULAR_N 301
- #define DIALOG_CALCULAR_R 302
- new PlayerText: Sn[MAX_PLAYERS], PlayerText: A1[MAX_PLAYERS], PlayerText: An[MAX_PLAYERS], PlayerText: n[MAX_PLAYERS], PlayerText: r[MAX_PLAYERS], PlayerText: Calcular[MAX_PLAYERS],
- PlayerText: Resposta[MAX_PLAYERS], PlayerText: FormulaAn[MAX_PLAYERS], PlayerText: Progressao[MAX_PLAYERS], PlayerText: CalcularAn1[MAX_PLAYERS], PlayerText: CalcularAn2[MAX_PLAYERS],
- PlayerText: CalcularAn3[MAX_PLAYERS], PlayerText: CalcularAn4[MAX_PLAYERS], PlayerText: FormulaSn[MAX_PLAYERS], PlayerText: CalcularSn1[MAX_PLAYERS], PlayerText: CalcularSn2[MAX_PLAYERS],
- PlayerText: CalcularSn3[MAX_PLAYERS], PlayerText: CalcularSn4[MAX_PLAYERS], PlayerText: CalcularSn5[MAX_PLAYERS], PlayerText: Fundo[3][MAX_PLAYERS], PlayerText: Fechar[MAX_PLAYERS];
- new VAn[MAX_PLAYERS], VA1[MAX_PLAYERS], Vn[MAX_PLAYERS], Vr[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Progressão Aritimética - Credito Jimmy");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- CarregarTextdraw(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- VAn[playerid] = -1;
- VA1[playerid] = -1;
- Vn[playerid] = -1;
- Vr[playerid] = -1;
- FecharTextdraw(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- CMD:abrirprogressao(playerid)
- {
- SelectTextDraw(playerid , 0xFFFFFFFF);
- AbrirTextdraw(playerid);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_CALCULAR_A1)
- {
- if(response)
- {
- if(strfind(inputtext, "-", true) != -1)
- {
- SendClientMessage( playerid, -1, "Esse número possui um caráter inválido!" );
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_A1, DIALOG_STYLE_INPUT, "{00FF00}A1 - Primeiro Termo", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- return 1;
- }
- if( !strlen( inputtext ))
- {
- SendClientMessage( playerid, -1, "Número inválido!" );
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_A1, DIALOG_STYLE_INPUT, "{00FF00}A1 - Primeiro Termo", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- return 1;
- }
- new string[50];
- format(string, sizeof(string), "A1: %d", strval(inputtext));
- PlayerTextDrawSetString(playerid, A1[playerid], string);
- VA1[playerid] = strval(inputtext);
- }
- }
- if(dialogid == DIALOG_CALCULAR_N)
- {
- if(response)
- {
- if(strfind(inputtext, "-", true) != -1)
- {
- SendClientMessage( playerid, -1, "Esse número possui um caráter inválido!" );
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_N, DIALOG_STYLE_INPUT, "{00FF00}n - Numero de termos", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- return 1;
- }
- if( !strlen( inputtext ))
- {
- SendClientMessage( playerid, -1, "Número inválido!" );
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_N, DIALOG_STYLE_INPUT, "{00FF00}n - Numero de termos", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- return 1;
- }
- new string[50];
- format(string, sizeof(string), "n: %d", strval(inputtext));
- PlayerTextDrawSetString(playerid, n[playerid], string);
- Vn[playerid] = strval(inputtext);
- }
- }
- if(dialogid == DIALOG_CALCULAR_R)
- {
- if(response)
- {
- if(strfind(inputtext, "-", true) != -1)
- {
- SendClientMessage( playerid, -1, "Esse número possui um caráter inválido!" );
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_R, DIALOG_STYLE_INPUT, "{00FF00}r - Razão", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- return 1;
- }
- if( !strlen( inputtext ))
- {
- SendClientMessage( playerid, -1, "Número inválido!" );
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_R, DIALOG_STYLE_INPUT, "{00FF00}r - Razão", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- return 1;
- }
- new string[50];
- format(string, sizeof(string), "r: %d", strval(inputtext));
- PlayerTextDrawSetString(playerid, r[playerid], string);
- Vr[playerid] = strval(inputtext);
- }
- } return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- SelectTextDraw(playerid , 0xFFFFFFFF);
- if(playertextid == Fechar[playerid])
- {
- CancelSelectTextDraw(playerid);
- FecharTextdraw(playerid);
- }
- if(playertextid == A1[playerid])
- {
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_A1, DIALOG_STYLE_INPUT, "{00FF00}A1 - Primeiro Termo", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- }
- if(playertextid == n[playerid])
- {
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_N, DIALOG_STYLE_INPUT, "{00FF00}n - Numero de termos", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- }
- if(playertextid == r[playerid])
- {
- ShowPlayerDialog(playerid, DIALOG_CALCULAR_R, DIALOG_STYLE_INPUT, "{00FF00}r - Razão", "{FFFFFF}Insira o valor\n", "Continuar", "Fechar");
- }
- if(playertextid == Calcular[playerid])
- {
- if(VA1[playerid] == 0 || Vn[playerid] == 0 || Vr[playerid] == 0) return SendClientMessage(playerid, -1,"Erro ! Coloque os valores A1, n e r .");
- AbrirTextdrawCalculo(playerid);
- new Fase[5], string[50];
- format(string, sizeof(string), "A%d = %d+(%d-1).%d", Vn[playerid], VA1[playerid], Vn[playerid], Vr[playerid]);
- PlayerTextDrawSetString(playerid, CalcularAn1[playerid], string);
- Fase[0] = Vn[playerid] + -1;
- format(string, sizeof(string), "A%d = %d+%d.%d", Vn[playerid], VA1[playerid], Fase[0], Vr[playerid]);
- PlayerTextDrawSetString(playerid, CalcularAn2[playerid], string);
- Fase[1] = Fase[0]*Vr[playerid];
- format(string, sizeof(string), "A%d = %d+%d", Vn[playerid], VA1[playerid], Fase[1]);
- PlayerTextDrawSetString(playerid, CalcularAn3[playerid], string);
- VAn[playerid] = VA1[playerid] + Fase[1];
- format(string, sizeof(string), "A%d = %d", Vn[playerid], VAn[playerid]);
- PlayerTextDrawSetString(playerid, CalcularAn4[playerid], string);
- // SN
- format(string, sizeof(string), "Sn = (%d + %d).%d", VA1[playerid], VAn[playerid], Vn[playerid]);
- PlayerTextDrawSetString(playerid, CalcularSn1[playerid], string);
- PlayerTextDrawSetString(playerid, CalcularSn2[playerid], " 2");
- Fase[3] = VA1[playerid] + VAn[playerid];
- format(string, sizeof(string), "Sn = %d . %d", Fase[3], Vn[playerid]);
- PlayerTextDrawSetString(playerid, CalcularSn3[playerid], string);
- PlayerTextDrawSetString(playerid, CalcularSn4[playerid], " 2");
- Fase[4] = Fase[3]*Vn[playerid]/2;
- format(string, sizeof(string), "Sn = %d", Fase[4]);
- PlayerTextDrawSetString(playerid, CalcularSn5[playerid], string);
- }
- return 1;
- }
- CarregarTextdraw(playerid)
- {
- Fundo[0][playerid] = CreatePlayerTextDraw(playerid, 499.222229, 180.907409, "usebox");
- PlayerTextDrawLetterSize(playerid, Fundo[1][playerid], 0.000000, 19.675100);
- PlayerTextDrawTextSize(playerid, Fundo[1][playerid], 221.888885, 0.000000);
- PlayerTextDrawAlignment(playerid, Fundo[1][playerid], 1);
- PlayerTextDrawColor(playerid, Fundo[1][playerid], 0);
- PlayerTextDrawUseBox(playerid, Fundo[1][playerid], true);
- PlayerTextDrawBoxColor(playerid, Fundo[1][playerid], 471604479);
- PlayerTextDrawSetShadow(playerid, Fundo[1][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Fundo[1][playerid], 0);
- PlayerTextDrawFont(playerid, Fundo[1][playerid], 0);
- Fundo[1][playerid] = CreatePlayerTextDraw(playerid, 220.333358, 181.425933, "usebox");
- PlayerTextDrawLetterSize(playerid, Fundo[1][playerid], 0.000000, 19.640127);
- PlayerTextDrawTextSize(playerid, Fundo[1][playerid], 118.555572, 0.000000);
- PlayerTextDrawAlignment(playerid, Fundo[1][playerid], 1);
- PlayerTextDrawColor(playerid, Fundo[1][playerid], 0);
- PlayerTextDrawUseBox(playerid, Fundo[1][playerid], true);
- PlayerTextDrawBoxColor(playerid, Fundo[1][playerid], 471604479);
- PlayerTextDrawSetShadow(playerid, Fundo[1][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Fundo[1][playerid], 0);
- PlayerTextDrawFont(playerid, Fundo[1][playerid], 0);
- Fundo[2][playerid] = CreatePlayerTextDraw(playerid, 499.777801, 163.277770, "usebox");
- PlayerTextDrawLetterSize(playerid, Fundo[2][playerid], 0.000000, 1.757408);
- PlayerTextDrawTextSize(playerid, Fundo[2][playerid], 118.555564, 0.000000);
- PlayerTextDrawAlignment(playerid, Fundo[2][playerid], 1);
- PlayerTextDrawColor(playerid, Fundo[2][playerid], 0);
- PlayerTextDrawUseBox(playerid, Fundo[2][playerid], true);
- PlayerTextDrawBoxColor(playerid, Fundo[2][playerid], -5963521);
- PlayerTextDrawSetShadow(playerid, Fundo[2][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Fundo[2][playerid], 0);
- PlayerTextDrawFont(playerid, Fundo[2][playerid], 0);
- Sn[playerid] = CreatePlayerTextDraw(playerid, 128.888854, 192.888824, "~r~Sn: ?");
- PlayerTextDrawLetterSize(playerid, Sn[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Sn[playerid], 1);
- PlayerTextDrawColor(playerid, Sn[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Sn[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Sn[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Sn[playerid], 51);
- PlayerTextDrawFont(playerid, Sn[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Sn[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Sn[playerid], true);
- An[playerid] = CreatePlayerTextDraw(playerid, 128.333297, 231.259292, "~r~An: ?");
- PlayerTextDrawLetterSize(playerid, An[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, An[playerid], 1);
- PlayerTextDrawColor(playerid, An[playerid], -1);
- PlayerTextDrawSetShadow(playerid, An[playerid], 0);
- PlayerTextDrawSetOutline(playerid, An[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, An[playerid], 51);
- PlayerTextDrawFont(playerid, An[playerid], 1);
- PlayerTextDrawSetProportional(playerid, An[playerid], 1);
- A1[playerid] = CreatePlayerTextDraw(playerid, 129.444427, 212.074066, "A1: ?");
- PlayerTextDrawLetterSize(playerid, A1[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, A1[playerid], 268.000000, 15.916670);
- PlayerTextDrawAlignment(playerid, A1[playerid], 1);
- PlayerTextDrawColor(playerid, A1[playerid], -1);
- PlayerTextDrawSetShadow(playerid, A1[playerid], 0);
- PlayerTextDrawSetOutline(playerid, A1[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, A1[playerid], 51);
- PlayerTextDrawFont(playerid, A1[playerid], 1);
- PlayerTextDrawSetProportional(playerid, A1[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, A1[playerid], true);
- n[playerid] = CreatePlayerTextDraw(playerid, 129.999954, 249.407485, "n: ?");
- PlayerTextDrawLetterSize(playerid, n[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, n[playerid], 268.000000, 15.916670);
- PlayerTextDrawAlignment(playerid, n[playerid], 1);
- PlayerTextDrawColor(playerid, n[playerid], -1);
- PlayerTextDrawSetShadow(playerid, n[playerid], 0);
- PlayerTextDrawSetOutline(playerid, n[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, n[playerid], 51);
- PlayerTextDrawFont(playerid, n[playerid], 1);
- PlayerTextDrawSetProportional(playerid, n[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, n[playerid], true);
- r[playerid] = CreatePlayerTextDraw(playerid, 130.555526, 266.518524, "r: ?");
- PlayerTextDrawLetterSize(playerid, r[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, r[playerid], 268.000000, 15.916670);
- PlayerTextDrawAlignment(playerid, r[playerid], 1);
- PlayerTextDrawColor(playerid, r[playerid], -1);
- PlayerTextDrawSetShadow(playerid, r[playerid], 0);
- PlayerTextDrawSetOutline(playerid, r[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, r[playerid], 51);
- PlayerTextDrawFont(playerid, r[playerid], 1);
- PlayerTextDrawSetProportional(playerid, r[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, r[playerid], true);
- Calcular[playerid] = CreatePlayerTextDraw(playerid, 133.888916, 310.074096, "Calcular");
- PlayerTextDrawLetterSize(playerid, Calcular[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, Calcular[playerid], 202.222229, 15.916670);
- PlayerTextDrawAlignment(playerid, Calcular[playerid], 1);
- PlayerTextDrawColor(playerid, Calcular[playerid], -1);
- PlayerTextDrawUseBox(playerid, Calcular[playerid], true);
- PlayerTextDrawBoxColor(playerid, Calcular[playerid], -2139062017);
- PlayerTextDrawSetShadow(playerid, Calcular[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Calcular[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Calcular[playerid], 51);
- PlayerTextDrawFont(playerid, Calcular[playerid], 3);
- PlayerTextDrawSetProportional(playerid, Calcular[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Calcular[playerid], true);
- Resposta[playerid] = CreatePlayerTextDraw(playerid, 234.444458, 189.259201, "Resposta:");
- PlayerTextDrawLetterSize(playerid, Resposta[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Resposta[playerid], 1);
- PlayerTextDrawColor(playerid, Resposta[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Resposta[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Resposta[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Resposta[playerid], 51);
- PlayerTextDrawFont(playerid, Resposta[playerid], 3);
- PlayerTextDrawSetProportional(playerid, Resposta[playerid], 1);
- FormulaAn[playerid] = CreatePlayerTextDraw(playerid, 232.777725, 221.407379, "An = A1+(n - 1).r");
- PlayerTextDrawLetterSize(playerid, FormulaAn[playerid], 0.271666, 1.050371);
- PlayerTextDrawAlignment(playerid, FormulaAn[playerid], 1);
- PlayerTextDrawColor(playerid, FormulaAn[playerid], -1);
- PlayerTextDrawSetShadow(playerid, FormulaAn[playerid], 0);
- PlayerTextDrawSetOutline(playerid, FormulaAn[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, FormulaAn[playerid], 51);
- PlayerTextDrawFont(playerid, FormulaAn[playerid], 1);
- PlayerTextDrawSetProportional(playerid, FormulaAn[playerid], 1);
- Progressao[playerid] = CreatePlayerTextDraw(playerid, 296.111083, 165.407409, "progressao aritmetica");
- PlayerTextDrawLetterSize(playerid, Progressao[playerid], 0.281666, 1.164445);
- PlayerTextDrawAlignment(playerid, Progressao[playerid], 1);
- PlayerTextDrawColor(playerid, Progressao[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Progressao[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Progressao[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Progressao[playerid], 51);
- PlayerTextDrawFont(playerid, Progressao[playerid], 3);
- PlayerTextDrawSetProportional(playerid, Progressao[playerid], 1);
- CalcularAn1[playerid] = CreatePlayerTextDraw(playerid, 233.333297, 244.222198, " ");
- PlayerTextDrawLetterSize(playerid, CalcularAn1[playerid], 0.322222, 1.065926);
- PlayerTextDrawAlignment(playerid, CalcularAn1[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularAn1[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularAn1[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularAn1[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularAn1[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularAn1[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularAn1[playerid], 1);
- CalcularAn2[playerid] = CreatePlayerTextDraw(playerid, 233.888931, 256.666625, " ");
- PlayerTextDrawLetterSize(playerid, CalcularAn2[playerid], 0.317221, 1.102222);
- PlayerTextDrawAlignment(playerid, CalcularAn2[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularAn2[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularAn2[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularAn2[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularAn2[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularAn2[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularAn2[playerid], 1);
- CalcularAn3[playerid] = CreatePlayerTextDraw(playerid, 233.888870, 268.592498, " ");
- PlayerTextDrawLetterSize(playerid, CalcularAn3[playerid], 0.320000, 1.122963);
- PlayerTextDrawAlignment(playerid, CalcularAn3[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularAn3[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularAn3[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularAn3[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularAn3[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularAn3[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularAn3[playerid], 1);
- CalcularAn4[playerid] = CreatePlayerTextDraw(playerid, 233.333312, 281.036987, " ");
- PlayerTextDrawLetterSize(playerid, CalcularAn4[playerid], 0.331666, 1.091852);
- PlayerTextDrawAlignment(playerid, CalcularAn4[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularAn4[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularAn4[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularAn4[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularAn4[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularAn4[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularAn4[playerid], 1);
- FormulaSn[playerid] = CreatePlayerTextDraw(playerid, 380.000183, 221.407363, "Sn = (A1+An).n");
- PlayerTextDrawLetterSize(playerid, FormulaSn[playerid], 0.317777, 0.988148);
- PlayerTextDrawAlignment(playerid, FormulaSn[playerid], 1);
- PlayerTextDrawColor(playerid, FormulaSn[playerid], -1);
- PlayerTextDrawSetShadow(playerid, FormulaSn[playerid], 0);
- PlayerTextDrawSetOutline(playerid, FormulaSn[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, FormulaSn[playerid], 51);
- PlayerTextDrawFont(playerid, FormulaSn[playerid], 1);
- PlayerTextDrawSetProportional(playerid, FormulaSn[playerid], 1);
- CalcularSn1[playerid] = CreatePlayerTextDraw(playerid, 380.555480, 240.592514, " ");
- PlayerTextDrawLetterSize(playerid, CalcularSn1[playerid], 0.313333, 1.081481);
- PlayerTextDrawAlignment(playerid, CalcularSn1[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularSn1[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularSn1[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularSn1[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularSn1[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularSn1[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularSn1[playerid], 1);
- CalcularSn2[playerid] = CreatePlayerTextDraw(playerid, 422.777587, 250.962936, " 2");
- PlayerTextDrawLetterSize(playerid, CalcularSn2[playerid], 0.371111, 1.003704);
- PlayerTextDrawAlignment(playerid, CalcularSn2[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularSn2[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularSn2[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularSn2[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularSn2[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularSn2[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularSn2[playerid], 1);
- CalcularSn3[playerid] = CreatePlayerTextDraw(playerid, 382.222290, 269.629699, " ");
- PlayerTextDrawLetterSize(playerid, CalcularSn3[playerid], 0.296111, 0.977777);
- PlayerTextDrawAlignment(playerid, CalcularSn3[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularSn3[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularSn3[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularSn3[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularSn3[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularSn3[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularSn3[playerid], 1);
- CalcularSn4[playerid] = CreatePlayerTextDraw(playerid, 422.777587, 281.555572, " 2");
- PlayerTextDrawLetterSize(playerid, CalcularSn4[playerid], 0.383888, 0.915555);
- PlayerTextDrawAlignment(playerid, CalcularSn4[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularSn4[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularSn4[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularSn4[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularSn4[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularSn4[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularSn4[playerid], 1);
- CalcularSn5[playerid] = CreatePlayerTextDraw(playerid, 382.222381, 298.666717, " ");
- PlayerTextDrawLetterSize(playerid, CalcularSn5[playerid], 0.334444, 0.925926);
- PlayerTextDrawAlignment(playerid, CalcularSn5[playerid], 1);
- PlayerTextDrawColor(playerid, CalcularSn5[playerid], -1);
- PlayerTextDrawSetShadow(playerid, CalcularSn5[playerid], 0);
- PlayerTextDrawSetOutline(playerid, CalcularSn5[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, CalcularSn5[playerid], 51);
- PlayerTextDrawFont(playerid, CalcularSn5[playerid], 1);
- PlayerTextDrawSetProportional(playerid, CalcularSn5[playerid], 1);
- Fechar[playerid] = CreatePlayerTextDraw(playerid, 426.666839, 341.184844, "Cancelar");
- PlayerTextDrawLetterSize(playerid, Fechar[playerid], 0.347777, 1.117778);
- PlayerTextDrawTextSize(playerid, Fechar[playerid], 476.666503, 15.916670);
- PlayerTextDrawAlignment(playerid, Fechar[playerid], 1);
- PlayerTextDrawColor(playerid, Fechar[playerid], -1);
- PlayerTextDrawUseBox(playerid, Fechar[playerid], true);
- PlayerTextDrawBoxColor(playerid, Fechar[playerid], 1768516095);
- PlayerTextDrawSetShadow(playerid, Fechar[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Fechar[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Fechar[playerid], -5963521);
- PlayerTextDrawFont(playerid, Fechar[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Fechar[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, Fechar[playerid], true);
- }
- AbrirTextdraw(playerid)
- {
- PlayerTextDrawShow(playerid, Fundo[0][playerid]);
- PlayerTextDrawShow(playerid, Fundo[1][playerid]);
- PlayerTextDrawShow(playerid, Fundo[2][playerid]);
- PlayerTextDrawShow(playerid, Fechar[playerid]);
- PlayerTextDrawShow(playerid, Sn[playerid]);
- PlayerTextDrawShow(playerid, A1[playerid]);
- PlayerTextDrawShow(playerid, An[playerid]);
- PlayerTextDrawShow(playerid, n[playerid]);
- PlayerTextDrawShow(playerid, r[playerid]);
- PlayerTextDrawShow(playerid, Calcular[playerid]);
- PlayerTextDrawShow(playerid, Resposta[playerid]);
- PlayerTextDrawShow(playerid, Progressao[playerid]);
- }
- AbrirTextdrawCalculo(playerid)
- {
- PlayerTextDrawShow(playerid, FormulaAn[playerid]);
- PlayerTextDrawShow(playerid, CalcularAn1[playerid]);
- PlayerTextDrawShow(playerid, CalcularAn2[playerid]);
- PlayerTextDrawShow(playerid, CalcularAn3[playerid]);
- PlayerTextDrawShow(playerid, CalcularAn4[playerid]);
- PlayerTextDrawShow(playerid, FormulaSn[playerid]);
- PlayerTextDrawShow(playerid, CalcularSn1[playerid]);
- PlayerTextDrawShow(playerid, CalcularSn2[playerid]);
- PlayerTextDrawShow(playerid, CalcularSn3[playerid]);
- PlayerTextDrawShow(playerid, CalcularSn4[playerid]);
- PlayerTextDrawShow(playerid, CalcularSn5[playerid]);
- }
- FecharTextdraw(playerid)
- {
- PlayerTextDrawHide(playerid, Fundo[0][playerid]);
- PlayerTextDrawHide(playerid, Fundo[1][playerid]);
- PlayerTextDrawHide(playerid, Fundo[2][playerid]);
- PlayerTextDrawHide(playerid, Fechar[playerid]);
- PlayerTextDrawHide(playerid, An[playerid]);
- PlayerTextDrawHide(playerid, Sn[playerid]);
- PlayerTextDrawHide(playerid, A1[playerid]);
- PlayerTextDrawHide(playerid, n[playerid]);
- PlayerTextDrawHide(playerid, r[playerid]);
- PlayerTextDrawHide(playerid, Calcular[playerid]);
- PlayerTextDrawHide(playerid, Resposta[playerid]);
- PlayerTextDrawHide(playerid, FormulaAn[playerid]);
- PlayerTextDrawHide(playerid, Progressao[playerid]);
- PlayerTextDrawHide(playerid, CalcularAn1[playerid]);
- PlayerTextDrawHide(playerid, CalcularAn2[playerid]);
- PlayerTextDrawHide(playerid, CalcularAn3[playerid]);
- PlayerTextDrawHide(playerid, CalcularAn4[playerid]);
- PlayerTextDrawHide(playerid, FormulaSn[playerid]);
- PlayerTextDrawHide(playerid, CalcularSn1[playerid]);
- PlayerTextDrawHide(playerid, CalcularSn2[playerid]);
- PlayerTextDrawHide(playerid, CalcularSn3[playerid]);
- PlayerTextDrawHide(playerid, CalcularSn4[playerid]);
- PlayerTextDrawHide(playerid, CalcularSn5[playerid]);
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement