Rhay_Fither

rfBank - By Rhay Fither

Mar 6th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 49.93 KB | None | 0 0
  1. /*
  2.     FilterScript criado por: Rhay_Fither (Sueliton Medeiros)
  3.     Acesse: www.sampevollution.blogspot.com
  4.     Versão: 1.0
  5.     NÃO RETIRE OS CRÉDITOS, NÃO FOI VOCÊ QUE PASSOU MUITO TEMPO CRIANDO E QUEBRANDO A CABEÇA COM BUGS.
  6. */
  7.  
  8. #include <a_samp>
  9. #include <zcmd>
  10. #include <DOF2>
  11.  
  12. #define FILTERSCRIPT
  13. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ DEFINES ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  14. #define SLOTS_SERVIDOR 50 //Aqui você coloca quantos SLOTS são o seu servidor, ou seja, o máximo de jogadores.
  15. #define PASTA_BANCO "rfBank/%s.ini" //Aqui você coloca o nome da pasta que 'guardará' os arquivos dos jogadores.
  16. #define MONEY_CURRENT 250 //Coloque aqui quanto o player terá que ter de dinheiro para criar uma conta bancária.
  17. #define MIN_CARACTERS 4 //Coloque a quantidade mínima de caracters da senha bancária.
  18. #define MAX_CARACTERS 20 //Coloque a quantidade maxima de caracters da senha bancária.
  19. #define CHANCES_ENTER 5 //Coloque a quantidade de chanches que o jogador tem para logar na conta bancária.
  20. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ DIALOGS ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  21. #define DIALOG_OPEN_CONTA       5600
  22. #define DIALOG_ENTER_CONTA      5601
  23. #define DIALOG_DEPOSITAR_CONTA  5602
  24. #define DIALOG_SACAR_CONTA      5603
  25. #define DIALOG_MUDAR_SENHA      5604
  26. #define DIALOG_TRANSFERIR_CLICK 5605
  27. #define DIALOG_SET_SALDO_CLICK  5606
  28. #define DIALOG_CONFIRM_RESET    5607
  29. #define DIALOG_INFOS_PLAYER_CLK 5608
  30. #define DIALOG_ALL_INFOS        5609
  31. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ MACROS ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  32. #define strcatEx(%0,%1,%2,%3); format(%0, sizeof(%0), %2, %3); strcat(%1, %0);
  33. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ VARIAVEIS ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  34. enum BankEnum
  35. {
  36.     bool:CriouConta,
  37.     bool:EntrouConta,
  38.     Saldo,
  39.     ChancesEnter,
  40.     LastDeposito,
  41.     LastSaldo,
  42.     LastTransferido,
  43.     pClicked,
  44. }
  45. new Bank[SLOTS_SERVIDOR][BankEnum], PlayerText:BankTextDraws[11][SLOTS_SERVIDOR], PlayerText:BankTDClick[11][SLOTS_SERVIDOR];
  46. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ FORWARD's ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  47. forward KickInMsg(idp);
  48. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  49.  
  50. public OnFilterScriptInit()
  51. {
  52.     print("\n|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|");
  53.     print("| rfBank System - Carregado com Sucesso |");
  54.     print("|        Criado por: Rhay_Fither        |");
  55.     print("|    WWW.SAMPEVOLLUTION.BLOGSPOT.COM    |");
  56.     print("|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|\n");
  57.     for(new i = 0; i < GetMaxPlayers(); ++i) {
  58.         if(IsPlayerConnected(i)) SendClientMessage(i, GetPlayerColor(i), "[INFO]: Sistema de banco ligado."), print("•");
  59.     }
  60.     return 1;
  61. }
  62.  
  63. public OnFilterScriptExit()
  64. {
  65.     DOF2_Exit();
  66.     //for(new i = 0; i < MAX_TEXT_DRAWS; ++i) print("«•»"); //TESTA ISSO AÍ, E VEJA.
  67.     return 1;
  68. }
  69.  
  70. public OnPlayerConnect(playerid)
  71. {
  72.     BankTextDraws[playerid][0] = CreatePlayerTextDraw(playerid,192.000000, 220.000000, "_"); //Fundo
  73.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][0], 255);
  74.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][0], 1);
  75.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][0], 0.500000, 13.700000);
  76.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][0], -1);
  77.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][0], 0);
  78.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][0], 1);
  79.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][0], 1);
  80.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][0], 1);
  81.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][0], -8388353);
  82.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][0], 419.000000, 0.000000);
  83.  
  84.     BankTextDraws[playerid][1] = CreatePlayerTextDraw(playerid,188.000000, 200.000000, "_"); //Line Left
  85.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][1], 255);
  86.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][1], 1);
  87.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][1], 0.500000, 15.800001);
  88.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][1], -1);
  89.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][1], 0);
  90.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][1], 1);
  91.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][1], 1);
  92.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][1], 1);
  93.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][1], 255);
  94.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][1], 184.000000, 0.000000);
  95.  
  96.     BankTextDraws[playerid][2] = CreatePlayerTextDraw(playerid,427.000000, 200.000000, "_"); //Line Right
  97.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][2], 255);
  98.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][2], 1);
  99.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][2], 0.500000, 15.800004);
  100.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][2], -1);
  101.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][2], 0);
  102.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][2], 1);
  103.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][2], 1);
  104.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][2], 1);
  105.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][2], 255);
  106.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][2], 423.000000, 0.000000);
  107.  
  108.     BankTextDraws[playerid][3] = CreatePlayerTextDraw(playerid,188.000000, 350.000000, "_"); //Line Down
  109.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][3], 255);
  110.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][3], 1);
  111.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][3], 0.500000, -0.399999);
  112.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][3], -1);
  113.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][3], 0);
  114.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][3], 1);
  115.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][3], 1);
  116.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][3], 1);
  117.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][3], 255);
  118.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][3], 423.000000, 0.000000);
  119.  
  120.     BankTextDraws[playerid][4] = CreatePlayerTextDraw(playerid,192.000000, 200.000000, "____MENU DO BANCO"); //Titulo
  121.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][4], -1);
  122.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][4], 2);
  123.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][4], 0.500000, 1.400000);
  124.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][4], -8388353);
  125.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][4], 1);
  126.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][4], 1);
  127.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][4], 1);
  128.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][4], 255);
  129.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][4], 419.000000, 0.000000);
  130.  
  131.     BankTextDraws[playerid][5] = CreatePlayerTextDraw(playerid,195.000000, 223.000000, "_______ABRIR CONTA");
  132.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][5], 255);
  133.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][5], 2);
  134.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][5], 0.500000, 1.300000);
  135.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][5], -1);
  136.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][5], 0);
  137.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][5], 1);
  138.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][5], 1);
  139.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][5], 1);
  140.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][5], 255);
  141.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][5], 416.000000, 10.000000);
  142.  
  143.     BankTextDraws[playerid][6] = CreatePlayerTextDraw(playerid,195.000000, 244.000000, "_________DEPOSITAR");
  144.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][6], 255);
  145.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][6], 2);
  146.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][6], 0.500000, 1.300000);
  147.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][6], -1);
  148.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][6], 0);
  149.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][6], 1);
  150.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][6], 1);
  151.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][6], 1);
  152.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][6], 255);
  153.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][6], 416.000000, 10.000000);
  154.  
  155.     BankTextDraws[playerid][7] = CreatePlayerTextDraw(playerid,195.000000, 265.000000, "_____________SACAR");
  156.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][7], 255);
  157.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][7], 2);
  158.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][7], 0.500000, 1.300000);
  159.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][7], -1);
  160.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][7], 0);
  161.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][7], 1);
  162.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][7], 1);
  163.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][7], 1);
  164.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][7], 255);
  165.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][7], 416.000000, 10.000000);
  166.  
  167.     BankTextDraws[playerid][8] = CreatePlayerTextDraw(playerid,195.000000, 286.000000, "_____________SALDO");
  168.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][8], 255);
  169.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][8], 2);
  170.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][8], 0.500000, 1.300000);
  171.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][8], -1);
  172.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][8], 0);
  173.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][8], 1);
  174.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][8], 1);
  175.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][8], 1);
  176.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][8], 255);
  177.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][8], 416.000000, 10.000000);
  178.  
  179.     BankTextDraws[playerid][9] = CreatePlayerTextDraw(playerid,195.000000, 307.000000, "______MUDAR SENHA");
  180.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][9], 255);
  181.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][9], 2);
  182.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][9], 0.500000, 1.300000);
  183.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][9], -1);
  184.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][9], 0);
  185.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][9], 1);
  186.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][9], 1);
  187.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][9], 1);
  188.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][9], 255);
  189.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][9], 416.000000, 10.000000);
  190.  
  191.     BankTextDraws[playerid][10] = CreatePlayerTextDraw(playerid,195.000000, 328.000000, "_________CANCELAR");
  192.     PlayerTextDrawBackgroundColor(playerid,BankTextDraws[playerid][10], 255);
  193.     PlayerTextDrawFont(playerid,BankTextDraws[playerid][10], 2);
  194.     PlayerTextDrawLetterSize(playerid,BankTextDraws[playerid][10], 0.500000, 1.300000);
  195.     PlayerTextDrawColor(playerid,BankTextDraws[playerid][10], -16776961);
  196.     PlayerTextDrawSetOutline(playerid,BankTextDraws[playerid][10], 0);
  197.     PlayerTextDrawSetProportional(playerid,BankTextDraws[playerid][10], 1);
  198.     PlayerTextDrawSetShadow(playerid,BankTextDraws[playerid][10], 1);
  199.     PlayerTextDrawUseBox(playerid,BankTextDraws[playerid][10], 1);
  200.     PlayerTextDrawBoxColor(playerid,BankTextDraws[playerid][10], 255);
  201.     PlayerTextDrawTextSize(playerid,BankTextDraws[playerid][10], 416.000000, 10.000000);
  202.  
  203.     //-- PlayerClick --
  204.     BankTDClick[playerid][0] = CreatePlayerTextDraw(playerid,192.000000, 220.000000, "_"); //Fundo
  205.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][0], 255);
  206.     PlayerTextDrawFont(playerid,BankTDClick[playerid][0], 1);
  207.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][0], 0.500000, 13.700000);
  208.     PlayerTextDrawColor(playerid,BankTDClick[playerid][0], -1);
  209.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][0], 0);
  210.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][0], 1);
  211.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][0], 1);
  212.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][0], 1);
  213.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][0], -8388353);
  214.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][0], 419.000000, 0.000000);
  215.  
  216.     BankTDClick[playerid][1] = CreatePlayerTextDraw(playerid,188.000000, 200.000000, "_"); //Line Left
  217.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][1], 255);
  218.     PlayerTextDrawFont(playerid,BankTDClick[playerid][1], 1);
  219.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][1], 0.500000, 15.800001);
  220.     PlayerTextDrawColor(playerid,BankTDClick[playerid][1], -1);
  221.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][1], 0);
  222.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][1], 1);
  223.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][1], 1);
  224.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][1], 1);
  225.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][1], 255);
  226.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][1], 184.000000, 0.000000);
  227.  
  228.     BankTDClick[playerid][2] = CreatePlayerTextDraw(playerid,427.000000, 200.000000, "_"); //Line Right
  229.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][2], 255);
  230.     PlayerTextDrawFont(playerid,BankTDClick[playerid][2], 1);
  231.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][2], 0.500000, 15.800004);
  232.     PlayerTextDrawColor(playerid,BankTDClick[playerid][2], -1);
  233.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][2], 0);
  234.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][2], 1);
  235.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][2], 1);
  236.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][2], 1);
  237.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][2], 255);
  238.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][2], 423.000000, 0.000000);
  239.  
  240.     BankTDClick[playerid][3] = CreatePlayerTextDraw(playerid,188.000000, 350.000000, "_"); //Line Down
  241.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][3], 255);
  242.     PlayerTextDrawFont(playerid,BankTDClick[playerid][3], 1);
  243.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][3], 0.500000, -0.399999);
  244.     PlayerTextDrawColor(playerid,BankTDClick[playerid][3], -1);
  245.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][3], 0);
  246.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][3], 1);
  247.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][3], 1);
  248.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][3], 1);
  249.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][3], 255);
  250.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][3], 423.000000, 0.000000);
  251.  
  252.     BankTDClick[playerid][4] = CreatePlayerTextDraw(playerid,192.000000, 200.000000, "-"); //Titulo
  253.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][4], -65281);
  254.     PlayerTextDrawFont(playerid,BankTDClick[playerid][4], 2);
  255.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][4], 0.500000, 1.400000);
  256.     PlayerTextDrawColor(playerid,BankTDClick[playerid][4], 255);
  257.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][4], 1);
  258.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][4], 1);
  259.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][4], 1);
  260.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][4], 255);
  261.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][4], 419.000000, 0.000000);
  262.  
  263.     BankTDClick[playerid][5] = CreatePlayerTextDraw(playerid,195.000000, 223.000000, "_SALDO DO JOGADOR");
  264.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][5], 255);
  265.     PlayerTextDrawFont(playerid,BankTDClick[playerid][5], 2);
  266.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][5], 0.500000, 1.300000);
  267.     PlayerTextDrawColor(playerid,BankTDClick[playerid][5], -1);
  268.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][5], 0);
  269.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][5], 1);
  270.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][5], 1);
  271.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][5], 1);
  272.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][5], 255);
  273.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][5], 416.000000, 10.000000);
  274.  
  275.     BankTDClick[playerid][6] = CreatePlayerTextDraw(playerid,195.000000, 244.000000, "________TRANSFERIR");
  276.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][6], 255);
  277.     PlayerTextDrawFont(playerid,BankTDClick[playerid][6], 2);
  278.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][6], 0.500000, 1.300000);
  279.     PlayerTextDrawColor(playerid,BankTDClick[playerid][6], -1);
  280.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][6], 0);
  281.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][6], 1);
  282.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][6], 1);
  283.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][6], 1);
  284.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][6], 255);
  285.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][6], 416.000000, 10.000000);
  286.  
  287.     BankTDClick[playerid][7] = CreatePlayerTextDraw(playerid,195.000000, 265.000000, "_______SETAR SALDO");
  288.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][7], 255);
  289.     PlayerTextDrawFont(playerid,BankTDClick[playerid][7], 2);
  290.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][7], 0.500000, 1.300000);
  291.     PlayerTextDrawColor(playerid,BankTDClick[playerid][7], -1);
  292.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][7], 0);
  293.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][7], 1);
  294.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][7], 1);
  295.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][7], 1);
  296.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][7], 255);
  297.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][7], 416.000000, 10.000000);
  298.  
  299.     BankTDClick[playerid][8] = CreatePlayerTextDraw(playerid,195.000000, 286.000000, "_____RESETAR CONTA");
  300.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][8], 255);
  301.     PlayerTextDrawFont(playerid,BankTDClick[playerid][8], 2);
  302.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][8], 0.500000, 1.300000);
  303.     PlayerTextDrawColor(playerid,BankTDClick[playerid][8], -1);
  304.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][8], 0);
  305.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][8], 1);
  306.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][8], 1);
  307.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][8], 1);
  308.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][8], 255);
  309.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][8], 416.000000, 10.000000);
  310.  
  311.     BankTDClick[playerid][9] = CreatePlayerTextDraw(playerid,195.000000, 307.000000, "__INFOS DO JOGADOR");
  312.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][9], 255);
  313.     PlayerTextDrawFont(playerid,BankTDClick[playerid][9], 2);
  314.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][9], 0.500000, 1.300000);
  315.     PlayerTextDrawColor(playerid,BankTDClick[playerid][9], -1);
  316.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][9], 0);
  317.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][9], 1);
  318.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][9], 1);
  319.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][9], 1);
  320.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][9], 255);
  321.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][9], 416.000000, 10.000000);
  322.  
  323.     BankTDClick[playerid][10] = CreatePlayerTextDraw(playerid,195.000000, 328.000000, "_________CANCELAR");
  324.     PlayerTextDrawBackgroundColor(playerid,BankTDClick[playerid][10], 255);
  325.     PlayerTextDrawFont(playerid,BankTDClick[playerid][10], 2);
  326.     PlayerTextDrawLetterSize(playerid,BankTDClick[playerid][10], 0.500000, 1.300000);
  327.     PlayerTextDrawColor(playerid,BankTDClick[playerid][10], -16776961);
  328.     PlayerTextDrawSetOutline(playerid,BankTDClick[playerid][10], 0);
  329.     PlayerTextDrawSetProportional(playerid,BankTDClick[playerid][10], 1);
  330.     PlayerTextDrawSetShadow(playerid,BankTDClick[playerid][10], 1);
  331.     PlayerTextDrawUseBox(playerid,BankTDClick[playerid][10], 1);
  332.     PlayerTextDrawBoxColor(playerid,BankTDClick[playerid][10], 255);
  333.     PlayerTextDrawTextSize(playerid,BankTDClick[playerid][10], 416.000000, 10.000000);
  334.    
  335.     Bank[playerid][EntrouConta] = false;
  336.     Bank[playerid][ChancesEnter] = 0;
  337.     Bank[playerid][pClicked] = -99999;
  338.     if(DOF2_FileExists(pBank(playerid)))
  339.     {
  340.         Bank[playerid][Saldo]           = DOF2_GetInt(pBank(playerid), "Saldo");
  341.         Bank[playerid][CriouConta]      = DOF2_GetBool(pBank(playerid), "ContaCriada");
  342.         Bank[playerid][LastDeposito]    = DOF2_GetInt(pBank(playerid), "LastDeposito");
  343.         Bank[playerid][LastSaldo]       = DOF2_GetInt(pBank(playerid), "LastSaque");
  344.         Bank[playerid][LastTransferido] = DOF2_GetInt(pBank(playerid), "LastTransferido");
  345.     }
  346.     return 1;
  347. }
  348.  
  349. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  350. {
  351.     new xMoney = GetPlayerMoney(playerid), StringPCPT[256];
  352.     if(_:playertextid == INVALID_TEXT_DRAW) return CallLocalFunction("OnPlayerClickPlayerTextDraw", "ii", playerid, INVALID_TEXT_DRAW);
  353.     else if(playertextid == BankTextDraws[playerid][5]) //Abrir Conta | Entrar Conta
  354.     {
  355.         if(Bank[playerid][CriouConta] == true)
  356.         {
  357.             if(Bank[playerid][EntrouConta] == false)
  358.             {
  359.                 OpenDialogBank(playerid, 2);
  360.                 ShowTDBank(playerid, false);
  361.             }
  362.             else return ShowTDBank(playerid, false);
  363.         }
  364.         else
  365.         {
  366.             if(xMoney >= MONEY_CURRENT)
  367.             {
  368.                 OpenDialogBank(playerid, 1);
  369.                 ShowTDBank(playerid, false);
  370.             }
  371.             else
  372.             {
  373.                 format(StringPCPT, sizeof(StringPCPT), "{FF2424}[ERRO]: Você precisa de {00FF00}R$ %d {FF2424}para criar sua conta bancária.", MONEY_CURRENT);
  374.                 SendClientMessage(playerid, -1, StringPCPT);
  375.                 ShowTDBank(playerid, false);
  376.             }
  377.         }
  378.     }
  379.     else if(playertextid == BankTextDraws[playerid][6]) //Depositar
  380.     {
  381.         if(Bank[playerid][EntrouConta] == false) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não entrou em sua conta bancária.");
  382.         OpenDialogBank(playerid, 3);
  383.         ShowTDBank(playerid, false);
  384.     }
  385.     else if(playertextid == BankTextDraws[playerid][7]) //Sacar
  386.     {
  387.         if(Bank[playerid][EntrouConta] == false) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não entrou em sua conta bancária.");
  388.         OpenDialogBank(playerid, 4);
  389.         ShowTDBank(playerid, false);
  390.     }
  391.     else if(playertextid == BankTextDraws[playerid][8]) //Saldo
  392.     {
  393.         new DialogInfuor[800];
  394.         if(Bank[playerid][EntrouConta] == false) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não entrou em sua conta bancária.");
  395.         strcatEx(StringPCPT, DialogInfuor, "\n{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}SALDO {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  396.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Último valor sacado: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][LastSaldo]);
  397.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Último valor depositado: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][LastDeposito]);
  398.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Último valor transferido: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][LastTransferido]);
  399.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Saldo atual: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][Saldo]);
  400.         strcatEx(StringPCPT, DialogInfuor, "{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}SALDO {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  401.         ShowPlayerDialog(playerid, DIALOG_ALL_INFOS, DIALOG_STYLE_MSGBOX, "Saldo", DialogInfuor, "Ok", "");
  402.         ShowTDBank(playerid, false);
  403.     }
  404.     else if(playertextid == BankTextDraws[playerid][9]) //Mudar Senha
  405.     {
  406.         if(Bank[playerid][EntrouConta] == false) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não entrou em sua conta bancária.");
  407.         ShowTDBank(playerid, false);
  408.         OpenDialogBank(playerid, 5);
  409.     }
  410.     else if(playertextid == BankTextDraws[playerid][10]) //Cancelar
  411.     {
  412.         ShowTDBank(playerid, false);
  413.     }
  414.     else if(playertextid == BankTDClick[playerid][5]) //[CLICK PLAYER] Saldo
  415.     {
  416.         new zClicked = Bank[playerid][pClicked], DialogInfuor[800];
  417.         if(!IsPlayerConnected(zClicked)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  418.         strcatEx(StringPCPT, DialogInfuor, "\n{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}SALDO {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  419.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Jogador: {80FF80}%s [ID: %d]{00FFFF}.\n", xName(zClicked), zClicked);
  420.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Último valor sacado: {00FF00}R$ %d{00FFFF}.\n", Bank[zClicked][LastSaldo]);
  421.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Último valor depositado: {00FF00}R$ %d{00FFFF}.\n", Bank[zClicked][LastDeposito]);
  422.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Último valor transferido: {00FF00}R$ %d{00FFFF}.\n", Bank[zClicked][LastTransferido]);
  423.         strcatEx(StringPCPT, DialogInfuor, "{00FFFF}Saldo atual: {00FF00}R$ %d{00FFFF}.\n", Bank[zClicked][Saldo]);
  424.         strcatEx(StringPCPT, DialogInfuor, "{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}SALDO {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  425.         ShowPlayerDialog(playerid, DIALOG_ALL_INFOS, DIALOG_STYLE_MSGBOX, "Saldo", DialogInfuor, "Ok", "");
  426.         ShowTDBank(playerid, false, 1);
  427.     }
  428.     else if(playertextid == BankTDClick[playerid][6]) //[CLICK PLAYER] Transferir
  429.     {
  430.         if(!IsPlayerConnected(Bank[playerid][pClicked])) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  431.         OpenDialogBank(playerid, 6);
  432.         ShowTDBank(playerid, false, 1);
  433.     }
  434.     else if(playertextid == BankTDClick[playerid][7]) //[CLICK PLAYER] Setar Saldo
  435.     {
  436.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem autorização para usar este comando.");
  437.         if(!IsPlayerConnected(Bank[playerid][pClicked])) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  438.         OpenDialogBank(playerid, 7);
  439.         ShowTDBank(playerid, false, 1);
  440.     }
  441.     else if(playertextid == BankTDClick[playerid][8]) //[CLICK PLAYER] Resetar Conta
  442.     {
  443.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem autorização para usar este comando.");
  444.         if(!IsPlayerConnected(Bank[playerid][pClicked])) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  445.         OpenDialogBank(playerid, 8);
  446.         ShowTDBank(playerid, false, 1);
  447.     }
  448.     else if(playertextid == BankTDClick[playerid][9]) //[CLICK PLAYER] Infos do Jogador
  449.     {
  450.         new qClicked = Bank[playerid][pClicked], StrDialogInfo[900], StrLabelDialog[128];
  451.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem autorização para usar este comando.");
  452.         if(!IsPlayerConnected(qClicked)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  453.         ShowTDBank(playerid, false, 1);
  454.         if(Bank[qClicked][CriouConta])
  455.         {
  456.             strcatEx(StrLabelDialog, StrDialogInfo, "{8080FF}Nome de Usuário: {FFFF00}%s [ID: %d]\n", xName(qClicked), qClicked);
  457.             if(Bank[playerid][EntrouConta]) strcat(StrDialogInfo, "{8080FF}Entrou na conta: {00FF00}Sim\n");
  458.             else strcat(StrDialogInfo, "{8080FF}Entrou na conta: {FF0000}Não\n");
  459.             strcatEx(StrLabelDialog, StrDialogInfo, "{8080FF}Último valor sacado: {00FF00}R$ %d\n", Bank[qClicked][LastSaldo]);
  460.             strcatEx(StrLabelDialog, StrDialogInfo, "{8080FF}Último valor depositado: {00FF00}R$ %d\n", Bank[qClicked][LastDeposito]);
  461.             strcatEx(StrLabelDialog, StrDialogInfo, "{8080FF}Último valor transferido: {00FF00}R$ %d\n", Bank[qClicked][LastTransferido]);
  462.             strcatEx(StrLabelDialog, StrDialogInfo, "{8080FF}Saldo atual: {00FF00}R$ %d\n", Bank[qClicked][Saldo]);
  463.             strcatEx(StrLabelDialog, StrDialogInfo, "{8080FF}Senha: {FF80FF}%s\n", DOF2_GetString(pBank(qClicked), "Senha"));
  464.             ShowPlayerDialog(playerid, DIALOG_INFOS_PLAYER_CLK, DIALOG_STYLE_MSGBOX, "Informações do Jogador", StrDialogInfo, "Fechar", "");
  465.         }
  466.         else
  467.         {
  468.             ShowPlayerDialog(playerid, DIALOG_INFOS_PLAYER_CLK, DIALOG_STYLE_MSGBOX, "Informações do Jogador", "{FF2828}Este jogador não tem conta bancária.", "Fechar", "");
  469.         }
  470.     }
  471.     else if(playertextid == BankTDClick[playerid][10]) //[CLICK PLAYER] Cancelar
  472.     {
  473.         ShowTDBank(playerid, false, 1);
  474.     }
  475.     return 0;
  476. }
  477.  
  478. public OnPlayerDisconnect(playerid, reason)
  479. {
  480.     if(DOF2_FileExists(pBank(playerid)) && Bank[playerid][CriouConta] == true)
  481.     {
  482.         DOF2_SetInt(pBank(playerid), "Saldo", Bank[playerid][Saldo]);
  483.         DOF2_SetBool(pBank(playerid), "ContaCriada", Bank[playerid][CriouConta]);
  484.         DOF2_SetInt(pBank(playerid), "LastDeposito", Bank[playerid][LastDeposito]);
  485.         DOF2_SetInt(pBank(playerid), "LastSaque", Bank[playerid][LastSaldo]);
  486.         DOF2_SetInt(pBank(playerid), "LastTransferido", Bank[playerid][LastTransferido]);
  487.     }
  488.     if(Bank[playerid][EntrouConta])
  489.     {
  490.         Bank[playerid][EntrouConta] = false;
  491.     }
  492.     Bank[playerid][ChancesEnter] = 0;
  493.     Bank[playerid][pClicked] = -99999;
  494.     return 1;
  495. }
  496.  
  497. public OnPlayerSpawn(playerid) return ShowTDBank(playerid, false);
  498. public OnPlayerDeath(playerid, killerid, reason) return ShowTDBank(playerid, false);
  499. public KickInMsg(idp) return Kick(idp);
  500.  
  501. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  502. {
  503.     new zMoney = GetPlayerMoney(playerid), StringDialogResponse[300];
  504.     //Abrir Conta
  505.     if(dialogid == DIALOG_OPEN_CONTA)
  506.     {
  507.         if(response)
  508.         {
  509.             if(zMoney < MONEY_CURRENT) return format(StringDialogResponse, sizeof(StringDialogResponse), "{FF2424}[ERRO]: Você precisa de {00FF00}R$ %d {FF2424}para criar sua conta bancária.", MONEY_CURRENT);
  510.             if(strlen(inputtext) < MIN_CARACTERS || strlen(inputtext) > MAX_CARACTERS || !strlen(inputtext))
  511.             {
  512.                 OpenDialogBank(playerid, 1);
  513.                 format(StringDialogResponse, sizeof(StringDialogResponse), "{FF0000}[ERRO]: A senha deve ter entre {00FF00}%d {FF0000}e {00FF00}%d {FF0000}caracteres!", MIN_CARACTERS, MAX_CARACTERS);
  514.                 SendClientMessage(playerid, -1, StringDialogResponse);
  515.                 return 1;
  516.             }
  517.             DOF2_CreateFile(pBank(playerid));
  518.             DOF2_SetString(pBank(playerid), "Senha", inputtext);
  519.             Bank[playerid][CriouConta] = true;
  520.             Bank[playerid][Saldo] = MONEY_CURRENT;
  521.             Bank[playerid][LastDeposito] = MONEY_CURRENT;
  522.             Bank[playerid][LastSaldo] = 0;
  523.             Bank[playerid][LastTransferido] = 0;
  524.             GivePlayerMoney(playerid, -MONEY_CURRENT);
  525.             format(StringDialogResponse, sizeof(StringDialogResponse), "{00FF00}[INFO]: Conta bancária criada com sucesso. Senha: {8080FF}%s", inputtext);
  526.             SendClientMessage(playerid, -1, StringDialogResponse);
  527.             ShowTDBank(playerid, true);
  528.         }
  529.         else return ShowTDBank(playerid, true);
  530.     }
  531.  
  532.     //Entrar Conta
  533.     if(dialogid == DIALOG_ENTER_CONTA)
  534.     {
  535.         if(response)
  536.         {
  537.             if(!strlen(inputtext)) return OpenDialogBank(playerid, 2);
  538.             if(strcmp(inputtext, DOF2_GetString(pBank(playerid), "Senha"), true))
  539.             {
  540.                 Bank[playerid][ChancesEnter]++;
  541.                 if(Bank[playerid][ChancesEnter] < CHANCES_ENTER)
  542.                 {
  543.                     SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Senha incorreta, tente novamente.");
  544.                     OpenDialogBank(playerid, 2);
  545.                 }
  546.                 else if(Bank[playerid][ChancesEnter] >= CHANCES_ENTER)
  547.                 {
  548.                     SendClientMessage(playerid, -1, "{FF0000}[INFO]: Você foi kickado por tentar entrar na conta bancária muitas vezes.");
  549.                     SetTimerEx("KickInMsg", 200, false, "i", playerid);
  550.                 }
  551.             }
  552.             else
  553.             {
  554.                 Bank[playerid][EntrouConta] = true;
  555.                 SendClientMessage(playerid, 0x00FF00FF, "[INFO]: Você entrou em sua conta bancária com sucesso.");
  556.                 ShowTDBank(playerid, true);
  557.             }
  558.         }
  559.         else return ShowTDBank(playerid, true);
  560.     }
  561.  
  562.     //Depositar
  563.     if(dialogid == DIALOG_DEPOSITAR_CONTA)
  564.     {
  565.         if(response)
  566.         {
  567.             new QuantDeposit = strval(inputtext);
  568.             if(!QuantDeposit || strlen(inputtext) > 10)
  569.             {
  570.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Valor inválido.");
  571.                 OpenDialogBank(playerid, 3);
  572.                 return 1;
  573.             }
  574.  
  575.             if(QuantDeposit > 10000000)
  576.             {
  577.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: O máximo permitido para deposito é {00FF00}R$ 10.000.000 {FF0000}(10 milhões).");
  578.                 OpenDialogBank(playerid, 3);
  579.                 return 1;
  580.             }
  581.  
  582.             if(zMoney < QuantDeposit)
  583.             {
  584.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem esse dinheiro para depositar.");
  585.                 OpenDialogBank(playerid, 3);
  586.             }
  587.             else
  588.             {
  589.                 new StrDialogResponse[800];
  590.                 Bank[playerid][LastDeposito] = Bank[playerid][Saldo];
  591.                 GivePlayerMoney(playerid, -QuantDeposit);
  592.                 Bank[playerid][Saldo] += QuantDeposit;
  593.                 strcatEx(StringDialogResponse, StrDialogResponse, "\n{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}DEPOSITO {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  594.                 strcatEx(StringDialogResponse, StrDialogResponse, "{00FFFF}Saldo anterior: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][LastDeposito]);
  595.                 strcatEx(StringDialogResponse, StrDialogResponse, "{00FFFF}Depositado: {00FF00}R$ %d{00FFFF}.\n", QuantDeposit);
  596.                 strcatEx(StringDialogResponse, StrDialogResponse, "{00FFFF}Novo saldo: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][Saldo]);
  597.                 strcatEx(StringDialogResponse, StrDialogResponse, "{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}DEPOSITO {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  598.                 ShowPlayerDialog(playerid, DIALOG_INFOS_PLAYER_CLK, DIALOG_STYLE_MSGBOX, "Deposito", StrDialogResponse, "Ok", "");
  599.                 ShowTDBank(playerid, true);
  600.                 Bank[playerid][LastDeposito] = QuantDeposit;
  601.             }
  602.         }
  603.         else return ShowTDBank(playerid, true);
  604.     }
  605.    
  606.     //Sacar
  607.     if(dialogid == DIALOG_SACAR_CONTA)
  608.     {
  609.         if(response)
  610.         {
  611.             new QuantSak = strval(inputtext);
  612.             if(!QuantSak || strlen(inputtext) > 10)
  613.             {
  614.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Valor inválido.");
  615.                 OpenDialogBank(playerid, 4);
  616.                 return 1;
  617.             }
  618.            
  619.             if(QuantSak > 10000000)
  620.             {
  621.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: O máximo permitido para saque é {00FF00}R$ 10.000.000 {FF0000}(10 milhões).");
  622.                 OpenDialogBank(playerid, 4);
  623.                 return 1;
  624.             }
  625.            
  626.             if(Bank[playerid][Saldo] < QuantSak)
  627.             {
  628.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem esse dinheiro em sua conta bancária.");
  629.                 OpenDialogBank(playerid, 4);
  630.             }
  631.             else
  632.             {
  633.                 new BankStringForDialog[800];
  634.                 Bank[playerid][LastSaldo] = Bank[playerid][Saldo];
  635.                 GivePlayerMoney(playerid, QuantSak);
  636.                 Bank[playerid][Saldo] -= QuantSak;
  637.                 strcatEx(StringDialogResponse, BankStringForDialog, "\n{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}SAQUE {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  638.                 strcatEx(StringDialogResponse, BankStringForDialog, "{00FFFF}Saldo anterior: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][LastSaldo]);
  639.                 strcatEx(StringDialogResponse, BankStringForDialog, "{00FFFF}Sacado: {00FF00}R$ %d{00FFFF}.\n", QuantSak);
  640.                 strcatEx(StringDialogResponse, BankStringForDialog, "{00FFFF}Novo saldo: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][Saldo]);
  641.                 strcatEx(StringDialogResponse, BankStringForDialog, "{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}SAQUE {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  642.                 ShowPlayerDialog(playerid, DIALOG_INFOS_PLAYER_CLK, DIALOG_STYLE_MSGBOX, "Saque", BankStringForDialog, "Ok", "");
  643.                 ShowTDBank(playerid, true);
  644.                 Bank[playerid][LastSaldo] = QuantSak;
  645.             }
  646.         }
  647.         else return ShowTDBank(playerid, true);
  648.     }
  649.    
  650.     //Mudar Senha
  651.     if(dialogid == DIALOG_MUDAR_SENHA)
  652.     {
  653.         if(response)
  654.         {
  655.             if(strlen(inputtext) < MIN_CARACTERS || strlen(inputtext) > MAX_CARACTERS || !strlen(inputtext))
  656.             {
  657.                 OpenDialogBank(playerid, 5);
  658.                 format(StringDialogResponse, sizeof(StringDialogResponse), "{FF0000}[ERRO]: A senha deve ter entre {00FF00}%d {FF0000}e {00FF00}%d {FF0000}caracteres!", MIN_CARACTERS, MAX_CARACTERS);
  659.                 SendClientMessage(playerid, -1, StringDialogResponse);
  660.                 return 1;
  661.             }
  662.             DOF2_SetString(pBank(playerid), "Senha", inputtext);
  663.             format(StringDialogResponse, sizeof(StringDialogResponse), "{FFFF00}[INFO]: Senha alterada com sucesso. Senha: {FF8000}%s{FFFF00}.", inputtext);
  664.             SendClientMessage(playerid, -1, StringDialogResponse);
  665.             ShowTDBank(playerid, true);
  666.         }
  667.         else return ShowTDBank(playerid, true);
  668.     }
  669.    
  670.     //[CLICK PLAYER] Transferir
  671.     if(dialogid == DIALOG_TRANSFERIR_CLICK)
  672.     {
  673.         new QuantTransfer = strval(inputtext);
  674.         if(response)
  675.         {
  676.             new jClicked = Bank[playerid][pClicked];
  677.             if(!IsPlayerConnected(jClicked)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: O jogador não está conectado.");
  678.             if(!QuantTransfer || strlen(inputtext) > 10)
  679.             {
  680.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Valor inválido.");
  681.                 OpenDialogBank(playerid, 6);
  682.                 return 1;
  683.             }
  684.            
  685.             if(QuantTransfer > 1000000)
  686.             {
  687.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: O máximo permitido para tranferir é {00FF00}R$ 1.000.000 {FF0000}(1 milhão).");
  688.                 OpenDialogBank(playerid, 6);
  689.                 return 1;
  690.             }
  691.            
  692.             if(Bank[playerid][Saldo] < QuantTransfer)
  693.             {
  694.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem esse dinheiro em sua conta bancária.");
  695.                 OpenDialogBank(playerid, 6);
  696.             }
  697.             else
  698.             {
  699.                 new DialogerStringZer[800];
  700.                 Bank[playerid][Saldo] -= QuantTransfer;
  701.                 Bank[jClicked][Saldo] += QuantTransfer;
  702.                 Bank[playerid][LastTransferido] = Bank[playerid][Saldo];
  703.                 strcatEx(StringDialogResponse, DialogerStringZer, "\n{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}TRANSFERÊNCIA {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  704.                 strcatEx(StringDialogResponse, DialogerStringZer, "{00FFFF}Saldo anterior: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][LastTransferido]);
  705.                 strcatEx(StringDialogResponse, DialogerStringZer, "{00FFFF}Transferido: {00FF00}R$ %d{00FFFF}.\n", QuantTransfer);
  706.                 strcatEx(StringDialogResponse, DialogerStringZer, "{00FFFF}Novo saldo: {00FF00}R$ %d{00FFFF}.\n", Bank[playerid][Saldo]);
  707.                 strcatEx(StringDialogResponse, DialogerStringZer, "{FF8000}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ {FFFF00}TRANSFERÊNCIA {FF8000}]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n", 0);
  708.                 ShowPlayerDialog(playerid, DIALOG_INFOS_PLAYER_CLK, DIALOG_STYLE_MSGBOX, "Transferência", DialogerStringZer, "Ok", "");
  709.                 format(StringDialogResponse, sizeof(StringDialogResponse), "{00FFFF}[INFO]: Você transferiu {00FF00}R$ %d {00FFFF}da sua conta bancária para o jogador {FF8000}%s [ID: %d] {00FFFF}com sucesso.", QuantTransfer, xName(jClicked), jClicked);
  710.                 SendClientMessage(playerid, -1, StringDialogResponse);
  711.                 format(StringDialogResponse, sizeof(StringDialogResponse), "{00FFFF}[INFO]: O jogador {FF8000}%s [ID: %d] {00FFFF}transferiu para a sua conta bancária {00FF00}R$ %d{00FFFF}.", xName(playerid), playerid, QuantTransfer);
  712.                 SendClientMessage(jClicked, -1, StringDialogResponse);
  713.                 Bank[playerid][LastTransferido] = QuantTransfer;
  714.                 ShowTDBank(playerid, true, 1);
  715.             }
  716.         }
  717.         else return ShowTDBank(playerid, true, 1);
  718.     }
  719.    
  720.     //[CLICK PLAYER] Setar Saldo
  721.     if(dialogid == DIALOG_SET_SALDO_CLICK)
  722.     {
  723.         if(response)
  724.         {
  725.             new QuantSet = strval(inputtext), xClicked = Bank[playerid][pClicked];
  726.             if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  727.             if(!QuantSet || strlen(inputtext) > 10)
  728.             {
  729.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Valor inválido.");
  730.                 OpenDialogBank(playerid, 7);
  731.                 return 1;
  732.             }
  733.            
  734.             if(QuantSet > 10000000)
  735.             {
  736.                 SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: O máximo permitido para tranferir é {00FF00}R$ 10.000.000 {FF0000}(10 milhões).");
  737.                 OpenDialogBank(playerid, 7);
  738.                 return 1;
  739.             }
  740.            
  741.             Bank[xClicked][Saldo] = QuantSet;
  742.             Bank[xClicked][LastDeposito] = QuantSet;
  743.             format(StringDialogResponse, sizeof(StringDialogResponse), "{00FFFF}[INFO]: O Admin {FF8000}%s [ID: %d] {00FFFF}setou o saldo de sua conta bancária para {00FF00}R$ %d{00FFFF}.", xName(playerid), playerid, QuantSet);
  744.             SendClientMessage(xClicked, -1, StringDialogResponse);
  745.             format(StringDialogResponse, sizeof(StringDialogResponse), "{00FF00}[INFO]: Saldo do jogador {00FFFF}%s [ID: %d] {00FF00}setado para {FFFF00}R$ %d {00FF00}com sucesso.", xName(xClicked), xClicked, QuantSet);
  746.             SendClientMessage(playerid, -1, StringDialogResponse);
  747.             ShowTDBank(playerid, true, 1);
  748.         }
  749.         else return ShowTDBank(playerid, true, 1);
  750.     }
  751.    
  752.     if(dialogid == DIALOG_CONFIRM_RESET)
  753.     {
  754.         if(response)
  755.         {
  756.             new nClicked = Bank[playerid][pClicked];
  757.             if(!IsPlayerConnected(nClicked)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado.");
  758.             Bank[nClicked][Saldo]           = 250;
  759.             Bank[nClicked][LastDeposito]    = 0;
  760.             Bank[nClicked][LastTransferido] = 0;
  761.             Bank[nClicked][LastSaldo]       = 0;
  762.             format(StringDialogResponse, sizeof(StringDialogResponse), "{FF8000}[ATENÇÃO]: O Admin {8080FF}%s [ID: %d] {FF8000}resetou sua conta bancária.", xName(playerid), playerid);
  763.             SendClientMessage(nClicked, -1, StringDialogResponse);
  764.             format(StringDialogResponse, sizeof(StringDialogResponse), "{00FF00}[INFO]: Conta bancária de {8080FF}%s [ID: %d] {00FF00}resetada com sucesso.", xName(nClicked), nClicked);
  765.             SendClientMessage(playerid, -1, StringDialogResponse);
  766.         }
  767.         else return ShowTDBank(playerid, true, 1);
  768.     }
  769.     return 1;
  770. }
  771.  
  772. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  773. {
  774.     if(Bank[playerid][CriouConta] == false) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você precisa ter conta bancária para entrar no menu Bank Player. (/banco » Abrir Conta)");
  775.     if(Bank[clickedplayerid][CriouConta] == false) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Este jogador não tem conta bancária.");
  776.     Bank[playerid][pClicked] = clickedplayerid;
  777.     ShowTDBank(playerid, true, 1);
  778.     return 1;
  779. }
  780.  
  781. CMD:banco(playerid)
  782. {
  783.     ShowTDBank(playerid, true);
  784.     return 1;
  785. }
  786.  
  787. stock pBank(x)
  788. {
  789.     new ArchiveBank[30], BankNameUser[MAX_PLAYER_NAME];
  790.     GetPlayerName(x, BankNameUser, sizeof(BankNameUser));
  791.     format(ArchiveBank, sizeof(ArchiveBank), PASTA_BANCO, BankNameUser);
  792.     return ArchiveBank;
  793. }
  794.  
  795. stock ShowTDBank(pID, bool:BoolShow, PrefixTD=0)
  796. {
  797.     if(PrefixTD == 0)
  798.     {
  799.         if(BoolShow)
  800.         {
  801.             if(Bank[pID][CriouConta] == true) //Se o jogador tiver uma conta bancária, então...
  802.             {
  803.                 PlayerTextDrawSetString(pID, BankTextDraws[pID][5], "______ENTRAR CONTA");
  804.             }
  805.             else //Se não...
  806.             {
  807.                 PlayerTextDrawSetString(pID, BankTextDraws[pID][5], "_______ABRIR CONTA");
  808.             }
  809.  
  810.             if(Bank[pID][EntrouConta] == true) //Se o jogador entrou na conta bancária...
  811.             {
  812.                 //Mudar Senha = Habilitado
  813.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][9], true);
  814.                 PlayerTextDrawColor(pID, BankTextDraws[pID][9], -1);
  815.             }
  816.             else //Se não...
  817.             {
  818.                 //Mudar Senha = Desabilitado
  819.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][9], false);
  820.                 PlayerTextDrawColor(pID, BankTextDraws[pID][9], 0x808080FF);
  821.             }
  822.  
  823.             if(Bank[pID][Saldo] == 0 || Bank[pID][EntrouConta] == false) //Se o jogador tiver 0 de Saldo então...
  824.             {
  825.                 //Sacar = Desabilitado
  826.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][7], false);
  827.                 PlayerTextDrawColor(pID, BankTextDraws[pID][7], 0x808080FF);
  828.             }
  829.             else //Se não...
  830.             {
  831.                 //Sacar = Habilitado
  832.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][7], true);
  833.                 PlayerTextDrawColor(pID, BankTextDraws[pID][7], -1);
  834.             }
  835.  
  836.             if(Bank[pID][EntrouConta] == true) //Se o jogador entrou na conta bancária...
  837.             {
  838.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][5], false);
  839.                 PlayerTextDrawColor(pID, BankTextDraws[pID][5], 0x808080FF);
  840.  
  841.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][6], true);
  842.                 PlayerTextDrawColor(pID, BankTextDraws[pID][6], -1);
  843.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][8], true);
  844.                 PlayerTextDrawColor(pID, BankTextDraws[pID][8], -1);
  845.             }
  846.             else //Se não...
  847.             {
  848.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][5], true);
  849.                 PlayerTextDrawColor(pID, BankTextDraws[pID][5], -1);
  850.  
  851.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][6], false);
  852.                 PlayerTextDrawColor(pID, BankTextDraws[pID][6], 0x808080FF);
  853.                 PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][8], false);
  854.                 PlayerTextDrawColor(pID, BankTextDraws[pID][8], 0x808080FF);
  855.             }
  856.  
  857.             PlayerTextDrawSetSelectable(pID, BankTextDraws[pID][10], true); //Cancelar      = Habilitado
  858.  
  859.             for(new i = 0; i < 11; ++i) //Loop Simples
  860.             {
  861.                 PlayerTextDrawShow(pID, BankTextDraws[pID][i]);
  862.             }
  863.             SelectTextDraw(pID, 0xFFFF00FF);
  864.         }
  865.         else
  866.         {
  867.             for(new i = 0; i < 11; ++i)
  868.             {
  869.                 PlayerTextDrawHide(pID, BankTextDraws[pID][i]);
  870.             }
  871.             CancelSelectTextDraw(pID);
  872.         }
  873.     }
  874.     else if(PrefixTD == 1)
  875.     {
  876.         new StrBankXvideos[128];
  877.         if(BoolShow)
  878.         {
  879.             format(StrBankXvideos, sizeof(StrBankXvideos), "~>~ %s", xName(Bank[pID][pClicked]));
  880.             PlayerTextDrawSetString(pID, BankTDClick[pID][4], StrBankXvideos);
  881.  
  882.             PlayerTextDrawSetSelectable(pID, BankTDClick[pID][5], true); //Saldo do Jogador = Habilitado
  883.             PlayerTextDrawSetSelectable(pID, BankTDClick[pID][10], true); //Cancelar = Habilitado
  884.            
  885.             if(Bank[pID][pClicked] == pID)
  886.             {
  887.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][6], false);
  888.                 PlayerTextDrawColor(pID, BankTDClick[pID][6], 0x808080FF); //Transferir = Desabilitado
  889.             }
  890.             else
  891.             {
  892.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][6], true);
  893.                 PlayerTextDrawColor(pID, BankTDClick[pID][6], -1); //Transferir = Habilitado
  894.             }
  895.            
  896.             if(IsPlayerAdmin(pID)) //Se o jogador for admin logado na Rcon...
  897.             {
  898.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][7], true); //Setar Saldo
  899.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][8], true); //Resetar Conta
  900.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][9], true); //Infos do Jogador
  901.                 PlayerTextDrawColor(pID, BankTDClick[pID][7], -1); //Setar Saldo = Habilitado
  902.                 PlayerTextDrawColor(pID, BankTDClick[pID][8], -1); //Resetar Conta = Habilitado
  903.                 PlayerTextDrawColor(pID, BankTDClick[pID][9], -1); //Infos do Jogador = Habilitado
  904.             }
  905.             else //Se não...
  906.             {
  907.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][7], false); //Setar Saldo
  908.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][8], false); //Resetar Conta
  909.                 PlayerTextDrawSetSelectable(pID, BankTDClick[pID][9], false); //Infos do Jogador
  910.                 PlayerTextDrawColor(pID, BankTDClick[pID][7], 0x808080FF); //Setar Saldo = Desabilitado
  911.                 PlayerTextDrawColor(pID, BankTDClick[pID][8], 0x808080FF); //Resetar Conta = Desabilitado
  912.                 PlayerTextDrawColor(pID, BankTDClick[pID][9], 0x808080FF); //Infos do Jogador = Desabilitado
  913.             }
  914.  
  915.             for(new i = 0; i < 11; ++i)
  916.             {
  917.                 PlayerTextDrawShow(pID, BankTDClick[pID][i]);
  918.             }
  919.             SelectTextDraw(pID, 0xFFFF00FF);
  920.         }
  921.         else
  922.         {
  923.             for(new i = 0; i < 11; ++i)
  924.             {
  925.                 PlayerTextDrawHide(pID, BankTDClick[pID][i]);
  926.             }
  927.             CancelSelectTextDraw(pID);
  928.         }
  929.    
  930.     }
  931.     return 1;
  932. }
  933.  
  934. stock OpenDialogBank(xID, BankDialogID)
  935. {
  936.     new BankDialogStr[400], pClickado = Bank[xID][pClicked];
  937.     if(BankDialogID <= 0) return 0;
  938.     switch(BankDialogID)
  939.     {
  940.         case 1: ShowPlayerDialog(xID, DIALOG_OPEN_CONTA, DIALOG_STYLE_INPUT, "Abrir Conta", "{8080FF}Digite a senha para criar sua conta bancária abaixo:", "Criar", "Cancelar");
  941.         case 2: ShowPlayerDialog(xID, DIALOG_ENTER_CONTA, DIALOG_STYLE_INPUT, "Entrar", "{8080FF}Digite a senha para que você possa entrar em sua conta bancária.", "Entrar", "Cancelar");
  942.         case 3: ShowPlayerDialog(xID, DIALOG_DEPOSITAR_CONTA, DIALOG_STYLE_INPUT, "Depositar", "{8080FF}Digite a quantidade de dinheiro que você quer depositar em sua conta bancária abaixo:", "Depositar", "Cancelar");
  943.         case 4:
  944.         {
  945.             format(BankDialogStr, sizeof(BankDialogStr), "{8080FF}Saldo: {00FF00}R$ %d\n{8080FF}Digite a quantidade em dinheiro para sacar abaixo:", Bank[xID][Saldo]);
  946.             ShowPlayerDialog(xID, DIALOG_SACAR_CONTA, DIALOG_STYLE_INPUT, "Sacar", BankDialogStr, "Sacar", "Cancelar");
  947.         }
  948.         case 5: ShowPlayerDialog(xID, DIALOG_MUDAR_SENHA, DIALOG_STYLE_INPUT, "Mudar senha bancária", "{8080FF}Digite a nova senha da conta bancária abaixo:", "Mudar", "Cancelar");
  949.         case 6:
  950.         {
  951.             format(BankDialogStr, sizeof(BankDialogStr), "{8080FF}Seu saldo: {00FF00}R$ %d\n{8080FF}Digite o valor para transferir para a conta bancária do jogador {00CC00}%s [ID: %d] {8080FF}abaixo:", Bank[xID][Saldo], xName(pClickado), pClickado);
  952.             ShowPlayerDialog(xID, DIALOG_TRANSFERIR_CLICK, DIALOG_STYLE_INPUT, "Transferir", BankDialogStr, "Confirmar", "Cancelar");
  953.         }
  954.         case 7:
  955.         {
  956.             format(BankDialogStr, sizeof(BankDialogStr), "{8080FF}Jogador: {FFFF00}%s [ID: %d]\n{8080FF}Saldo atual: {00FF00}R$ %d\n\n{8080FF}Digite a quantidade de dinheiro para setar o saldo do jogador abaixo:", xName(pClickado), pClickado, Bank[pClickado][Saldo]);
  957.             ShowPlayerDialog(xID, DIALOG_SET_SALDO_CLICK, DIALOG_STYLE_INPUT, "Setar saldo", BankDialogStr, "Setar", "Cancelar");
  958.         }
  959.         case 8:
  960.         {
  961.             format(BankDialogStr, sizeof(BankDialogStr), "{8080FF}Tem certeza que quer resetar a conta do jogador {FFFF00}%s [ID: %d]{8080FF}?", xName(pClickado), pClickado);
  962.             ShowPlayerDialog(xID, DIALOG_CONFIRM_RESET, DIALOG_STYLE_MSGBOX, "Resetar conta", BankDialogStr, "Resetar", "Cancelar");
  963.         }
  964.     }
  965.     //Abrir Conta = 1 ||| Entrar Conta = 2 ||| Depositar = 3 ||| Sacar = 4 ||| Mudar Senha = 5 ||| Transferir = 6 ||| Setar Saldo = 7 ||| Resetar Conta = 8
  966.     return 1;
  967. }
  968.  
  969. stock xName(kID)
  970. {
  971.     new RedTubeName[MAX_PLAYER_NAME];
  972.     GetPlayerName(kID, RedTubeName, sizeof(RedTubeName));
  973.     return RedTubeName;
  974. }
Add Comment
Please, Sign In to add comment