Advertisement
Guest User

Base RPG _ iou dog havi u poni?

a guest
May 4th, 2012
1,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 133.84 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dini>
  3. #include <zcmd>
  4. #include <sscanf2>
  5. #include <string>
  6. //#include <antnoob>
  7.  
  8. #define DIRETORIO  "/Jogadores/%s.ini"
  9. #define DBANCO  "/Jogadores/Banco/%s.ini"
  10.  
  11. #define paislogin    1996
  12. #define REGISTRO     1997
  13. #define LOGIN        1998
  14. #define SPAWNJ       1999
  15.  
  16. #define pMenuProf    5059
  17. #define pHonestas    5060
  18. #define pHonestas2   5061
  19. #define pCriminosas  5062
  20. #define pGoverno     5063
  21. #define pMafia       5064
  22. #define pTransporte  5065
  23.  
  24. #define MenuBancoH   5024
  25.  
  26. //======= [ Cores ] =====
  27. #define Vermelho                    0xFF0000AA
  28. #define Branco                      0xFFFFFFAA
  29. #define newadm                      0x46BBAA00
  30. #define Amarelo                     0xFFFF00FF
  31. #define Verde                       0x00D700AA
  32. #define Green                       0x16EB43FF
  33. #define Red                         0xff0000ff
  34. #define Laranja                     0xFF6600AA
  35. //========== [ Salarios ] ==========
  36. #define SeguroDesemprego    65
  37. #define Salario_Caminhao    600
  38. #define Salario_MTaxi       450
  39. #define Salario_Taxi        480
  40. #define Salario_Maquinista  450
  41. #define Salario_PolicialM   1200
  42. #define Salario_PolicialC   1400
  43. #define Salario_PolicialF   1500
  44. #define Salario_VDrogas     800
  45. #define Salario_TrafArmas   1150
  46. #define Salario_GuardaTr    810
  47. #define Salario_Advogado    1500
  48. #define Salario_VSorvete    250
  49. #define Salario_Paramedico  950
  50. #define Salario_Hacker      1240
  51. #define Fianca              4500
  52. #define MAX_TEMPO_AFK       5
  53.  
  54. #define VALOR_LITRO 2.0                           //- Definir valor por litro da gasolina
  55. #define RETIRAR_KM  16                            //- A Cada 16 KM ,retirar 1 de gasolina
  56. #define DIALOG_GAS  24                            //- ID Do Dialog para Colocar Gasolina
  57. //========== [ Empregos ] ==========
  58. #define Desempregado    0
  59. #define Caminhoneiro    1
  60. #define MotoTaxi        2
  61. #define Taxista         3
  62. #define Maquinista      4
  63. #define PolicialM       5
  64. #define PolicialC       6
  65. #define PolicialF       7
  66. #define VDrogas         8
  67. #define TrafArmas       9
  68. #define GuardaTransito  10
  69. #define Advogado        11
  70. #define VSorvete        12
  71. #define Paramedico      13
  72. #define Hacker          14
  73. //========= [ Portões ] ==========
  74. new PortaoDP;
  75. new PortaoDP2;
  76. new ElevadorDP;
  77. new ElevadorCima = 0;
  78. new PortaoAberto = 0;
  79. new Portao2Aberto = 0;
  80. //========= [ Pickups ] ==========
  81. new EntrarPref;
  82. new SaidaPref;
  83. //===========[ Forwards ]===========
  84. forward Liberar(playerid);
  85. forward LoteriaPublic();
  86. forward AntAfk(playerid);
  87. forward GanharExp(playerid);
  88. forward CheckCurriculo(playerid);
  89. forward ReprovarC(playerid);
  90. forward ChecarPing(playerid);
  91. forward TempoExpMinuto();
  92. forward BanLog(string[]);
  93. forward PayDay();
  94. forward AtualizarChatBubble();
  95. forward LogarProf(playerid);
  96. forward AcessoBanco(playerid);
  97. forward Firewall(playerid);
  98. forward FirewallLigado();
  99. forward LimiteGrana(playerid);
  100.  
  101. //======[ Roubo ao Banco ]======
  102. new Assalto[MAX_PLAYERS] = 0;
  103. new FirewallOn[MAX_PLAYERS] = 0;
  104. new RoubarBanco[MAX_PLAYERS] = 0;
  105. new KillFirewall[MAX_PLAYERS];
  106. new bool:AcessoOn[MAX_PLAYERS];
  107. new KillAcesso;
  108. new KillFirewallOn;
  109. new KillFirewallOn2;
  110. new KillFirewallOn3;
  111. new KillTransferencia;
  112. /*new cudigos[MAX_PLAYERS];
  113. new Codigos[][] =
  114. {
  115.     "YKJLO",
  116.     "IUMGF",
  117.     "WQDSA",
  118.     "HUNMV"
  119. };
  120. */
  121. //=====[ S. Caças ]=====
  122. //new CacaInProgress[MAX_PLAYERS] = 0;
  123. //new QtCacas[MAX_PLAYERS] = 0;
  124. //=====[ S. Caças ]=====
  125.  
  126. new vfile[128];
  127. new StringLg[256];
  128.  
  129. new Preso[MAX_PLAYERS]= 0;
  130. new TempoPreso[MAX_PLAYERS] = 0;
  131.  
  132. new
  133. Gasosa[MAX_VEHICLES],
  134. bool:Avisado[500],
  135. Float:velokm[3],
  136. Retirada[500]
  137. ;
  138.  
  139. new Autorizado[MAX_PLAYERS];
  140.  
  141. new bool:SenhaBanco[MAX_PLAYERS];
  142. new LogadoBanco[MAX_PLAYERS];
  143.  
  144. new podedm;
  145.  
  146. // == Loteria ==
  147. new NumeroLoto[MAX_PLAYERS];
  148. new TGanhador;
  149. new DinheiroAcumuladoLoto;
  150. new vernumerosorteado[MAX_PLAYERS];
  151. new TaJogando[MAX_PLAYERS];
  152.  
  153. new PlanoMedico[MAX_PLAYERS] = 0;
  154.  
  155. new pAdmin[MAX_PLAYERS];
  156.  
  157. // Level Systen
  158. new Experiencia[MAX_PLAYERS];
  159. new pLevel[MAX_PLAYERS];
  160. new TempoLevelMinuto[MAX_PLAYERS];
  161.  
  162. //=== [ Profissão ] ===
  163. new Profissao[MAX_PLAYERS];
  164. new reprovado[MAX_PLAYERS], aprovado[MAX_PLAYERS];
  165.  
  166. enum pInfo
  167. {
  168.     Logado,
  169.     pBrasil,
  170.     pPortugal
  171. }
  172.  
  173. new pFase[MAX_PLAYERS][pInfo];
  174.  
  175. enum pPos
  176. {
  177.     Float:LastX,
  178.     Float:LastY,
  179.     Float:LastZ,
  180. }
  181. new
  182.     PlayerLastPos[MAX_PLAYERS][pPos],
  183.     PlayerAfkTicks[MAX_PLAYERS],
  184.     pAFK[MAX_PLAYERS],
  185.     Text:AfkText,
  186.     Text:AfkBackText,
  187.     Float:PlayerPosAfk[3];
  188.  
  189. main(){}
  190.  
  191. /*new GranaLT[][] = {
  192.     "56000",
  193.     "52213",
  194.     "52213",
  195.     "55222",
  196.     "54522",
  197.     "75554",
  198.     "75383",
  199.     "42422",
  200.     "42452",
  201.     "62242",
  202.     "52522",
  203.     "66222",
  204.     "88771",
  205.     "99912",
  206.     "91021",
  207.     "56000",
  208.     "41412",
  209.     "41424",
  210.     "44422",
  211.     "55321",
  212.     "12345",
  213.     "88822",
  214.     "88129",
  215.     "93191",
  216.     "86655",
  217.     "53532",
  218.     "99912",
  219.     "91021",
  220.     "56000",
  221.     "41412",
  222.     "41424",
  223.     "44422",
  224.     "55321",
  225.     "12345",
  226.     "88822",
  227.     "88129",
  228.     "93191",
  229.     "86655",
  230.     "53532",
  231.     "87594",
  232.     "41412",
  233.     "41424",
  234.     "44422",
  235.     "55321",
  236.     "12345",
  237.     "88822",
  238.     "88129",
  239.     "93191",
  240.     "86655",
  241.     "53532",
  242.     "99912",
  243.     "91021",
  244.     "56000",
  245.     "41412",
  246.     "41424",
  247.     "44422",
  248.     "55321",
  249.     "12345",
  250.     "88822",
  251.     "88129",
  252.     "93191",
  253.     "86655",
  254.     "53532",
  255.     "87594",
  256.     "45666"
  257. };*/
  258.  
  259. public OnGameModeInit()
  260. {
  261.     print("\t\t\t\t\t========[ Servidor Ligado ]========");
  262.     SendRconCommand("hostname [0.3d] Brasil Games [RPG v1.0]");
  263.     SendRconCommand("mapname Brasil RPG");
  264.     SetGameModeText("Brasil Games v1.0");
  265.     if(!fexist("Banidos.ini")) dini_Create("Banidos.ini");
  266.     UsePlayerPedAnims();
  267.     DisableInteriorEnterExits();
  268.     EnableStuntBonusForAll(0);
  269.     TGanhador = 0;
  270. //    LotoQuantiaGrana = DinheiroLotoSortear();
  271.     SetTimers();
  272.     TempoExpMinuto();
  273.     //=== [ Pickups ] ====
  274.     EntrarPref = CreatePickup(1239, 1318, 1480.8987, -1770.6410, 18.7958, -1);
  275.     SaidaPref = CreatePickup(1239, 1318, 389.3070, 173.6391, 1008.3828, -1);
  276.     //=== [ 3d Label ] ===
  277.     Create3DTextLabel("Prefeitura\nDe\nLos Santos",-1,1480.8987, -1770.6410, 18.7958,60.0,0);// Prefeitura Entrada
  278.     Create3DTextLabel("Saida",-1,389.3070, 173.6391, 1008.3828,60.0,0);// Prefeitura Saida
  279.     Create3DTextLabel("\n/profissoes",-1,362.4499,173.8849,1008.3828,60.0,0);// comando pra peg
  280.     //===[ Textdraws' ] ===
  281.     AfkText = TextDrawCreate(168.000000,319.000000,"Voce esta bloqueado");
  282.     TextDrawAlignment(AfkText,0);
  283.     TextDrawBackgroundColor(AfkText,0x000000ff);
  284.     TextDrawFont(AfkText,1);
  285.     TextDrawLetterSize(AfkText,1.000000,2.699999);
  286.     TextDrawColor(AfkText,0xffffffff);
  287.     TextDrawSetOutline(AfkText,1);
  288.     TextDrawSetProportional(AfkText,1);
  289.     TextDrawSetShadow(AfkText,1);
  290.  
  291.     AfkBackText = TextDrawCreate(248.000000,351.000000,"Para ser desbloqueado de upar Use: ~r~/~w~sairafk");
  292.     TextDrawAlignment(AfkBackText,0);
  293.     TextDrawBackgroundColor(AfkBackText,0x000000ff);
  294.     TextDrawFont(AfkBackText,1);
  295.     TextDrawLetterSize(AfkBackText,0.299999,1.100000);
  296.     TextDrawColor(AfkBackText,0xffffffff);
  297.     TextDrawSetOutline(AfkBackText,1);
  298.     TextDrawSetProportional(AfkBackText,1);
  299.     TextDrawSetShadow(AfkBackText,1);
  300.     //-
  301.     PortaoDP = CreateObject(980,1540.68652344,-1627.59179688,15.15620422,0.00000000,0.00000000,90.00000000);
  302.     PortaoDP2 = CreateObject(980,1589.98474121,-1638.26818848,15.21242142,0.00000000,0.00000000,359.99523926); //object(airportgate) (1)
  303.     ElevadorDP = CreateObject(976,1561.68164062,-1641.38964844,12.56751347,270.79650879,0.00000000,90.00000000); //object(phils_compnd_gate)
  304.     return 1;
  305. }
  306.  
  307. public OnGameModeExit()
  308. {
  309.     return 1;
  310. }
  311.  
  312. public OnRconLoginAttempt(ip[], password[], success)
  313. {
  314.     if(!success)
  315.     {
  316.         printf("Rcon Errada!! - IP %s - Senha Usada: %s",ip, password);
  317.         new pip[16];
  318.         for(new i=0; i<MAX_PLAYERS; i++)
  319.         {
  320.             GetPlayerIp(i, pip, sizeof(pip));
  321.             if(!strcmp(ip, pip, true))
  322.             {
  323.                 SendClientMessage(i, 0xFFFFFFFF, "Senha Errada!. Bye!");
  324.                 Kick(i);
  325.             }
  326.         }
  327.     }
  328.     return 1;
  329. }
  330.  
  331. public OnPlayerRequestClass(playerid, classid)
  332. {
  333.     ShowPlayerDialog(playerid, SPAWNJ, DIALOG_STYLE_MSGBOX,"Registro/Login", "Bem Vindo Ao servidor!\nClique em continuar para prosseguir o seu registro/login!", "Continuar", "");
  334.     SetPlayerCameraPos(playerid,2683.2480,-1676.5824,36.8194);
  335.     SetPlayerCameraLookAt(playerid,2686.4868,-1680.4825,36.8194);
  336.     SetPlayerPos(playerid, 2701.9219,-1697.5417,30.5223);
  337.     SetPlayerInterior(playerid, 0);
  338.     SetPlayerSkin(playerid, 70);
  339.     ApplyAnimation(playerid, "STRIP", "strip_E", 4.0, 1, 1, 1, 1, 0);
  340.     if(classid == 1 || classid == 0 && !IsPlayerAdmin(playerid))
  341.     {
  342.         //SendClientMessage(playerid,Verde,"This skin is only for admins!");
  343.         return 0;
  344.     }
  345.     return 1;
  346. }
  347.  
  348. public OnPlayerConnect(playerid)
  349. {
  350.     pFase[playerid][Logado] = 0;
  351.     pAFK[playerid]=0;
  352.     new string[128];
  353.     format(string,sizeof string,"{00FF00}~> {FFFAFA}%s {FFFAFA}[ {00FF00}%d {FFFAFA}] Conectou-se ao Servidor.",pName(playerid),playerid);
  354.     SendClientMessageToAll(-1, string);
  355.     printf("%s [ID: %d] logou-se ao servidor.",pName(playerid), playerid);
  356.     // Check Ban
  357.     new aname[MAX_PLAYER_NAME];
  358.     new nomepl[MAX_PLAYER_NAME];
  359.     if(dini_Int("NicksBan.ini",pName(playerid)) == 1)
  360.     {
  361.         SendClientMessage(playerid, 0x11B1FFAA, "Você foi Kickado Motivo: Você está banido!");
  362.         format(string, sizeof(string), "%s (%d) Foi Kickado [Motivo]: Nick está Banido!", aname,playerid);
  363.         SendClientMessageToAll(Laranja, string);
  364.         Kick(playerid);
  365.         return 1;
  366.     }
  367.     //
  368.     if(dini_Int("Banidos.ini",pName(playerid)) == 1)
  369.     {
  370.         SendClientMessage(playerid, 0x11B1FFAA, "Você foi Kickado [Motivo]: Conta está banida!");
  371.         format(string, sizeof(string), "%s (%d) Foi Kickado [Motivo]: Conta está banida", aname,playerid);
  372.         SendClientMessageToAll(Laranja, string);
  373.         Kick(playerid);
  374.         return 1;
  375.     }
  376.     if(dini_Int(vfile,"Banido") == 1)
  377.     {
  378.         new Ip[30];
  379.         GetPlayerIp(playerid, Ip, sizeof(Ip));
  380.         SendClientMessage(playerid,Verde,"~> Log Ban <~");
  381.         format(string, sizeof(string),"Nick: %s", nomepl);
  382.         SendClientMessage(playerid,-1,string);
  383.         format(string, sizeof(string),"Banido Por: %s", dini_Get(vfile,"BanPor"));
  384.         SendClientMessage(playerid,-1,string);
  385.         format(string, sizeof(string),"Motivo: %s", dini_Get(vfile,"BanMotivo"));
  386.         SendClientMessage(playerid,-1,string);
  387.         format(string, sizeof(string),"Data: %s", dini_Get(vfile,"Login"));
  388.         SendClientMessage(playerid,-1,string);
  389.         if(dini_Int(vfile,"TBan") == 1)
  390.         {
  391.             format(string, sizeof(string),"Banido Até:%d/%d/%d as %d:%d", dini_Int(vfile,"BanAteD"), dini_Int(vfile,"BanAteME"), dini_Int(vfile,"BanAteY"), dini_Int(vfile,"BanAteH"), dini_Int(vfile,"BanAteMI"));
  392.             SendClientMessage(playerid,-1,string);
  393.             new year, month,day;
  394.             getdate(year, month, day);
  395.             new h, m, s;
  396.             gettime(h, m, s);
  397.             if(year > dini_Int(vfile,"BanAteY"))
  398.             {
  399.                 SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  400.                 dini_IntSet(vfile, "Banido", 0);
  401.                 dini_IntSet(vfile,"TBan", 0);
  402.                 return 1;
  403.             }
  404.             if(year == dini_Int(vfile,"BanAteY"))
  405.             {
  406.                 if(month > dini_Int(vfile,"BanAteME"))
  407.                 {
  408.                     SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  409.                     dini_IntSet(vfile, "Banido", 0);
  410.                     dini_IntSet(vfile,"TBan", 0);
  411.                     return 1;
  412.                 }
  413.                 if(month == dini_Int(vfile,"BanAteME"))
  414.                 {
  415.                     if(day > dini_Int(vfile,"BanAteD"))
  416.                     {
  417.                         SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  418.                         dini_IntSet(vfile, "Banido", 0);
  419.                         dini_IntSet(vfile,"TBan", 0);
  420.                         return 1;
  421.                     }
  422.                     if(day == dini_Int(vfile,"BanAteD"))
  423.                     {
  424.                         if(h > dini_Int(vfile,"BanAteH"))
  425.                         {
  426.                             SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  427.                             dini_IntSet(vfile, "Banido", 0);
  428.                             dini_IntSet(vfile,"TBan", 0);
  429.                             return 1;
  430.                         }
  431.                         if(h == dini_Int(vfile,"BanAteH"))
  432.                         {
  433.                             if(m >= dini_Int(vfile,"BanAteMI"))
  434.                             {
  435.                                 SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  436.                                 dini_IntSet(vfile, "Banido", 0);
  437.                                 dini_IntSet(vfile,"TBan", 0);
  438.                                 return 1;
  439.                             }
  440.                         }
  441.                     }
  442.                 }
  443.             }
  444.         }
  445.         SendClientMessage(playerid,Verde,"~> Log Ban <~");
  446.         dini_Set(vfile,"Ip", Ip);
  447.         SendDeathMessage(INVALID_PLAYER_ID, playerid, 0);
  448.         Kick(playerid);
  449.     }
  450.     return 1;
  451. }
  452.  
  453. public OnPlayerDisconnect(playerid, reason)
  454. {
  455.     printf("%s [ID: %d] desconectou-se do servidor.",pName(playerid), playerid);
  456.     new
  457.         string[128],
  458.         name[MAX_PLAYER_NAME];
  459.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  460.     switch(reason)
  461.     {
  462.         case 0: format(string,sizeof string,"{00FF00}~> {FFFAFA}%s saiu do servidor. {00FF00}({FFFAFA}Crash{00FF00}/{FFFAFA}Conexão{00FF00})",name);
  463.         case 1: format(string,sizeof string,"{00FF00}~> {FFFAFA}%s saiu do servidor. {00FF00}({FFFAFA}Vontade Própia{00FF00})",name);
  464.         case 2: format(string,sizeof string,"{00FF00}~> {FFFAFA}%s saiu do servidor. {00FF00}({FFFAFA}Kickado{00FF00}/{FFFAFA}Banido{00FF00})",name);
  465.     }
  466.     SendClientMessageToAll(-1,string);
  467.     pFase[playerid][Logado] = 0;
  468.     LogadoBanco[playerid] = 0;
  469.     return 1;
  470. }
  471.  
  472. public OnPlayerSpawn(playerid)
  473. {
  474.     LogarProf(playerid);
  475. /*    if(Preso[playerid] == 1)
  476.     {
  477.         SetPlayerPos(playerid, 1587.5526,-1791.1556,30.9624);
  478.         SetPlayerInterior(playerid, 0);
  479.         SetPlayerHealth(playerid,99999);
  480.         ResetPlayerWeapons(playerid);
  481.         TogglePlayerControllable(playerid, 1);
  482.         SendClientMessage(playerid, Verde, "* Você está preso, contrate um advogado ou pague a fiança /fianca");
  483.         Preso[playerid] = 1;
  484.     }*/
  485.     if(Preso[playerid] == 1)
  486.     {
  487.         if(GetPlayerWantedLevel(playerid) == 1)
  488.         {
  489.             SetPlayerInterior(playerid, 6);
  490.             Assalto[playerid] = 0;
  491.             Preso[playerid] = 1;
  492.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  493.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  494.             TempoPreso[playerid] = SetTimerEx("Liberar", 120000, false, "i", playerid);
  495.             ResetPlayerWeapons(playerid);
  496.         }
  497.         else if(GetPlayerWantedLevel(playerid) == 2)
  498.         {
  499.             SetPlayerInterior(playerid, 6);
  500.             Assalto[playerid] = 0;
  501.             Preso[playerid] = 1;
  502.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  503.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  504.             TempoPreso[playerid] = SetTimerEx("Liberar", 240000, false, "i", playerid);
  505.             ResetPlayerWeapons(playerid);
  506.         }
  507.         else if(GetPlayerWantedLevel(playerid) == 3)
  508.         {
  509.             SetPlayerInterior(playerid, 6);
  510.             Assalto[playerid] = 0;
  511.             Preso[playerid] = 1;
  512.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  513.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  514.             TempoPreso[playerid] = SetTimerEx("Liberar", 480000, false, "i", playerid);
  515.             ResetPlayerWeapons(playerid);
  516.         }
  517.         else if(GetPlayerWantedLevel(playerid) == 4)
  518.         {
  519.             SetPlayerInterior(playerid, 6);
  520.             Assalto[playerid] = 0;
  521.             Preso[playerid] = 1;
  522.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  523.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  524.             TempoPreso[playerid] = SetTimerEx("Liberar", 600000, false, "i", playerid);
  525.             ResetPlayerWeapons(playerid);
  526.         }
  527.         else if(GetPlayerWantedLevel(playerid) == 5)
  528.         {
  529.             SetPlayerInterior(playerid, 6);
  530.             Assalto[playerid] = 0;
  531.             Preso[playerid] = 1;
  532.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  533.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  534.             TempoPreso[playerid] = SetTimerEx("Liberar", 720000, false, "i", playerid);
  535.             ResetPlayerWeapons(playerid);
  536.         }
  537.         else if(GetPlayerWantedLevel(playerid) == 6)
  538.         {
  539.             SetPlayerInterior(playerid, 6);
  540.             Assalto[playerid] = 0;
  541.             Preso[playerid] = 1;
  542.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  543.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  544.             TempoPreso[playerid] = SetTimerEx("Liberar", 840000, false, "i", playerid);
  545.             ResetPlayerWeapons(playerid);
  546.         }
  547.     }
  548.     return 1;
  549. }
  550.  
  551. public OnPlayerDeath(playerid, killerid, reason)
  552. {
  553.     SendDeathMessage(killerid,playerid,reason);
  554.     new aname[MAX_PLAYER_NAME];
  555.     if(podedm == 0)
  556.     {
  557.          SendClientMessage(killerid, Amarelo, "* Você foi preso por fazer dm em local proibido!");
  558.          SpawnPlayer(killerid);
  559.          SetPlayerPos(killerid, 264.4181,77.3247,1001.0391);
  560.          SetPlayerHealth(killerid, 99999);
  561.          SetPlayerInterior(killerid, 6);
  562.          ResetPlayerWeapons(killerid);
  563.          dini_IntSet(aname, "Preso", 1);
  564.     }
  565.     return 1;
  566. }
  567.  
  568. public OnVehicleSpawn(vehicleid)
  569. {
  570.     return 1;
  571. }
  572.  
  573. public OnVehicleDeath(vehicleid, killerid)
  574. {
  575.     return 1;
  576. }
  577.  
  578. public OnPlayerText(playerid, text[])
  579. {
  580.     new string[256];
  581.     format(string,sizeof(string),"[%d] diz: %s", playerid, text);
  582.     SendPlayerMessageToAll(playerid,string);
  583.     if(pAFK[playerid] == 1)
  584.     {
  585.         SendClientMessage(playerid, Vermelho, "* Saia do Modo AFK Primeiro! Use: /sairafk");
  586.         return 0;
  587.     }
  588.     /*if(AcessoOn[playerid] == true)
  589.     {
  590.         new codigos = random(sizeof(Codigos));
  591.         cudigos = Codigos[codigos];
  592.         if(strfind(text, Codigos[codigos], true) == 0)
  593.         {
  594.             KillTimer(KillFirewall[playerid]);
  595.             KillAcesso = SetTimerEx("AcessoBanco", 1000, 20, "i", playerid);
  596.             KillTransferencia = SetTimerEx("LimiteGrana", 27000, false, "i", playerid);
  597.             format(string, sizeof(string), "* %s conseguiu derrubar o firewall", pName(playerid));
  598.             SendClientMessageToAll(0x7FFF00AA, string);
  599.             Assalto[playerid] = 1;
  600.             return 0;
  601.         }
  602.         else
  603.         {
  604.             SendClientMessage(playerid, 0xFF0000FF, "(ERRO) Codigo Inválido!");
  605.             return 0;
  606.         }
  607.     }*/
  608.     return 0;
  609. }
  610.  
  611. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  612. {
  613.  
  614. new string[128], IP[24];
  615. if(dialogid == REGISTRO)
  616. {
  617.     if(!response)
  618.     {
  619.        SendClientMessage(playerid,-1,"{00BFFF}Voce foi kickado por nao registrar!.");
  620.        Kick(playerid);
  621.     }
  622.     else {
  623.     if(!strlen(inputtext))
  624.     {
  625.         format(StringLg, sizeof(StringLg), "{FFFAFA}Usuario: {FFD700}%s\n{FFFAFA}Conta: {FF0000}Não Registrada\n{FFFAFA}Digite uma Senha e Clique em Registrar", pName(playerid));
  626.         ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", StringLg, "Registrar", "Sair");
  627.     }
  628.     dini_Create(vfile);
  629.     format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  630.     dini_Set(vfile, "Senha", inputtext);
  631.     GetPlayerIp(playerid, IP, sizeof(IP));
  632.     dini_Set(vfile, "Login", pName(playerid));
  633.     dini_Set(vfile, "IP", IP);
  634.     dini_Set(vfile, "Level", "0");
  635.     dini_Set(vfile, "ExpJogador", "0");
  636.     dini_Set(vfile, "LevelAdmin", "0");
  637.     dini_Set(vfile, "Dinheiro", "0");
  638.     dini_Set(vfile, "Procurado", "0");
  639.     dini_Set(vfile, "Preso", "0");
  640.     dini_Set(vfile, "Skin", "1");
  641.     dini_Set(vfile, "VipL", "0");
  642.     dini_Set(vfile, "Avisos", "0");
  643.     dini_Set(vfile, "TContaBancaria", "0");
  644.     dini_Set(vfile, "HabTerrestre", "0");
  645.     dini_Set(vfile, "Pais", "Nenhum");
  646.     dini_Set(vfile, "HabAerea", "0");
  647.     dini_Set(vfile, "HabNautica", "0");
  648.     dini_Set(vfile, "Profissao", "0");
  649.     dini_Set(vfile,"Porte", "0");
  650.     GivePlayerMoney(playerid,500);
  651.     ShowPlayerDialog(playerid, paislogin, DIALOG_STYLE_MSGBOX, "Registro", "Agora\tSelecione o Seu Pais", "Brasil", "Portugal");
  652.     GameTextForPlayer(playerid, "~w~Registrado", 8000, 1);
  653.     PlayerPlaySound(playerid, 1057, 0, 0, 0);
  654.     pFase[playerid][Logado] = 1;
  655.     return 1;
  656.     }
  657. }
  658.  
  659. if(dialogid == DIALOG_GAS)
  660. {
  661.     if(!response)
  662.         return SendClientMessage(playerid, 0xFFFFFFFF, "Você não colocou gasolina");
  663.     new sGasolinaT = strval(inputtext),quantia = sGasolinaT*floatround(VALOR_LITRO);
  664.     if(GetPlayerMoney(playerid) < quantia)
  665.         return SendClientMessage(playerid, 0xFFFFFFFF, "Você não tem dinheiro para isto");
  666.     if(sGasolinaT > 100 || sGasolinaT <= 0)
  667.         return SendClientMessage(playerid, 0xFFFFFFFF, "Quantia Inválida");
  668.     format(string,60, "* Você abastaceu %d Litros por %d$",sGasolinaT,quantia);
  669.     SendClientMessage(playerid,0xFFFF00AA, string);
  670.     Gasosa[GetPlayerVehicleID(playerid)] = sGasolinaT;
  671.     GivePlayerMoney(playerid,-quantia);
  672.     Retirada[playerid] = 0;
  673.     Avisado[playerid] = false;
  674.     TogglePlayerControllable(playerid, true);
  675.     return 1;
  676. }
  677.  
  678. if(dialogid == 9459)
  679. {
  680.     if(response)
  681.     {
  682.         dini_Set(vfile, "Senha", inputtext);
  683.         format(string, sizeof(string), "(INFO) %s sua senha foi alterada com sucesso!", pName(playerid));
  684.         SendClientMessage(playerid, 0xCDCDB4AA, string);
  685.         format(string, sizeof(string), "(INFO) Sua nova senha: %s", inputtext);
  686.         SendClientMessage(playerid, 0xCDCDB4AA, string);
  687.         }
  688.     return 1;
  689. }
  690.  
  691. if(dialogid == MenuBancoH)
  692. {
  693.     //
  694. }
  695.  
  696. if(dialogid == pMenuProf)
  697. {
  698.     if(response)
  699.     {
  700.         if(listitem == 0)
  701.         {
  702.             ShowPlayerDialog(playerid, pHonestas, DIALOG_STYLE_LIST, "Profissões - Honestas", "Vendedor de Sorvete - Level 0\n<- Voltar", "Selecionar", "Fechar");
  703.         }
  704.         if(listitem == 1)
  705.         {
  706.             ShowPlayerDialog(playerid, pHonestas2, DIALOG_STYLE_LIST, "Profissões - Honestas 2", "Troll Face\nVoltar", "Selecionar", "Fechar");
  707.         }
  708.         if(listitem == 2)
  709.         {
  710.             ShowPlayerDialog(playerid, pCriminosas, DIALOG_STYLE_LIST, "Profissões - Criminosas", "Vendedor de Drogas - Level 20\nTraficante de Armas - Level 15\nVoltar", "Selecionar", "Fechar");
  711.         }
  712.         if(listitem == 3)
  713.         {
  714.             ShowPlayerDialog(playerid, pGoverno, DIALOG_STYLE_LIST, "Profissões - Governo", "Policia Militar - Level 40\nPolicia Civil - Level 50\nPolicia Federal - Level 70\nAdvogado - Level 30\nGuarda de Transito - Level 25\nVoltar", "Selecionar", "Fechar");
  715.         }
  716.         if(listitem == 4)
  717.         {
  718.             ShowPlayerDialog(playerid, pTransporte, DIALOG_STYLE_LIST, "Profissões - Transporte", "Caminhoneiro - Level 15\nMoto Taxista - Level 10\nTaxista - Level 10\nMaquinista - Level 5\nVoltar", "Selecionar", "Fechar");
  719.         }
  720.     }
  721. }
  722.  
  723. if(dialogid == pCriminosas)
  724. {
  725.     if(response)
  726.     {
  727.         if(listitem == 0)
  728.         {
  729.             if(pLevel[playerid] >= 19)
  730.             {
  731.                 Profissao[playerid] = VDrogas;
  732.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  733.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  734.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  735.                 TogglePlayerControllable(playerid, 1);
  736.             }
  737.             else {
  738.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  739.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  740.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  741.                 TogglePlayerControllable(playerid, 1);
  742.             }
  743.             if(listitem == 1)
  744.             {
  745.             if(pLevel[playerid] >= 19)
  746.             {
  747.                 Profissao[playerid] = TrafArmas;
  748.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  749.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  750.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  751.                 TogglePlayerControllable(playerid, 1);
  752.             }
  753.             else {
  754.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  755.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  756.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  757.                 TogglePlayerControllable(playerid, 1);
  758.                 }
  759.             }
  760.             if(listitem == 2) // Voltar
  761.             {
  762.                 ShowPlayerDialog(playerid,pMenuProf, DIALOG_STYLE_LIST, "Empregos", "{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {FFFAFA}2 {00FF00}]\n{00FF00}[ {FFFAFA}Carreira {FFD700}Criminosa {00FF00}]\n{00FF00}[ {FFD700}Governo {00FF00}]\n{00FF00}[ {FFD700}Transporte {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}da {FFFAFA}Mafia {00FF00}]", "Ok", "Fechar");
  763.             }
  764.             return 1;
  765.         }
  766.     }
  767. }
  768.  
  769. if(dialogid == pMafia)
  770. {
  771.     if(response)
  772.     {
  773.         if(listitem == 1)
  774.         {
  775.             if(pLevel[playerid] >= 49)
  776.             {
  777.                 Profissao[playerid] = Hacker;
  778.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  779.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  780.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  781.                 TogglePlayerControllable(playerid, 1);
  782.             }
  783.             else {
  784.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  785.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  786.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  787.                 TogglePlayerControllable(playerid, 1);
  788.             }
  789.         }
  790.         if(listitem == 0) // Voltar
  791.         {
  792.             ShowPlayerDialog(playerid,pMenuProf, DIALOG_STYLE_LIST, "Empregos", "{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {FFFAFA}2 {00FF00}]\n{00FF00}[ {FFFAFA}Carreira {FFD700}Criminosa {00FF00}]\n{00FF00}[ {FFD700}Governo {00FF00}]\n{00FF00}[ {FFD700}Transporte {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}da {FFFAFA}Mafia {00FF00}]", "Ok", "Fechar");
  793.         }
  794.         return 1;
  795.     }
  796. }
  797.  
  798. if(dialogid == pGoverno)
  799. {
  800.     if(response)
  801.     {
  802.         if(listitem == 0)
  803.         {
  804.             if(pLevel[playerid] >= 39)
  805.             {
  806.                 Profissao[playerid] = PolicialM;
  807.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  808.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  809.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  810.                 TogglePlayerControllable(playerid, 1);
  811.             }
  812.             else {
  813.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  814.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  815.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  816.                 TogglePlayerControllable(playerid, 1);
  817.             }
  818.             if(listitem == 1)
  819.             {
  820.                 if(pLevel[playerid] >= 49)
  821.                 {
  822.                     Profissao[playerid] = PolicialC;
  823.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  824.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  825.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  826.                     TogglePlayerControllable(playerid, 1);
  827.                 }
  828.                 else {
  829.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  830.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  831.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  832.                     TogglePlayerControllable(playerid, 1);
  833.                 }
  834.             }
  835.             if(listitem == 2)
  836.             {
  837.                 if(pLevel[playerid] >= 69)
  838.                 {
  839.                     Profissao[playerid] = PolicialF;
  840.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  841.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  842.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  843.                     TogglePlayerControllable(playerid, 1);
  844.                 }
  845.                 else {
  846.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  847.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  848.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  849.                     TogglePlayerControllable(playerid, 1);
  850.                 }
  851.             }
  852.             if(listitem == 3)
  853.             {
  854.                 if(pLevel[playerid] >= 29)
  855.                 {
  856.                     Profissao[playerid] = Advogado;
  857.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  858.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  859.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  860.                     TogglePlayerControllable(playerid, 1);
  861.                 }
  862.                 else {
  863.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  864.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  865.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  866.                     TogglePlayerControllable(playerid, 1);
  867.                 }
  868.             }
  869.             if(listitem == 4)
  870.             {
  871.                 if(pLevel[playerid] >= 24)
  872.                 {
  873.                     Profissao[playerid] = GuardaTransito;
  874.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  875.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  876.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  877.                     TogglePlayerControllable(playerid, 1);
  878.                 }
  879.                 else {
  880.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  881.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  882.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  883.                     TogglePlayerControllable(playerid, 1);
  884.                 }
  885.             }
  886.             if(listitem == 5) // Voltar
  887.             {
  888.                 ShowPlayerDialog(playerid,pMenuProf, DIALOG_STYLE_LIST, "Empregos", "{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {FFFAFA}2 {00FF00}]\n{00FF00}[ {FFFAFA}Carreira {FFD700}Criminosa {00FF00}]\n{00FF00}[ {FFD700}Governo {00FF00}]\n{00FF00}[ {FFD700}Transporte {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}da {FFFAFA}Mafia {00FF00}]", "Ok", "Fechar");
  889.             }
  890.             return 1;
  891.         }
  892.     }
  893. }
  894.  
  895. if(dialogid == pTransporte)
  896. {
  897.     if(response)
  898.     {
  899.         if(listitem == 0)
  900.         {
  901.             if(pLevel[playerid] >= 14)
  902.             {
  903.                 Profissao[playerid] = Caminhoneiro;
  904.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  905.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  906.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  907.                 TogglePlayerControllable(playerid, 1);
  908.             }
  909.             else {
  910.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  911.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  912.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  913.                 TogglePlayerControllable(playerid, 1);
  914.             }
  915.             if(listitem == 1)
  916.             {
  917.             if(pLevel[playerid] >= 9)
  918.             {
  919.                 Profissao[playerid] = MotoTaxi;
  920.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  921.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  922.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  923.                 TogglePlayerControllable(playerid, 1);
  924.             }
  925.             else {
  926.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  927.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  928.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  929.                 TogglePlayerControllable(playerid, 1);
  930.                 }
  931.             }
  932.             if(listitem == 2)
  933.             {
  934.             if(pLevel[playerid] >= 9)
  935.             {
  936.                 Profissao[playerid] = Taxista;
  937.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  938.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  939.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  940.                 TogglePlayerControllable(playerid, 1);
  941.             }
  942.             else {
  943.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  944.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  945.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  946.                 TogglePlayerControllable(playerid, 1);
  947.                 }
  948.             }
  949.             if(listitem == 3)
  950.             {
  951.             if(pLevel[playerid] >= 4)
  952.             {
  953.                 Profissao[playerid] = Maquinista;
  954.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  955.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  956.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  957.                 TogglePlayerControllable(playerid, 1);
  958.             }
  959.             else {
  960.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  961.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  962.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  963.                 TogglePlayerControllable(playerid, 1);
  964.                 }
  965.             }
  966.             if(listitem == 4) // Voltar
  967.             {
  968.                 ShowPlayerDialog(playerid,pMenuProf, DIALOG_STYLE_LIST, "Empregos", "{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {FFFAFA}2 {00FF00}]\n{00FF00}[ {FFFAFA}Carreira {FFD700}Criminosa {00FF00}]\n{00FF00}[ {FFD700}Governo {00FF00}]\n{00FF00}[ {FFD700}Transporte {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}da {FFFAFA}Mafia {00FF00}]", "Ok", "Fechar");
  969.             }
  970.             return 1;
  971.         }
  972.     }
  973. }
  974.  
  975.  
  976. if(dialogid == pHonestas)
  977. {
  978.     if(response)
  979.     {
  980.             if(listitem == 0)
  981.             {
  982.             if(pLevel[playerid] >= 0)
  983.             {
  984.                 Profissao[playerid] = VSorvete;
  985.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  986.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  987.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  988.                 TogglePlayerControllable(playerid, 1);
  989.             }
  990.             else {
  991.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  992.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  993.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  994.                 TogglePlayerControllable(playerid, 1);
  995.             }
  996.             if(listitem == 1)
  997.             {
  998.             if(pLevel[playerid] >= 0)
  999.             {
  1000.                 Profissao[playerid] = Paramedico;
  1001.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1002.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1003.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1004.                 TogglePlayerControllable(playerid, 1);
  1005.             }
  1006.             else {
  1007.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1008.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1009.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1010.                 TogglePlayerControllable(playerid, 1);
  1011.             }
  1012.             if(listitem == 2) // Voltar
  1013.             {
  1014.                 ShowPlayerDialog(playerid,pMenuProf, DIALOG_STYLE_LIST, "Empregos", "{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {FFFAFA}2 {00FF00}]\n{00FF00}[ {FFFAFA}Carreira {FFD700}Criminosa {00FF00}]\n{00FF00}[ {FFD700}Governo {00FF00}]\n{00FF00}[ {FFD700}Transporte {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}da {FFFAFA}Mafia {00FF00}]", "Ok", "Fechar");
  1015.             }
  1016.             return 1;
  1017.             }
  1018.         }
  1019.     }
  1020. }
  1021.  
  1022. if(dialogid == 1444)
  1023. {
  1024.     new banco[128];
  1025.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1026.     if(response)
  1027.     {
  1028.         if(strlen(inputtext))
  1029.         {
  1030.             new confirmado[256];
  1031.             confirmado = dini_Get(banco, "SenhaBanco");
  1032.             if(strcmp(inputtext, confirmado, true) == 0)
  1033.             {
  1034.                 SendClientMessage(playerid, -1, "(BANCO) Sua conta bancária foi carregada com sucesso!");
  1035.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1036.                 LogadoBanco[playerid] = 1;
  1037.                 ShowPlayerDialog(playerid, 4242, DIALOG_STYLE_LIST,"Banco","~>    {FFFFFF}[ {00FF00}Sacar {FFFFFF}]\n~>    {FFFFFF}[ {00FF00}Depositar {FFFFFF}]\n~>     {FFFFFF}[ {00FF00}Consultar Saldo {FFFFFF}]\n~>     {FFFFFF}[ {00FF00}Alterar Senha da Conta {FFFFFF}]","Solicitar","Fechar");
  1038.                 if(SenhaBanco[playerid] == true)
  1039.                 {
  1040.                     new str[128];
  1041.                     format(str, sizeof(str), "Nome de usuário: %s\n\nInsira sua nova senha bancária:", pName(playerid));
  1042.                     ShowPlayerDialog(playerid, 4343, DIALOG_STYLE_INPUT, "Conta", str, "Confirmar", "Cancelar");
  1043.                     SenhaBanco[playerid] = false;
  1044.                 }
  1045.             }
  1046.             else {
  1047.                 format(string, sizeof(string), "Senha Incorreta!\n\nNome de usuário: %s\n\nInsira sua senha bancária:", pName(playerid));
  1048.                 ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Conta Bancária", string, "Entrar", "Cancelar");
  1049.                 SendClientMessage(playerid, Vermelho, "(BANCO) Senha Incorreta.");
  1050.             }
  1051.         }
  1052.         else {
  1053.             new str[128];
  1054.             format(str, sizeof(str), "Não deixe o campo em branco!\n\nNome de usuário: %s\n\nInsira sua senha:", pName(playerid));
  1055.             ShowPlayerDialog(playerid, 9997, DIALOG_STYLE_INPUT, "Conta Bancária", str, "Entrar", "Cancelar");
  1056.         }
  1057.     }
  1058. }
  1059.  
  1060. if(dialogid == 4343)
  1061. {
  1062.     new banco[128];
  1063.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1064.     if(response)
  1065.     {
  1066.         dini_Set(banco, "SenhaBanco", inputtext);
  1067.         format(string, sizeof(string), "(BANCO) %s sua senha bancária foi alterada com sucesso!", pName(playerid));
  1068.         SendClientMessage(playerid, Verde, string);
  1069.         format(string, sizeof(string), "(BANCO) Sua nova senha bancária: %s", inputtext);
  1070.         SendClientMessage(playerid, Verde, string);
  1071.     }
  1072. }
  1073.  
  1074. if(dialogid == 1442)
  1075. {
  1076.     new banco[128];
  1077.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1078.     if(response)
  1079.     {
  1080.         if(strlen(inputtext))
  1081.         {
  1082.             dini_Create(banco);
  1083.             dini_Set(banco, "SenhaBanco", inputtext);
  1084.             dini_IntSet(banco, "SaldoBancario", 500);
  1085.             GameTextForPlayer(playerid, "~w~Conta ~n~ Criada", 3000, 1);
  1086.             GivePlayerMoney(playerid, 500);
  1087.             SendClientMessage(playerid, -1, "(BANCO) Sua conta bancária foi criada com sucesso!");
  1088.             PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1089.             LogadoBanco[playerid] = 1;
  1090.         }
  1091.         else {
  1092.             new str[128];
  1093.             format(str, sizeof(str), "Não deixe o campo em branco!\n\nNome de usuário: %s\n\nInsira uma senha:", pName(playerid));
  1094.             ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Conta Bancária", str, "Criar", "Cancelar");
  1095.         }
  1096.     }
  1097. }
  1098.  
  1099. if(dialogid == 4242)   // Bank
  1100. {
  1101.     new banco[128];
  1102.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1103.     new saldo = dini_Int(banco, "SaldoBancario");
  1104.     if(response)
  1105.     {
  1106.         if(listitem == 0)
  1107.         { // Sacar
  1108.             format(string, sizeof(string), "* Digite a quantia a sacar.");
  1109.             SendClientMessage(playerid, Verde, string);
  1110.             format(StringLg, sizeof(StringLg), "Nome do Usuário: %s\n\nDigite a quantia que deseja sacar e aperte \"Sacar\".\n\n ~ Brasil Games", pName(playerid));
  1111.             ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "Banco", StringLg, "Sacar", "Sair");
  1112.         }
  1113.         if(listitem == 1)
  1114.         {// Depositar
  1115.             format(string, sizeof(string), "* Digite a quantia a depositar.");
  1116.             SendClientMessage(playerid, Verde, string);
  1117.             format(StringLg, sizeof(StringLg), "Nome do Usuário: %s\n\nDigite a quantia que deseja depositar e aperte \"Depositar\".\n\n ~ Brasil Games", pName(playerid));
  1118.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_INPUT, "Banco", StringLg, "Depositar", "Sair");
  1119.         }
  1120.         if(listitem == 2)
  1121.         {// Ver Saldo
  1122.             format(string, sizeof(string), "\tExtrato Bancário\n\n{FFFAFA}\tNome do Usuário: %s\n\tSaldo Atual: %dR$", pName(playerid), saldo);
  1123.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "                 Saldo",string,"Fechar","");
  1124.         }
  1125.         if(listitem == 3)
  1126.         {// Alterar Senha
  1127.             new str[128];
  1128.             format(str, sizeof(str), "** Banco Brasil Games **\n\nInsira sua senha antiga:", pName(playerid));
  1129.             ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Senha Conta Bancária", str, "Confirmar", "Cancelar");
  1130.             SenhaBanco[playerid] = true;
  1131.         }
  1132.     }
  1133. }
  1134.  
  1135.  
  1136. if(dialogid == LOGIN)
  1137. {
  1138.     if(!response)
  1139.     {
  1140.        SendClientMessage(playerid,-1,"{00BFFF}Voce foi kickado por nao Logar.");
  1141.        Kick(playerid);
  1142.     }
  1143.     else {
  1144.     if(response == 1)
  1145.     {
  1146.         format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  1147.         new senhaacc[256];
  1148.         senhaacc = dini_Get(vfile, "Senha");
  1149.         if(strcmp(inputtext, senhaacc, true) == 0)
  1150.         {
  1151.             pAdmin[playerid] = dini_Int(vfile, "LevelAdmin");
  1152.             GivePlayerMoney(playerid, dini_Int(vfile, "Dinheiro"));
  1153.             SetPlayerWantedLevel(playerid, dini_Int(vfile, "Procurado"));
  1154.             Experiencia[playerid] = dini_Int(vfile, "Experiencia");
  1155.             SetPlayerSkin(playerid, dini_Int(vfile, "Skin"));
  1156.             Preso[playerid] = dini_Int(vfile, "Preso");
  1157.             pLevel[playerid] = dini_Int(vfile, "Level");
  1158.             Profissao[playerid] = dini_Int(vfile, "Profissao");
  1159.             SetSpawnInfo(playerid, 0, 23, 2491.4192, -1958.0892, 13.58, 13.75, 0, 0, 0, 0, 0, 0 );
  1160.             pFase[playerid][Logado] = 1;
  1161.             GivePlayerMoney(playerid, dini_Int(vfile, "Dinheiro"));
  1162.             SpawnPlayer(playerid);
  1163.             GameTextForPlayer(playerid, "~g~Logado ~n~ Com Sucesso", 8000, 1);
  1164.             PlayerPlaySound(playerid, 1057, 0, 0, 0);
  1165.         }
  1166.         else {
  1167.             SendClientMessage(playerid, Vermelho ,"(x) Senha Incorreta");
  1168.             format(StringLg, sizeof(StringLg), "Senha Incorreta, %s\n Tente Digitar sua Senha Novamente!", pName(playerid));
  1169.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", StringLg, "Logar", "Sair");
  1170.             }
  1171.         }
  1172.         else {
  1173.             format(StringLg, sizeof(StringLg), "{FFFAFA}Usuario: {FFD700}%s\n{FFFAFA}Conta: {00FF00}Registrada\n{FFFAFA}Digite sua Senha e Clique em Logar", pName(playerid));
  1174.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", StringLg, "Logar", "Sair");
  1175.             return 1;
  1176.             }
  1177.         }
  1178.     }
  1179.  
  1180. if(dialogid == paislogin)
  1181. {
  1182.     if(response == 1)
  1183.     {// BR
  1184.         SetSpawnInfo(playerid, 0, 30, 2491.4192, -1958.0892, 13.58, 13.75, 0, 0, 0, 0, 0, 0 );
  1185.         SetPlayerSkin(playerid, 30);
  1186.         dini_IntSet(vfile, "Skin", 30);
  1187.         pFase[playerid][pBrasil] = 1;
  1188.         dini_Set(vfile,"Pais", "Brasil");
  1189.         SpawnPlayer(playerid);
  1190.     }// PT
  1191.     else {
  1192.         SetSpawnInfo(playerid, 0, 50, 2491.4192, -1958.0892, 13.58, 13.75, 0, 0, 0, 0, 0, 0 );
  1193.         SetPlayerSkin(playerid, 50);
  1194.         dini_IntSet(vfile, "Skin", 50);
  1195.         dini_Set(vfile,"Pais", "Portugal");
  1196.         pFase[playerid][pPortugal] = 1;
  1197.         SpawnPlayer(playerid);
  1198.     }
  1199.     return 1;
  1200. }
  1201.  
  1202. if(dialogid == SPAWNJ)
  1203. {
  1204.     if(!response)
  1205.     {
  1206.        SendClientMessage(playerid,-1,"{00BFFF}Voce foi kickado por nao registrar/logar.");
  1207.        Kick(playerid);
  1208.     }
  1209.     else {
  1210.     if(response == 1)
  1211.     {
  1212.         format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  1213.         if(!dini_Exists(vfile))
  1214.         {
  1215.             format(StringLg, sizeof(StringLg), "{FFFAFA}Usuario: {FFD700}%s\n{FFFAFA}Conta: {FF0000}Não Registrada\n{FFFAFA}Digite uma Senha e Clique em Registrar", pName(playerid));
  1216.             ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", StringLg, "Registrar", "Sair");
  1217.         }
  1218.         if(dini_Exists(vfile))
  1219.         {
  1220.             format(StringLg, sizeof(StringLg), "{FFFAFA}Usuario: {FFD700}%s\n{FFFAFA}Conta: {00FF00}Registrada\n{FFFAFA}Digite sua Senha e Clique em Logar", pName(playerid));
  1221.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", StringLg, "Logar", "Sair");
  1222.             }
  1223.         }
  1224.     }
  1225. }
  1226. return 1;
  1227. }
  1228.  
  1229. public OnPlayerPickUpPickup(playerid, pickupid)
  1230. {
  1231.     if(pickupid == EntrarPref)
  1232.     {
  1233.          SetPlayerInterior(playerid, 3);
  1234.          GameTextForPlayer(playerid,"~g~Prefeitura", 3000, 1);
  1235.          SetPlayerPos(playerid, 387.3434, 173.8979, 1008.3828);
  1236.     }
  1237.  
  1238.     if(pickupid == SaidaPref)
  1239.     {
  1240.          SetPlayerInterior(playerid, 0);
  1241.          SetPlayerPos(playerid, 1480.9331, -1768.5493, 18.7958);
  1242.     }
  1243.     return 1;
  1244. }
  1245.  
  1246. public ChecarPing(playerid)
  1247. {
  1248.     if(GetPlayerPing(playerid) > 1000) Kick(playerid);
  1249.     return 1;
  1250. }
  1251.  
  1252. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
  1253. {
  1254.     if(pAdmin[playerid] > 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"");
  1255.     SetPlayerPosFindZ(playerid, fX, fY, fZ);
  1256.     return 1;
  1257. }
  1258.  
  1259. public OnVehicleMod(playerid,vehicleid,componentid)
  1260. {
  1261.     printf("Veiculo %d > Estava com o ID: %d > De Nome: %s > Usando o Componente No seu Carro de ID: %d",vehicleid,pName(playerid),playerid,componentid);
  1262.     if(GetPlayerInterior(playerid) == 0)
  1263.     {
  1264.         BanEx(playerid, "Tuning Hack - Mod S0beit"); // Ant-Tunning Hack
  1265.         //Testado e Aprovando :D
  1266.     }
  1267.     return 1;
  1268. }
  1269.  
  1270. public OnPlayerUpdate(playerid)
  1271. {
  1272.     SetPlayerScore(playerid, pLevel[playerid]);
  1273.     if(IsPlayerInAnyVehicle(playerid))
  1274.     {
  1275.         new string[50],carid = GetPlayerVehicleID(playerid);
  1276.         GetVehicleVelocity(carid, velokm[0], velokm[1], velokm[2]);
  1277.         format(string, sizeof(string), "~w~Gasolina: ~r~%i", Gasosa[carid]);
  1278.         GameTextForPlayer(playerid,string,300,1);
  1279.         if(floatround(((floatsqroot(((velokm[0] * velokm[0]) + (velokm[1] * velokm[1]) + (velokm[2] * velokm[2]))) * (170.0))) * 1) > 5)
  1280.         {
  1281.             if(Gasosa[carid] == 0 && Avisado[playerid] == false)
  1282.             {
  1283.                 SendClientMessage(playerid,0xFFFF00AA,"* Seu Combustivel Acabou! Vá até um posto mas próximo para re-abastecer seu veiculo!");
  1284.                 TogglePlayerControllable(playerid, false);
  1285.                 Avisado[playerid] = true;
  1286.             }
  1287.             if(Gasosa[carid] > 0)
  1288.             {
  1289.                 Retirada[playerid]+=1;
  1290.                 if(Retirada[playerid] >= (RETIRAR_KM*13))
  1291.                 {
  1292.                     Gasosa[carid]--;
  1293.                     Retirada[playerid]=0;
  1294.                     Avisado[playerid] = false;
  1295.                 }
  1296.             }
  1297.         }
  1298.     }
  1299.     return 1;
  1300. }
  1301.  
  1302.  
  1303. public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
  1304. {
  1305.     new Float: fVehicle[3];
  1306.     GetVehiclePos(vehicleid, fVehicle[0], fVehicle[1], fVehicle[2]);
  1307.     if(!IsPlayerInRangeOfPoint(playerid, 10, fVehicle[0], fVehicle[1], fVehicle[2]))
  1308.     {
  1309.         return;
  1310.     }
  1311. }
  1312.  
  1313. public LogarProf(playerid)
  1314. {
  1315.     if(Profissao[playerid] == Desempregado)
  1316.     {
  1317.         SetPlayerColor(playerid, -1);
  1318.     }
  1319.     else if(Profissao[playerid] == Caminhoneiro)
  1320.     {
  1321.         SetPlayerColor(playerid, 0x4B687EF6);
  1322.         GivePlayerWeapon(playerid, 7 , 1);
  1323.         SetPlayerSkin(playerid, 8);
  1324.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1325.     }
  1326.     else if(Profissao[playerid] == MotoTaxi)
  1327.     {
  1328.         SetPlayerColor(playerid, 0xCD853FAA);
  1329.         GivePlayerWeapon(playerid, 1 , 1);
  1330.         SetPlayerSkin(playerid, 16);
  1331.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1332.     }
  1333.     else if(Profissao[playerid] == Taxista)
  1334.     {
  1335.         SetPlayerColor(playerid, 0x6F4E8DAA);
  1336.         GivePlayerWeapon(playerid, 5 , 1);
  1337.         SetPlayerSkin(playerid, 61);
  1338.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1339.     }
  1340.     else if(Profissao[playerid] == PolicialM)
  1341.     {
  1342.         SetPlayerColor(playerid, 0x843E65AA);
  1343.         GivePlayerWeapon(playerid,24,500);
  1344.         GivePlayerWeapon(playerid,31,600);
  1345.         GivePlayerWeapon(playerid,29,700);
  1346.         GivePlayerWeapon(playerid,17,400);
  1347.         SetPlayerSkin(playerid, 281);
  1348.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1349.     }
  1350.     else if(Profissao[playerid] == PolicialC)
  1351.     {
  1352.         SetPlayerColor(playerid, 0x007C49AA);
  1353.         GivePlayerWeapon(playerid,24,900);
  1354.         GivePlayerWeapon(playerid,31,800);
  1355.         GivePlayerWeapon(playerid,29,600);
  1356.         GivePlayerWeapon(playerid,17,400);
  1357.         SetPlayerSkin(playerid, 280);
  1358.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1359.     }
  1360.     else if(Profissao[playerid] == PolicialF)
  1361.     {
  1362.         SetPlayerColor(playerid, 0x004E00AA);
  1363.         GivePlayerWeapon(playerid,24,600);
  1364.         GivePlayerWeapon(playerid,31,300);
  1365.         GivePlayerWeapon(playerid,29,300);
  1366.         GivePlayerWeapon(playerid,17,200);
  1367.         SetPlayerSkin(playerid, 283);
  1368.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1369.     }
  1370.     else if(Profissao[playerid] == VDrogas)
  1371.     {
  1372.         SetPlayerColor(playerid, 0x004E00AA);
  1373.         GivePlayerWeapon(playerid, 23, 400);
  1374.         GivePlayerWeapon(playerid, 25, 200);
  1375.         SetPlayerSkin(playerid, 273);
  1376.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1377.     }
  1378.     else if(Profissao[playerid] == TrafArmas)
  1379.     {
  1380.         SetPlayerColor(playerid, 0x485807AA);
  1381.         GivePlayerWeapon(playerid, 28, 400);
  1382.         GivePlayerWeapon(playerid, 30, 300);
  1383.         SetPlayerSkin(playerid, 293);
  1384.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1385.     }
  1386.     else if(Profissao[playerid] == GuardaTransito)
  1387.     {
  1388.         SetPlayerColor(playerid, 0xAA4B27AA);
  1389.         GivePlayerWeapon(playerid,3,1);
  1390.         GivePlayerWeapon(playerid,23,200);
  1391.         SetPlayerSkin(playerid, 284);
  1392.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1393.     }
  1394.     else if(Profissao[playerid] == Advogado)
  1395.     {
  1396.         SetPlayerColor(playerid, 0x8C00F6AA);
  1397.         GivePlayerWeapon(playerid,46,0);
  1398.         SetPlayerSkin(playerid, 59);
  1399.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1400.     }
  1401.     else if(Profissao[playerid] == VSorvete)
  1402.     {
  1403.         SetPlayerColor(playerid, Verde);
  1404.         GivePlayerWeapon(playerid,5,0);
  1405.         SetPlayerSkin(playerid, 229);
  1406.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1407.     }
  1408.     else if(Profissao[playerid] == Paramedico)
  1409.     {
  1410.         SetPlayerColor(playerid, 0x2641FEAA);
  1411.         SetPlayerSkin(playerid, 275);
  1412.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1413.     }
  1414.     else if(Profissao[playerid] == Hacker)
  1415.     {
  1416.         SetPlayerColor(playerid, 0xEEB4B4AA);
  1417.         SetPlayerSkin(playerid, 123);
  1418.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1419.     }
  1420.     return 1;
  1421. }
  1422.  
  1423. /*public GanharExp(playerid)
  1424. {
  1425.     for(new i=0; i<MAX_PLAYERS; i++)
  1426.     {
  1427.         if(IsPlayerConnected(i))
  1428.         {
  1429.             dini_IntSet(vfile, "TempoExp", dini_Int(vfile, "TempoExp")+1);
  1430.             static sStr[128];
  1431.             if(dini_Int(vfile, "TempoExp") >= 1)
  1432.             {
  1433.                 dini_IntSet(vfile, "ExpJogador", dini_Int(vfile, "ExpJogador")+1);
  1434.                 dini_IntSet(vfile, "TempoExp",0);
  1435.                 GameTextForPlayer(i,"~g~+1 Exp", 3000, 1);
  1436.                 format(sStr, 64,"[ EXP ] %s Voce ganhou +1 Exp Formando : %d/5 ",pName(playerid),dini_Int(vfile, "ExpJogador"));
  1437.                 SendClientMessage(i, 0x75EA00AA, sStr);
  1438.             }
  1439.             if(dini_Int(vfile, "ExpJogador") >= 5)
  1440.             {
  1441.                 format(sStr, 64,"[ Level Up ] Você Passou de Level. -> Level Atual: %d ",dini_Int(vfile, "Level"));
  1442.                 SendClientMessage(i, 0x75EA00AA, sStr);
  1443.                 GameTextForPlayer(i,"~g~Level ~n~ ~y~UP", 3000, 1);
  1444.                 PlayerPlaySound(i, 1057, 0, 0, 0);
  1445.                 dini_IntSet(vfile, "Level", dini_Int(vfile, "Level")+1);
  1446.                 dini_IntSet(vfile, "ExpJogador",0);
  1447.             }
  1448.         }
  1449.     }
  1450.     return 1;
  1451. }*/
  1452.  
  1453. public TempoExpMinuto()
  1454. {
  1455.     for(new i=0; i < MAX_PLAYERS; i++)
  1456.     {
  1457.         if(IsPlayerConnected(i))
  1458.         {
  1459.             if(TempoLevelMinuto[i] == 0)
  1460.             {
  1461.                 TempoLevelMinuto[i] = 10;
  1462.             }
  1463.             if(TempoLevelMinuto[i] == 1)
  1464.             {
  1465.                 TempoLevelMinuto[i] = 10;
  1466.             }
  1467.             else
  1468.             {
  1469.                 TempoLevelMinuto[i]--;
  1470.             }
  1471.         }
  1472.     }
  1473.     return 1;
  1474. }
  1475.  
  1476. public Firewall(playerid)
  1477. {
  1478.     for(new i=0; i < MAX_PLAYERS; i++)
  1479.     {
  1480.         if(IsPlayerConnected(i))
  1481.         {
  1482.             FirewallOn[i] = 1;
  1483.             KillTimer(KillFirewall[i]);
  1484.             SendClientMessage(i, 0xCD0000AA, "* O Firewall do Banco Está desligado, Cuidado com os Hackers! Protejam suas Contas!");
  1485.         }
  1486.     }
  1487.     RoubarBanco[playerid] = 0;
  1488.     SendClientMessage(playerid, 0xCD0000AA, "* Você demorou demais e o firewall foi re-ativado!");
  1489.     KillFirewallOn = SetTimer("FirewallLigado", 60000 * 30, false);
  1490.     AcessoOn[playerid] = false;
  1491.     return 1;
  1492. }
  1493.  
  1494. public FirewallLigado()
  1495. {
  1496.     for(new i=0; i < MAX_PLAYERS; i++)
  1497.     {
  1498.         if(IsPlayerConnected(i))
  1499.         {
  1500.             KillTimer(KillFirewallOn);
  1501.             KillTimer(KillFirewallOn2);
  1502.             KillTimer(KillFirewallOn3);
  1503.             FirewallOn[i] = 0;
  1504.             return 1;
  1505.         }
  1506.     }
  1507.     return 1;
  1508. }
  1509.  
  1510. public LimiteGrana(playerid)
  1511. {
  1512.     for(new i=0; i < MAX_PLAYERS; i++)
  1513.     {
  1514.         if(IsPlayerConnected(i))
  1515.         {
  1516.             FirewallOn[i] = 1;
  1517.         }
  1518.     }
  1519.     KillTimer(KillAcesso);
  1520.     KillTimer(KillTransferencia);
  1521.     RoubarBanco[playerid] = 0;
  1522.     SendClientMessage(playerid, 0xCD0000AA, "* O Firewall do Banco Foi Ativado Novamente!");
  1523.     AcessoOn[playerid] = false;
  1524.     KillFirewallOn2 = SetTimer("FirewallLigado", 60000 * 30, false);
  1525.     return 1;
  1526. }
  1527.  
  1528. public AcessoBanco(playerid)
  1529. {
  1530.     if(PlayerToPoint(1.0, playerid, 823.0374, 2.9839, 1004.1797))
  1531.     {
  1532.         GivePlayerMoney(playerid, 75);
  1533.         AcessoOn[playerid] = false;
  1534.         SendClientMessage(playerid, 0x00B2EEAA, "* Transferindo dinheiro!");
  1535.         SetPlayerWantedLevel(playerid, 3);
  1536.         return 1;
  1537.     }
  1538.     else
  1539.     {
  1540.         for(new i=0; i < MAX_PLAYERS; i++)
  1541.         {
  1542.             if(IsPlayerConnected(i))
  1543.             {
  1544.                 FirewallOn[i] = 1;
  1545.             }
  1546.         }
  1547.         KillTimer(KillAcesso);
  1548.         KillTimer(KillTransferencia);
  1549.         SendClientMessage(playerid, 0xFF0000AA, "* Porta do Firewall desligada!!");
  1550.         RoubarBanco[playerid] = 0;
  1551.         KillFirewallOn3 = SetTimer("FirewallLigado", 60000 * 30, false);
  1552.         AcessoOn[playerid] = false;
  1553.         return 1;
  1554.     }
  1555. }
  1556.  
  1557. public GanharExp()
  1558. {
  1559.     for(new i=0; i < MAX_PLAYERS; i++)
  1560.     {
  1561.         new string[128];
  1562.         format(vfile, sizeof(vfile), DIRETORIO, pName(i));
  1563.         if(IsPlayerConnected(i))
  1564.         {
  1565.             if(pFase[i][Logado] == 1)
  1566.             {
  1567.                 if(Experiencia[i] >= 5)
  1568.                 {
  1569.                     pLevel[i]++;
  1570.                     Experiencia[i] = 0;
  1571.                     TempoLevelMinuto[i] = 10;
  1572.                     format(string, sizeof(string), "[ Level Up ] Você acaba de Ganhar +1 level! Level Atual: %d", pLevel[i]);
  1573.                     SendClientMessage(i, 0x00FF00AA, string);
  1574.                     PlayerPlaySound(i, 1057, 0.0, 0.0, 10.0);
  1575.                     GameTextForPlayer(i,"~g~Level ~n~ ~y~UP", 3000, 1);
  1576.                     dini_IntSet(vfile, "ExpJogador", Experiencia[i]);
  1577.                     dini_IntSet(vfile, "Level", pLevel[i]);
  1578.                 }
  1579.                 else
  1580.                 {
  1581.                     Experiencia[i]++;
  1582.                     TempoLevelMinuto[i] = 10;
  1583.                     format(string, sizeof(string), "[ Exp ] Você acaba de Ganhar + 1 Ponto de Experiencia (%d/5)", Experiencia[i]);
  1584.                     SendClientMessage(i, 0x00FF00AA, string);
  1585.                     PlayerPlaySound(i, 1057, 0.0, 0.0, 10.0);
  1586.                     dini_IntSet(vfile, "ExpJogador", Experiencia[i]);
  1587.                 }
  1588.             }
  1589.         }
  1590.     }
  1591.     return 1;
  1592. }
  1593.  
  1594. public AtualizarChatBubble()
  1595. {
  1596.     for(new x=0; x < MAX_PLAYERS; x++)
  1597.     {
  1598.         if(pAdmin[x] > 3)
  1599.         {
  1600.             SetPlayerChatBubble(x, "Administrador", 0x0080C0AA, 100.0, 10000);
  1601.         }
  1602.     }
  1603. }
  1604.  
  1605. public ReprovarC(playerid)
  1606. {
  1607.     KillTimer(reprovado[playerid]);
  1608.     SendClientMessage(playerid, 0x548B54AA, "==============[ Reprovado ]==============");
  1609.     SendClientMessage(playerid, -1, "* O Seu Curriculo foi analizado e reprovado!");
  1610.     SendClientMessage(playerid, -1, "* Para melhorar Seu Curriculo, Você terá que passar de level!");
  1611.     SendClientMessage(playerid, 0x548B54AA, "==============[ Reprovado ]==============");
  1612.     return 1;
  1613. }
  1614.  
  1615. public CheckCurriculo(playerid)
  1616. {
  1617.     format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  1618.     if(Profissao[playerid] == Caminhoneiro)
  1619.     {
  1620.         KillTimer(aprovado[playerid]);
  1621.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1622.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1623.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é Caminhoneiro!");
  1624.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1625.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1626.         LogarProf(playerid);
  1627.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1628.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1629.         TogglePlayerControllable(playerid, 1);
  1630.     }
  1631.     else if(Profissao[playerid] == MotoTaxi)
  1632.     {
  1633.         KillTimer(aprovado[playerid]);
  1634.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1635.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1636.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Moto Taxista!");
  1637.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1638.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1639.         LogarProf(playerid);
  1640.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1641.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1642.         TogglePlayerControllable(playerid,1);
  1643.     }
  1644.     else if(Profissao[playerid] == Taxista)
  1645.     {
  1646.         KillTimer(aprovado[playerid]);
  1647.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1648.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1649.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Taxista!");
  1650.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1651.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1652.         LogarProf(playerid);
  1653.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1654.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1655.         TogglePlayerControllable(playerid,1);
  1656.     }
  1657.     else if(Profissao[playerid] == Maquinista)
  1658.     {
  1659.         KillTimer(aprovado[playerid]);
  1660.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1661.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1662.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Maquinista!");
  1663.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1664.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1665.         LogarProf(playerid);
  1666.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1667.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1668.         TogglePlayerControllable(playerid,1);
  1669.     }
  1670.     else if(Profissao[playerid] == PolicialM)
  1671.     {
  1672.         KillTimer(aprovado[playerid]);
  1673.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1674.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1675.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Policial Militar!");
  1676.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1677.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1678.         LogarProf(playerid);
  1679.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1680.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1681.         TogglePlayerControllable(playerid, 1);
  1682.     }
  1683.     else if(Profissao[playerid] == PolicialC)
  1684.     {
  1685.         KillTimer(aprovado[playerid]);
  1686.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1687.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1688.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Policial Civil!");
  1689.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1690.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1691.         LogarProf(playerid);
  1692.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1693.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1694.         TogglePlayerControllable(playerid, 1);
  1695.     }
  1696.     else if(Profissao[playerid] == PolicialF)
  1697.     {
  1698.         KillTimer(aprovado[playerid]);
  1699.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1700.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1701.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Policial Federal!");
  1702.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1703.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1704.         LogarProf(playerid);
  1705.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1706.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1707.         TogglePlayerControllable(playerid, 1);
  1708.     }
  1709.     else if(Profissao[playerid] == VDrogas)
  1710.     {
  1711.         KillTimer(aprovado[playerid]);
  1712.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1713.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1714.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Vendedor de Drogas!");
  1715.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1716.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1717.         LogarProf(playerid);
  1718.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1719.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1720.         TogglePlayerControllable(playerid, 1);
  1721.     }
  1722.     else if(Profissao[playerid] == TrafArmas)
  1723.     {
  1724.         KillTimer(aprovado[playerid]);
  1725.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1726.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1727.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Traficante de Armas!");
  1728.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1729.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1730.         LogarProf(playerid);
  1731.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1732.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1733.         TogglePlayerControllable(playerid, 1);
  1734.     }
  1735.     else if(Profissao[playerid] == GuardaTransito)
  1736.     {
  1737.         KillTimer(aprovado[playerid]);
  1738.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1739.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1740.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Guarda de Transito!");
  1741.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1742.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1743.         LogarProf(playerid);
  1744.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1745.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1746.         TogglePlayerControllable(playerid, 1);
  1747.     }
  1748.     else if(Profissao[playerid] == Advogado)
  1749.     {
  1750.         KillTimer(aprovado[playerid]);
  1751.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1752.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1753.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Advogado!");
  1754.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1755.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1756.         LogarProf(playerid);
  1757.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1758.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1759.         TogglePlayerControllable(playerid, 1);
  1760.     }
  1761.     else if(Profissao[playerid] == VSorvete)
  1762.     {
  1763.         KillTimer(aprovado[playerid]);
  1764.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1765.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1766.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Vendedor de Sorvete!");
  1767.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1768.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1769.         LogarProf(playerid);
  1770.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1771.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1772.         TogglePlayerControllable(playerid, 1);
  1773.     }
  1774.     else if(Profissao[playerid] == Paramedico)
  1775.     {
  1776.         KillTimer(aprovado[playerid]);
  1777.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1778.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1779.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Paramedico!");
  1780.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1781.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1782.         LogarProf(playerid);
  1783.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1784.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1785.         TogglePlayerControllable(playerid, 1);
  1786.     }
  1787.     else if(Profissao[playerid] == Hacker)
  1788.     {
  1789.         KillTimer(aprovado[playerid]);
  1790.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1791.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1792.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Hacker!");
  1793.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1794.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1795.         LogarProf(playerid);
  1796.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1797.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1798.         TogglePlayerControllable(playerid, 1);
  1799.     }
  1800.     return 1;
  1801. }
  1802.  
  1803.  
  1804. public Liberar(playerid)
  1805. {
  1806.     SetPlayerInterior(playerid, 0);
  1807.     SpawnPlayer(playerid);
  1808.     SetPlayerWantedLevel(playerid, 0);
  1809.     Preso[playerid] = 0;
  1810.     SendClientMessage(playerid, 0xA9C4E4AA, "(CADEIA) Você foi solto automáticamente por cumprir a sua pena na cadeia!");
  1811.     //KillTimer(TempoPreso[playerid]);
  1812.     return 1;
  1813. }
  1814.  
  1815. public PayDay()
  1816. {
  1817.     new str[128],banco[128], aname[MAX_PLAYER_NAME];
  1818.     for(new i = 0; i<MAX_PLAYERS; i++)
  1819.     {
  1820.         format(banco, sizeof(banco), DBANCO, aname);
  1821.         //if(!dini_Exists(banco))
  1822.         //{
  1823.         if(dini_Int(vfile, "TContaBancaria") == 0)
  1824.         {
  1825.             SendClientMessage(i, Vermelho, "* Você não tem uma conta bancária, e assim não receberá seu salário.");
  1826.             SendClientMessage(i, Vermelho, "* Para abrir uma conta bancária procure um banco mais próximo de você.");
  1827.             return 1;
  1828.         }
  1829.         if(dini_Int(vfile, "TContaBancaria") == 1)
  1830.         {
  1831.             format(str, sizeof(str), "* Você recebeu seu salário.");
  1832.             SendClientMessage(i, 0xCAFF95AA, str);
  1833.             PlayerPlaySound(i, 1057, 0, 0, 0);
  1834.         }
  1835.         if(Profissao[i] == Desempregado)
  1836.         {
  1837.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+SeguroDesemprego);
  1838.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1839.             format(str,128,"Você Recebeu o Seguro-Desemprego e Ganhou : %d", SeguroDesemprego);
  1840.             SendClientMessage(i, -1, str);
  1841.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1842.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1843.         }
  1844.         else if(Profissao[i] == Caminhoneiro)
  1845.         {
  1846.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Caminhao);
  1847.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1848.             format(str,128,"Você trabalha como Caminhoneiro e Ganhou: %d", Salario_Caminhao);
  1849.             SendClientMessage(i, -1, str);
  1850.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1851.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1852.         }
  1853.         else if(Profissao[i] == Taxista)
  1854.         {
  1855.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Taxi);
  1856.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1857.             format(str,128,"Você trabalha como Taxista e Ganhou: %d", Salario_Taxi);
  1858.             SendClientMessage(i, -1, str);
  1859.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1860.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1861.         }
  1862.         else if(Profissao[i] == MotoTaxi)
  1863.         {
  1864.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Maquinista);
  1865.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1866.             format(str,128,"Você trabalha como Maquinista e Ganhou: %d", Salario_Maquinista);
  1867.             SendClientMessage(i, -1, str);
  1868.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1869.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1870.         }
  1871.         else if(Profissao[i] == PolicialM)
  1872.         {
  1873.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_PolicialM);
  1874.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1875.             format(str,128,"Você trabalha como Policial Militar e Ganhou: %d", Salario_PolicialM);
  1876.             SendClientMessage(i, -1, str);
  1877.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1878.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1879.         }
  1880.         else if(Profissao[i] == PolicialC)
  1881.         {
  1882.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_PolicialC);
  1883.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1884.             format(str,128,"Você trabalha como Policial Civil e Ganhou: %d", Salario_PolicialC);
  1885.             SendClientMessage(i, -1, str);
  1886.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1887.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1888.         }
  1889.         else if(Profissao[i] == PolicialF)
  1890.         {
  1891.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_PolicialF);
  1892.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1893.             format(str,128,"Você trabalha como Policial Federal e Ganhou: %d", Salario_PolicialF);
  1894.             SendClientMessage(i, -1, str);
  1895.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1896.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1897.         }
  1898.         else if(Profissao[i] == VDrogas)
  1899.         {
  1900.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_VDrogas);
  1901.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1902.             format(str,128,"Você trabalha como Vendedor de Dorgas e Ganhou: %d", Salario_VDrogas);
  1903.             SendClientMessage(i, -1, str);
  1904.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1905.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1906.         }
  1907.         else if(Profissao[i] == TrafArmas)
  1908.         {
  1909.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_TrafArmas);
  1910.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1911.             format(str,128,"Você trabalha como Traficante de Armas e Ganhou: %d", Salario_TrafArmas);
  1912.             SendClientMessage(i, -1, str);
  1913.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1914.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1915.         }
  1916.         else if(Profissao[i] == GuardaTransito)
  1917.         {
  1918.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_GuardaTr);
  1919.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1920.             format(str,128,"Você trabalha como Guarda de Transito e Ganhou: %d", Salario_GuardaTr);
  1921.             SendClientMessage(i, -1, str);
  1922.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1923.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1924.         }
  1925.         else if(Profissao[i] == Advogado)
  1926.         {
  1927.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Advogado);
  1928.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1929.             format(str,128,"Você trabalha como Advogado e Ganhou: %d", Salario_Advogado);
  1930.             SendClientMessage(i, -1, str);
  1931.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1932.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1933.         }
  1934.         else if(Profissao[i] == VSorvete)
  1935.         {
  1936.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_VSorvete);
  1937.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1938.             format(str,128,"Você trabalha como Vendedor de Sorvete e Ganhou: %d", Salario_VSorvete);
  1939.             SendClientMessage(i, -1, str);
  1940.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1941.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1942.         }
  1943.         else if(Profissao[i] == Paramedico)
  1944.         {
  1945.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Paramedico);
  1946.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1947.             format(str,128,"Você trabalha como Paramedico e Ganhou: %d", Salario_Paramedico);
  1948.             SendClientMessage(i, -1, str);
  1949.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1950.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1951.         }
  1952.         else if(Profissao[i] == Hacker)
  1953.         dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Hacker);
  1954.         SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1955.         format(str,128,"Você trabalha como Hacker e Ganhou: %d", Salario_Hacker);
  1956.         SendClientMessage(i, -1, str);
  1957.         SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  1958.         SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  1959.     }
  1960.     return 1;
  1961. }
  1962.  
  1963.  
  1964. public OnPlayerExitedMenu(playerid)
  1965. {
  1966.     TogglePlayerControllable(playerid,1);
  1967.     return 1;
  1968. }
  1969.  
  1970. stock SetPlayerPosEx(playerid,Float:X,Float:Y,Float:Z)
  1971. {
  1972.     PlayerEnterTime[playerid]+=221;
  1973.     SetPlayerPos(playerid,X,Y,Z);
  1974. }
  1975.  
  1976. stock PutPlayerInVehicleEx(playerid,vehicleid,seatid)
  1977. {
  1978.     PlayerEnterTime[playerid]+=221;
  1979.     PutPlayerInVehicle(playerid,vehicleid,seatid);
  1980. }
  1981.  
  1982. stock RemovePlayerFromVehicleEx(playerid)
  1983. {
  1984.     PlayerEnterTime[playerid]+=221;
  1985.     RemovePlayerFromVehicle(playerid);
  1986. }
  1987.  
  1988. stock strrest(const string[], &index)
  1989. {
  1990.     new length = strlen(string);
  1991.     while ((index < length) && (string[index] <= ' '))
  1992.     {
  1993.         index++;
  1994.     }
  1995.     new offset = index;
  1996.     new result[128];
  1997.     while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
  1998.     {
  1999.         result[index - offset] = string[index];
  2000.         index++;
  2001.     }
  2002.     result[index - offset] = EOS;
  2003.     return result;
  2004. }
  2005.  
  2006. stock GetPlayerArea(playerid)
  2007. {
  2008.     new str[130];
  2009.     format(str,sizeof(str),"%s",Zones[GetPlayerZone(playerid)][zone_name]);
  2010.     return str;
  2011. }
  2012.  
  2013. stock chrfind(needle, haystack[], start = 0)
  2014. {
  2015.     while(haystack[start])
  2016.     {
  2017.         if(haystack[start++] == needle)
  2018.         {
  2019.             return start-1;
  2020.         }
  2021.     }
  2022.     return -1;
  2023. }
  2024.  
  2025. stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
  2026. {
  2027.     new RetValue = 0;
  2028.     new Float:X,Float:Y,Float:Z;
  2029.     GetPlayerPos(playerid,X,Y,Z );
  2030.  
  2031.     if( X >= XMin && Y >= YMin && X < XMax && Y < YMax )
  2032.     {
  2033.         RetValue = 1;
  2034.     }
  2035.     return RetValue;
  2036. }
  2037.  
  2038. stock SetTimers()
  2039. {
  2040.     SetTimer("ChecarPing", 60000, 1);
  2041.     SetTimer("LoteriaPublic", 600000, 1);
  2042.     SetTimer("AntAfk", 1000, 1);
  2043.     SetTimer("Payday", 2400000 , 1);
  2044.     SetTimer("GanharExp", 600000 , 1);
  2045.     SetTimer("AtualizarChatBubble", 10000, true);
  2046.     SetTimer("TempoExpMinuto", 60000, 1);
  2047. }
  2048.  
  2049. stock GetPlayerDistanceToPoint(playerid,Float:x,Float:y)
  2050. {
  2051.     new Float:x1,Float:y1,Float:z1;
  2052.     new Float:tmpdis;
  2053.     GetPlayerPos(playerid,x1,y1,z1);
  2054.     tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2));
  2055.     return floatround(tmpdis);
  2056. }
  2057.  
  2058. stock IsPlayerFlooding(playerid)
  2059. {
  2060.     if(GetTickCount() - iPlayerChatTime[playerid] < 2000)
  2061.         return 1;
  2062.     return 0;
  2063. }
  2064.  
  2065.  
  2066. stock ConverterTexto(string[])
  2067. {
  2068.     for(new arraysize = 0; arraysize < strlen(string); arraysize++)
  2069.     {
  2070.         if(strfind(string, "â", true) != -1){new pos = strfind(string, "â", true); strdel(string, pos, pos+strlen("â")); strins(string, "™", pos, sizeof(pos));}
  2071.         if(strfind(string, "ã", true) != -1){new pos = strfind(string, "ã", true); strdel(string, pos, pos+strlen("ã")); strins(string, "š", pos, sizeof(pos));}
  2072.         if(strfind(string, "á", true) != -1){new pos = strfind(string, "á", true); strdel(string, pos, pos+strlen("á")); strins(string, "˜", pos, sizeof(pos));}
  2073.         if(strfind(string, "é", true) != -1){new pos = strfind(string, "é", true); strdel(string, pos, pos+strlen("é")); strins(string, "ž", pos, sizeof(pos));}
  2074.         if(strfind(string, "ú", true) != -1){new pos = strfind(string, "ú", true); strdel(string, pos, pos+strlen("ú")); strins(string, "“", pos, sizeof(pos));}
  2075.         if(strfind(string, "ó", true) != -1){new pos = strfind(string, "ó", true); strdel(string, pos, pos+strlen("ó")); strins(string, "¦", pos, sizeof(pos));}
  2076.         if(strfind(string, "ê", true) != -1){new pos = strfind(string, "ê", true); strdel(string, pos, pos+strlen("ê")); strins(string, "Ÿ", pos, sizeof(pos));}
  2077.         if(strfind(string, "í", true) != -1){new pos = strfind(string, "í", true); strdel(string, pos, pos+strlen("í")); strins(string, "¢", pos, sizeof(pos));}
  2078.         if(strfind(string, "ç", true) != -1){new pos = strfind(string, "ç", true); strdel(string, pos, pos+strlen("ç")); strins(string, "œ", pos, sizeof(pos));}
  2079.         if(strfind(string, "ô", true) != -1){new pos = strfind(string, "ô", true); strdel(string, pos, pos+strlen("ô")); strins(string, "§", pos, sizeof(pos));}
  2080.     }
  2081. }
  2082.  
  2083. public AntAfk(playerid)
  2084. {
  2085.     if(!floatcmp(PlayerPosAfk[ 0 ], PlayerLastPos[ playerid ][ LastX ]) && !floatcmp(PlayerPosAfk[ 1 ], PlayerLastPos[ playerid ][ LastY ]))
  2086.     {
  2087.         PlayerAfkTicks[ playerid ] ++;
  2088.     }
  2089.     else {
  2090.         PlayerAfkTicks[ playerid ] = 0;
  2091.     }
  2092.     PlayerLastPos[ playerid ][ LastX ] = PlayerPosAfk[ 0 ];
  2093.     PlayerLastPos[ playerid ][ LastY ] = PlayerPosAfk[ 1 ];
  2094.     PlayerLastPos[ playerid ][ LastZ ] = PlayerPosAfk[ 2 ];
  2095.     if(PlayerAfkTicks[ playerid ] == MAX_TEMPO_AFK * 60)
  2096.     {
  2097.         pAFK[ playerid ] = 1;
  2098.         SendClientMessage( playerid, Amarelo, "[ ANT - AFK ] Você foi bloqueado de passar de nivel!");
  2099.         SetPlayerVirtualWorld( playerid, 1);
  2100.         SetCameraBehindPlayer( playerid );
  2101.         TogglePlayerControllable( playerid, 0);
  2102.         TextDrawShowForPlayer( playerid, AfkText);
  2103.         TextDrawShowForPlayer( playerid, AfkBackText);
  2104.     }
  2105.     return 1;
  2106. }
  2107.  
  2108. public BanLog(string[])
  2109. {
  2110.     new entry[256];
  2111.     format(entry, sizeof(entry), "%s\r\n",string);
  2112.     new File:hFile;
  2113.     hFile = fopen("Ban.log", io_append);
  2114.     fwrite(hFile, entry);
  2115.     fclose(hFile);
  2116. }
  2117.  
  2118. public LoteriaPublic()
  2119. {
  2120.     new stringcm[256];
  2121.     new numerosorteado = randomEx(0, 99);
  2122.     new rand = random(15000); rand += 5000;
  2123.     DinheiroAcumuladoLoto += rand;
  2124.     for(new i=0; i<MAX_PLAYERS; i++)
  2125.     {
  2126.         if(TaJogando[i] == 1)
  2127.         {
  2128.             if(vernumerosorteado[i] == numerosorteado)
  2129.             {
  2130.                 TGanhador = i;
  2131.             }
  2132.             TaJogando[i] = 0;
  2133.             NumeroLoto[i] = 0;
  2134.         }
  2135.     }
  2136.     if(TGanhador != 0)
  2137.     {
  2138.         format(stringcm, sizeof(stringcm), "( Loteria ) %s ganhou %iR$ Na Loteria!!! - Número Sorteado: %i - Parabens ao Ganhador!", pName(TGanhador), DinheiroAcumuladoLoto, numerosorteado);
  2139.         GivePlayerMoney(TGanhador, DinheiroAcumuladoLoto);
  2140.         SendClientMessageToAll(Verde, stringcm);
  2141.         TGanhador = -1;
  2142.     }
  2143.     format(stringcm, sizeof(stringcm), "( Loteria ) Prêmio Acumulado: %iR$ - Número Sorteado: %i - Nenhum Ganhador", DinheiroAcumuladoLoto, numerosorteado); // %i %i = antigo
  2144.     SendClientMessageToAll(Verde, stringcm);
  2145.     return 1;
  2146. }
  2147.  
  2148. stock randomEx(minnum = cellmin,maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
  2149.  
  2150. stock pName(playerid)
  2151. {
  2152.     new aname[24];
  2153.     GetPlayerName(playerid,aname,24);
  2154.     return aname;
  2155. }
  2156.  
  2157.  
  2158. stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  2159. {
  2160.     new Float:oldposx, Float:oldposy, Float:oldposz;
  2161.     new Float:tempposx, Float:tempposy, Float:tempposz;
  2162.     GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  2163.     tempposx = (oldposx -x);
  2164.     tempposy = (oldposy -y);
  2165.     tempposz = (oldposz -z);
  2166.     if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz >-radi)))
  2167.     {
  2168.         return true;
  2169.     }
  2170.     return false;
  2171. }
  2172.  
  2173. stock AtualizarRG(playerid)
  2174. {
  2175.     SendClientMessage(playerid, 0x00FFFFAA, " ");
  2176.     SendClientMessage(playerid, 0x00FFFFAA, " ");
  2177.     new String[128];
  2178.     static HabTerrestre[MAX_PLAYERS], HabNautica[MAX_PLAYERS], Porte[MAX_PLAYERS], HabAerea[MAX_PLAYERS];
  2179.     format(String, sizeof(String),"» Nome do Personagem : %s",pName(playerid));
  2180.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2181.     format(String, sizeof(String),"Level: [%d] » Saldo Em Mãos: [%d] » Pais: [%s]", dini_Int(vfile, "Level"), GetPlayerMoney(playerid), dini_Get(vfile, "Pais"));
  2182.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2183.     format(String, sizeof(String),"Exp: [%d/5] » Skin: [%d] » Saldo Bancario: [%d]", dini_Int(vfile, "Exp"), dini_Int(vfile,"Skin"), dini_Int(vfile, "SaldoBancario"));
  2184.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2185.     new terrestre[10], nautica[10], aerea[10], porte[10];
  2186.     if(HabTerrestre[playerid] == 1)
  2187.     { terrestre = "Sim"; } else { terrestre = "Nao"; }
  2188.     if(HabNautica[playerid] == 1)
  2189.     { nautica = "Sim"; } else { nautica = "Nao"; }
  2190.     if(HabAerea[playerid] == 1) {
  2191.     aerea = "Sim"; } else { aerea = "Nao";
  2192.     }
  2193.     if(Porte[playerid] == 1) { porte = "Sim"; } else { porte = "Nao";
  2194.     }
  2195.     return true;
  2196. }
  2197.  
  2198. stock GetDistanceBetweenPlayers(playerid,playerid2)
  2199. {
  2200.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  2201.     new Float:tmpdis;
  2202.     GetPlayerPos(playerid,x1,y1,z1);
  2203.     GetPlayerPos(playerid2,x2,y2,z2);
  2204.     tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  2205.     return floatround(tmpdis);
  2206. }
  2207.  
  2208. /*strtok(string[], &index)
  2209. {
  2210.     new
  2211.         tempString[100],
  2212.         ii = -1;
  2213.  
  2214.     while(string[++index] != ' ')
  2215.     {
  2216.         tempString[++ii] = string[index];
  2217.     }
  2218.     return tempString;
  2219. }*/
  2220.  
  2221. stock Desconectar(playerid)
  2222. {
  2223.     new conta[256], banco[256];
  2224.     format(conta, sizeof(conta), DIRETORIO, nome(playerid));
  2225.     format(banco, sizeof(banco), BANCO, nome(playerid));
  2226.     if(pFase[playerid][Logado] == 1)
  2227.     {
  2228.         dini_IntSet(conta, "Procurado", GetPlayerWantedLevel(playerid));
  2229.         dini_IntSet(conta, "Level", Level[playerid]);
  2230.         dini_IntSet(conta, "ExpJogador", Experiencia[playerid]);
  2231.         dini_IntSet(conta, "Profissao", Profissao[playerid]);
  2232.         dini_IntSet(conta, "Preso", Preso[playerid]);
  2233.         return 1;
  2234.     }
  2235.     return 1;
  2236. }
  2237.  
  2238. /*
  2239. strtok(const string[], &index)
  2240. {
  2241.     new length = strlen(string);
  2242.     while ((index < length) && (string[index] <= ' '))
  2243.     {
  2244.         index++;
  2245.     }
  2246.  
  2247.     new offset = index;
  2248.     new result[20];
  2249.     while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  2250.     {
  2251.         result[index - offset] = string[index];
  2252.         index++;
  2253.     }
  2254.     result[index - offset] = EOS;
  2255.     return result;
  2256. }*/
  2257.  
  2258. // ***** Comandos *****
  2259.     //- Sistema Banco -
  2260.     CMD:logarconta(playerid)
  2261.     {
  2262.         new string[128];
  2263.         new banco[128];
  2264.         if(LogadoBanco[playerid] == 1)
  2265.         {
  2266.             SendClientMessage(playerid, Vermelho, "(ERRO) Você já está logado em sua conta bancária.");
  2267.             return 1;
  2268.         }
  2269.         format(banco, sizeof(banco), DBANCO, pName(playerid));
  2270.         if(!dini_Exists(banco))
  2271.         {
  2272.             SendClientMessage(playerid, Vermelho, "(BANCO) Você não tem uma conta no banco, Para criar uma: /criarconta");
  2273.             return 1;
  2274.         }
  2275.         format(string, sizeof(string), "** Banco Brasil Games **\n\nNome de usuário: %s\n\nInsira sua senha bancária:", pName(playerid));
  2276.         ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Conta Bancária", string, "Entrar", "Cancelar");
  2277.         return 1;
  2278.     }
  2279.  
  2280.     CMD:dfirewall(playerid)
  2281.     {
  2282.         SendClientMessage(playerid, 0x7FFFD4, "(») Aguarde enquanto derrubamos o firewall.......");
  2283.         AcessoOn[playerid] = true;
  2284.         KillFirewall[playerid] = SetTimerEx("Firewall", 20000, false, "i", playerid);
  2285.         FirewallOn[playerid] = 0;
  2286.         return 1;
  2287.     }
  2288.  
  2289.     CMD:invadirbanco(playerid)
  2290.     {
  2291.         if(Profissao[playerid] == Hacker)
  2292.         {
  2293.             if(FirewallOn[playerid] == 1)
  2294.             {
  2295.                 SendClientMessage(playerid, 0xFF5E35AA, "* Você vai ter que derrubar o firewall para acessar o banco! use: /dfirewall - para Acessar o Menu Hacker");
  2296.             }
  2297.             if(FirewallOn[playerid] == 0)
  2298.             {
  2299.                 if(RoubarBanco[playerid] == 0)
  2300.                 {
  2301.                     new str[128];
  2302.                     format(str, sizeof(str), "\nDigite: SHUTDOWN\nPara Derrubar o Firewall do Banco e Aguarde!");
  2303.                     ShowPlayerDialog(playerid, 7484, DIALOG_STYLE_INPUT, "DDOS * SA:MP", str, "Ok", "Cancelar Invasao");
  2304.                     SendClientMessage(playerid, 0x7FFFD4, "(») Assalto em Andamento! Digite: ' SHUTDOWN ' No Dialog - Para derrubar o firewall do banco!");
  2305.                     AcessoOn[playerid] = true;
  2306.                     RoubarBanco[playerid] = 1;
  2307.                     KillFirewall[playerid] = SetTimerEx("Firewall", 20000, false, "i", playerid);
  2308.                 }
  2309.             }
  2310.         }
  2311.         return 1;
  2312.     }
  2313.  
  2314.     CMD:criarconta(playerid)
  2315.     {
  2316.         new string[128];
  2317.         new banco[128];
  2318.         format(banco, sizeof(banco), DBANCO, pName(playerid));
  2319.         if(dini_Exists(banco))
  2320.         {
  2321.             SendClientMessage(playerid, Vermelho, "(BANCO) Você já tem uma conta no banco, para acessa-lá: /logarconta");
  2322.             return 1;
  2323.         }
  2324.         format(string, sizeof(string), "Conta Bancária\n\nNome de usuário: %s\n\nInsira uma senha bancária:", pName(playerid));
  2325.         ShowPlayerDialog(playerid, 1442, DIALOG_STYLE_INPUT, "Conta Bancária", string, "Criar", "Cancelar");
  2326.         dini_IntSet(vfile, "TContaBancaria", 1);
  2327.         return 1;
  2328.     }
  2329.    
  2330.     CMD:comandos(playerid)
  2331.     {
  2332.         SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2333.         SendClientMessage(playerid, -1, "> /comandos » /ajuda » /admins » /vips » /coomprarbilhete » /rg » senhabanco » /banco");
  2334.         SendClientMessage(playerid, -1, "> /logarconta » /criarconta » /relatorio » /creditos » /lutas » /gps » pm");
  2335.         SendClientMessage(playerid, -1, "> /trancar » /destrancar » /p » /sairafk » /modoafk ");
  2336.         SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2337.         return 1;
  2338.     }
  2339.  
  2340.     CMD:empregos(playerid)
  2341.     {
  2342.         ShowPlayerDialog(playerid,pMenuProf, DIALOG_STYLE_LIST, "Empregos", "{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}Honestas {FFFAFA}2 {00FF00}]\n{00FF00}[ {FFFAFA}Carreira {FFD700}Criminosa {00FF00}]\n{00FF00}[ {FFD700}Governo {00FF00}]\n{00FF00}[ {FFD700}Transporte {00FF00}]\n{00FF00}[ {FFFAFA}Profissões {FFD700}da {FFFAFA}Mafia {00FF00}]", "Ok", "Fechar");
  2343.         SendClientMessage(playerid, Amarelo,"~> {FFD700}Escolha a Profissão de Acordo com seu Level!");
  2344.         return 1;
  2345.     }
  2346.    
  2347.     CMD:rg(playerid)
  2348.     {
  2349.         AtualizarRG(playerid);
  2350.         return 1;
  2351.     }
  2352.    
  2353.     CMD:grana(playerid)
  2354.     {
  2355.         GivePlayerMoney(playerid, 500620);
  2356.         return 1;
  2357.     }
  2358.  
  2359.     CMD:banco(playerid)
  2360.     {
  2361.         new banco[128];
  2362.         if(Assalto[playerid] == 1)
  2363.         {
  2364.             SendClientMessage(playerid, Vermelho, "(x) Houve um assalto no banco, tente novamente mas tarde!");
  2365.             return 1;
  2366.         }
  2367.         if(!LogadoBanco[playerid])
  2368.         {
  2369.             SendClientMessage(playerid, Vermelho, "(BANCO) Você precisa logar em sua conta bancária.");
  2370.             return 1;
  2371.         }
  2372.         format(banco, sizeof(banco), DBANCO, pName(playerid));
  2373.         if(!dini_Exists(banco))
  2374.         {
  2375.             SendClientMessage(playerid, Vermelho, "(BANCO) Você não tem uma conta no banco, Para criar uma: /criarconta");
  2376.             return 1;
  2377.         }
  2378.         ShowPlayerDialog(playerid, 4242, DIALOG_STYLE_LIST,"Banco","~>    {FFFFFF}[ {00FF00}Sacar {FFFFFF}]\n~>    {FFFFFF}[ {00FF00}Depositar {FFFFFF}]\n~>     {FFFFFF}[ {00FF00}Consultar Saldo {FFFFFF}]","Solicitar","Fechar");
  2379.         TogglePlayerControllable(playerid,1);
  2380.         SendClientMessage(playerid, -1, "Escolha o seu serviço e clique em Solicitar.");
  2381.         return 1;
  2382.     }
  2383.  
  2384.     CMD:senhabanco(playerid)
  2385.     {
  2386.         if(!LogadoBanco[playerid])
  2387.         {
  2388.             SendClientMessage(playerid, Vermelho, "(BANCO) Você precisa logar em sua conta bancária.");
  2389.             return 1;
  2390.         }
  2391.         new str[128];
  2392.         format(str, sizeof(str), "** Banco Brasil Games **\n\nInsira sua senha antiga:", pName(playerid));
  2393.         ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Senha Conta Bancária", str, "Confirmar", "Cancelar");
  2394.         SenhaBanco[playerid] = true;
  2395.         return 1;
  2396.     }
  2397.     //- Fim Bank Systen -
  2398.    
  2399.     CMD:meulevel(playerid)
  2400.     {
  2401.         static string[128];
  2402.         format(string, sizeof(string), "~w~LEVEL: ~p~%d ~n~ ~w~EXPERIENCIA: ~p~(%d/5)", pLevel[playerid], Experiencia[playerid]);
  2403.         GameTextForPlayer(playerid, string, 3000, 1);
  2404.         SendClientMessage(playerid, 0x8B7500AA, "~~~~~~~~~~~~~~~~~~~~~~~~~ Level ~~~~~~~~~~~~~~~~~~~~~~~~~");
  2405.         format(string, sizeof(string), "* Level: %d", pLevel[playerid]);
  2406.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  2407.         format(string, sizeof(string), "* Experiência: (%d/5)", Experiencia[playerid]);
  2408.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  2409.         format(string, sizeof(string), "* Faltam %d minuto(s) restantes para proxima Exp!!", TempoLevelMinuto);
  2410.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  2411.         SendClientMessage(playerid, 0x8B7500AA, "~~~~~~~~~~~~~~~~~~~~~~~~~ Level ~~~~~~~~~~~~~~~~~~~~~~~~~");
  2412.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2413.         return 1;
  2414.     }
  2415.    
  2416.     CMD:sistema(playerid, params[])
  2417.     {
  2418.         if(sscanf(params, "ui", params)) return SendClientMessage(playerid, -1, "SERVER: /sistema [level/salario]");
  2419.         else if(strcmp(params, "level", true) == 0)
  2420.         {
  2421.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2422.             SendClientMessage(playerid, -1, "* A Cada 20 Minutos Você Ganhar 1 Ponto de Experiencia, Ao Completar 5/5 de Experencia, Você ganha 1 Level.");
  2423.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2424.         }
  2425.         else if(strcmp(params, "salario", true) == 0)
  2426.         {
  2427.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2428.             SendClientMessage(playerid, -1, "* Assim que a Loteria for Sorteada ( De Uma em Uma 1 Hora ) o Salário de todos é Pago!");
  2429.             SendClientMessage(playerid, -1, "* Cada Profissão tem um Salário com seu Preço Justo.");
  2430.             SendClientMessage(playerid, -1, "* Caso Você esteja desempregado , Você só receberar o Seguro-Desemprego.");
  2431.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2432.         }
  2433.         return 1;
  2434.     }
  2435.  
  2436.     CMD:mudarsenha(playerid)
  2437.     {
  2438.         if(IsPlayerConnected(playerid))
  2439.         {
  2440.             new str[128];
  2441.             format(str, sizeof(str), "Nome de usuário: %s\n\nInsira uma senha:", pName(playerid));
  2442.             ShowPlayerDialog(playerid, 9459, DIALOG_STYLE_INPUT, "Conta", str, "Confirmar", "Cancelar");
  2443.         }
  2444.         return 1;
  2445.     }
  2446.  
  2447.     CMD:presos(playerid)
  2448.     {
  2449.         SendClientMessage(playerid, 0x98FB98AA, "* Presidiarios:");
  2450.         new string[90];
  2451.         for(new i=0; i < MAX_PLAYERS; i++)
  2452.         {
  2453.             if(IsPlayerConnected(i))
  2454.             {
  2455.                 if(Preso[i] == 1)
  2456.                 {
  2457.                     format(string, sizeof(string), "%d: %s", i, pName(i));
  2458.                     SendClientMessage(playerid, 0xFFFFFFAA, string);
  2459.                 }
  2460.             }
  2461.         }
  2462.         return 1;
  2463.     }
  2464.    
  2465.     CMD:sairafk(playerid)
  2466.     {
  2467.         if(pAFK[playerid] == 1)
  2468.         {
  2469.             pAFK[playerid] = 0;
  2470.             SetPlayerVirtualWorld(playerid, 0);
  2471.             TogglePlayerControllable(playerid,1);
  2472.             TextDrawHideForPlayer(playerid,AfkText);
  2473.             TextDrawHideForPlayer(playerid,AfkBackText);
  2474.             SendClientMessage(playerid, Verde, "* Você não está mas afk! Pode Voltar a Jogar Normalmente!");
  2475.         }
  2476.         else {
  2477.             SendClientMessage(playerid,Vermelho,"* Você não está Ausente!");
  2478.             return 1;
  2479.         }
  2480.         return 1;
  2481.     }
  2482.    
  2483.     CMD:profissao(playerid)
  2484.     {
  2485.         if(Profissao[playerid] == Desempregado)
  2486.         {
  2487.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~ Desempregado ~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2488.             SendClientMessage(playerid, 0xFFFFFFFF, "* Vai trabalhar seu vagabundo!");
  2489.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão.");
  2490.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~ Desempregado ~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2491.         }
  2492.         else if(Profissao[playerid] == Caminhoneiro)
  2493.         {
  2494.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Caminhoneiro ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2495.             SendClientMessage(playerid, 0xFFFFFFFF, "* Você trabalha fazendo entregas..");
  2496.             SendClientMessage(playerid, 0xFFFFFFFF, "/carregar - Para carregar seu caminhão.");
  2497.             SendClientMessage(playerid, 0xFFFFFFFF, "/descarregar - Para descarregar seu caminhão.");
  2498.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2499.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Caminhoneiro ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2500.         }
  2501.         else if(Profissao[playerid] == MotoTaxi)
  2502.         {
  2503.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Moto Taxi ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2504.             SendClientMessage(playerid, 0xFFFFFFFF, "/tarifa [id] [preço] - Para carregar seu caminhão.");
  2505.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2506.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Moto Taxi ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2507.         }
  2508.         else if(Profissao[playerid] == Taxista)
  2509.         {
  2510.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Taxista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2511.             SendClientMessage(playerid, 0xFFFFFFFF, "/tarifa [id] [preço] - Para carregar seu caminhão.");
  2512.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2513.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Taxista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2514.         }
  2515.         else if(Profissao[playerid] == Maquinista)
  2516.         {
  2517.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Maquinista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2518.             SendClientMessage(playerid, 0xFFFFFFFF, "* Você digire trens por los santos / las venturas / san fierro");
  2519.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2520.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Maquinista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2521.         }
  2522.         else if(Profissao[playerid] == PolicialM)
  2523.         {
  2524.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Militar ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2525.             SendClientMessage(playerid, 0xFFFFFFFF, "/prender [id] [motivo]");
  2526.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  2527.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  2528.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  2529.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  2530.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2531.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Militar ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2532.         }
  2533.         else if(Profissao[playerid] == PolicialC)
  2534.         {
  2535.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Civil ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2536.             SendClientMessage(playerid, 0xFFFFFFFF, "/prender [id] [motivo]");
  2537.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  2538.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  2539.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  2540.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  2541.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2542.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Civil ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2543.         }
  2544.         else if(Profissao[playerid] == PolicialF)
  2545.         {
  2546.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Federal ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2547.             SendClientMessage(playerid, 0xFFFFFFFF, "/prender [id] [motivo]");
  2548.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  2549.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  2550.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  2551.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  2552.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2553.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Federal ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2554.         }
  2555.         else if(Profissao[playerid] == VDrogas)
  2556.         {
  2557.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ V. de Drogas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2558.             SendClientMessage(playerid, 0xFFFFFFFF, "/vmaconha [id] [preço]");
  2559.             SendClientMessage(playerid, 0xFFFFFFFF, "/vcrack [id] [preço]");
  2560.             SendClientMessage(playerid, 0xFFFFFFFF, "/vcoicaina [id] [preço]");
  2561.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2562.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ V. de Drogas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2563.         }
  2564.         else if(Profissao[playerid] == TrafArmas)
  2565.         {
  2566.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Traficante de Armas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2567.             SendClientMessage(playerid, 0xFFFFFFFF, "/vak [id] [preço]");
  2568.             SendClientMessage(playerid, 0xFFFFFFFF, "/vtec [id] [preço]");
  2569.             SendClientMessage(playerid, 0xFFFFFFFF, "/vfaca [id] [preço]");
  2570.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2571.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Traficante de Armas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2572.         }
  2573.         else if(Profissao[playerid] == GuardaTransito)
  2574.         {
  2575.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Guarda de Transito ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2576.             SendClientMessage(playerid, 0xFFFFFFFF, "* Você cuida do transito de los santos.");
  2577.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  2578.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  2579.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  2580.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  2581.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2582.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Guarda de Transito ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2583.         }
  2584.         else if(Profissao[playerid] == Advogado)
  2585.         {
  2586.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Advogado ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2587.             SendClientMessage(playerid, 0xFFFFFFFF, "/soltar [id] [preço]");
  2588.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2589.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Advogado ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2590.         }
  2591.         else if(Profissao[playerid] == VSorvete)
  2592.         {
  2593.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vendedor de Sorvete ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2594.             SendClientMessage(playerid, 0xFFFFFFFF, "/vsorvete [id] [preço]");
  2595.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2596.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vendedor de Sorvete ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2597.         }
  2598.         else if(Profissao[playerid] == Paramedico)
  2599.         {
  2600.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Paramedico ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2601.             SendClientMessage(playerid, 0xFFFFFFFF, "/darplano [id]");
  2602.             SendClientMessage(playerid, 0xFFFFFFFF, "/curar [id] [preço]");
  2603.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2604.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Paramedico ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2605.         }
  2606.         else if(Profissao[playerid] == Hacker)
  2607.         {
  2608.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hacker ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2609.             SendClientMessage(playerid, 0xFFFFFFFF, "/invadirbanco - Invade o Banco e Roubar Grana");
  2610.             SendClientMessage(playerid, 0xFFFFFFFF, "/dfirewall - Desativa o Firewall");
  2611.             SendClientMessage(playerid, 0xFFFFFFFF, "/hplayer - Hackeia a Conta Bancaria de um Jogador!");
  2612.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  2613.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hacker ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2614.         }
  2615.         return 1;
  2616.     }
  2617.  
  2618.     CMD:p(playerid, params[])
  2619.     {
  2620.         new str[128], txt;
  2621.         if(sscanf(params, "s[128]", txt)) return SendClientMessage(playerid, -1, ":> /p [texto]");
  2622.         else
  2623.         {
  2624.             for(new P=0; P < MAX_PLAYERS; P++)
  2625.             {
  2626.                 if(GetDistanceBetweenPlayers(playerid, P) < 25)
  2627.                 {
  2628.                     format(str, sizeof(str), "[Chat Proximo] %s diz: %s", pName(playerid), txt);
  2629.                     SendClientMessage(P, Amarelo, str);
  2630.                 }
  2631.             }
  2632.         }
  2633.         return 1;
  2634.     }
  2635.  
  2636.     CMD:cp(playerid, params[])
  2637.     {
  2638.         new string[128], txt;
  2639.         if(sscanf(params, "s[128]", txt)) return SendClientMessage(playerid, -1, ":> /cp [texto]");
  2640.         else
  2641.         {
  2642.             for(new i=0; i < MAX_PLAYERS; i++)
  2643.             {
  2644.                 if(IsPlayerConnected(i))
  2645.                 {
  2646.                     if(Profissao[i] == Profissao[playerid])
  2647.                     {
  2648.                         format(string, sizeof(string), "(Chat Profissão) %s diz: %s", pName(playerid), txt);
  2649.                         SendClientMessage(i, GetPlayerColor(playerid), string);
  2650.                     }
  2651.                 }
  2652.             }
  2653.         }
  2654.         return 1;
  2655.     }
  2656.  
  2657.     CMD:transferir(playerid, params[])
  2658.     {
  2659.         new giveid, value, str[128], Nome[MAX_PLAYER_NAME];
  2660.         if(sscanf(params, "ui", giveid, value))
  2661.             return SendClientMessage(playerid, -1, "Use /transferir [ID/Nome] [Valor]");
  2662.         if (GetPlayerMoney(playerid) < value)
  2663.             return SendClientMessage(playerid, -1, "Voce não tem esse dinheiro!");
  2664.         GivePlayerMoney(playerid, -value);
  2665.         GivePlayerMoney(giveid, value);
  2666.         GetPlayerName(giveid, Nome, MAX_PLAYER_NAME);
  2667.         format(str,128,"($) Você transferiu %dR$ para o jogador %s.", value, Nome);
  2668.         SendClientMessage(playerid, Amarelo, str);
  2669.         GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
  2670.         format(str,128,"($) %s transferiu %dR$ para voce.", Nome, value);
  2671.         SendClientMessage(giveid, Verde, str);
  2672.         return true;
  2673.     }
  2674.    
  2675.     CMD:modoafk(playerid)
  2676.     {
  2677.         if(pAFK[playerid] == 0)
  2678.         {
  2679.             pAFK[playerid] = 1;
  2680.             SetPlayerVirtualWorld(playerid, 1);
  2681.             TogglePlayerControllable(playerid,1);
  2682.             TextDrawHideForPlayer(playerid,AfkText);
  2683.             TextDrawHideForPlayer(playerid,AfkBackText);
  2684.             SendClientMessage(playerid, Verde, "* Você agora está no MODO AFK!!");
  2685.         }
  2686.         else {
  2687.             SendClientMessage(playerid,Vermelho,"* Você já está Ausente!");
  2688.             return 1;
  2689.         }
  2690.         return 1;
  2691.     }
  2692.  
  2693.     CMD:trancar(playerid)
  2694.     {
  2695.         if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não está em um veículo.");
  2696.         if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não pode trancar esse veículo, você está de passageiro!");
  2697.         for(new i=0; i < MAX_PLAYERS; i++)
  2698.         {
  2699.             if(i == playerid) continue;
  2700.             SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
  2701.         }
  2702.         SendClientMessage(playerid, 0x98F5FFAA, "(INFO) Veículo trancado com sucesso!");
  2703.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2704.         return 1;
  2705.     }
  2706.  
  2707.     CMD:destrancar(playerid)
  2708.     {
  2709.         if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não está em um veículo.");
  2710.         if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não pode destrancar esse veículo, você está de passageiro!");
  2711.         for(new i=0; i < MAX_PLAYERS; i++)
  2712.         {
  2713.             if(i == playerid) continue;
  2714.             SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
  2715.         }
  2716.         SendClientMessage(playerid, 0x98F5FFAA, "(INFO) Veículo destrancado com sucesso!");
  2717.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2718.         return 1;
  2719.     }
  2720.     // Adminstration Systen
  2721.     CMD:banirnick(playerid, params[])
  2722.     {
  2723.         new
  2724.             id[24],
  2725.             string[100]
  2726.         ;
  2727.         if(pAdmin[playerid] > 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  2728.         {
  2729.             if(sscanf(params, "s[24]", id)) return SendClientMessage(playerid, -1, "SERVER: /banirnick [nick]");
  2730.             format(vfile, sizeof(vfile), DIRETORIO, id);
  2731.             dini_IntSet("Nicksban.ini", id , 1);
  2732.             SendClientMessage(playerid, Verde, "* Nick banido!");
  2733.             format(string, sizeof(string), "* Você baniu o nick: %s", id);
  2734.             SendClientMessage(playerid, 0x7C7CBEAA, string);
  2735.             return 1;
  2736.         }
  2737.     }
  2738.    
  2739.     CMD:desbanirnick(playerid, params[])
  2740.     {
  2741.         new
  2742.             id[24],
  2743.             string[100]
  2744.         ;
  2745.         if(pAdmin[playerid] > 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  2746.         {
  2747.             if(sscanf(params, "s[24]", id)) return SendClientMessage(playerid, -1, "SERVER: /desbanirnick [nick]");
  2748.             format(vfile, sizeof(vfile), DIRETORIO, id);
  2749.             dini_IntSet("Nicksban.ini", id , 0);
  2750.             SendClientMessage(playerid, Verde, "* Nick Desbanido!");
  2751.             format(string, sizeof(string), "* Você desbaniu o nick: %s", id);
  2752.             SendClientMessage(playerid, 0x7C7CBEAA, string);
  2753.             return 1;
  2754.         }
  2755.     }
  2756.  
  2757.     CMD:desbanirip(playerid,params[])
  2758.     {
  2759.         new IP[20], String[128];
  2760.         if(pAdmin[playerid] > 1) return SendClientMessage(playerid,Vermelho,"Você não tem permissão para fazer isso!");
  2761.         if(sscanf(params,"s",IP)) return SendClientMessage(playerid,Vermelho,"SERVER: /desbanirip [ip]");
  2762.         format(String, sizeof(String), "O IP %s foi Desbanido Com Sucesso!.", IP);
  2763.         SendClientMessageToAll(Verde, String);
  2764.         format(String, sizeof(String), "unbanip %s",IP);
  2765.         SendRconCommand(String);
  2766.         return 1;
  2767.     }
  2768.    
  2769.     CMD:liberarnome(playerid, params[])
  2770.     {
  2771.         format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  2772.         if(pAdmin[playerid] > 3 && IsPlayerAdmin(playerid))
  2773.         {
  2774.             if(sscanf(params, "ud", params)) return SendClientMessage(playerid, -1, "Uso correto: /setadmin [ID] [Level]");
  2775.             new str[128];
  2776.             new giveplayer[MAX_PLAYERS];
  2777.             new sendername[MAX_PLAYERS];
  2778.             new giveplayerid = strval(params);
  2779.             Autorizado[giveplayerid] = 1;
  2780.             GetPlayerName(playerid, sendername, sizeof(sendername));
  2781.             GameTextForPlayer(giveplayerid, "~w~LIBERADO!", 3000, 0);
  2782.             format(str, sizeof(str), "* Adminstrador: %s liberou você para poder mudar de nome!", sendername);
  2783.             SendClientMessage(giveplayerid, 0xFFFFFFAA, str);
  2784.             format(str, sizeof(str), "* Você liberou o jogador %s para mudar de nome!", giveplayer);
  2785.             SendClientMessage(playerid, 0xFFFFFFAA, str);
  2786.         }
  2787.         else
  2788.         {
  2789.             SendClientMessage(playerid, Vermelho, "* Sem Permissão para isto.");
  2790.         }
  2791.         return 1;
  2792.     }
  2793.  
  2794.     CMD:setadmin(playerid, params[])
  2795.     {
  2796.         if(IsPlayerAdmin(playerid))
  2797.         {
  2798.             new leveladm, plid;
  2799.             new string[128];
  2800.             if(sscanf(params, "ud", plid, leveladm)) return SendClientMessage(playerid, Vermelho, "Uso correto: /setadmin [ID] [Level]");
  2801.             if(!IsPlayerConnected(plid))
  2802.             {
  2803.                 SendClientMessage(playerid, 0xFFFFE0AA, "* Jogador não está conectado!");
  2804.                 return 1;
  2805.             }
  2806.             if(leveladm > 6) return SendClientMessage(playerid, -1, "O level máximo é 6!");
  2807.             if(IsPlayerConnected(plid))
  2808.             {
  2809.                 if(leveladm >= 1)
  2810.                 {
  2811.                       pAdmin[plid] = leveladm;
  2812.                       dini_IntSet(vfile, "LevelAdmin", leveladm);
  2813.                       format(string, sizeof(string), "* Você Foi promovido a Adminstrador Level %d! By: %s!", leveladm,pName(playerid));
  2814.                       SendClientMessage(plid, Verde, string);
  2815.                 }
  2816.                 if(leveladm == 0)
  2817.                 {
  2818.                     pAdmin[plid] = 0;
  2819.                     dini_IntSet(vfile, "LevelAdmin", 0);
  2820.                     format(string, sizeof(string), "* %s Retirou você da adminstração do servidor!", pName(playerid));
  2821.                     SendClientMessage(plid, Verde, string);
  2822.                 }
  2823.             }
  2824.         }
  2825.         else {
  2826.             SendClientMessage(playerid, -1, "* Você não tem permissão.");
  2827.         }
  2828.         return 1;
  2829.     }
  2830.    
  2831.     CMD:admins(playerid)
  2832.     {
  2833.         SendClientMessage(playerid,Verde, "{FFFAFA}-> {00FF00}Adminstradores Conectados {FFFAFA} <-");
  2834.         static bool: result;
  2835.         new string[128];
  2836.         for(new i; i < MAX_PLAYERS; ++i)
  2837.         {
  2838.             new pname[24];
  2839.             GetPlayerName(i,pname,24);
  2840.             if(IsPlayerConnected(i) && pAdmin[playerid] > 0)
  2841.             {
  2842.                 if(pAdmin[playerid] == 1)
  2843.                 {
  2844.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> [ {00FF00}Colaborador {FFFAFA}]", pname);
  2845.                 }
  2846.                 if(pAdmin[playerid] == 2)
  2847.                 {
  2848.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Moderador {FFFAFA}]", pname);
  2849.                 }
  2850.                 if(pAdmin[playerid] == 3)
  2851.                 {
  2852.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador {FFFAFA}]", pname);
  2853.                 }
  2854.                 if(pAdmin[playerid] == 4)
  2855.                 {
  2856.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador + {FFFAFA}]", pname);
  2857.                 }
  2858.                 if(pAdmin[playerid] == 5)
  2859.                 {
  2860.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador ++ {FFFAFA}]", pname);
  2861.                 }
  2862.                 if(pAdmin[playerid] == 6)
  2863.                 {
  2864.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Dono / Scripter {FFFAFA}]", pname);
  2865.                 }
  2866.                 SendClientMessage(playerid, -1, string);
  2867.                 result = true;
  2868.             }
  2869.         }
  2870.         if(!result)
  2871.             return SendClientMessage(playerid, -1,"");
  2872.         return 1;
  2873.     }
  2874.    
  2875.     CMD:planos(playerid)
  2876.     {
  2877.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Planos ~~~~~~~~~~~~~");
  2878.         SendClientMessage(playerid, 0xE066FFAA, "> Plano Básico: [R$350]");
  2879.         SendClientMessage(playerid, 0x43CD80AA, "> Plano Avançado: [R$700]");
  2880.         SendClientMessage(playerid, 0xCDAD00AA, "> Plano Profissional: [R$1400]");
  2881.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Planos ~~~~~~~~~~~~~");
  2882.         return 1;
  2883.     }
  2884.  
  2885.     CMD:ajudaplano(playerid)
  2886.     {
  2887.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Info Plano ~~~~~~~~~~~~~");
  2888.         SendClientMessage(playerid, -1, "P: Pra que serve seu plano de saúde? R: O Plano de Saúde Cobrirá sua Despezas com o Médico apos sua morte.");
  2889.         SendClientMessage(playerid, -1, "P: Quais são os Preços dos Planos? R: Use: /planos");
  2890.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Info Plano ~~~~~~~~~~~~~");
  2891.         return 1;
  2892.     }
  2893.    
  2894. /*    CMD:mudarnome(playerid,params[])
  2895.     {
  2896.             if(Autorizado[playerid] == 1)
  2897.             {
  2898.                 new banco[64], nova[64], IP[24], novabanco[64], senha[3][256], escolhido;
  2899.                 if(sscanf(params, "ui", escolhido)) return SendClientMessage(playerid, Vermelho, "Uso correto: /setadmin [ID] [Level]");
  2900.                 format(nova, 128, DIRETORIO, escolhido);
  2901.                 if(dini_Exists(nova))
  2902.                 {
  2903.                     SendClientMessage(playerid, Vermelho, "(ERRO) Já existe uma conta criada com esse nome!");
  2904.                     return 1;
  2905.                 }
  2906.                 format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  2907.                 format(banco, sizeof(banco), DBANCO, pName(playerid));
  2908.                 senha[0] = dini_Get(vfile, "Senha");
  2909.                 senha[1] = dini_Get(banco, "Senha");
  2910.                 senha[2] = dini_Get(banco, "SaldoBancario");
  2911.                 dini_Remove(vfile); dini_Remove(banco);
  2912.                 SetPlayerName(playerid, escolhido);
  2913.                 format(nova, sizeof(nova), DIRETORIO, escolhido);
  2914.                 format(novabanco, sizeof(novabanco), DBANCO, params);
  2915.                 dini_Create(nova); dini_Create(novabanco);
  2916.                 GetPlayerIp(playerid, IP, sizeof(IP));
  2917.                 dini_Set(nova, "Login", pName(playerid));
  2918.                 dini_Set(nova, "IP", IP);
  2919.                 dini_Set(nova, "Level", "0");
  2920.                 dini_Set(nova, "ExpJogador", "0");
  2921.                 dini_Set(nova, "LevelAdmin", "0");
  2922.                 dini_Set(nova, "Dinheiro", "0");
  2923.                 dini_Set(nova, "Procurado", "0");
  2924.                 dini_Set(nova, "Skin", "0");
  2925.                 dini_Set(nova, "VipL", "0");
  2926.                 dini_Set(nova, "Avisos", "0");
  2927.                 dini_Set(nova, "TContaBancaria", "0");
  2928.                 dini_Set(nova, "HabTerrestre", "0");
  2929.                 dini_Set(nova, "Pais", "Nenhum");
  2930.                 dini_Set(nova, "HabAerea", "0");
  2931.                 dini_Set(nova, "HabNautica", "0");
  2932.                 dini_Set(nova, "Profissao", "0");
  2933.                 dini_Set(nova,"Porte", "0");
  2934.                 dini_IntSet(nova, "Skin", GetPlayerSkin(playerid));
  2935.                 dini_Set(nova, "Senha", senha[0]);
  2936.                 dini_Set(novabanco, "Senha", senha[1]);
  2937.                 dini_Set(novabanco, "ContaBancaria", senha[2]);
  2938.                 dini_IntSet(nova, "Procurado", GetPlayerWantedLevel(playerid));
  2939.                 dini_IntSet(nova, "Level", pLevel[playerid]);
  2940.                 dini_IntSet(nova, "ExpJogador", Experiencia[playerid]);
  2941.                 dini_IntSet(nova, "Profissao", Profissao[playerid]);
  2942.                 //SendClientMessage(playerid, COR_AMARELO, "(INFO) Aguarde, estamos salvando os dados da sua conta antiga e transferindo para nova!");
  2943.                 Autorizado[playerid] = 0;
  2944.             }
  2945.             else
  2946.             {
  2947.                 SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Você não está liberado para poder mudar de nome!");
  2948.             }
  2949.             return 1;
  2950.     }*/
  2951.    
  2952.     CMD:comprarbilhete(playerid,params[])
  2953.     {
  2954.         new string[128], NumeroToLoto; //NumeroValido = 1;
  2955.         if(sscanf(params, "s", NumeroLoto)) return SendClientMessage(playerid, Vermelho, "Uso correto: /comprarbilhete [numero]");
  2956.         if(1 < (NumeroToLoto) > 100) return SendClientMessage(playerid, Vermelho, "[ERRO] Número deve estar entre 0 e 100 - Custo do Bilhete: 400R$");
  2957.         else if(TaJogando[playerid] == 1)return SendClientMessage(playerid, Vermelho, "LOTERIA: Você já está jogando na Loteria!");
  2958.         else if(GetPlayerMoney(playerid) < 400) return SendClientMessage(playerid, Vermelho, "LOTERIA: Você não tem $400 para comprar o Número");
  2959.         for(new i; i < MAX_PLAYERS; i++)
  2960.         {
  2961.             if(NumeroLoto[playerid] == NumeroLoto[i])
  2962.             {
  2963.                 //NumeroValido = 0;
  2964.             }
  2965.         }
  2966.         //if(NumeroValido == 0) return SendClientMessage(playerid, Vermelho, "[ERRO] Esse número já foi escolhido!");
  2967.         format(string, sizeof(string), "LOTERIA: Você jogou na loteria com o numero: %i ", NumeroToLoto);
  2968.         SendClientMessage(playerid, Amarelo, string);
  2969.         GivePlayerMoney(playerid, -400);
  2970.         TaJogando[playerid] = 1;
  2971.         NumeroLoto[playerid] = NumeroToLoto;
  2972.         return 1;
  2973.     }
  2974.    
  2975.     CMD:meuplano(playerid)
  2976.     {
  2977.         new string[100];
  2978.         if(PlanoMedico[playerid] == 0)
  2979.         {
  2980.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  2981.             SendClientMessage(playerid, -1, "* Você não possui um Plano de Saúde.");
  2982.             SendClientMessage(playerid, -1, "* Quer Contratar um Plano de Saúde? Vá até o Hospital Mas Proximo!");
  2983.             SendClientMessage(playerid, -1, "* Comandos Úteis: /planos - /ajudaplano");
  2984.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  2985.             return 1;
  2986.         }
  2987.         if(PlanoMedico[playerid] == 1)
  2988.         {
  2989.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  2990.             format(string,sizeof(string),"Plano Atual: %d", PlanoMedico[playerid]);
  2991.             SendClientMessage(playerid, -1, "* Quer cancelar seu plano? Vá Até o Hospital!");
  2992.             SendClientMessage(playerid, -1, "* O Pagamento do Plano será cobrado do Seu Salário!");
  2993.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  2994.             return 1;
  2995.         }
  2996.         else if(PlanoMedico[playerid] == 2)
  2997.         {
  2998.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  2999.             format(string,sizeof(string),"Plano Atual: %d", PlanoMedico[playerid]);
  3000.             SendClientMessage(playerid, -1, "* Quer cancelar seu plano? Vá Até o Hospital!");
  3001.             SendClientMessage(playerid, -1, "* O Pagamento do Plano será cobrado do Seu Salário!");
  3002.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3003.             return 1;
  3004.         }
  3005.         else if(PlanoMedico[playerid] == 3)
  3006.         {
  3007.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3008.             format(string,sizeof(string),"Plano Atual: %d", PlanoMedico[playerid]);
  3009.             SendClientMessage(playerid, -1, "* Quer cancelar seu plano? Vá Até o Hospital!");
  3010.             SendClientMessage(playerid, -1, "* O Pagamento do Plano será cobrado do Seu Salário!");
  3011.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3012.             return 1;
  3013.         }
  3014.         return 1;
  3015.     }
  3016.    
  3017.     CMD:ir(playerid,params[])
  3018.     {
  3019.         new string[128];
  3020.         new id,Float:X,Float:Y,Float:Z,vehid;
  3021.         if(pAdmin[playerid] > 2) return SendClientMessage(playerid,Vermelho,"* Você não tem permissão.");
  3022.         if(sscanf(params,"u",id)) return SendClientMessage(playerid,Verde,"* Use: /ir [id]");
  3023.         GetPlayerPos(id,X,Y,Z);
  3024.         SetPlayerPos(playerid,X+4,Y,Z);
  3025.         vehid = GetPlayerVehicleID(playerid);
  3026.         SetVehiclePos(vehid,X+4,Y,Z);
  3027.         PutPlayerInVehicle(playerid,vehid,0);
  3028.         format(string,sizeof(string),"- (AdmCmd) Você teleportou para %s",pName(id));
  3029.         SendClientMessage(playerid, Verde, string);
  3030.         return 1;
  3031.     }
  3032.  
  3033.     CMD:loteria(playerid)
  3034.     {
  3035.         LoteriaPublic();
  3036.         return 1;
  3037.     }
  3038.    
  3039.     CMD:salario(playerid)
  3040.     {
  3041.         PayDay();
  3042.         return 1;
  3043.     }
  3044.    
  3045.     CMD:a(playerid, params[])
  3046.     {
  3047.         if(pAdmin[playerid] > 2) return SendClientMessage(playerid,Vermelho,"* Você não tem permissão.");
  3048.         new texto;
  3049.         new Str[128];
  3050.         if(sscanf(params, "s",texto)) return SendClientMessage(playerid,-1,"Use: /a [texto]");
  3051.         format(Str, sizeof(Str),"Admin %s : %s",pName(playerid),texto);
  3052.         SendClientMessageToAll(0x00B0B0AA,Str);
  3053.         return 1;
  3054.     }
  3055.    
  3056.     CMD:aceitaradvogado(playerid)
  3057.     {
  3058.         if(IsPlayerConnected(playerid))
  3059.         {
  3060.             if(dini_Int(vfile, "EnvioAdvogado") == 1)
  3061.             {
  3062.                 SendClientMessage(playerid,Amarelo, "* Você aceitou o convite para a entrevista!");
  3063.                 dini_IntSet(vfile, "Preso", 0);
  3064.                 Preso[playerid] = 0;
  3065.                 SetPlayerHealth(playerid,100);
  3066.                 SpawnPlayer(playerid);
  3067.                 GivePlayerMoney(playerid, -350);
  3068.             }
  3069.         }
  3070.         return 1;
  3071.     }
  3072.  
  3073.     CMD:soltar(playerid, params[])
  3074.     {
  3075.         new string[128];
  3076.         if(Profissao[playerid] == Advogado || IsPlayerAdmin(playerid))
  3077.         {
  3078.             new plid;
  3079.             if(sscanf(params, "ui", plid)) return SendClientMessage(playerid, Vermelho, "Uso: /soltar [id] [preço]");
  3080.             if(!IsPlayerConnected(plid))
  3081.             {
  3082.                 SendClientMessage(playerid, Vermelho, "(ERRO) O jogador não está online");
  3083.                 return 1;
  3084.             }
  3085.             else {
  3086.                 dini_IntSet(vfile, "EnvioAdvogado", 1);
  3087.                 SendClientMessage(playerid, Verde, "* Convite Enviado!");
  3088.                 format(string, sizeof(string), "* %s está se oferecendo para solta-lo da prisão. Para aceitar use: /aceitaradvogado - Caso não queira Use: /recusar", pName(playerid));
  3089.                 SendClientMessage(plid, newadm, string);
  3090.                 SendClientMessage(plid, newadm, "* O Custo pra ele te soltar custa: [ 350 R$ ]");
  3091.                 return 1;
  3092.             }
  3093.         }
  3094.         else {
  3095.             SendClientMessage(playerid,Vermelho,"(ERRO) Você não é um Advogado");
  3096.             return 1;
  3097.         }
  3098.     }
  3099.  
  3100.     CMD:fianca(playerid)
  3101.     {
  3102.         new grana;
  3103.         grana = dini_Int(vfile, "SaldoBancario");
  3104.         if(Preso[playerid] == 1)
  3105.         {
  3106.             if(grana > 15000)
  3107.             {
  3108.                 if(Preso[playerid]>= 2)
  3109.                 {
  3110.                     SetPlayerWantedLevel(playerid, 0);
  3111.                     dini_IntSet(vfile, "Preso",0);
  3112.                     dini_IntSet(vfile, "SaldoBancario", dini_Int(vfile, "SaldoBancario")-Fianca);
  3113.                     Preso[playerid] = 0;
  3114.                     SpawnPlayer(playerid);
  3115.                     SetPlayerHealth(playerid,100);
  3116.                     SendClientMessage(playerid, Verde,"* Você pagou a fiança e foi solto!.");
  3117.                 }
  3118.                 else {
  3119.                     SendClientMessage(playerid, Vermelho,"(ERRO) Você tem que esperar 2 minutos para poder pagar a fiança!");
  3120.                 }
  3121.             }
  3122.             else {
  3123.                 SendClientMessage(playerid, Vermelho,"(ERRO) Você não possui dinheiro suficiente! (R$15000)");
  3124.             }
  3125.         }
  3126.         else {
  3127.             SendClientMessage(playerid, Vermelho,"(ERRO) Você não está preso!");
  3128.         }
  3129.         return 1;
  3130.     }
  3131.    
  3132.     CMD:dm(playerid)
  3133.     {
  3134.         new pname[MAX_PLAYER_NAME];
  3135.         new string[64];
  3136.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  3137.         if(podedm == 0)
  3138.         {
  3139.             format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) permitiu o DM.", pname, playerid);
  3140.             SendClientMessageToAll(newadm, string);
  3141.             podedm = 1;
  3142.         }
  3143.         else {
  3144.             if(podedm == 1)
  3145.             {
  3146.                 format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) proibiu o DM.", pname, playerid);
  3147.                 SendClientMessageToAll(newadm, string);
  3148.                 podedm = 0;
  3149.             }
  3150.         }
  3151.         return 1;
  3152.     }
  3153.    
  3154.     CMD:vidat(playerid)
  3155.     {
  3156.         new string[64];
  3157.         if(pAdmin[playerid] > 0)
  3158.         {
  3159.             format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) Recuperou a vida de todos!", pName(playerid),playerid);
  3160.             SendClientMessageToAll(newadm, string);
  3161.             for(new i=0;i<MAX_PLAYERS;i++)
  3162.             {
  3163.                 if(IsPlayerConnected(i))
  3164.                 {
  3165.                     SetPlayerHealth(i,100);
  3166.                 }
  3167.             }
  3168.         }
  3169.         return 1;
  3170.     }
  3171.  
  3172.     CMD:coletet(playerid)
  3173.     {
  3174.         new string[64];
  3175.         if(pAdmin[playerid] > 0)
  3176.         {
  3177.             format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) Recuperou o colete de todos!", pName(playerid),playerid);
  3178.             SendClientMessageToAll(newadm, string);
  3179.             for ( new i = 0 ; i < MAX_PLAYERS ; i ++)
  3180.             {
  3181.                 if(IsPlayerConnected(i))
  3182.                 {
  3183.                     SetPlayerArmour(i,100);
  3184.                 }
  3185.             }
  3186.         }
  3187.         return 1;
  3188.     }
  3189.  
  3190.     CMD:gmx(playerid, params[])
  3191.     {
  3192.         if(pAdmin[playerid] > 4 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3193.         static szt[128];
  3194.         format(szt , 64,"(GMX) O Adminstrador %s Reiniciou o Servidor.",pName(playerid)); // Ta filé..
  3195.         SendClientMessageToAll(Verde, szt);
  3196.         SendRconCommand("gmx");
  3197.         return true;
  3198.     }
  3199.  
  3200.     CMD:dargrana(playerid, params[]) // Ok 100% Testado.
  3201.     {
  3202.         if(pAdmin[playerid] > 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3203.         static szt[128], plid, grana;
  3204.         if(sscanf(params,"ui",plid,grana)) return SendClientMessage(playerid, Vermelho, "(ERRO) /dargrana [id] [valor]");
  3205.         SendClientMessage(playerid, Verde, "* Comando Efetuado!");
  3206.         format(szt , 64,"Administrador %s te deu %dR$ de Grana",pName(playerid),grana);
  3207.         SendClientMessage(plid,Verde,szt);
  3208.         if(IsPlayerConnected(plid))
  3209.         {
  3210.             GivePlayerMoney(plid,grana);
  3211.         }
  3212.         return true;
  3213.     }
  3214.  
  3215.     CMD:setprof(playerid, params[])
  3216.     {
  3217.         new szt[128], plid, prof;
  3218.         if(IsPlayerConnected(plid))
  3219.         {
  3220.         if(pAdmin[playerid] > 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3221.         if(sscanf(params,"ui",plid,prof)) return SendClientMessage(playerid, Vermelho, "(ERRO) /setprof [id] [numero]");
  3222.         if(prof > 14 && prof < 0)
  3223.         {
  3224.             SendClientMessage(playerid, Vermelho, "(ERRO) Profissão Inexistente!");
  3225.             return 1;
  3226.         }
  3227.         SendClientMessage(playerid, Verde, "* Comando Efetuado!");
  3228.         format(szt , 64,"Administrador %s te setou na profissão número : %d",pName(playerid),prof);
  3229.         SendClientMessage(plid,Verde,szt);
  3230.         LogarProf(plid);
  3231.         dini_IntSet(vfile, "Profissao", prof);
  3232.         }
  3233.         return 1;
  3234.     }
  3235.  
  3236. /*  CMD:setprof(playerid, params[])
  3237.     {
  3238.         new szt[128], plid, prof, profissao[128];
  3239.         if(IsPlayerConnected(plid))
  3240.         {
  3241.             if(pAdmin[playerid] > 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3242.             if(sscanf(params,"ui", plid , prof)) return SendClientMessage(playerid, Vermelho, "(ERRO) /setprof [id] [numero]");
  3243.             if(prof == 0 || prof == 1 || prof == 2 || prof == 3 || prof == 4 || prof == 5 || prof == 6 || prof == 7 || prof == 8 || prof == 9 || prof == 10 ||
  3244.             prof == 11 || prof == 12 || prof == 13 || prof == 14)
  3245.             {
  3246.                 Profissao[plid] = prof;
  3247.                 if(prof == 1) {profissao = "Caminoneiro";}
  3248.                 if(prof == 2) {profissao = "MotoTaxi";}
  3249.                 if(prof == 3) {profissao = "Taxista";}
  3250.                 if(prof == 4) {profissao = "Maquinista";}
  3251.                 if(prof == 5) {profissao = "PolicialM";}
  3252.                 if(prof == 6) {profissao = "PolicialC";}
  3253.                 if(prof == 7) {profissao = "PolicialF";}
  3254.                 if(prof == 8) {profissao = "VDrogas";}
  3255.                 if(prof == 9) {profissao = "TrafArmas";}
  3256.                 if(prof == 10) {profissao = "GuardaTransito";}
  3257.                 if(prof == 11) {profissao = "Advogado";}
  3258.                 if(prof == 12) {profissao = "VSorvete";}
  3259.                 if(prof == 13) {profissao = "Paramedico";}
  3260.                 if(prof == 14) {profissao = "Hacker";}
  3261.                 if(prof > 14 && prof < 0) return SendClientMessage(playerid, Vermelho,"(ERRO) Profissão Inexistente!");
  3262.                 SendClientMessage(playerid, Verde , "* Comando Efetuado!");
  3263.                 format(szt , 64 ,"Administrador %s te setou na profissão número : %s",pName(playerid),profissao);
  3264.                 SendClientMessage(plid , Verde , szt);
  3265.                 dini_IntSet(vfile, "Profissao", prof);
  3266.             }
  3267.             return 1;
  3268.         }
  3269.         return 1;
  3270.     }*/
  3271.  
  3272.     CMD:ajudaadm(playerid)
  3273.     {
  3274.         if(pAdmin[playerid] == 1)
  3275.         {
  3276.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban");
  3277.         }
  3278.         if(pAdmin[playerid] == 2)
  3279.         {
  3280.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick");
  3281.         }
  3282.         if(pAdmin[playerid] == 3)
  3283.         {
  3284.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick");
  3285.         }
  3286.         if(pAdmin[playerid] == 4)
  3287.         {
  3288.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick » /desbanir");
  3289.         }
  3290.         if(pAdmin[playerid] == 5)
  3291.         {
  3292.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick » /desbanir");
  3293.         }
  3294.         if(pAdmin[playerid] == 6)
  3295.         {
  3296.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick » /desbanir");
  3297.         }
  3298.     }
  3299.  
  3300.     CMD:abrirdp(playerid)
  3301.     {
  3302.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3303.         {
  3304.             if(PortaoAberto == 0)
  3305.             {
  3306.                 MoveObject(PortaoDP, 1540.68652344,-1616.23730469,15.15620422, 3.0); PortaoAberto = 1;
  3307.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você abriu o portão principal da DP!");
  3308.             }
  3309.             else {
  3310.                 SendClientMessage(playerid, Vermelho, "(ERRO) O portão principal já está aberto!");
  3311.             }
  3312.         }
  3313.         else {
  3314.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3315.         }
  3316.         return 1;
  3317.     }
  3318.  
  3319.     CMD:fechardp(playerid)
  3320.     {
  3321.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3322.         {
  3323.             if(PortaoAberto == 1)
  3324.             {
  3325.                 MoveObject(PortaoDP, 1540.68652344,-1627.59179688,15.15620422, 3.0); PortaoAberto = 0;
  3326.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você fechou o portão principal da DP!");
  3327.             }
  3328.             else {
  3329.                 SendClientMessage(playerid, Vermelho, "(ERRO) O portão principal já está fechado!");
  3330.             }
  3331.         }
  3332.         else {
  3333.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3334.         }
  3335.         return 1;
  3336.     }
  3337.  
  3338.     CMD:abrirdp2(playerid)
  3339.     {
  3340.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3341.         {
  3342.             if(Portao2Aberto == 0)
  3343.             {
  3344.                 MoveObject(PortaoDP2, 1598.13671875,-1638.26818848,15.20197678, 3.0); Portao2Aberto = 1;
  3345.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você abriu o segundo portão da DP!");
  3346.             }
  3347.             else {
  3348.                 SendClientMessage(playerid, Vermelho, "(ERRO) O segundo portão já está aberto!");
  3349.             }
  3350.         }
  3351.         else {
  3352.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3353.         }
  3354.         return 1;
  3355.     }
  3356.  
  3357.     CMD:fechardp2(playerid)
  3358.     {
  3359.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3360.         {
  3361.             if(Portao2Aberto == 1)
  3362.             {
  3363.                 MoveObject(PortaoDP2, 1589.98474121,-1638.26818848,15.21242142, 3.0); Portao2Aberto = 0;
  3364.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você fechou o segundo portão da DP!");
  3365.             }
  3366.             else {
  3367.                 SendClientMessage(playerid, Vermelho, "(ERRO) O segundo portão já está fechado!");
  3368.             }
  3369.         }
  3370.         else {
  3371.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3372.         }
  3373.         return 1;
  3374.     }
  3375.  
  3376.     CMD:subirdp(playerid)
  3377.     {
  3378.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3379.         {
  3380.             if(ElevadorCima == 0)
  3381.             {
  3382.                 MoveObject(ElevadorDP, 1561.68237305,-1641.39025879,27.30376816, 2.0); ElevadorCima = 1;
  3383.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você subiu o elevador da DP!");
  3384.             }
  3385.             else {
  3386.                 SendClientMessage(playerid, Vermelho, "(ERRO) O elevador já está no segundo andar!");
  3387.             }
  3388.         }
  3389.         else {
  3390.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3391.         }
  3392.         return 1;
  3393.     }
  3394.  
  3395.     CMD:descerdp(playerid)
  3396.     {
  3397.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3398.         {
  3399.             if(ElevadorCima == 1)
  3400.             {
  3401.                 MoveObject(ElevadorDP, 1561.68164062,-1641.38964844,12.56751347, 2.0); ElevadorCima = 0;
  3402.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você desceu o elevador da DP!");
  3403.             }
  3404.             else {
  3405.                 SendClientMessage(playerid, Vermelho, "(ERRO) O elevador já está no primeiro andar!");
  3406.             }
  3407.         }
  3408.         else {
  3409.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3410.         }
  3411.         return 1;
  3412.     }
  3413.    
  3414.     CMD:abastecer(playerid)
  3415.     {
  3416.         if(!IsPlayerInAnyVehicle(playerid))
  3417.             return SendClientMessage(playerid, 0xFFFFFFFF, "Você não esta em um carro");
  3418.         ShowPlayerDialog(playerid,DIALOG_GAS,DIALOG_STYLE_INPUT,"Colocar Gasolina","Por favor digite a quantidade de litros para colocar \n o Preço  atual da Gasolina é 2$ por litro","Ok","Fechar");
  3419.         return 1;
  3420.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement