Advertisement
Guest User

Brasil Games RPG - Base

a guest
Apr 9th, 2012
1,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 172.64 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. /* GAME MODE PARA USO DE QUEM QUER SER ALGUEM NA VIDA E APRENDER A LINGUAGNEM (FUCK SE ) '-' */
  3. /* Créditos dos sistema aos seus criadores, tenho esse gamemode faz um tempo parei já de mecher nele e no pawno, por isso n lembro nome de alguns criadores ._. */
  4. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  5. #include <a_samp>
  6. #include <dini>
  7. #include <zcmd>
  8. #include <sscanf2>
  9. //#include <string>
  10. //#include <pgrana>
  11.  
  12. #define DIRETORIO  "/Jogadores/%s.ini"
  13. #define DBANCO  "/Jogadores/Banco/%s.ini"
  14.  
  15. #define paislogin    1996
  16. #define REGISTRO     1997
  17. #define LOGIN        1998
  18. #define SPAWNJ       1999
  19.  
  20. #define pMenuProf    5059
  21. #define pHonestas    5060
  22. #define pHonestas2   5061
  23. #define pCriminosas  5062
  24. #define pGoverno     5063
  25. #define pMafia       5064
  26. #define pTransporte  5065
  27.  
  28. #define MenuBancoH   5024
  29.  
  30. //======= [ Cores ] =====
  31. #define Vermelho                    0xFF0000AA
  32. #define Branco                      0xFFFFFFAA
  33. #define newadm                      0x46BBAA00
  34. #define Amarelo                     0xFFFF00FF
  35. #define Verde                       0x00D700AA
  36. #define Green                       0x16EB43FF
  37. #define Red                         0xff0000ff
  38. #define Laranja                     0xFF6600AA
  39. //========== [ Salarios ] ==========
  40. #define SeguroDesemprego    65
  41. #define Salario_Caminhao    600
  42. #define Salario_MTaxi       450
  43. #define Salario_Taxi        480
  44. #define Salario_Maquinista  450
  45. #define Salario_PolicialM   1200
  46. #define Salario_PolicialC   1400
  47. #define Salario_PolicialF   1500
  48. #define Salario_VDrogas     800
  49. #define Salario_TrafArmas   1150
  50. #define Salario_GuardaTr    810
  51. #define Salario_Advogado    1500
  52. #define Salario_VSorvete    250
  53. #define Salario_Paramedico  950
  54. #define Salario_Hacker      1240
  55.  
  56. #define Fianca              4500
  57. #define MAX_TEMPO_AFK       5
  58. #define MAX_CARROS          350
  59.  
  60. #define VALOR_LITRO 2.0                           //- Definir valor por litro da gasolina
  61. #define DIALOG_GAS  24                            //- ID Do Dialog para Colocar Gasolina
  62. //========== [ Empregos ] ==========
  63. #define Desempregado    0
  64. #define Caminhoneiro    1
  65. #define MotoTaxi        2
  66. #define Taxista         3
  67. #define Maquinista      4
  68. #define PolicialM       5
  69. #define PolicialC       6
  70. #define PolicialF       7
  71. #define VDrogas         8
  72. #define TrafArmas       9
  73. #define GuardaTransito  10
  74. #define Advogado        11
  75. #define VSorvete        12
  76. #define Paramedico      13
  77. #define Hacker          14
  78.  
  79. new pGasolina[MAX_PLAYERS];
  80.  
  81. new Text:gText3[MAX_PLAYERS];
  82. new Text:TGasosa[MAX_PLAYERS];
  83. new Text:BemVindo;
  84. new Text:ImagemConnect;
  85.  
  86. new proximocarro;
  87. new incar[MAX_PLAYERS];
  88. new scar[MAX_PLAYERS];
  89.  
  90. new AreaPosto[MAX_PLAYERS];
  91.  
  92. //========= [ Portões ] ==========
  93. new PortaoDP;
  94. new PortaoDP2;
  95. new ElevadorDP;
  96. new ElevadorCima = 0;
  97. new PortaoAberto = 0;
  98. new Portao2Aberto = 0;
  99. //========= [ Pickups ] ==========
  100. new EntrarPref;
  101. new SaidaPref;
  102. //===========[ Forwards ]===========
  103. forward PostosG();
  104. forward Gasolina();
  105. forward IsNumeric(const string[]);
  106. forward CriarVeiculo2(m,Float:x,Float:y,Float:z,Float:r,c,d);
  107. forward Liberar(playerid);
  108. forward LoteriaPublic();
  109. forward AntAfk(playerid);
  110. forward GanharExp(playerid);
  111. forward CheckCurriculo(playerid);
  112. forward ReprovarC(playerid);
  113. forward ChecarPing(playerid);
  114. forward AtualizarGrana();
  115. forward TempoExpMinuto();
  116. forward BanLog(string[]);
  117. forward PayDay();
  118. forward AtualizarChatBubble();
  119. forward LogarProf(playerid);
  120. forward AcessoBanco(playerid);
  121. forward Firewall(playerid);
  122. forward FirewallLigado();
  123. forward Avisado(playerid);
  124. forward LimiteGrana(playerid);
  125.  
  126. new Mutecmd[MAX_PLAYERS]= 0;
  127. new Aviso[MAX_PLAYERS]= 0;
  128.  
  129. //======[ Roubo ao Banco ]======
  130. new Assalto[MAX_PLAYERS] = 0;
  131. new FirewallOn[MAX_PLAYERS] = 0;
  132. new RoubarBanco[MAX_PLAYERS] = 0;
  133. new KillFirewall[MAX_PLAYERS];
  134. new bool:AcessoOn[MAX_PLAYERS];
  135. new KillAcesso;
  136. new KillFirewallOn;
  137. new KillFirewallOn2;
  138. new KillFirewallOn3;
  139. new KillTransferencia;
  140. new cudigos[MAX_PLAYERS];
  141. new Codigos[4][256] =
  142. {
  143.     "TROLLED",
  144.     "MEGUSTA",
  145.     "POKERFC",
  146.     "NOKUZIN"
  147. };
  148. //=====[ S. Caças ]=====
  149. //new CacaInProgress[MAX_PLAYERS] = 0;
  150. //new QtCacas[MAX_PLAYERS] = 0;
  151. //=====[ S. Caças ]=====
  152.  
  153. new vfile[128];
  154. new StringLg[256];
  155.  
  156. new Preso[MAX_PLAYERS]= 0;
  157. new TempoPreso[MAX_PLAYERS] = 0;
  158.  
  159. new Autorizado[MAX_PLAYERS];
  160.  
  161. new bool:SenhaBanco[MAX_PLAYERS];
  162. new LogadoBanco[MAX_PLAYERS];
  163.  
  164. new podedm;
  165.  
  166. // == Loteria ==
  167. new NumeroLoto[MAX_PLAYERS];
  168. new TGanhador;
  169. new DinheiroAcumuladoLoto;
  170. new vernumerosorteado[MAX_PLAYERS];
  171. new TaJogando[MAX_PLAYERS];
  172.  
  173. new PlanoMedico[MAX_PLAYERS] = 0;
  174.  
  175. new pAdmin[MAX_PLAYERS];
  176.  
  177. // Level Systen
  178. new Experiencia[MAX_PLAYERS];
  179. new pLevel[MAX_PLAYERS];
  180. new TempoLevelMinuto[MAX_PLAYERS];
  181.  
  182. //=== [ Profissão ] ===
  183. new Profissao[MAX_PLAYERS];
  184. new reprovado[MAX_PLAYERS], aprovado[MAX_PLAYERS];
  185.  
  186. new GranaEx[MAX_PLAYERS];
  187.  
  188. enum pInfo
  189. {
  190.     Logado,
  191.     pBrasil,
  192.     pPortugal
  193. }
  194.  
  195. new pFase[MAX_PLAYERS][pInfo];
  196.  
  197. enum pPos
  198. {
  199.     Float:LastX,
  200.     Float:LastY,
  201.     Float:LastZ,
  202. }
  203. new
  204.     PlayerLastPos[MAX_PLAYERS][pPos],
  205.     PlayerAfkTicks[MAX_PLAYERS],
  206.     pAFK[MAX_PLAYERS],
  207.     Text:AfkText,
  208.     Text:AfkBackText,
  209.     Float:PlayerPosAfk[3];
  210.  
  211. main(){}
  212.  
  213. public OnGameModeInit()
  214. {
  215.     print("\n\nººººººººººººº ** Servidor Ligado ** ººººººººººººº\n\n");
  216.     SendRconCommand("hostname * Brasil Games [RPG v1.0 - 2012] *");
  217.     SendRconCommand("mapname Brasil RPG");
  218.     SetGameModeText("Brasil Games v1.0");
  219.     //textdrawns
  220.     for (new i=0;i<MAX_PLAYERS;i++)
  221.     {
  222.  
  223.         gText3[i] = TextDrawCreate(498.000000, 75.000000, "~g~$~w~000000000");
  224.         TextDrawBackgroundColor(gText3[i], 255);
  225.         TextDrawFont(gText3[i], 3);
  226.         TextDrawLetterSize(gText3[i], 0.559998, 2.599998);
  227.         TextDrawColor(gText3[i], -1);
  228.         TextDrawSetOutline(gText3[i], 0);
  229.         TextDrawSetProportional(gText3[i], 1);
  230.         TextDrawSetShadow(gText3[i], 1);
  231.  
  232.         TGasosa[i] = TextDrawCreate(30,326, " ");
  233.         TextDrawFont(TGasosa[i],1);
  234.         TextDrawBackgroundColor(TGasosa[i], 0x000000FF);
  235.         TextDrawSetOutline(TGasosa[i], 1);
  236.         TextDrawColor(TGasosa[i], 0xFFFFFFFF);
  237.         TextDrawShowForPlayer (i, TGasosa[i]);
  238.  
  239.     }
  240.     //-
  241.     if(!fexist("Banidos.ini")) dini_Create("Banidos.ini");
  242.     new string[256];
  243.     for(new carro = 0; carro < MAX_CARROS; carro++)
  244.     {
  245.         format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  246.         if(dini_Exists(string))
  247.         {
  248.             new carroid;
  249.             //carroid = AddStaticVehicle(dini_Int(string, "Modelo"), dini_Float(string, "CordX"), dini_Float(string, "CordY"), dini_Float(string, "CordZ"), dini_Float(string, "Angulo"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
  250.             dini_IntSet(string, "Id", carroid);
  251.             //SetVehicleNumberPlate(carro, "{FF0000}[ {000000}Sem Dono {FF0000}]");
  252.             SetVehicleNumberPlate(carroid = CreateVehicle(dini_Int(string,"Modelo"), dini_Float(string,"CordX"), dini_Float(string,"CordY"), dini_Float(string,"CordZ"), dini_Float(string,"Angulo"), dini_Int(string,"Cor1"), dini_Int(string,"Cor2"),9999999), dini_Get(string,"Placa"));
  253.             proximocarro++;
  254.         }
  255.     }
  256.     UsePlayerPedAnims();
  257.     DisableInteriorEnterExits();
  258.     EnableStuntBonusForAll(0);
  259.     TGanhador = 0;
  260. //    LotoQuantiaGrana = DinheiroLotoSortear();
  261.     SetTimers();
  262.     TempoExpMinuto();
  263.     //=== [ Pickups ] ====
  264.     EntrarPref = CreatePickup(1239, 1318, 1480.8987, -1770.6410, 18.7958, -1);
  265.     SaidaPref = CreatePickup(1239, 1318, 389.3070, 173.6391, 1008.3828, -1);
  266.     //=== [ 3d Label ] ===
  267.     Create3DTextLabel("Prefeitura\nDe\nLos Santos",-1,1480.8987, -1770.6410, 18.7958,60.0,0);// Prefeitura Entrada
  268.     Create3DTextLabel("Saida",-1,389.3070, 173.6391, 1008.3828,60.0,0);// Prefeitura Saida
  269.     Create3DTextLabel("\n/profissoes",-1,362.4499,173.8849,1008.3828,60.0,0);// comando pra peg
  270.     //===[ Textdraws' ] ===
  271.     AfkText = TextDrawCreate(168.000000,319.000000,"Voce esta bloqueado de upar!");
  272.     TextDrawAlignment(AfkText,0);
  273.     TextDrawBackgroundColor(AfkText,0x000000ff);
  274.     TextDrawFont(AfkText,1);
  275.     TextDrawLetterSize(AfkText,1.000000,2.699999);
  276.     TextDrawColor(AfkText,0xffffffff);
  277.     TextDrawSetOutline(AfkText,1);
  278.     TextDrawSetProportional(AfkText,1);
  279.     TextDrawSetShadow(AfkText,1);
  280.  
  281.     BemVindo = TextDrawCreate(168.000000,319.000000,"  ~b~Brasil Games [v1.0]");
  282.     TextDrawAlignment(BemVindo,0);
  283.     TextDrawBackgroundColor(BemVindo,0x000000ff);
  284.     TextDrawFont(BemVindo,1);
  285.     TextDrawLetterSize(BemVindo,1.000000,2.699999);
  286.     TextDrawColor(BemVindo,0xffffffff);
  287.     TextDrawSetOutline(BemVindo,1);
  288.     TextDrawSetProportional(BemVindo,1);
  289.     TextDrawSetShadow(BemVindo,1);
  290.  
  291.     ImagemConnect = TextDrawCreate(1.000000, -1.000000, "loadsuk:loadsc6");
  292.     TextDrawBackgroundColor(ImagemConnect, 255);
  293.     TextDrawFont(ImagemConnect, 4);
  294.     TextDrawLetterSize(ImagemConnect, 0.500000, 1.000000);
  295.     TextDrawColor(ImagemConnect, -1);
  296.     TextDrawSetOutline(ImagemConnect, 0);
  297.     TextDrawSetProportional(ImagemConnect, 1);
  298.     TextDrawSetShadow(ImagemConnect, 1);
  299.     TextDrawUseBox(ImagemConnect, 1);
  300.     TextDrawBoxColor(ImagemConnect, 255);
  301.     TextDrawTextSize(ImagemConnect, 645.000000, 450.000000);
  302.  
  303.     AfkBackText = TextDrawCreate(248.000000,351.000000,"Para ser desbloqueado de upar Use: ~r~/~w~sairafk");
  304.     TextDrawAlignment(AfkBackText,0);
  305.     TextDrawBackgroundColor(AfkBackText,0x000000ff);
  306.     TextDrawFont(AfkBackText,1);
  307.     TextDrawLetterSize(AfkBackText,0.299999,1.100000);
  308.     TextDrawColor(AfkBackText,0xffffffff);
  309.     TextDrawSetOutline(AfkBackText,1);
  310.     TextDrawSetProportional(AfkBackText,1);
  311.     TextDrawSetShadow(AfkBackText,1);
  312.     //-
  313.     PortaoDP = CreateObject(980,1540.68652344,-1627.59179688,15.15620422,0.00000000,0.00000000,90.00000000);
  314.     PortaoDP2 = CreateObject(980,1589.98474121,-1638.26818848,15.21242142,0.00000000,0.00000000,359.99523926); //object(airportgate) (1)
  315.     ElevadorDP = CreateObject(976,1561.68164062,-1641.38964844,12.56751347,270.79650879,0.00000000,90.00000000); //object(phils_compnd_gate)
  316.     for(new i=1; i<MAX_VEHICLES; i++)
  317.     {
  318.         SetVehicleNumberPlate(i, "{FF0000}[ {000000}BRGames {FF0000}]");
  319.     }
  320.     return 1;
  321. }
  322.  
  323. public OnGameModeExit()
  324. {
  325.     return 1;
  326. }
  327.  
  328. public OnRconLoginAttempt(ip[], password[], success)
  329. {
  330.     if(!success)
  331.     {
  332.         printf("Rcon Errada!! - IP %s - Senha Usada: %s",ip, password);
  333.         new pip[16];
  334.         for(new i=0; i<MAX_PLAYERS; i++)
  335.         {
  336.             GetPlayerIp(i, pip, sizeof(pip));
  337.             if(!strcmp(ip, pip, true))
  338.             {
  339.                 SendClientMessage(i, 0xFFFFFFFF, "Senha Errada!. Bye!");
  340.                 Kick(i);
  341.             }
  342.         }
  343.     }
  344.     return 1;
  345. }
  346.  
  347. public OnPlayerRequestClass(playerid, classid)
  348. {
  349.     TextDrawShowForPlayer(playerid, ImagemConnect);
  350.     TextDrawShowForPlayer(playerid, BemVindo);
  351.     if(pFase[playerid][Logado] == 0)
  352.     {
  353.         ShowPlayerDialog(playerid, SPAWNJ, DIALOG_STYLE_MSGBOX,"Registro/Login", "Bem Vindo Ao servidor!\nClique em continuar para prosseguir o seu registro/login!", "Continuar", "");
  354.         SetPlayerCameraPos(playerid,2683.2480,-1676.5824,36.8194);
  355.         SetPlayerCameraLookAt(playerid,2686.4868,-1680.4825,36.8194);
  356.         SetPlayerPos(playerid, 2701.9219,-1697.5417,30.5223);
  357.         SetPlayerInterior(playerid, 0);
  358.         SetPlayerSkin(playerid, 70);
  359.         TextDrawHideForPlayer(playerid, gText3[playerid]);
  360.         ApplyAnimation(playerid, "STRIP", "strip_E", 4.0, 1, 1, 1, 1, 0);
  361.     }
  362.     if(pFase[playerid][Logado] == 1)
  363.     {
  364.         SpawnPlayer(playerid);
  365.         //TextDrawHideForPlayer(playerid, gText3[playerid]);
  366.         TextDrawShowForPlayer(playerid, gText3[playerid]);
  367.     }
  368.     if(classid == 1 || classid == 0 && !IsPlayerAdmin(playerid))
  369.     {
  370.         //SendClientMessage(playerid,Verde,"This skin is only for admins!");
  371.         return 0;
  372.     }
  373.     return 1;
  374. }
  375.  
  376. public OnPlayerConnect(playerid)
  377. {
  378.     pFase[playerid][Logado] = 0;
  379.     pAFK[playerid] = 0;
  380.     ResetPlayerGranaEx(playerid);
  381.     new string[128];
  382.     format(string,sizeof string,"{00FF00}~> {FFFAFA}%s {FFFAFA}[ {00FF00}%d {FFFAFA}] Conectou-se ao Servidor.",pName(playerid),playerid);
  383.     SendClientMessageToAll(-1, string);
  384.     printf("%s [ID: %d] logou-se ao servidor.",pName(playerid), playerid);
  385.     // Check Ban
  386.     new aname[MAX_PLAYER_NAME];
  387.     new nomepl[MAX_PLAYER_NAME];
  388.     if(dini_Int("NicksBan.ini",pName(playerid)) == 1)
  389.     {
  390.         SendClientMessage(playerid, 0x11B1FFAA, "Você foi Kickado Motivo: Você está banido!");
  391.         format(string, sizeof(string), "%s (%d) Foi Kickado [Motivo]: Nick está Banido!", aname,playerid);
  392.         SendClientMessageToAll(Laranja, string);
  393.         Kick(playerid);
  394.         return 1;
  395.     }
  396.     //
  397.     if(dini_Int("Banidos.ini",pName(playerid)) == 1)
  398.     {
  399.         SendClientMessage(playerid, 0x11B1FFAA, "Você foi Kickado [Motivo]: Conta está banida!");
  400.         format(string, sizeof(string), "%s (%d) Foi Kickado [Motivo]: Conta está banida", aname,playerid);
  401.         SendClientMessageToAll(Laranja, string);
  402.         Kick(playerid);
  403.         return 1;
  404.     }
  405.     if(dini_Int(vfile,"Banido") == 1)
  406.     {
  407.         new Ip[30];
  408.         GetPlayerIp(playerid, Ip, sizeof(Ip));
  409.         SendClientMessage(playerid,Verde,"~> Log Ban <~");
  410.         format(string, sizeof(string),"Nick: %s", nomepl);
  411.         SendClientMessage(playerid,-1,string);
  412.         format(string, sizeof(string),"Banido Por: %s", dini_Get(vfile,"BanPor"));
  413.         SendClientMessage(playerid,-1,string);
  414.         format(string, sizeof(string),"Motivo: %s", dini_Get(vfile,"BanMotivo"));
  415.         SendClientMessage(playerid,-1,string);
  416.         format(string, sizeof(string),"Data: %s", dini_Get(vfile,"Login"));
  417.         SendClientMessage(playerid,-1,string);
  418.         if(dini_Int(vfile,"TBan") == 1)
  419.         {
  420.             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"));
  421.             SendClientMessage(playerid,-1,string);
  422.             new year, month,day;
  423.             getdate(year, month, day);
  424.             new h, m, s;
  425.             gettime(h, m, s);
  426.             if(year > dini_Int(vfile,"BanAteY"))
  427.             {
  428.                 SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  429.                 dini_IntSet(vfile, "Banido", 0);
  430.                 dini_IntSet(vfile,"TBan", 0);
  431.                 return 1;
  432.             }
  433.             if(year == dini_Int(vfile,"BanAteY"))
  434.             {
  435.                 if(month > dini_Int(vfile,"BanAteME"))
  436.                 {
  437.                     SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  438.                     dini_IntSet(vfile, "Banido", 0);
  439.                     dini_IntSet(vfile,"TBan", 0);
  440.                     return 1;
  441.                 }
  442.                 if(month == dini_Int(vfile,"BanAteME"))
  443.                 {
  444.                     if(day > dini_Int(vfile,"BanAteD"))
  445.                     {
  446.                         SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  447.                         dini_IntSet(vfile, "Banido", 0);
  448.                         dini_IntSet(vfile,"TBan", 0);
  449.                         return 1;
  450.                     }
  451.                     if(day == dini_Int(vfile,"BanAteD"))
  452.                     {
  453.                         if(h > dini_Int(vfile,"BanAteH"))
  454.                         {
  455.                             SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  456.                             dini_IntSet(vfile, "Banido", 0);
  457.                             dini_IntSet(vfile,"TBan", 0);
  458.                             return 1;
  459.                         }
  460.                         if(h == dini_Int(vfile,"BanAteH"))
  461.                         {
  462.                             if(m >= dini_Int(vfile,"BanAteMI"))
  463.                             {
  464.                                 SendClientMessage(playerid,-1,"Seu tempo de banimento acabou, pode voltar a jogar!");
  465.                                 dini_IntSet(vfile, "Banido", 0);
  466.                                 dini_IntSet(vfile,"TBan", 0);
  467.                                 return 1;
  468.                             }
  469.                         }
  470.                     }
  471.                 }
  472.             }
  473.         }
  474.         SendClientMessage(playerid,Verde,"~> Log Ban <~");
  475.         dini_Set(vfile,"Ip", Ip);
  476.         SendDeathMessage(INVALID_PLAYER_ID, playerid, 0);
  477.         Kick(playerid);
  478.     }
  479.     return 1;
  480. }
  481.  
  482. public OnPlayerDisconnect(playerid, reason)
  483. {
  484.     printf("%s [ID: %d] desconectou-se do servidor.",pName(playerid), playerid);
  485.     //Desconectar();
  486.     Desconectar(playerid);
  487.     new
  488.         string[128],
  489.         name[MAX_PLAYER_NAME];
  490.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  491.     switch(reason)
  492.     {
  493.         case 0: format(string,sizeof string,"{00FF00}~> {FFFAFA}%s saiu do servidor. {00FF00}({FFFAFA}Crash{00FF00}/{FFFAFA}Conexão{00FF00})",name);
  494.         case 1: format(string,sizeof string,"{00FF00}~> {FFFAFA}%s saiu do servidor. {00FF00}({FFFAFA}Vontade Própia{00FF00})",name);
  495.         case 2: format(string,sizeof string,"{00FF00}~> {FFFAFA}%s saiu do servidor. {00FF00}({FFFAFA}Kickado{00FF00}/{FFFAFA}Banido{00FF00})",name);
  496.     }
  497.     SendClientMessageToAll(-1,string);
  498.     pFase[playerid][Logado] = 0;
  499.     LogadoBanco[playerid] = 0;
  500.     new grana;
  501.     grana = GetPlayerGranaEx(playerid);
  502.     dini_IntSet(vfile, "Dinheiro", grana);
  503.     return 1;
  504. }
  505.  
  506. public OnPlayerSpawn(playerid)
  507. {
  508.     LogarProf(playerid);
  509.     TextDrawHideForPlayer(playerid, ImagemConnect);
  510.     TextDrawHideForPlayer(playerid, BemVindo);
  511.     if(Preso[playerid] == 1)
  512.     {
  513.         if(GetPlayerWantedLevel(playerid) == 1)
  514.         {
  515.             SetPlayerInterior(playerid, 6);
  516.             Assalto[playerid] = 0;
  517.             Preso[playerid] = 1;
  518.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  519.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  520.             TempoPreso[playerid] = SetTimerEx("Liberar", 120000, false, "i", playerid);
  521.             ResetPlayerWeapons(playerid);
  522.         }
  523.         else if(GetPlayerWantedLevel(playerid) == 2)
  524.         {
  525.             SetPlayerInterior(playerid, 6);
  526.             Assalto[playerid] = 0;
  527.             Preso[playerid] = 1;
  528.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  529.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  530.             TempoPreso[playerid] = SetTimerEx("Liberar", 240000, false, "i", playerid);
  531.             ResetPlayerWeapons(playerid);
  532.         }
  533.         else if(GetPlayerWantedLevel(playerid) == 3)
  534.         {
  535.             SetPlayerInterior(playerid, 6);
  536.             Assalto[playerid] = 0;
  537.             Preso[playerid] = 1;
  538.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  539.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  540.             TempoPreso[playerid] = SetTimerEx("Liberar", 480000, false, "i", playerid);
  541.             ResetPlayerWeapons(playerid);
  542.         }
  543.         else if(GetPlayerWantedLevel(playerid) == 4)
  544.         {
  545.             SetPlayerInterior(playerid, 6);
  546.             Assalto[playerid] = 0;
  547.             Preso[playerid] = 1;
  548.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  549.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  550.             TempoPreso[playerid] = SetTimerEx("Liberar", 600000, false, "i", playerid);
  551.             ResetPlayerWeapons(playerid);
  552.         }
  553.         else if(GetPlayerWantedLevel(playerid) == 5)
  554.         {
  555.             SetPlayerInterior(playerid, 6);
  556.             Assalto[playerid] = 0;
  557.             Preso[playerid] = 1;
  558.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  559.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  560.             TempoPreso[playerid] = SetTimerEx("Liberar", 720000, false, "i", playerid);
  561.             ResetPlayerWeapons(playerid);
  562.         }
  563.         else if(GetPlayerWantedLevel(playerid) == 6)
  564.         {
  565.             SetPlayerInterior(playerid, 6);
  566.             Assalto[playerid] = 0;
  567.             Preso[playerid] = 1;
  568.             GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
  569.             SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
  570.             TempoPreso[playerid] = SetTimerEx("Liberar", 840000, false, "i", playerid);
  571.             ResetPlayerWeapons(playerid);
  572.         }
  573.     }
  574.     return 1;
  575. }
  576.  
  577. public OnPlayerDeath(playerid, killerid, reason)
  578. {
  579.     SendDeathMessage(killerid,playerid,reason);
  580.     new aname[MAX_PLAYER_NAME];
  581.     if(podedm == 0)
  582.     {
  583.          SendClientMessage(killerid, Amarelo, "* Você foi preso por fazer dm em local proibido!");
  584.          SpawnPlayer(killerid);
  585.          SetPlayerPos(killerid, 264.4181,77.3247,1001.0391);
  586.          SetPlayerHealth(killerid, 99999);
  587.          SetPlayerInterior(killerid, 6);
  588.          ResetPlayerWeapons(killerid);
  589.          dini_IntSet(aname, "Preso", 1);
  590.     }
  591.     return 1;
  592. }
  593.  
  594. public OnVehicleSpawn(vehicleid)
  595. {
  596.     return 1;
  597. }
  598.  
  599. public OnVehicleDeath(vehicleid, killerid)
  600. {
  601.     return 1;
  602. }
  603.  
  604. public OnPlayerText(playerid, text[])
  605. {
  606.     new sChat[256],
  607.         sNome[MAX_PLAYER_NAME];
  608.     if(pAdmin[playerid] > 1)
  609.     {
  610.         GetPlayerName(playerid, sNome, MAX_PLAYER_NAME);
  611.         format(sChat, 128, "[Adm Lv : %d] - %s (%d) : %s", pAdmin[playerid], sNome, playerid, text);
  612.         for(new i; i != GetMaxPlayers(); i++)
  613.             SendClientMessage(i, -1, sChat);
  614.     }
  615.     if(!pAdmin[playerid])
  616.     {
  617.         GetPlayerName(playerid, sNome, MAX_PLAYER_NAME);
  618.         format(sChat, 128, "%s (%d) : %s", sNome, playerid, text);
  619.         for(new i; i != GetMaxPlayers(); i++)
  620.             SendClientMessage(i, -1, sChat);
  621.     }
  622.     if(pAFK[playerid] == 1)
  623.     {
  624.         SendClientMessage(playerid, Vermelho, "* Saia do Modo AFK Primeiro! Use: /sairafk");
  625.         return 0;
  626.     }
  627.     if(AcessoOn[playerid] == true)
  628.     {
  629.         new codigos = random(sizeof(Codigos));
  630.         cudigos = Codigos[codigos];
  631.         if(strfind(text, Codigos[codigos], true) == 0)
  632.         {
  633.             KillTimer(KillFirewall[playerid]);
  634.             KillAcesso = SetTimerEx("AcessoBanco", 1000, 20, "i", playerid);
  635.             KillTransferencia = SetTimerEx("LimiteGrana", 27000, false, "i", playerid);
  636.             format(sChat, sizeof(sChat), "* %s conseguiu derrubar o firewall", pName(playerid));
  637.             SendClientMessageToAll(0x7FFF00AA, sChat);
  638.             Assalto[playerid] = 1;
  639.             return 0;
  640.         }
  641.         else
  642.         {
  643.             SendClientMessage(playerid, 0xFF0000FF, "(ERRO) Codigo Inválido!");
  644.             return 0;
  645.         }
  646.     }
  647.     return 0;
  648. }
  649.  
  650. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  651. {
  652.  
  653. new string[128], IP[24];
  654. if(dialogid == REGISTRO)
  655. {
  656.     if(!response)
  657.     {
  658.        SendClientMessage(playerid,-1,"{00BFFF}Voce foi kickado por nao registrar!.");
  659.        Kick(playerid);
  660.     }
  661.     else {
  662.     if(!strlen(inputtext))
  663.     {
  664.         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));
  665.         ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", StringLg, "Registrar", "Sair");
  666.     }
  667.     dini_Create(vfile);
  668.     format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  669.     dini_Set(vfile, "Senha", inputtext);
  670.     GetPlayerIp(playerid, IP, sizeof(IP));
  671.     dini_Set(vfile, "Login", pName(playerid));
  672.     dini_Set(vfile, "IP", IP);
  673.     dini_Set(vfile, "Level", "0");
  674.     dini_Set(vfile, "ExpJogador", "0");
  675.     dini_Set(vfile, "LevelAdmin", "0");
  676.     dini_Set(vfile, "Dinheiro", "0");
  677.     dini_Set(vfile, "Procurado", "0");
  678.     dini_Set(vfile, "Preso", "0");
  679.     dini_Set(vfile, "Skin", "1");
  680.     dini_Set(vfile, "Gasolina", "20");
  681.     dini_Set(vfile, "VipL", "0");
  682.     dini_Set(vfile, "Avisos", "0");
  683.     dini_Set(vfile, "TContaBancaria", "0");
  684.     dini_Set(vfile, "HabTerrestre", "0");
  685.     dini_Set(vfile, "Pais", "Nenhum");
  686.     dini_Set(vfile, "HabAerea", "0");
  687.     dini_Set(vfile, "HabNautica", "0");
  688.     dini_Set(vfile, "Profissao", "0");
  689.     dini_Set(vfile,"Porte", "0");
  690.     GivePlayerGranaEx(playerid,500);
  691.     ShowPlayerDialog(playerid, paislogin, DIALOG_STYLE_MSGBOX, "Registro", "Agora\tSelecione o Seu Pais", "Brasil", "Portugal");
  692.     GameTextForPlayer(playerid, "~w~Registrado", 8000, 1);
  693.     PlayerPlaySound(playerid, 1057, 0, 0, 0);
  694.     pFase[playerid][Logado] = 1;
  695.     return 1;
  696.     }
  697. }
  698.  
  699. if(dialogid == DIALOG_GAS)
  700. {
  701.     if(!response)
  702.         return SendClientMessage(playerid, 0xFFFFFFFF, "Você não colocou gasolina");
  703.     new sGasolinaT = strval(inputtext),quantia = sGasolinaT*floatround(VALOR_LITRO);
  704. /*    if(GetPlayerGranaEx(playerid) < quantia)
  705.         return SendClientMessage(playerid, 0xFFFFFFFF, "Você não tem dinheiro para isto");*/
  706.     if(quantia <= 0 || GetPlayerGranaEx(playerid) < VALOR_LITRO)
  707.         return SendClientMessage(playerid, 0xFFFFFFFF, "Você não tem dinheiro para isto");
  708.     if(sGasolinaT > 100 || sGasolinaT <= 0)
  709.         return SendClientMessage(playerid, 0xFFFFFFFF, "Quantia Inválida");
  710.     format(string,60, "* Você completou seu tanque com '[%d]' litros de combustível. Valor: [ %dR$ ]",sGasolinaT,quantia);
  711.     SendClientMessage(playerid, Amarelo, string);
  712.     dini_IntSet (vfile, "Gasolina", pGasolina[playerid] + sGasolinaT);
  713.     GivePlayerGranaEx(playerid,-quantia);
  714.     return 1;
  715. }
  716.  
  717. if(dialogid == 4501)// Menu
  718. {
  719.     if(response)
  720.     {
  721.         if(listitem == 0)
  722.         {//Salvar posição
  723.             if(IsPlayerInAnyVehicle(playerid))
  724.             {
  725.                 new aname[MAX_PLAYER_NAME];
  726.                 GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
  727.                 new Float:carroX,Float:carroY,Float:carroZ,Float:carroA;
  728.                 new vid;
  729.                 vid = GetPlayerVehicleID(playerid);
  730.                 GetVehiclePos(vid, carroX, carroY, carroZ);
  731.                 GetVehicleZAngle(vid, carroA);
  732.                 new pname[MAX_PLAYER_NAME];
  733.                 GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  734.                 for(new carro = 0; carro < MAX_CARROS; carro++)
  735.                 {
  736.                     format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  737.                     if(strcmp(dini_Get(string, "Dono"), pname, true) == 0)
  738.                     {
  739.                         dini_FloatSet(string, "CordX", Float:carroX);
  740.                         dini_FloatSet(string, "CordY", Float:carroY);
  741.                         dini_FloatSet(string, "CordZ", Float:carroZ);
  742.                         dini_FloatSet(string, "Angulo", Float:carroA);
  743.                         SendClientMessage(playerid, Verde, "Seu carro foi salvo na sua posição.");
  744.                     }
  745.                 }
  746.                 SendClientMessage(playerid, Verde, "* A posição do seu veiculo foi salva com sucesso.");
  747.             }
  748.             else {
  749.                 SendClientMessage(playerid, 0xff6633AA, "* Você precisa estar em seu veiculo para salvar a posição.");
  750.             }
  751.         }
  752.         if(listitem == 1)
  753.         {//Alterar cor 1
  754.             format(string, sizeof(string), "Alterar Cor 1\n\nDigite o número da cor desejada e aperte \"Alterar\".\n\n ~ !");
  755.             ShowPlayerDialog(playerid, 4502, DIALOG_STYLE_INPUT, "Meu Carro", string, "Alterar", "Cancelar");
  756.         }
  757.         if(listitem == 2)
  758.         {//Alterar cor 2
  759.             format(string, sizeof(string), "Alterar Cor 2\n\nDigite o número da cor desejada e aperte \"Alterar\".\n\n ~ !");
  760.             ShowPlayerDialog(playerid, 4503, DIALOG_STYLE_INPUT, "Meu Carro", string, "Alterar", "Cancelar");
  761.         }
  762.         if(listitem == 3)
  763.         {// Respawnar carro
  764.             new pname[MAX_PLAYER_NAME];
  765.             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  766.             for(new carro = 0; carro < MAX_CARROS; carro++) {
  767.                 format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  768.                 if(strcmp(dini_Get(string, "Dono"), pname, true) == 0)
  769.                 {
  770.                     DestroyVehicle(dini_Int(string, "Id"));
  771.                     new carroid;
  772.                     //carroid = AddStaticVehicle(dini_Int(string, "Modelo"), dini_Float(string, "CordX"), dini_Float(string, "CordY"), dini_Float(string, "CordZ"), dini_Float(string, "Angulo"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
  773.                     dini_IntSet(string, "Id", carroid);
  774.                     SetVehicleNumberPlate(carroid = CreateVehicle(dini_Int(string,"Modelo"), dini_Float(string,"CordX"), dini_Float(string,"CordY"), dini_Float(string,"CordZ"), dini_Float(string,"Angulo"), dini_Int(string,"Cor1"), dini_Int(string,"Cor2"),false), dini_Get(string,"Placa"));
  775.                 }
  776.             }
  777.             SendClientMessage(playerid, Amarelo, "* Veiculo respawnado!");
  778.         }
  779.         if(listitem == 4)
  780.         {//Alterar nome
  781.             format(string, sizeof(string), "Alterar nome do veiculo\n\nDigite o novo nome do veiculo e clique em \"Alterar\"!");
  782.             ShowPlayerDialog(playerid, 4504, DIALOG_STYLE_INPUT, "Nome do veiculo", string, "Alterar", "Cancelar");
  783.         }
  784.     }
  785.     if(listitem == 5)//Alterar placa
  786.     {
  787.         format(string, sizeof(string),"Alterar Placa\n\nDigite sua nova placa e clique em Alterar\"Alterar\"");
  788.         ShowPlayerDialog(playerid, 4505, DIALOG_STYLE_INPUT,"Meu Carro", string,"Alterar","Cancelar");
  789.     }
  790.     if(listitem == 6)                                 // Ativar Dono2
  791.     {
  792.         new pname[MAX_PLAYER_NAME];
  793.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  794.         format(string, sizeof(string), "/Carros/carro%d.ini", dini_Int(vfile,string));
  795.         if(strcmp(dini_Get(string,"Dono"), pname, false) == 0) {
  796.             if(dini_Int(string,"cDono2") == 0) {
  797.                 dini_IntSet(string,"cDono2", 1);
  798.                 SendClientMessage(playerid, Amarelo,"* Sistema de 2º dono ativado!");
  799.                 return 1;
  800.             }
  801.             else {
  802.                 dini_IntSet(string,"cDono2", 0);
  803.                 SendClientMessage(playerid, Amarelo,"* Sistema de 2º dono desativado!");
  804.                 return 1;
  805.             }
  806.         }
  807.         return 1;
  808.     }
  809.     if(listitem == 7)                                 // Definir 2º dono
  810.     {
  811.         format(string, sizeof(string),"Definir 2º dono\n\nDigite o nome do 2º dono e clique em \"Definir\".\n\n ~ TheLife!");
  812.         ShowPlayerDialog(playerid, 4506, DIALOG_STYLE_INPUT,"Meu Carro", string,"Definir","Cancelar");
  813.     }
  814.     if(listitem == 8)                                 // Alarme
  815.     {
  816.         format(string, sizeof(string), "/Carros/carro%d.ini", dini_Int(vfile,string));
  817.         if(strcmp(dini_Get(string,"Dono"), pName(playerid), false) == 0)
  818.         {
  819.             new mot, lu, alar, por, cap, porma, ob;
  820.             GetVehicleParamsEx(dini_Int(string,"Id"), mot, lu, alar, por, cap, porma, ob);
  821.             if(dini_Int(string,"Alarme") == 0)
  822.             {
  823.                 dini_IntSet(string,"Alarme", 1);
  824.                 SendClientMessage(playerid, Amarelo,"Alarme ativado!");
  825.                 return 1;
  826.             }
  827.             else {
  828.                 dini_IntSet(string,"Alarme", 0);
  829.                 SetVehicleParamsEx(dini_Int(string,"Id"), mot, lu, VEHICLE_PARAMS_OFF, por, cap, porma, ob);
  830.                 SendClientMessage(playerid, Amarelo,"Alarme desativado!");
  831.                 return 1;
  832.             }
  833.         }
  834.         return 1;
  835.     }
  836.  
  837.     if(listitem == 7)
  838.     {// Vender carro
  839.         new pname[MAX_PLAYER_NAME];
  840.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  841.         for(new carro = 0; carro < MAX_CARROS; carro++) {
  842.             format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  843.             if(strcmp(dini_Get(string, "Dono"), pname, true) == 0) {
  844.                 dini_Set(string, "Dono", "Nenhum");
  845.                 dini_IntSet(string, "cDono", 0);
  846.                 GivePlayerGranaEx(playerid, dini_Int(string, "Preco"));
  847.             }
  848.         }
  849.     }
  850. }
  851.  
  852. if(dialogid == 4506)
  853. {
  854.     new nomepl[MAX_PLAYER_NAME];
  855.     GetPlayerName(playerid, nomepl, sizeof(nomepl));
  856.     if(response == 1)
  857.     {
  858.         new string2[256];
  859.         new aname[MAX_PLAYER_NAME];
  860.         GetPlayerName(playerid, aname, sizeof(aname));
  861.         if(strlen(inputtext) <= 24)
  862.         {
  863.             new pname[MAX_PLAYER_NAME];
  864.             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  865.             //format(string2,sizeof(string2),"CarroID%d",scar[playerid]);
  866.             format(string, sizeof(string), "/Carros/carro%d.ini", dini_Int(vfile,string2));
  867.             if(strcmp(dini_Get(string,"Dono"), aname, true) == 0) {
  868.                 if(dini_Exists(tfile(inputtext)))
  869.                 {
  870.                     dini_Set(string,"Dono2", inputtext);
  871.                     SetVehicleNumberPlate(dini_Int(string,"Id"), inputtext);
  872.                     format(string2,sizeof(string2),"O 2º dono do carro agora é %s",inputtext);
  873.                     SendClientMessage(playerid, 0x408080FF,string2);
  874.                 } else return SendClientMessage(playerid, Vermelho,"Este jogador não existe!");
  875.                 return 1;
  876.             }
  877.         }
  878.         else {
  879.             SendClientMessage(playerid, Vermelho,"O nome é de no máximo 24 caracteres");
  880.         }
  881.     }
  882. }
  883.  
  884.  
  885. if(dialogid == 4505)
  886. {
  887.     new nomepl[MAX_PLAYER_NAME];
  888.     GetPlayerName(playerid, nomepl, sizeof(nomepl));
  889.     if(response == 1)
  890.     {
  891.         new aname[MAX_PLAYER_NAME];
  892.         GetPlayerName(playerid, aname, sizeof(aname));
  893.         if(strlen(inputtext) <= 8)
  894.         {
  895.             new string2[256];
  896.             new pname[MAX_PLAYER_NAME];
  897.             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  898.             format(vfile, sizeof(vfile), DIRETORIO, pname);
  899.             format(string2,sizeof(string2),"CarroID%d",scar[playerid]);
  900.             format(string2, sizeof(string2), "/Carros/carro%d.ini", dini_Int(vfile,string2));
  901.             if(strcmp(dini_Get(string2,"Dono"), aname, true) == 0) {
  902.                 dini_Set(string2,"Placa", inputtext);
  903.                 SetVehicleNumberPlate(dini_Int(string2,"Id"), inputtext);
  904.                 SendClientMessage(playerid, 0x408080FF,"* Placa do carro alterada, para atualizar respawne o carro > Use: /meucarro <!");
  905.                 return 1;
  906.             }
  907.         }
  908.         else {
  909.             SendClientMessage(playerid, Vermelho,"Placa máxima de 8 caracteres");
  910.         }
  911.     }
  912. }
  913.  
  914.  
  915. if(dialogid == 4504)
  916. {
  917.     new nomepl[MAX_PLAYER_NAME];
  918.     GetPlayerName(playerid, nomepl, sizeof(nomepl));
  919.     if(response == 1) {
  920.         new aname[MAX_PLAYER_NAME];
  921.         GetPlayerName(playerid, aname, sizeof(aname));
  922.         for(new carro = 0; carro < MAX_CARROS; carro++) {
  923.             format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  924.             if(strcmp(dini_Get(string, "Dono"), aname, true) == 0) {
  925.                 dini_Set(string, "Nome", inputtext);
  926.                 SendClientMessage(playerid, 0xC0C0C0AA, "* Nome do veiculo alterado com sucesso.");
  927.                 return 1;
  928.             }
  929.         }
  930.     }
  931. }
  932.  
  933. if(dialogid == 4502)
  934. {
  935.     new nomepl[MAX_PLAYER_NAME];
  936.     GetPlayerName(playerid, nomepl, sizeof(nomepl));
  937.     if(response == 1)
  938.     {
  939.         new aname[MAX_PLAYER_NAME];
  940.         GetPlayerName(playerid, aname, sizeof(aname));
  941.         if(!IsNumeric(inputtext))
  942.         {
  943.             SendClientMessage(playerid, Vermelho, "* Valor inválido.");
  944.             return 1;
  945.         }
  946.         else {
  947.             for(new carro = 0; carro < MAX_CARROS; carro++) {
  948.                 format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  949.                 if(strcmp(dini_Get(string, "Dono"), aname, true) == 0) {
  950.                     dini_IntSet(string, "Cor1", StrToInt(inputtext));
  951.                     ChangeVehicleColor(dini_Int(string, "Id"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
  952.                 }
  953.             }
  954.         }
  955.     }
  956. }
  957.  
  958.  
  959. if(dialogid == 4503)
  960. {
  961.     new nomepl[MAX_PLAYER_NAME];
  962.     GetPlayerName(playerid, nomepl, sizeof(nomepl));
  963.     if(response == 1) {
  964.         new aname[MAX_PLAYER_NAME];
  965.         GetPlayerName(playerid, aname, sizeof(aname));
  966.         if(!IsNumeric(inputtext)) {
  967.             SendClientMessage(playerid, Vermelho, "* Valor inválido.");
  968.             return 1;
  969.         }
  970.         else {
  971.             for(new carro = 0; carro < MAX_CARROS; carro++) {
  972.                 format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  973.                 if(strcmp(dini_Get(string, "Dono"), aname, true) == 0) {
  974.                     dini_IntSet(string, "Cor2", StrToInt(inputtext));
  975.                     ChangeVehicleColor(dini_Int(string, "Id"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
  976.                 }
  977.             }
  978.         }
  979.     }
  980. }
  981.  
  982. if(dialogid == 9459)
  983. {
  984.     if(response)
  985.     {
  986.         dini_Set(vfile, "Senha", inputtext);
  987.         format(string, sizeof(string), "(INFO) %s sua senha foi alterada com sucesso!", pName(playerid));
  988.         SendClientMessage(playerid, 0xCDCDB4AA, string);
  989.         format(string, sizeof(string), "(INFO) Sua nova senha: %s", inputtext);
  990.         SendClientMessage(playerid, 0xCDCDB4AA, string);
  991.         }
  992.     return 1;
  993. }
  994.  
  995. if(dialogid == MenuBancoH)
  996. {
  997.     //
  998. }
  999.  
  1000. if(dialogid == pMenuProf)
  1001. {
  1002.     if(response)
  1003.     {
  1004.         if(listitem == 0)
  1005.         {
  1006.             ShowPlayerDialog(playerid, pHonestas, DIALOG_STYLE_LIST, "Profissões - Honestas", "Vendedor de Sorvete - Level 0\n<- Voltar", "Selecionar", "Fechar");
  1007.         }
  1008.         if(listitem == 1)
  1009.         {
  1010.             ShowPlayerDialog(playerid, pHonestas2, DIALOG_STYLE_LIST, "Profissões - Honestas 2", "Troll Face\nVoltar", "Selecionar", "Fechar");
  1011.         }
  1012.         if(listitem == 2)
  1013.         {
  1014.             ShowPlayerDialog(playerid, pCriminosas, DIALOG_STYLE_LIST, "Profissões - Criminosas", "Vendedor de Drogas - Level 20\nTraficante de Armas - Level 15\nVoltar", "Selecionar", "Fechar");
  1015.         }
  1016.         if(listitem == 3)
  1017.         {
  1018.             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");
  1019.         }
  1020.         if(listitem == 4)
  1021.         {
  1022.             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");
  1023.         }
  1024.         if(listitem == 5)
  1025.         {
  1026.             ShowPlayerDialog(playerid, pMafia, DIALOG_STYLE_LIST, "Profissões - Mafia", "Hacker - Level 50\nVoltar", "Selecionar", "Fechar");
  1027.         }
  1028.     }
  1029. }
  1030.  
  1031. if(dialogid == pCriminosas)
  1032. {
  1033.     if(response)
  1034.     {
  1035.         if(listitem == 0)
  1036.         {
  1037.             if(pLevel[playerid] >= 19)
  1038.             {
  1039.                 Profissao[playerid] = VDrogas;
  1040.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1041.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1042.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1043.                 TogglePlayerControllable(playerid, 1);
  1044.             }
  1045.             else {
  1046.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1047.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1048.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1049.                 TogglePlayerControllable(playerid, 1);
  1050.             }
  1051.             if(listitem == 1)
  1052.             {
  1053.             if(pLevel[playerid] >= 19)
  1054.             {
  1055.                 Profissao[playerid] = TrafArmas;
  1056.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1057.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1058.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1059.                 TogglePlayerControllable(playerid, 1);
  1060.             }
  1061.             else {
  1062.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1063.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1064.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1065.                 TogglePlayerControllable(playerid, 1);
  1066.                 }
  1067.             }
  1068.             if(listitem == 2) // Voltar
  1069.             {
  1070.                 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");
  1071.             }
  1072.             return 1;
  1073.         }
  1074.     }
  1075. }
  1076.  
  1077. if(dialogid == pMafia)
  1078. {
  1079.     if(response)
  1080.     {
  1081.         if(listitem == 1)
  1082.         {
  1083.             if(pLevel[playerid] >= 49)
  1084.             {
  1085.                 Profissao[playerid] = Hacker;
  1086.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1087.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1088.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1089.                 TogglePlayerControllable(playerid, 1);
  1090.             }
  1091.             else {
  1092.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1093.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1094.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1095.                 TogglePlayerControllable(playerid, 1);
  1096.             }
  1097.         }
  1098.         if(listitem == 0) // Voltar
  1099.         {
  1100.             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");
  1101.         }
  1102.         return 1;
  1103.     }
  1104. }
  1105.  
  1106. if(dialogid == pGoverno)
  1107. {
  1108.     if(response)
  1109.     {
  1110.         if(listitem == 0)
  1111.         {
  1112.             if(pLevel[playerid] >= 39)
  1113.             {
  1114.                 Profissao[playerid] = PolicialM;
  1115.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1116.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1117.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1118.                 TogglePlayerControllable(playerid, 1);
  1119.             }
  1120.             else {
  1121.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1122.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1123.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1124.                 TogglePlayerControllable(playerid, 1);
  1125.             }
  1126.             if(listitem == 1)
  1127.             {
  1128.                 if(pLevel[playerid] >= 49)
  1129.                 {
  1130.                     Profissao[playerid] = PolicialC;
  1131.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1132.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1133.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1134.                     TogglePlayerControllable(playerid, 1);
  1135.                 }
  1136.                 else {
  1137.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1138.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1139.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1140.                     TogglePlayerControllable(playerid, 1);
  1141.                 }
  1142.             }
  1143.             if(listitem == 2)
  1144.             {
  1145.                 if(pLevel[playerid] >= 69)
  1146.                 {
  1147.                     Profissao[playerid] = PolicialF;
  1148.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1149.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1150.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1151.                     TogglePlayerControllable(playerid, 1);
  1152.                 }
  1153.                 else {
  1154.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1155.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1156.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1157.                     TogglePlayerControllable(playerid, 1);
  1158.                 }
  1159.             }
  1160.             if(listitem == 3)
  1161.             {
  1162.                 if(pLevel[playerid] >= 29)
  1163.                 {
  1164.                     Profissao[playerid] = Advogado;
  1165.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1166.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1167.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1168.                     TogglePlayerControllable(playerid, 1);
  1169.                 }
  1170.                 else {
  1171.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1172.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1173.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1174.                     TogglePlayerControllable(playerid, 1);
  1175.                 }
  1176.             }
  1177.             if(listitem == 4)
  1178.             {
  1179.                 if(pLevel[playerid] >= 24)
  1180.                 {
  1181.                     Profissao[playerid] = GuardaTransito;
  1182.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1183.                     aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1184.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1185.                     TogglePlayerControllable(playerid, 1);
  1186.                 }
  1187.                 else {
  1188.                     SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1189.                     reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1190.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1191.                     TogglePlayerControllable(playerid, 1);
  1192.                 }
  1193.             }
  1194.             if(listitem == 5) // Voltar
  1195.             {
  1196.                 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");
  1197.             }
  1198.             return 1;
  1199.         }
  1200.     }
  1201. }
  1202.  
  1203. if(dialogid == pTransporte)
  1204. {
  1205.     if(response)
  1206.     {
  1207.         if(listitem == 0)
  1208.         {
  1209.             if(pLevel[playerid] >= 14)
  1210.             {
  1211.                 Profissao[playerid] = Caminhoneiro;
  1212.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1213.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1214.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1215.                 TogglePlayerControllable(playerid, 1);
  1216.             }
  1217.             else {
  1218.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1219.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1220.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1221.                 TogglePlayerControllable(playerid, 1);
  1222.             }
  1223.             if(listitem == 1)
  1224.             {
  1225.             if(pLevel[playerid] >= 9)
  1226.             {
  1227.                 Profissao[playerid] = MotoTaxi;
  1228.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1229.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1230.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1231.                 TogglePlayerControllable(playerid, 1);
  1232.             }
  1233.             else {
  1234.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1235.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1236.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1237.                 TogglePlayerControllable(playerid, 1);
  1238.                 }
  1239.             }
  1240.             if(listitem == 2)
  1241.             {
  1242.             if(pLevel[playerid] >= 9)
  1243.             {
  1244.                 Profissao[playerid] = Taxista;
  1245.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1246.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1247.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1248.                 TogglePlayerControllable(playerid, 1);
  1249.             }
  1250.             else {
  1251.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1252.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1253.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1254.                 TogglePlayerControllable(playerid, 1);
  1255.                 }
  1256.             }
  1257.             if(listitem == 3)
  1258.             {
  1259.             if(pLevel[playerid] >= 4)
  1260.             {
  1261.                 Profissao[playerid] = Maquinista;
  1262.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1263.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1264.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1265.                 TogglePlayerControllable(playerid, 1);
  1266.             }
  1267.             else {
  1268.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1269.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1270.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1271.                 TogglePlayerControllable(playerid, 1);
  1272.                 }
  1273.             }
  1274.             if(listitem == 4) // Voltar
  1275.             {
  1276.                 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");
  1277.             }
  1278.             return 1;
  1279.         }
  1280.     }
  1281. }
  1282.  
  1283.  
  1284. if(dialogid == pHonestas)
  1285. {
  1286.     if(response)
  1287.     {
  1288.             if(listitem == 0)
  1289.             {
  1290.             if(pLevel[playerid] >= 0)
  1291.             {
  1292.                 Profissao[playerid] = VSorvete;
  1293.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1294.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1295.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1296.                 TogglePlayerControllable(playerid, 1);
  1297.             }
  1298.             else {
  1299.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1300.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1301.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1302.                 TogglePlayerControllable(playerid, 1);
  1303.             }
  1304.             if(listitem == 1)
  1305.             {
  1306.             if(pLevel[playerid] >= 0)
  1307.             {
  1308.                 Profissao[playerid] = Paramedico;
  1309.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1310.                 aprovado[playerid] = SetTimerEx("CheckCurriculo", 8000, false, "i", playerid);
  1311.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1312.                 TogglePlayerControllable(playerid, 1);
  1313.             }
  1314.             else {
  1315.                 SendClientMessage(playerid, Amarelo, "* Aguarde enquanto o seu currículo é analisado....");
  1316.                 reprovado[playerid] = SetTimerEx("ReprovarC", 8000, false, "i", playerid);
  1317.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1318.                 TogglePlayerControllable(playerid, 1);
  1319.             }
  1320.             if(listitem == 2) // Voltar
  1321.             {
  1322.                 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");
  1323.             }
  1324.             return 1;
  1325.             }
  1326.         }
  1327.     }
  1328. }
  1329.  
  1330. if(dialogid == 1444)
  1331. {
  1332.     new banco[128];
  1333.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1334.     if(response)
  1335.     {
  1336.         if(strlen(inputtext))
  1337.         {
  1338.             new confirmado[256];
  1339.             confirmado = dini_Get(banco, "SenhaBanco");
  1340.             if(strcmp(inputtext, confirmado, true) == 0)
  1341.             {
  1342.                 SendClientMessage(playerid, -1, "(BANCO) Sua conta bancária foi carregada com sucesso!");
  1343.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1344.                 LogadoBanco[playerid] = 1;
  1345.                 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");
  1346.                 if(SenhaBanco[playerid] == true)
  1347.                 {
  1348.                     new str[128];
  1349.                     format(str, sizeof(str), "Nome de usuário: %s\n\nInsira sua nova senha bancária:", pName(playerid));
  1350.                     ShowPlayerDialog(playerid, 4343, DIALOG_STYLE_INPUT, "Conta", str, "Confirmar", "Cancelar");
  1351.                     SenhaBanco[playerid] = false;
  1352.                 }
  1353.             }
  1354.             else {
  1355.                 format(string, sizeof(string), "Senha Incorreta!\n\nNome de usuário: %s\n\nInsira sua senha bancária:", pName(playerid));
  1356.                 ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Conta Bancária", string, "Entrar", "Cancelar");
  1357.                 SendClientMessage(playerid, Vermelho, "(BANCO) Senha Incorreta.");
  1358.             }
  1359.         }
  1360.         else {
  1361.             new str[128];
  1362.             format(str, sizeof(str), "Não deixe o campo em branco!\n\nNome de usuário: %s\n\nInsira sua senha:", pName(playerid));
  1363.             ShowPlayerDialog(playerid, 9997, DIALOG_STYLE_INPUT, "Conta Bancária", str, "Entrar", "Cancelar");
  1364.         }
  1365.     }
  1366. }
  1367.  
  1368. if(dialogid == 4343)
  1369. {
  1370.     new banco[128];
  1371.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1372.     if(response)
  1373.     {
  1374.         dini_Set(banco, "SenhaBanco", inputtext);
  1375.         format(string, sizeof(string), "(BANCO) %s sua senha bancária foi alterada com sucesso!", pName(playerid));
  1376.         SendClientMessage(playerid, Verde, string);
  1377.         format(string, sizeof(string), "(BANCO) Sua nova senha bancária: %s", inputtext);
  1378.         SendClientMessage(playerid, Verde, string);
  1379.     }
  1380. }
  1381.  
  1382. if(dialogid == 1442)
  1383. {
  1384.     new banco[128];
  1385.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1386.     if(response)
  1387.     {
  1388.         if(strlen(inputtext))
  1389.         {
  1390.             dini_Create(banco);
  1391.             dini_Set(banco, "SenhaBanco", inputtext);
  1392.             dini_IntSet(banco, "SaldoBancario", 500);
  1393.             GameTextForPlayer(playerid, "~w~Conta ~n~ Criada", 3000, 1);
  1394.             GivePlayerGranaEx(playerid, 500);
  1395.             SendClientMessage(playerid, -1, "(BANCO) Sua conta bancária foi criada com sucesso!");
  1396.             PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1397.             LogadoBanco[playerid] = 1;
  1398.         }
  1399.         else {
  1400.             new str[128];
  1401.             format(str, sizeof(str), "Não deixe o campo em branco!\n\nNome de usuário: %s\n\nInsira uma senha:", pName(playerid));
  1402.             ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Conta Bancária", str, "Criar", "Cancelar");
  1403.         }
  1404.     }
  1405. }
  1406.  
  1407. if(dialogid == 4242)   // Bank
  1408. {
  1409.     new banco[128];
  1410.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  1411.     new saldo = dini_Int(banco, "SaldoBancario");
  1412.     if(response)
  1413.     {
  1414.         if(listitem == 0)
  1415.         { // Sacar
  1416.             format(string, sizeof(string), "* Digite a quantia a sacar.");
  1417.             SendClientMessage(playerid, Verde, string);
  1418.             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));
  1419.             ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "Banco", StringLg, "Sacar", "Sair");
  1420.         }
  1421.         if(listitem == 1)
  1422.         {// Depositar
  1423.             format(string, sizeof(string), "* Digite a quantia a depositar.");
  1424.             SendClientMessage(playerid, Verde, string);
  1425.             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));
  1426.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_INPUT, "Banco", StringLg, "Depositar", "Sair");
  1427.         }
  1428.         if(listitem == 2)
  1429.         {// Ver Saldo
  1430.             format(string, sizeof(string), "\tExtrato Bancário\n\n{FFFAFA}\tNome do Usuário: %s\n\tSaldo Atual: %dR$", pName(playerid), saldo);
  1431.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "                 Saldo",string,"Fechar","");
  1432.         }
  1433.         if(listitem == 3)
  1434.         {// Alterar Senha
  1435.             new str[128];
  1436.             format(str, sizeof(str), "** Banco Brasil Games **\n\nInsira sua senha antiga:", pName(playerid));
  1437.             ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Senha Conta Bancária", str, "Confirmar", "Cancelar");
  1438.             SenhaBanco[playerid] = true;
  1439.         }
  1440.     }
  1441. }
  1442.  
  1443.  
  1444. if(dialogid == LOGIN)
  1445. {
  1446.     if(!response)
  1447.     {
  1448.        SendClientMessage(playerid,-1,"{00BFFF}Voce foi kickado por nao Logar.");
  1449.        Kick(playerid);
  1450.     }
  1451.     else {
  1452.     if(response == 1)
  1453.     {
  1454.         format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  1455.         new senhaacc[256];
  1456.         senhaacc = dini_Get(vfile, "Senha");
  1457.         if(strcmp(inputtext, senhaacc, true) == 0)
  1458.         {
  1459.             pAdmin[playerid] = dini_Int(vfile, "LevelAdmin");
  1460.             pGasolina[playerid] = dini_Int(vfile, "Gasolina");
  1461.             GivePlayerGranaEx(playerid, dini_Int(vfile, "Dinheiro"));
  1462.             SetPlayerWantedLevel(playerid, dini_Int(vfile, "Procurado"));
  1463.             Experiencia[playerid] = dini_Int(vfile, "Experiencia");
  1464.             SetPlayerSkin(playerid, dini_Int(vfile, "Skin"));
  1465.             Preso[playerid] = dini_Int(vfile, "Preso");
  1466.             pLevel[playerid] = dini_Int(vfile, "Level");
  1467.             Profissao[playerid] = dini_Int(vfile, "Profissao");
  1468.             SetSpawnInfo(playerid, 0, 23, 2491.4192, -1958.0892, 13.58, 13.75, 0, 0, 0, 0, 0, 0 );
  1469.             pFase[playerid][Logado] = 1;
  1470.             GivePlayerGranaEx(playerid, dini_Int(vfile, "Dinheiro"));
  1471.             SpawnPlayer(playerid);
  1472.             GameTextForPlayer(playerid, "~g~Logado ~n~ Com Sucesso", 8000, 1);
  1473.             PlayerPlaySound(playerid, 1057, 0, 0, 0);
  1474.         }
  1475.         else {
  1476.             SendClientMessage(playerid, Vermelho ,"(x) Senha Incorreta");
  1477.             format(StringLg, sizeof(StringLg), "Senha Incorreta, %s\n Tente Digitar sua Senha Novamente!", pName(playerid));
  1478.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", StringLg, "Logar", "Sair");
  1479.             }
  1480.         }
  1481.         else {
  1482.             format(StringLg, sizeof(StringLg), "{FFFAFA}Usuario: {FFD700}%s\n{FFFAFA}Conta: {00FF00}Registrada\n{FFFAFA}Digite sua Senha e Clique em Logar", pName(playerid));
  1483.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", StringLg, "Logar", "Sair");
  1484.             return 1;
  1485.             }
  1486.         }
  1487.     }
  1488.  
  1489. if(dialogid == paislogin)
  1490. {
  1491.     if(response == 1)
  1492.     {// BR
  1493.         SetSpawnInfo(playerid, 0, 30, 2491.4192, -1958.0892, 13.58, 13.75, 0, 0, 0, 0, 0, 0 );
  1494.         SetPlayerSkin(playerid, 30);
  1495.         dini_IntSet(vfile, "Skin", 30);
  1496.         pFase[playerid][pBrasil] = 1;
  1497.         dini_Set(vfile,"Pais", "Brasil");
  1498.         SpawnPlayer(playerid);
  1499.     }// PT
  1500.     else {
  1501.         SetSpawnInfo(playerid, 0, 50, 2491.4192, -1958.0892, 13.58, 13.75, 0, 0, 0, 0, 0, 0 );
  1502.         SetPlayerSkin(playerid, 50);
  1503.         dini_IntSet(vfile, "Skin", 50);
  1504.         dini_Set(vfile,"Pais", "Portugal");
  1505.         pFase[playerid][pPortugal] = 1;
  1506.         SpawnPlayer(playerid);
  1507.     }
  1508.     return 1;
  1509. }
  1510.  
  1511. if(dialogid == SPAWNJ)
  1512. {
  1513.     if(!response)
  1514.     {
  1515.        SendClientMessage(playerid,-1,"{00BFFF}Voce foi kickado por nao registrar/logar.");
  1516.        Kick(playerid);
  1517.     }
  1518.     else {
  1519.     if(response == 1)
  1520.     {
  1521.         format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  1522.         if(!dini_Exists(vfile))
  1523.         {
  1524.             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));
  1525.             ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", StringLg, "Registrar", "Sair");
  1526.         }
  1527.         if(dini_Exists(vfile))
  1528.         {
  1529.             format(StringLg, sizeof(StringLg), "{FFFAFA}Usuario: {FFD700}%s\n{FFFAFA}Conta: {00FF00}Registrada\n{FFFAFA}Digite sua Senha e Clique em Logar", pName(playerid));
  1530.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", StringLg, "Logar", "Sair");
  1531.             }
  1532.         }
  1533.     }
  1534. }
  1535. return 1;
  1536. }
  1537.  
  1538. public OnPlayerPickUpPickup(playerid, pickupid)
  1539. {
  1540.     if(pickupid == EntrarPref)
  1541.     {
  1542.          SetPlayerInterior(playerid, 3);
  1543.          GameTextForPlayer(playerid,"~g~Prefeitura", 3000, 1);
  1544.          SetPlayerPos(playerid, 387.3434, 173.8979, 1008.3828);
  1545.     }
  1546.  
  1547.     if(pickupid == SaidaPref)
  1548.     {
  1549.          SetPlayerInterior(playerid, 0);
  1550.          SetPlayerPos(playerid, 1480.9331, -1768.5493, 18.7958);
  1551.     }
  1552.     return 1;
  1553. }
  1554.  
  1555. public ChecarPing(playerid)
  1556. {
  1557.     if(GetPlayerPing(playerid) > 1000) Kick(playerid);
  1558.     return 1;
  1559. }
  1560.  
  1561. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
  1562. {
  1563.     if(pAdmin[playerid] < 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"");
  1564.     SetPlayerPosFindZ(playerid, fX, fY, fZ);
  1565.     return 1;
  1566. }
  1567.  
  1568. public PostosG()
  1569. for (new i=0;i<MAX_PLAYERS;i++)
  1570. {
  1571.     if(IsPlayerConnected(i))
  1572.     {
  1573.         if(PlayerToPoint(7.0, i, 2221.3298,-1108.0605,26.2748) || PlayerToPoint(7.0, i, 2159.1794,-1004.8632,62.7888) || PlayerToPoint(7.0, i, 2326.2520,-1079.5879,50.0407) || PlayerToPoint(7.0, i, 2058.4858,-979.0306,46.2862)) {
  1574.             AreaPosto[i] = 1;
  1575.             GameTextForPlayer(i,"~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~w~Posto ~n~ ~b~/abastecer",3000,4);
  1576.         }
  1577.         else {
  1578.             if(AreaPosto[i] == 1)
  1579.             {
  1580.                 AreaPosto[i] = 0;
  1581.             }
  1582.             //Posto LV \/
  1583.             if (PlayerToPoint(7.0, i, 2638.9553,1107.1788,10.8203) || PlayerToPoint(7.0, i, 1595.6233,2199.6162,10.8203) || PlayerToPoint(7.0, i, 1940.8671,-1773.2283,13.3906) || PlayerToPoint(5.0, i, -2243.8435,-2560.5598,31.9219)) {
  1584.                 GameTextForPlayer(i,"~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~w~Posto ~n~ ~b~/abastecer",3000,4);
  1585.                 AreaPosto[i] = 1;
  1586.             }
  1587.             else {
  1588.                 if(AreaPosto[i] == 1) {
  1589.                     AreaPosto[i] = 0;
  1590.                 }
  1591.                 //Posto LS/SF \/
  1592.                 if (PlayerToPoint(7.0, i, 1382.3647,459.0785,20.3452) || PlayerToPoint(8.0, i, -1675.4781,413.1594,7.1797) || PlayerToPoint(7.0, i, 655.5922,-565.3943,16.3359) || PlayerToPoint(7.0, i, -1606.3616,-2713.5872,48.5335)) {
  1593.                     GameTextForPlayer(i,"~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~w~Posto ~n~ ~b~/abastecer",3000,4);
  1594.                     AreaPosto[i] = 1;
  1595.                 }
  1596.                 else {
  1597.                     if(AreaPosto[i] == 1) {
  1598.                         AreaPosto[i] = 0;
  1599.                     }
  1600.                     //Posto acima FC \/
  1601.                     if(IsPlayerInPlace(i,576.3771, 1662.789, 619.3304, 1709.206) || PlayerToPoint(7.0, i, 1004.1403,-937.8801,42.1797) || PlayerToPoint(7.0, i, 2202.1230,2476.8582,10.8203) || PlayerToPoint(6.0, i, 417.2369,-1912.7708,1.5641) || PlayerToPoint(6.0, i, 70.3983,1218.9958,18.8117)) {
  1602.                         GameTextForPlayer(i,"~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~w~Posto ~n~ ~b~/abastecer",3000,4);
  1603.                         AreaPosto[i] = 1;
  1604.                     }
  1605.                     else {
  1606.                         if(AreaPosto[i] == 1)
  1607.                         {
  1608.                             AreaPosto[i] = 0;
  1609.                         }
  1610.                     }
  1611.                 }
  1612.             }
  1613.         }
  1614.     }
  1615. }
  1616.  
  1617. public OnVehicleMod(playerid,vehicleid,componentid)
  1618. {
  1619.     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);
  1620.     if(GetPlayerInterior(playerid) == 0)
  1621.     {
  1622.         BanEx(playerid, "Tuning Hack - Mod S0beit"); // Ant-Tunning Hack
  1623.         //Testado e Aprovando :D
  1624.     }
  1625.     return 1;
  1626. }
  1627.  
  1628. public OnPlayerUpdate(playerid)
  1629. {
  1630.     SetPlayerScore(playerid, pLevel[playerid]);
  1631.     return 1;
  1632. }
  1633.  
  1634.  
  1635. public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
  1636. {
  1637.     new Float: fVehicle[3];
  1638.     GetVehiclePos(vehicleid, fVehicle[0], fVehicle[1], fVehicle[2]);
  1639.     if(!IsPlayerInRangeOfPoint(playerid, 10, fVehicle[0], fVehicle[1], fVehicle[2]))
  1640.     {
  1641.         return;
  1642.     }
  1643. }
  1644.  
  1645. public LogarProf(playerid)
  1646. {
  1647.     if(Profissao[playerid] == Desempregado)
  1648.     {
  1649.         SetPlayerColor(playerid, -1);
  1650.     }
  1651.     else if(Profissao[playerid] == Caminhoneiro)
  1652.     {
  1653.         SetPlayerColor(playerid, 0x4B687EF6);
  1654.         GivePlayerWeapon(playerid, 7 , 1);
  1655.         SetPlayerSkin(playerid, 8);
  1656.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1657.     }
  1658.     else if(Profissao[playerid] == MotoTaxi)
  1659.     {
  1660.         SetPlayerColor(playerid, 0xCD853FAA);
  1661.         GivePlayerWeapon(playerid, 1 , 1);
  1662.         SetPlayerSkin(playerid, 16);
  1663.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1664.     }
  1665.     else if(Profissao[playerid] == Taxista)
  1666.     {
  1667.         SetPlayerColor(playerid, 0x6F4E8DAA);
  1668.         GivePlayerWeapon(playerid, 5 , 1);
  1669.         SetPlayerSkin(playerid, 61);
  1670.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1671.     }
  1672.     else if(Profissao[playerid] == PolicialM)
  1673.     {
  1674.         SetPlayerColor(playerid, 0x843E65AA);
  1675.         GivePlayerWeapon(playerid,24,500);
  1676.         GivePlayerWeapon(playerid,31,600);
  1677.         GivePlayerWeapon(playerid,29,700);
  1678.         GivePlayerWeapon(playerid,17,400);
  1679.         SetPlayerSkin(playerid, 281);
  1680.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1681.     }
  1682.     else if(Profissao[playerid] == PolicialC)
  1683.     {
  1684.         SetPlayerColor(playerid, 0x007C49AA);
  1685.         GivePlayerWeapon(playerid,24,900);
  1686.         GivePlayerWeapon(playerid,31,800);
  1687.         GivePlayerWeapon(playerid,29,600);
  1688.         GivePlayerWeapon(playerid,17,400);
  1689.         SetPlayerSkin(playerid, 280);
  1690.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1691.     }
  1692.     else if(Profissao[playerid] == PolicialF)
  1693.     {
  1694.         SetPlayerColor(playerid, 0x004E00AA);
  1695.         GivePlayerWeapon(playerid,24,600);
  1696.         GivePlayerWeapon(playerid,31,300);
  1697.         GivePlayerWeapon(playerid,29,300);
  1698.         GivePlayerWeapon(playerid,17,200);
  1699.         SetPlayerSkin(playerid, 283);
  1700.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1701.     }
  1702.     else if(Profissao[playerid] == VDrogas)
  1703.     {
  1704.         SetPlayerColor(playerid, 0x004E00AA);
  1705.         GivePlayerWeapon(playerid, 23, 400);
  1706.         GivePlayerWeapon(playerid, 25, 200);
  1707.         SetPlayerSkin(playerid, 273);
  1708.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1709.     }
  1710.     else if(Profissao[playerid] == TrafArmas)
  1711.     {
  1712.         SetPlayerColor(playerid, 0x485807AA);
  1713.         GivePlayerWeapon(playerid, 28, 400);
  1714.         GivePlayerWeapon(playerid, 30, 300);
  1715.         SetPlayerSkin(playerid, 293);
  1716.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1717.     }
  1718.     else if(Profissao[playerid] == GuardaTransito)
  1719.     {
  1720.         SetPlayerColor(playerid, 0xAA4B27AA);
  1721.         GivePlayerWeapon(playerid,3,1);
  1722.         GivePlayerWeapon(playerid,23,200);
  1723.         SetPlayerSkin(playerid, 284);
  1724.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1725.     }
  1726.     else if(Profissao[playerid] == Advogado)
  1727.     {
  1728.         SetPlayerColor(playerid, 0x8C00F6AA);
  1729.         GivePlayerWeapon(playerid,46,0);
  1730.         SetPlayerSkin(playerid, 59);
  1731.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1732.     }
  1733.     else if(Profissao[playerid] == VSorvete)
  1734.     {
  1735.         SetPlayerColor(playerid, Verde);
  1736.         GivePlayerWeapon(playerid,5,0);
  1737.         SetPlayerSkin(playerid, 229);
  1738.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1739.     }
  1740.     else if(Profissao[playerid] == Paramedico)
  1741.     {
  1742.         SetPlayerColor(playerid, 0x2641FEAA);
  1743.         SetPlayerSkin(playerid, 275);
  1744.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1745.     }
  1746.     else if(Profissao[playerid] == Hacker)
  1747.     {
  1748.         SetPlayerColor(playerid, 0xEEB4B4AA);
  1749.         SetPlayerSkin(playerid, 123);
  1750.         dini_IntSet(vfile, "Skin", GetPlayerSkin(playerid));
  1751.     }
  1752.     return 1;
  1753. }
  1754.  
  1755. /*public GanharExp(playerid)
  1756. {
  1757.     for(new i=0; i<MAX_PLAYERS; i++)
  1758.     {
  1759.         if(IsPlayerConnected(i))
  1760.         {
  1761.             dini_IntSet(vfile, "TempoExp", dini_Int(vfile, "TempoExp")+1);
  1762.             static sStr[128];
  1763.             if(dini_Int(vfile, "TempoExp") >= 1)
  1764.             {
  1765.                 dini_IntSet(vfile, "ExpJogador", dini_Int(vfile, "ExpJogador")+1);
  1766.                 dini_IntSet(vfile, "TempoExp",0);
  1767.                 GameTextForPlayer(i,"~g~+1 Exp", 3000, 1);
  1768.                 format(sStr, 64,"[ EXP ] %s Voce ganhou +1 Exp Formando : %d/5 ",pName(playerid),dini_Int(vfile, "ExpJogador"));
  1769.                 SendClientMessage(i, 0x75EA00AA, sStr);
  1770.             }
  1771.             if(dini_Int(vfile, "ExpJogador") >= 5)
  1772.             {
  1773.                 format(sStr, 64,"[ Level Up ] Você Passou de Level. -> Level Atual: %d ",dini_Int(vfile, "Level"));
  1774.                 SendClientMessage(i, 0x75EA00AA, sStr);
  1775.                 GameTextForPlayer(i,"~g~Level ~n~ ~y~UP", 3000, 1);
  1776.                 PlayerPlaySound(i, 1057, 0, 0, 0);
  1777.                 dini_IntSet(vfile, "Level", dini_Int(vfile, "Level")+1);
  1778.                 dini_IntSet(vfile, "ExpJogador",0);
  1779.             }
  1780.         }
  1781.     }
  1782.     return 1;
  1783. }*/
  1784.  
  1785. public TempoExpMinuto()
  1786. {
  1787.     for(new i=0; i < MAX_PLAYERS; i++)
  1788.     {
  1789.         if(IsPlayerConnected(i))
  1790.         {
  1791.             if(TempoLevelMinuto[i] == 0)
  1792.             {
  1793.                 TempoLevelMinuto[i] = 10;
  1794.             }
  1795.             if(TempoLevelMinuto[i] == 1)
  1796.             {
  1797.                 TempoLevelMinuto[i] = 10;
  1798.             }
  1799.             else
  1800.             {
  1801.                 TempoLevelMinuto[i]--;
  1802.             }
  1803.         }
  1804.     }
  1805.     return 1;
  1806. }
  1807.  
  1808. public Firewall(playerid)
  1809. {
  1810.     for(new i=0; i < MAX_PLAYERS; i++)
  1811.     {
  1812.         if(IsPlayerConnected(i))
  1813.         {
  1814.             FirewallOn[i] = 1;
  1815.             KillTimer(KillFirewall[i]);
  1816.             SendClientMessage(i, 0xCD0000AA, "* O Firewall do Banco Está desligado, Cuidado com os Hackers! Protejam suas Contas!");
  1817.         }
  1818.     }
  1819.     RoubarBanco[playerid] = 0;
  1820.     SendClientMessage(playerid, 0xCD0000AA, "* Você demorou demais e o firewall foi re-ativado!");
  1821.     KillFirewallOn = SetTimer("FirewallLigado", 60000 * 30, false);
  1822.     AcessoOn[playerid] = false;
  1823.     return 1;
  1824. }
  1825.  
  1826. public FirewallLigado()
  1827. {
  1828.     for(new i=0; i < MAX_PLAYERS; i++)
  1829.     {
  1830.         if(IsPlayerConnected(i))
  1831.         {
  1832.             KillTimer(KillFirewallOn);
  1833.             KillTimer(KillFirewallOn2);
  1834.             KillTimer(KillFirewallOn3);
  1835.             FirewallOn[i] = 0;
  1836.             return 1;
  1837.         }
  1838.     }
  1839.     return 1;
  1840. }
  1841.  
  1842. public LimiteGrana(playerid)
  1843. {
  1844.     for(new i=0; i < MAX_PLAYERS; i++)
  1845.     {
  1846.         if(IsPlayerConnected(i))
  1847.         {
  1848.             FirewallOn[i] = 1;
  1849.         }
  1850.     }
  1851.     KillTimer(KillAcesso);
  1852.     KillTimer(KillTransferencia);
  1853.     RoubarBanco[playerid] = 0;
  1854.     SendClientMessage(playerid, 0xCD0000AA, "* O Firewall do Banco Foi Ativado Novamente!");
  1855.     AcessoOn[playerid] = false;
  1856.     KillFirewallOn2 = SetTimer("FirewallLigado", 60000 * 30, false);
  1857.     return 1;
  1858. }
  1859.  
  1860. public CriarVeiculo2(m,Float:x,Float:y,Float:z,Float:r,c,d)
  1861. {
  1862.     new string[256];
  1863.     format(string, sizeof(string), "/Carros/carro%d.ini", proximocarro);
  1864.     new carroid;
  1865.     carroid = AddStaticVehicle(m, x, y, z, r, c, d);
  1866.     dini_IntSet(string, "Id", carroid);
  1867.     proximocarro++;
  1868.     return 1;
  1869. }
  1870.  
  1871. public AcessoBanco(playerid)
  1872. {
  1873.     if(PlayerToPoint(1.0, playerid, 823.0374, 2.9839, 1004.1797))
  1874.     {
  1875.         GivePlayerGranaEx(playerid, 75);
  1876.         AcessoOn[playerid] = false;
  1877.         SendClientMessage(playerid, 0x00B2EEAA, "* Transferindo dinheiro!");
  1878.         SetPlayerWantedLevel(playerid, 3);
  1879.         return 1;
  1880.     }
  1881.     else
  1882.     {
  1883.         for(new i=0; i < MAX_PLAYERS; i++)
  1884.         {
  1885.             if(IsPlayerConnected(i))
  1886.             {
  1887.                 FirewallOn[i] = 1;
  1888.             }
  1889.         }
  1890.         KillTimer(KillAcesso);
  1891.         KillTimer(KillTransferencia);
  1892.         SendClientMessage(playerid, 0xFF0000AA, "* Porta do Firewall desligada!!");
  1893.         RoubarBanco[playerid] = 0;
  1894.         KillFirewallOn3 = SetTimer("FirewallLigado", 60000 * 30, false);
  1895.         AcessoOn[playerid] = false;
  1896.         return 1;
  1897.     }
  1898. }
  1899.  
  1900. public GanharExp()
  1901. {
  1902.     for(new i=0; i < MAX_PLAYERS; i++)
  1903.     {
  1904.         new string[128];
  1905.         format(vfile, sizeof(vfile), DIRETORIO, pName(i));
  1906.         if(IsPlayerConnected(i))
  1907.         {
  1908.             if(pFase[i][Logado] == 1)
  1909.             {
  1910.                 if(Experiencia[i] >= 5)
  1911.                 {
  1912.                     pLevel[i]++;
  1913.                     Experiencia[i] = 0;
  1914.                     TempoLevelMinuto[i] = 10;
  1915.                     format(string, sizeof(string), "[ Level Up ] Você acaba de Ganhar +1 level! Level Atual: %d", pLevel[i]);
  1916.                     SendClientMessage(i, 0x00FF00AA, string);
  1917.                     PlayerPlaySound(i, 1057, 0.0, 0.0, 10.0);
  1918.                     GameTextForPlayer(i,"~g~Level ~n~ ~y~UP", 3000, 1);
  1919.                     dini_IntSet(vfile, "ExpJogador", Experiencia[i]);
  1920.                     dini_IntSet(vfile, "Level", pLevel[i]);
  1921.                 }
  1922.                 else
  1923.                 {
  1924.                     Experiencia[i]++;
  1925.                     TempoLevelMinuto[i] = 10;
  1926.                     format(string, sizeof(string), "[ Exp ] Você acaba de Ganhar + 1 Ponto de Experiencia (%d/5)", Experiencia[i]);
  1927.                     SendClientMessage(i, 0x00FF00AA, string);
  1928.                     PlayerPlaySound(i, 1057, 0.0, 0.0, 10.0);
  1929.                     dini_IntSet(vfile, "ExpJogador", Experiencia[i]);
  1930.                 }
  1931.             }
  1932.         }
  1933.     }
  1934.     return 1;
  1935. }
  1936.  
  1937. public AtualizarChatBubble()
  1938. {
  1939.     for(new x=0; x < MAX_PLAYERS; x++)
  1940.     {
  1941.         if(pAdmin[x] > 3)
  1942.         {
  1943.             SetPlayerChatBubble(x, "Administrador", 0x0080C0AA, 100.0, 10000);
  1944.         }
  1945.     }
  1946. }
  1947.  
  1948. public ReprovarC(playerid)
  1949. {
  1950.     KillTimer(reprovado[playerid]);
  1951.     SendClientMessage(playerid, 0x548B54AA, "==============[ Reprovado ]==============");
  1952.     SendClientMessage(playerid, -1, "* O Seu Curriculo foi analizado e reprovado!");
  1953.     SendClientMessage(playerid, -1, "* Para melhorar Seu Curriculo, Você terá que passar de level!");
  1954.     SendClientMessage(playerid, 0x548B54AA, "==============[ Reprovado ]==============");
  1955.     return 1;
  1956. }
  1957.  
  1958. public CheckCurriculo(playerid)
  1959. {
  1960.     format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  1961.     if(Profissao[playerid] == Caminhoneiro)
  1962.     {
  1963.         KillTimer(aprovado[playerid]);
  1964.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1965.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1966.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é Caminhoneiro!");
  1967.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1968.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1969.         LogarProf(playerid);
  1970.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1971.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1972.         TogglePlayerControllable(playerid, 1);
  1973.     }
  1974.     else if(Profissao[playerid] == MotoTaxi)
  1975.     {
  1976.         KillTimer(aprovado[playerid]);
  1977.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1978.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1979.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Moto Taxista!");
  1980.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1981.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1982.         LogarProf(playerid);
  1983.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1984.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1985.         TogglePlayerControllable(playerid,1);
  1986.     }
  1987.     else if(Profissao[playerid] == Taxista)
  1988.     {
  1989.         KillTimer(aprovado[playerid]);
  1990.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1991.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  1992.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Taxista!");
  1993.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  1994.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  1995.         LogarProf(playerid);
  1996.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  1997.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1998.         TogglePlayerControllable(playerid,1);
  1999.     }
  2000.     else if(Profissao[playerid] == Maquinista)
  2001.     {
  2002.         KillTimer(aprovado[playerid]);
  2003.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2004.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2005.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Maquinista!");
  2006.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2007.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2008.         LogarProf(playerid);
  2009.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2010.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2011.         TogglePlayerControllable(playerid,1);
  2012.     }
  2013.     else if(Profissao[playerid] == PolicialM)
  2014.     {
  2015.         KillTimer(aprovado[playerid]);
  2016.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2017.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2018.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Policial Militar!");
  2019.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2020.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2021.         LogarProf(playerid);
  2022.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2023.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2024.         TogglePlayerControllable(playerid, 1);
  2025.     }
  2026.     else if(Profissao[playerid] == PolicialC)
  2027.     {
  2028.         KillTimer(aprovado[playerid]);
  2029.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2030.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2031.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Policial Civil!");
  2032.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2033.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2034.         LogarProf(playerid);
  2035.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2036.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2037.         TogglePlayerControllable(playerid, 1);
  2038.     }
  2039.     else if(Profissao[playerid] == PolicialF)
  2040.     {
  2041.         KillTimer(aprovado[playerid]);
  2042.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2043.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2044.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Policial Federal!");
  2045.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2046.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2047.         LogarProf(playerid);
  2048.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2049.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2050.         TogglePlayerControllable(playerid, 1);
  2051.     }
  2052.     else if(Profissao[playerid] == VDrogas)
  2053.     {
  2054.         KillTimer(aprovado[playerid]);
  2055.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2056.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2057.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Vendedor de Drogas!");
  2058.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2059.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2060.         LogarProf(playerid);
  2061.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2062.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2063.         TogglePlayerControllable(playerid, 1);
  2064.     }
  2065.     else if(Profissao[playerid] == TrafArmas)
  2066.     {
  2067.         KillTimer(aprovado[playerid]);
  2068.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2069.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2070.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Traficante de Armas!");
  2071.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2072.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2073.         LogarProf(playerid);
  2074.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2075.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2076.         TogglePlayerControllable(playerid, 1);
  2077.     }
  2078.     else if(Profissao[playerid] == GuardaTransito)
  2079.     {
  2080.         KillTimer(aprovado[playerid]);
  2081.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2082.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2083.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Guarda de Transito!");
  2084.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2085.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2086.         LogarProf(playerid);
  2087.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2088.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2089.         TogglePlayerControllable(playerid, 1);
  2090.     }
  2091.     else if(Profissao[playerid] == Advogado)
  2092.     {
  2093.         KillTimer(aprovado[playerid]);
  2094.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2095.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2096.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Advogado!");
  2097.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2098.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2099.         LogarProf(playerid);
  2100.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2101.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2102.         TogglePlayerControllable(playerid, 1);
  2103.     }
  2104.     else if(Profissao[playerid] == VSorvete)
  2105.     {
  2106.         KillTimer(aprovado[playerid]);
  2107.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2108.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2109.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Vendedor de Sorvete!");
  2110.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2111.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2112.         LogarProf(playerid);
  2113.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2114.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2115.         TogglePlayerControllable(playerid, 1);
  2116.     }
  2117.     else if(Profissao[playerid] == Paramedico)
  2118.     {
  2119.         KillTimer(aprovado[playerid]);
  2120.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2121.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2122.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Paramedico!");
  2123.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2124.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2125.         LogarProf(playerid);
  2126.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2127.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2128.         TogglePlayerControllable(playerid, 1);
  2129.     }
  2130.     else if(Profissao[playerid] == Hacker)
  2131.     {
  2132.         KillTimer(aprovado[playerid]);
  2133.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2134.         SendClientMessage(playerid, -1, "* Seu Currículo foi Analisado e Aprovado!");
  2135.         SendClientMessage(playerid, -1, "* Sua Profissão Agora é um Hacker!");
  2136.         SendClientMessage(playerid, -1, "* Veja os Comandos da sua Profissão: /profissao");
  2137.         SendClientMessage(playerid, 0x548B54AA, "==============[ Aprovado ]==============");
  2138.         LogarProf(playerid);
  2139.         dini_IntSet(vfile, "Profissao", Profissao[playerid]);
  2140.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2141.         TogglePlayerControllable(playerid, 1);
  2142.     }
  2143.     return 1;
  2144. }
  2145.  
  2146. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2147. {
  2148.     if (newkeys == KEY_SECONDARY_ATTACK && incar[playerid] == 1)
  2149.     {
  2150.         TogglePlayerControllable(playerid, 1);
  2151.         RemovePlayerFromVehicle(playerid);
  2152.         incar[playerid] = 0;
  2153.     }
  2154.     return 1;
  2155. }
  2156.  
  2157. forward Combustivel();
  2158. public Combustivel()
  2159. {
  2160.     for(new i=0;i<MAX_PLAYERS;i++)
  2161.     {
  2162.         new nomepl[MAX_PLAYER_NAME];
  2163.         GetPlayerName(i, nomepl, sizeof(nomepl));
  2164.         format(vfile, sizeof(vfile), DIRETORIO, nomepl);
  2165.         new vid;
  2166.         vid = GetPlayerVehicleID(i);
  2167.         new modelo;
  2168.         modelo = GetVehicleModel(vid);
  2169.         if(!(modelo == 509 || modelo == 510 || modelo == 481))
  2170.         {
  2171.             new estado;
  2172.             estado = GetPlayerVehicleSeat(i);
  2173.             GetPlayerState(i);
  2174.             if(IsPlayerInAnyVehicle(i) == 1)
  2175.             {
  2176.                 if(estado == 0)
  2177.                 {
  2178.                     dini_IntSet(vfile, "Gasolina", dini_Int(vfile, "Gasolina")-1);
  2179.                 }
  2180.                 if(dini_Int(vfile, "Gasolina") <= 0) {
  2181.                     SendClientMessage(i, Vermelho, "* Seu combustivel acabou, vá até o posto mais próximo abastecer...");
  2182.                     RemovePlayerFromVehicle(i);
  2183.                 }
  2184.             }
  2185.         }
  2186.     }
  2187. }
  2188.  
  2189. /*stock GivePlayerGranaEx(playerid, quantia)
  2190. {
  2191.     ResetPlayerMoney(playerid);
  2192.     GranaEx[playerid] += quantia;
  2193.     GivePlayerGranaEx(playerid, GranaEx[playerid]);
  2194.     return 1;
  2195. }
  2196.  
  2197. stock ResetPlayerGranaEx(playerid)
  2198. {
  2199.     ResetPlayerMoney(playerid);
  2200.     GranaEx[playerid] = 0;
  2201.     return 1;
  2202. }
  2203.  
  2204. stock GetPlayerGranaEx(playerid)
  2205. {
  2206.     return GranaEx[playerid];
  2207. }
  2208. */
  2209. stock GivePlayerGranaEx(playerid, quant)
  2210. {
  2211.     GivePlayerMoney(playerid, GranaEx[playerid] += quant);
  2212.     //return GranaEx[playerid] += quant;
  2213.     return 1;
  2214. }
  2215.    
  2216. stock GetPlayerGranaEx(playerid)
  2217.     return GranaEx[playerid];
  2218.    
  2219. stock ResetPlayerGranaEx(playerid)
  2220.     return GranaEx[playerid] = 0;
  2221.  
  2222. stock tfile(name[])
  2223. {
  2224.     format(vfile, sizeof(vfile), DIRETORIO, name);
  2225.     return vfile;
  2226. }
  2227.  
  2228. public AtualizarGrana()
  2229. {
  2230.     for(new i=0; i < MAX_PLAYERS; i++)
  2231.     {
  2232.         ResetPlayerGranaEx(i);
  2233.         GivePlayerGranaEx(i, GetPlayerGranaEx(i));
  2234.     }
  2235. }
  2236.  
  2237. public OnPlayerStateChange(playerid, newstate, oldstate)
  2238. {
  2239.     new string[256];
  2240.     if(IsPlayerInAnyVehicle(playerid))
  2241.     {
  2242.         if(pGasolina[playerid] == 0)
  2243.         {
  2244.             SendClientMessage(playerid, Vermelho, "* Seu Combustivel Acabou!");
  2245.             RemovePlayerFromVehicle(playerid);
  2246.             TogglePlayerControllable(playerid, 1);
  2247.         }
  2248.     }
  2249.     if(newstate == PLAYER_STATE_DRIVER)
  2250.     {
  2251.         new pname[MAX_PLAYER_NAME];
  2252.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  2253.         for(new carro = 0; carro < MAX_CARROS; carro++)
  2254.         {
  2255.             new vid;
  2256.             vid = GetPlayerVehicleID(playerid);
  2257.             new mot, lu, alar, por, cap, porma, ob;
  2258.             GetVehicleParamsEx(vid, mot, lu, alar, por, cap, porma, ob);
  2259.             SetVehicleParamsEx(vid, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
  2260.             format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  2261.             if(dini_Exists(string))
  2262.             {
  2263.                 if(vid == dini_Int(string, "Id"))
  2264.                 {
  2265.                     if(dini_Int(string, "cDono") == 1 || dini_Int(string,"cDono2") == 1)
  2266.                     {
  2267.                         //if(strcmp(dini_Get(string, "Dono"), pname, true) == 0) {
  2268.                         if(strcmp(dini_Get(string,"Dono"), pname, true) == 0 || strcmp(dini_Get(string,"Dono2"), pname, true) == 0)
  2269.                         {
  2270.                             format(string, sizeof(string), "* %s, bem-vindo ao seu veiculo '%s'", dini_Get(string, "Dono"), dini_Get(string, "Nome"));
  2271.                             SendClientMessage(playerid, 0xC0C0C0AA, string);
  2272.                         } else if(dini_Int(string,"cDono2") == 1 && dini_Int(string,"cDono") == 1)
  2273.                         {
  2274.                             format(string, sizeof(string),"Você é o segundo dono do carro (%s) de %s, seja bem vindo !", dini_Get(string,"Nome"),dini_Get(string,"Dono"));
  2275.                             SendClientMessage(playerid, 0xC0C0C0AA, string);
  2276.                         }
  2277.                         else {
  2278.                             if(dini_Int(string,"Alarme") == 0)
  2279.                             {
  2280.                                 GetVehicleParamsEx(vid, mot, lu, alar, por, cap, porma, ob);
  2281.                                 SetVehicleParamsEx(vid, mot, lu, VEHICLE_PARAMS_ON, por, cap, porma, ob);
  2282.                                 format(string, sizeof(string), "* Este veiculo : '%s' é de '%s' portanto ele deixou o alarme desativado.", dini_Get(string, "Nome"), dini_Get(string, "Dono"));
  2283.                                 SendClientMessage(playerid, 0xff6633AA, string);
  2284.                                 if(dini_Int(string,"Alarme") == 1)
  2285.                                 {
  2286.                                     for(new i=0; i<MAX_PLAYERS; i++)
  2287.                                     {
  2288.                                         if(IsPlayerConnected(i))
  2289.                                         {
  2290.                                             new tname[MAX_PLAYER_NAME];
  2291.                                             GetPlayerName(i, tname, sizeof(tname));
  2292.                                             if(strcmp(dini_Get(string, "Dono"), tname, true) == 0 && GetPlayerVehicleID(playerid) == dini_Int(string, "Id")) {
  2293.                                                 format(string, sizeof(string), "* %s (%d) Tentou Roubar seu veiculo!", pname, playerid);
  2294.                                                 SendClientMessage(i, 0xff6633AA, string);
  2295.                                             }
  2296.                                         }
  2297.                                     }
  2298.                                 }
  2299.                             }
  2300.                             RemovePlayerFromVehicle(playerid);
  2301.                         }
  2302.                     }
  2303.                     else {
  2304.                         format(string, sizeof(string), "[ A VENDA ] Este veiculo está a venda para compra-lo use: /comprarcarro.", dini_Int(string, "Preco"));
  2305.                         SendClientMessage(playerid, -1, string);
  2306.                         SendClientMessage(playerid, -1, "* Para sair aperte 'F' ou ' ENTER '");
  2307.                         incar[playerid] = 1;
  2308.                         TogglePlayerControllable(playerid, 0);
  2309.                     }
  2310.                 }
  2311.             }
  2312.         }
  2313.     }
  2314. }
  2315.  
  2316.  
  2317.  
  2318.  
  2319. public Liberar(playerid)
  2320. {
  2321.     SetPlayerInterior(playerid, 0);
  2322.     SpawnPlayer(playerid);
  2323.     SetPlayerWantedLevel(playerid, 0);
  2324.     Preso[playerid] = 0;
  2325.     SendClientMessage(playerid, 0xA9C4E4AA, "(CADEIA) Você foi solto automáticamente por cumprir a sua pena na cadeia!");
  2326.     KillTimer(TempoPreso[playerid]);
  2327.     return 1;
  2328. }
  2329.  
  2330. public PayDay()
  2331. {
  2332.     new str[128],banco[128], aname[MAX_PLAYER_NAME];
  2333.     for(new i = 0; i<MAX_PLAYERS; i++)
  2334.     {
  2335.         format(banco, sizeof(banco), DBANCO, aname);
  2336.         //if(!dini_Exists(banco))
  2337.         //{
  2338.         if(dini_Int(vfile, "TContaBancaria") == 0)
  2339.         {
  2340.             SendClientMessage(i, Vermelho, "* Você não tem uma conta bancária, e assim não receberá seu salário.");
  2341.             SendClientMessage(i, Vermelho, "* Para abrir uma conta bancária procure um banco mais próximo de você.");
  2342.             return 1;
  2343.         }
  2344.         if(dini_Int(vfile, "TContaBancaria") == 1)
  2345.         {
  2346.             format(str, sizeof(str), "* Você recebeu seu salário.");
  2347.             SendClientMessage(i, 0xCAFF95AA, str);
  2348.             PlayerPlaySound(i, 1057, 0, 0, 0);
  2349.         }
  2350.         if(Profissao[i] == Desempregado)
  2351.         {
  2352.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+SeguroDesemprego);
  2353.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2354.             format(str,128,"Você Recebeu o Seguro-Desemprego e Ganhou : %d", SeguroDesemprego);
  2355.             SendClientMessage(i, -1, str);
  2356.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2357.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2358.         }
  2359.         else if(Profissao[i] == Caminhoneiro)
  2360.         {
  2361.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Caminhao);
  2362.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2363.             format(str,128,"Você trabalha como Caminhoneiro e Ganhou: %d", Salario_Caminhao);
  2364.             SendClientMessage(i, -1, str);
  2365.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2366.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2367.         }
  2368.         else if(Profissao[i] == Taxista)
  2369.         {
  2370.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Taxi);
  2371.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2372.             format(str,128,"Você trabalha como Taxista e Ganhou: %d", Salario_Taxi);
  2373.             SendClientMessage(i, -1, str);
  2374.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2375.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2376.         }
  2377.         else if(Profissao[i] == MotoTaxi)
  2378.         {
  2379.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Maquinista);
  2380.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2381.             format(str,128,"Você trabalha como Maquinista e Ganhou: %d", Salario_Maquinista);
  2382.             SendClientMessage(i, -1, str);
  2383.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2384.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2385.         }
  2386.         else if(Profissao[i] == PolicialM)
  2387.         {
  2388.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_PolicialM);
  2389.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2390.             format(str,128,"Você trabalha como Policial Militar e Ganhou: %d", Salario_PolicialM);
  2391.             SendClientMessage(i, -1, str);
  2392.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2393.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2394.         }
  2395.         else if(Profissao[i] == PolicialC)
  2396.         {
  2397.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_PolicialC);
  2398.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2399.             format(str,128,"Você trabalha como Policial Civil e Ganhou: %d", Salario_PolicialC);
  2400.             SendClientMessage(i, -1, str);
  2401.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2402.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2403.         }
  2404.         else if(Profissao[i] == PolicialF)
  2405.         {
  2406.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_PolicialF);
  2407.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2408.             format(str,128,"Você trabalha como Policial Federal e Ganhou: %d", Salario_PolicialF);
  2409.             SendClientMessage(i, -1, str);
  2410.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2411.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2412.         }
  2413.         else if(Profissao[i] == VDrogas)
  2414.         {
  2415.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_VDrogas);
  2416.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2417.             format(str,128,"Você trabalha como Vendedor de Dorgas e Ganhou: %d", Salario_VDrogas);
  2418.             SendClientMessage(i, -1, str);
  2419.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2420.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2421.         }
  2422.         else if(Profissao[i] == TrafArmas)
  2423.         {
  2424.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_TrafArmas);
  2425.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2426.             format(str,128,"Você trabalha como Traficante de Armas e Ganhou: %d", Salario_TrafArmas);
  2427.             SendClientMessage(i, -1, str);
  2428.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2429.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2430.         }
  2431.         else if(Profissao[i] == GuardaTransito)
  2432.         {
  2433.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_GuardaTr);
  2434.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2435.             format(str,128,"Você trabalha como Guarda de Transito e Ganhou: %d", Salario_GuardaTr);
  2436.             SendClientMessage(i, -1, str);
  2437.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2438.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2439.         }
  2440.         else if(Profissao[i] == Advogado)
  2441.         {
  2442.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Advogado);
  2443.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2444.             format(str,128,"Você trabalha como Advogado e Ganhou: %d", Salario_Advogado);
  2445.             SendClientMessage(i, -1, str);
  2446.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2447.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2448.         }
  2449.         else if(Profissao[i] == VSorvete)
  2450.         {
  2451.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_VSorvete);
  2452.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2453.             format(str,128,"Você trabalha como Vendedor de Sorvete e Ganhou: %d", Salario_VSorvete);
  2454.             SendClientMessage(i, -1, str);
  2455.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2456.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2457.         }
  2458.         else if(Profissao[i] == Paramedico)
  2459.         {
  2460.             dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Paramedico);
  2461.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2462.             format(str,128,"Você trabalha como Paramedico e Ganhou: %d", Salario_Paramedico);
  2463.             SendClientMessage(i, -1, str);
  2464.             SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2465.             SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2466.         }
  2467.         else if(Profissao[i] == Hacker)
  2468.         dini_IntSet(banco, "SaldoBancario", dini_Int(banco, "SaldoBancario")+Salario_Hacker);
  2469.         SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2470.         format(str,128,"Você trabalha como Hacker e Ganhou: %d", Salario_Hacker);
  2471.         SendClientMessage(i, -1, str);
  2472.         SendClientMessage(i, -1, "* O Seu Pagamento Foi Depositado no Banco!");
  2473.         SendClientMessage(i, 0xCDCD00AA, "==========[ Salário ]============");
  2474.     }
  2475.     return 1;
  2476. }
  2477.  
  2478. public Avisado(playerid)
  2479. {
  2480.     if(IsPlayerConnected(playerid))
  2481.     {
  2482.         if(Aviso[playerid] == 1)
  2483.         {
  2484.             Aviso[playerid]= 0;
  2485.         }
  2486.     }
  2487. }
  2488.  
  2489. forward TextoGaso();
  2490. public TextoGaso()
  2491. {
  2492.     for(new i=0;i<MAX_PLAYERS;i++)
  2493.     {
  2494.         if(IsPlayerConnected(i))
  2495.         {
  2496.             if(IsPlayerInAnyVehicle(i))
  2497.             {
  2498.                 new string3[256];
  2499.                 format(string3, sizeof(string3), "   ~b~%d ~w~Litros",pGasolina[i]);
  2500.                 TextDrawSetString(TGasosa[i], string3);
  2501.             }
  2502.             else {
  2503.                 TextDrawHideForPlayer(i, TGasosa[i]);
  2504.             }
  2505.         }
  2506.     }
  2507. }
  2508.  
  2509.  
  2510. forward TextoGrana();
  2511. public TextoGrana()
  2512. {
  2513.     new string[256];
  2514.     for(new i=0;i<MAX_PLAYERS;i++)
  2515.     {
  2516.         if(IsPlayerConnected(i))
  2517.         {
  2518.             format(string, sizeof(string), "~g~$~w~000000000", GetPlayerGranaEx(i));
  2519.             TextDrawSetString(gText3[i], string);
  2520.             TextDrawShowForPlayer(i, gText3[i]);
  2521.             TextDrawHideForPlayer(i, gText3[i]);
  2522.             }
  2523.         }
  2524.     return 1;
  2525. }
  2526.  
  2527. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  2528. {
  2529.     if(Mutecmd[playerid] == 1)
  2530.     {
  2531.         SendClientMessage(playerid, 0xFF0000AA, "* Você está bloqueado de usar Comandos. Aguarde..");
  2532.         return 1;
  2533.     }
  2534.     if(Aviso[playerid] == 1)
  2535.     {
  2536.         SendClientMessage(playerid, 0xFF0000AA, "* Você foi bloqueado de usar comandos. Motivo: Flood");
  2537.         Mutecmd[playerid] = 1;
  2538.         Aviso[playerid] = 0;
  2539.         return 0;
  2540.     }
  2541.     if(!success)
  2542.     {
  2543.         new strx[64];
  2544.         format(strx, 46, "SERVER: Comando %s - Inexistente!",cmdtext);
  2545.         return SendClientMessage(playerid, Vermelho, strx);
  2546.     }
  2547.     return true;
  2548. }
  2549.  
  2550. public OnPlayerExitedMenu(playerid)
  2551. {
  2552.     TogglePlayerControllable(playerid,1);
  2553.     return 1;
  2554. }
  2555.  
  2556. stock SetPlayerPosEx(playerid,Float:X,Float:Y,Float:Z)
  2557. {
  2558.     PlayerEnterTime[playerid]+=221;
  2559.     SetPlayerPos(playerid,X,Y,Z);
  2560. }
  2561.  
  2562. stock PutPlayerInVehicleEx(playerid,vehicleid,seatid)
  2563. {
  2564.     PlayerEnterTime[playerid]+=221;
  2565.     PutPlayerInVehicle(playerid,vehicleid,seatid);
  2566. }
  2567.  
  2568. stock RemovePlayerFromVehicleEx(playerid)
  2569. {
  2570.     PlayerEnterTime[playerid]+=221;
  2571.     RemovePlayerFromVehicle(playerid);
  2572. }
  2573.  
  2574. stock strrest(const string[], &index)
  2575. {
  2576.     new length = strlen(string);
  2577.     while ((index < length) && (string[index] <= ' '))
  2578.     {
  2579.         index++;
  2580.     }
  2581.     new offset = index;
  2582.     new result[128];
  2583.     while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
  2584.     {
  2585.         result[index - offset] = string[index];
  2586.         index++;
  2587.     }
  2588.     result[index - offset] = EOS;
  2589.     return result;
  2590. }
  2591.  
  2592. stock GetPlayerArea(playerid)
  2593. {
  2594.     new str[130];
  2595.     format(str,sizeof(str),"%s",Zones[GetPlayerZone(playerid)][zone_name]);
  2596.     return str;
  2597. }
  2598.  
  2599. stock chrfind(needle, haystack[], start = 0)
  2600. {
  2601.     while(haystack[start])
  2602.     {
  2603.         if(haystack[start++] == needle)
  2604.         {
  2605.             return start-1;
  2606.         }
  2607.     }
  2608.     return -1;
  2609. }
  2610.  
  2611. stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
  2612. {
  2613.     new RetValue = 0;
  2614.     new Float:X,Float:Y,Float:Z;
  2615.     GetPlayerPos(playerid,X,Y,Z );
  2616.  
  2617.     if( X >= XMin && Y >= YMin && X < XMax && Y < YMax )
  2618.     {
  2619.         RetValue = 1;
  2620.     }
  2621.     return RetValue;
  2622. }
  2623.  
  2624. stock SetTimers()
  2625. {
  2626.     SetTimer("Avisado", 2000, 1);
  2627.     SetTimer("Combustivel",180000, 1);
  2628.     SetTimer("ChecarPing", 60000, 1);
  2629.     SetTimer("LoteriaPublic", 600000, 1);
  2630.     SetTimer("AntAfk", 1000, 1);
  2631.     SetTimer("Payday", 2400000 , 1);
  2632.     SetTimer("TextoGrana", 800, 1);
  2633.     SetTimer("TextoGaso", 800, 1);
  2634.     SetTimer("GanharExp", 600000 , 1);
  2635.     SetTimer("AtualizarChatBubble", 10000, true);
  2636.     SetTimer("TempoExpMinuto", 60000, 1);
  2637.     SetTimer("PostosG", 800, 1);
  2638.     SetTimer("AtualizarGrana", 250, 1);
  2639. }
  2640.  
  2641. stock GetPlayerDistanceToPoint(playerid,Float:x,Float:y)
  2642. {
  2643.     new Float:x1,Float:y1,Float:z1;
  2644.     new Float:tmpdis;
  2645.     GetPlayerPos(playerid,x1,y1,z1);
  2646.     tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2));
  2647.     return floatround(tmpdis);
  2648. }
  2649.  
  2650. stock IsPlayerFlooding(playerid)
  2651. {
  2652.     if(GetTickCount() - iPlayerChatTime[playerid] < 2000)
  2653.         return 1;
  2654.     return 0;
  2655. }
  2656.  
  2657. stock ConverterTexto(string[])
  2658. {
  2659.     for(new arraysize = 0; arraysize < strlen(string); arraysize++)
  2660.     {
  2661.         if(strfind(string, "â", true) != -1){new pos = strfind(string, "â", true); strdel(string, pos, pos+strlen("â")); strins(string, "™", pos, sizeof(pos));}
  2662.         if(strfind(string, "ã", true) != -1){new pos = strfind(string, "ã", true); strdel(string, pos, pos+strlen("ã")); strins(string, "š", pos, sizeof(pos));}
  2663.         if(strfind(string, "á", true) != -1){new pos = strfind(string, "á", true); strdel(string, pos, pos+strlen("á")); strins(string, "˜", pos, sizeof(pos));}
  2664.         if(strfind(string, "é", true) != -1){new pos = strfind(string, "é", true); strdel(string, pos, pos+strlen("é")); strins(string, "ž", pos, sizeof(pos));}
  2665.         if(strfind(string, "ú", true) != -1){new pos = strfind(string, "ú", true); strdel(string, pos, pos+strlen("ú")); strins(string, "“", pos, sizeof(pos));}
  2666.         if(strfind(string, "ó", true) != -1){new pos = strfind(string, "ó", true); strdel(string, pos, pos+strlen("ó")); strins(string, "¦", pos, sizeof(pos));}
  2667.         if(strfind(string, "ê", true) != -1){new pos = strfind(string, "ê", true); strdel(string, pos, pos+strlen("ê")); strins(string, "Ÿ", pos, sizeof(pos));}
  2668.         if(strfind(string, "í", true) != -1){new pos = strfind(string, "í", true); strdel(string, pos, pos+strlen("í")); strins(string, "¢", pos, sizeof(pos));}
  2669.         if(strfind(string, "ç", true) != -1){new pos = strfind(string, "ç", true); strdel(string, pos, pos+strlen("ç")); strins(string, "œ", pos, sizeof(pos));}
  2670.         if(strfind(string, "ô", true) != -1){new pos = strfind(string, "ô", true); strdel(string, pos, pos+strlen("ô")); strins(string, "§", pos, sizeof(pos));}
  2671.     }
  2672. }
  2673.  
  2674. public AntAfk(playerid)
  2675. {
  2676.     if(!floatcmp(PlayerPosAfk[ 0 ], PlayerLastPos[ playerid ][ LastX ]) && !floatcmp(PlayerPosAfk[ 1 ], PlayerLastPos[ playerid ][ LastY ]))
  2677.     {
  2678.         PlayerAfkTicks[ playerid ] ++;
  2679.     }
  2680.     else {
  2681.         PlayerAfkTicks[ playerid ] = 0;
  2682.     }
  2683.     PlayerLastPos[ playerid ][ LastX ] = PlayerPosAfk[ 0 ];
  2684.     PlayerLastPos[ playerid ][ LastY ] = PlayerPosAfk[ 1 ];
  2685.     PlayerLastPos[ playerid ][ LastZ ] = PlayerPosAfk[ 2 ];
  2686.     if(PlayerAfkTicks[ playerid ] == MAX_TEMPO_AFK * 60)
  2687.     {
  2688.         pAFK[ playerid ] = 1;
  2689.         SendClientMessage( playerid, Amarelo, "[ ANT - AFK ] Você foi bloqueado de passar de nivel!");
  2690.         SetPlayerVirtualWorld( playerid, 1);
  2691.         SetCameraBehindPlayer( playerid );
  2692.         TogglePlayerControllable( playerid, 0);
  2693.         TextDrawShowForPlayer( playerid, AfkText);
  2694.         TextDrawShowForPlayer( playerid, AfkBackText);
  2695.     }
  2696.     return 1;
  2697. }
  2698.  
  2699. public BanLog(string[])
  2700. {
  2701.     new entry[256];
  2702.     format(entry, sizeof(entry), "%s\r\n",string);
  2703.     new File:hFile;
  2704.     hFile = fopen("Ban.log", io_append);
  2705.     fwrite(hFile, entry);
  2706.     fclose(hFile);
  2707. }
  2708.  
  2709. public IsNumeric(const string[])
  2710. {
  2711.     for (new i = 0, j = strlen(string); i < j; i++) if (string[i] > '9' || string[i] < '0') return 0;
  2712.     return 1;
  2713. }
  2714.  
  2715. public LoteriaPublic()
  2716. {
  2717.     new stringcm[256];
  2718.     new numerosorteado = randomEx(0, 99);
  2719.     new rand = random(15000); rand += 5000;
  2720.     DinheiroAcumuladoLoto += rand;
  2721.     for(new i=0; i<MAX_PLAYERS; i++)
  2722.     {
  2723.         if(TaJogando[i] == 1)
  2724.         {
  2725.             if(vernumerosorteado[i] == numerosorteado)
  2726.             {
  2727.                 TGanhador = i;
  2728.             }
  2729.             TaJogando[i] = 0;
  2730.             NumeroLoto[i] = 0;
  2731.         }
  2732.     }
  2733.     if(TGanhador != 0)
  2734.     {
  2735.         format(stringcm, sizeof(stringcm), "( Loteria ) %s ganhou %iR$ Na Loteria!!! - Número Sorteado: %i - Parabens ao Ganhador!", pName(TGanhador), DinheiroAcumuladoLoto, numerosorteado);
  2736.         GivePlayerGranaEx(TGanhador, DinheiroAcumuladoLoto);
  2737.         SendClientMessageToAll(Verde, stringcm);
  2738.         TGanhador = -1;
  2739.     }
  2740.     format(stringcm, sizeof(stringcm), "( Loteria ) Prêmio Acumulado: %iR$ - Número Sorteado: %i - Nenhum Ganhador", DinheiroAcumuladoLoto, numerosorteado); // %i %i = antigo
  2741.     SendClientMessageToAll(Verde, stringcm);
  2742.     return 1;
  2743. }
  2744.  
  2745. stock randomEx(minnum = cellmin,maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
  2746.  
  2747. stock pName(playerid)
  2748. {
  2749.     new aname[24];
  2750.     GetPlayerName(playerid,aname,24);
  2751.     return aname;
  2752. }
  2753.  
  2754.  
  2755. stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  2756. {
  2757.     new Float:oldposx, Float:oldposy, Float:oldposz;
  2758.     new Float:tempposx, Float:tempposy, Float:tempposz;
  2759.     GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  2760.     tempposx = (oldposx -x);
  2761.     tempposy = (oldposy -y);
  2762.     tempposz = (oldposz -z);
  2763.     if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz >-radi)))
  2764.     {
  2765.         return true;
  2766.     }
  2767.     return false;
  2768. }
  2769.  
  2770. stock AtualizarRG(playerid)
  2771. {
  2772.     SendClientMessage(playerid, 0x00FFFFAA, " ");
  2773.     SendClientMessage(playerid, 0x00FFFFAA, " ");
  2774.     new String[128];
  2775.     new terrestre[10], nautica[10], aerea[10], porte[10];
  2776.     static HabTerrestre[MAX_PLAYERS], HabNautica[MAX_PLAYERS], Porte[MAX_PLAYERS], HabAerea[MAX_PLAYERS];
  2777.     format(String, sizeof(String),"» Nome do Personagem : %s",pName(playerid));
  2778.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2779.     format(String, sizeof(String),"Level: [%d] » Saldo Em Mãos: [%d] » Pais: [%s]", pLevel[playerid], GetPlayerGranaEx(playerid), dini_Get(vfile, "Pais"));
  2780.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2781.     format(String, sizeof(String),"Exp: [%d/5] » Skin: [%d] » Saldo Bancario: [%d]", Experiencia[playerid], dini_Int(vfile,"Skin"), dini_Int(vfile, "SaldoBancario"));
  2782.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2783.     format(String, sizeof(String),"Habilitação Terreste: [ %s ] » Habilitação Nautica : [ %s ] » Habilitação Aerea : [ %s ] » Porte Legal de Armas : [ %s ]",terrestre, nautica, aerea, porte);
  2784.     SendClientMessage(playerid, 0x00FFFFAA,String);
  2785.     if(HabTerrestre[playerid] == 1)
  2786.     { terrestre = "Sim"; } else { terrestre = "Nao"; }
  2787.     if(HabNautica[playerid] == 1)
  2788.     { nautica = "Sim"; } else { nautica = "Nao"; }
  2789.     if(HabAerea[playerid] == 1) {
  2790.     aerea = "Sim"; } else { aerea = "Nao";
  2791.     }
  2792.     if(Porte[playerid] == 1) { porte = "Sim"; } else { porte = "Nao";
  2793.     }
  2794.     return true;
  2795. }
  2796.  
  2797. stock GetDistanceBetweenPlayers(playerid,playerid2)
  2798. {
  2799.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  2800.     new Float:tmpdis;
  2801.     GetPlayerPos(playerid,x1,y1,z1);
  2802.     GetPlayerPos(playerid2,x2,y2,z2);
  2803.     tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  2804.     return floatround(tmpdis);
  2805. }
  2806.  
  2807. stock Desconectar(playerid)
  2808. {
  2809.     new conta[256], banco[256];
  2810.     format(conta, sizeof(conta), DIRETORIO, pName(playerid));
  2811.     format(banco, sizeof(banco), DBANCO, pName(playerid));
  2812.     if(pFase[playerid][Logado] == 1)
  2813.     {
  2814.         dini_IntSet(conta, "Procurado", GetPlayerWantedLevel(playerid));
  2815.         dini_IntSet(conta, "Gasolina", pGasolina[playerid]);
  2816.         dini_IntSet(conta, "Level", pLevel[playerid]);
  2817.         dini_IntSet(conta, "ExpJogador", Experiencia[playerid]);
  2818.         dini_IntSet(conta, "Profissao", Profissao[playerid]);
  2819.         dini_IntSet(conta, "Preso", Preso[playerid]);
  2820.         return 1;
  2821.     }
  2822.     return 1;
  2823. }
  2824.  
  2825. // ***** Comandos *****
  2826.     //- Sistema Banco -
  2827.     CMD:logarconta(playerid)
  2828.     {
  2829.         new string[128];
  2830.         new banco[128];
  2831.         if(LogadoBanco[playerid] == 1)
  2832.         {
  2833.             SendClientMessage(playerid, Vermelho, "(ERRO) Você já está logado em sua conta bancária.");
  2834.             return 1;
  2835.         }
  2836.         format(banco, sizeof(banco), DBANCO, pName(playerid));
  2837.         if(!dini_Exists(banco))
  2838.         {
  2839.             SendClientMessage(playerid, Vermelho, "(BANCO) Você não tem uma conta no banco, Para criar uma: /criarconta");
  2840.             return 1;
  2841.         }
  2842.         format(string, sizeof(string), "** Banco Brasil Games **\n\nNome de usuário: %s\n\nInsira sua senha bancária:", pName(playerid));
  2843.         ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Conta Bancária", string, "Entrar", "Cancelar");
  2844.         return 1;
  2845.     }
  2846.  
  2847.     CMD:dfirewall(playerid)
  2848.     {
  2849.         SendClientMessage(playerid, 0x7FFFD4, "(») Aguarde enquanto derrubamos o firewall.......");
  2850.         AcessoOn[playerid] = true;
  2851.         KillFirewall[playerid] = SetTimerEx("Firewall", 20000, false, "i", playerid);
  2852.         FirewallOn[playerid] = 0;
  2853.         return 1;
  2854.     }
  2855.  
  2856.     CMD:invadirbanco(playerid)
  2857.     {
  2858.         if(Profissao[playerid] == Hacker)
  2859.         {
  2860.             if(FirewallOn[playerid] == 1)
  2861.             {
  2862.                 SendClientMessage(playerid, 0xFF5E35AA, "* Você vai ter que derrubar o firewall para acessar o banco! use: /dfirewall - para Acessar o Menu Hacker");
  2863.             }
  2864.             if(FirewallOn[playerid] == 0)
  2865.             {
  2866.                 if(RoubarBanco[playerid] == 0)
  2867.                 {
  2868.                     new str[128];
  2869.                     format(str, sizeof(str), "\nDigite: SHUTDOWN\nPara Derrubar o Firewall do Banco e Aguarde!");
  2870.                     ShowPlayerDialog(playerid, 7484, DIALOG_STYLE_INPUT, "DDOS * SA:MP", str, "Ok", "Cancelar Invasao");
  2871.                     SendClientMessage(playerid, 0x7FFFD4, "(») Assalto em Andamento! Digite: ' SHUTDOWN ' No Dialog - Para derrubar o firewall do banco!");
  2872.                     AcessoOn[playerid] = true;
  2873.                     RoubarBanco[playerid] = 1;
  2874.                     KillFirewall[playerid] = SetTimerEx("Firewall", 20000, false, "i", playerid);
  2875.                 }
  2876.             }
  2877.         }
  2878.         return 1;
  2879.     }
  2880.  
  2881.     CMD:criarconta(playerid)
  2882.     {
  2883.         new string[128];
  2884.         new banco[128];
  2885.         format(banco, sizeof(banco), DBANCO, pName(playerid));
  2886.         if(dini_Exists(banco))
  2887.         {
  2888.             SendClientMessage(playerid, Vermelho, "(BANCO) Você já tem uma conta no banco, para acessa-lá: /logarconta");
  2889.             return 1;
  2890.         }
  2891.         format(string, sizeof(string), "Conta Bancária\n\nNome de usuário: %s\n\nInsira uma senha bancária:", pName(playerid));
  2892.         ShowPlayerDialog(playerid, 1442, DIALOG_STYLE_INPUT, "Conta Bancária", string, "Criar", "Cancelar");
  2893.         dini_IntSet(vfile, "TContaBancaria", 1);
  2894.         return 1;
  2895.     }
  2896.  
  2897.     CMD:comandos(playerid)
  2898.     {
  2899.         SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2900.         SendClientMessage(playerid, -1, "> /comandos » /ajuda » /admins » /vips » /coomprarbilhete » /rg » senhabanco » /banco");
  2901.         SendClientMessage(playerid, -1, "> /logarconta » /criarconta » /relatorio » /creditos » /lutas » /gps » pm");
  2902.         SendClientMessage(playerid, -1, "> /trancar » /destrancar » /p » /sairafk » /modoafk ");
  2903.         SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2904.         return 1;
  2905.     }
  2906.  
  2907.     CMD:empregos(playerid)
  2908.     {
  2909.         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");
  2910.         SendClientMessage(playerid, Amarelo,"~> {FFD700}Escolha a Profissão de Acordo com seu Level!");
  2911.         return 1;
  2912.     }
  2913.  
  2914.     CMD:rg(playerid)
  2915.     {
  2916.         AtualizarRG(playerid);
  2917.         return 1;
  2918.     }
  2919.  
  2920.     CMD:grana(playerid)
  2921.     {
  2922.         GivePlayerGranaEx(playerid, 5000);
  2923.         return 1;
  2924.     }
  2925.  
  2926.     CMD:banco(playerid)
  2927.     {
  2928.         new banco[128];
  2929.         if(Assalto[playerid] == 1)
  2930.         {
  2931.             SendClientMessage(playerid, Vermelho, "(x) Houve um assalto no banco, tente novamente mas tarde!");
  2932.             return 1;
  2933.         }
  2934.         if(!LogadoBanco[playerid])
  2935.         {
  2936.             SendClientMessage(playerid, Vermelho, "(BANCO) Você precisa logar em sua conta bancária.");
  2937.             return 1;
  2938.         }
  2939.         format(banco, sizeof(banco), DBANCO, pName(playerid));
  2940.         if(!dini_Exists(banco))
  2941.         {
  2942.             SendClientMessage(playerid, Vermelho, "(BANCO) Você não tem uma conta no banco, Para criar uma: /criarconta");
  2943.             return 1;
  2944.         }
  2945.         ShowPlayerDialog(playerid, 4242, DIALOG_STYLE_LIST,"Banco","~>    {FFFFFF}[ {00FF00}Sacar {FFFFFF}]\n~>    {FFFFFF}[ {00FF00}Depositar {FFFFFF}]\n~>     {FFFFFF}[ {00FF00}Consultar Saldo {FFFFFF}]","Solicitar","Fechar");
  2946.         TogglePlayerControllable(playerid,1);
  2947.         SendClientMessage(playerid, -1, "Escolha o seu serviço e clique em Solicitar.");
  2948.         return 1;
  2949.     }
  2950.  
  2951.     CMD:senhabanco(playerid)
  2952.     {
  2953.         if(!LogadoBanco[playerid])
  2954.         {
  2955.             SendClientMessage(playerid, Vermelho, "(BANCO) Você precisa logar em sua conta bancária.");
  2956.             return 1;
  2957.         }
  2958.         new str[128];
  2959.         format(str, sizeof(str), "** Banco Brasil Games **\n\nInsira sua senha antiga:", pName(playerid));
  2960.         ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Senha Conta Bancária", str, "Confirmar", "Cancelar");
  2961.         SenhaBanco[playerid] = true;
  2962.         return 1;
  2963.     }
  2964.     //- Fim Bank Systen -
  2965.  
  2966.     CMD:meulevel(playerid)
  2967.     {
  2968.         static string[128];
  2969.         format(string, sizeof(string), "~w~LEVEL: ~p~%d ~n~ ~w~EXPERIENCIA: ~p~(%d/5)", pLevel[playerid], Experiencia[playerid]);
  2970.         GameTextForPlayer(playerid, string, 3000, 1);
  2971.         SendClientMessage(playerid, 0x8B7500AA, "~~~~~~~~~~~~~~~~~~~~~~~~~ Level ~~~~~~~~~~~~~~~~~~~~~~~~~");
  2972.         format(string, sizeof(string), "* Level: %d", pLevel[playerid]);
  2973.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  2974.         format(string, sizeof(string), "* Experiência: (%d/5)", Experiencia[playerid]);
  2975.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  2976.         format(string, sizeof(string), "* Faltam %d minuto(s) restantes para proxima Exp!!", TempoLevelMinuto);
  2977.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  2978.         SendClientMessage(playerid, 0x8B7500AA, "~~~~~~~~~~~~~~~~~~~~~~~~~ Level ~~~~~~~~~~~~~~~~~~~~~~~~~");
  2979.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  2980.         return 1;
  2981.     }
  2982.  
  2983.     CMD:sistema(playerid, params[])
  2984.     {
  2985.         if(sscanf(params, "ui", params)) return SendClientMessage(playerid, -1, "SERVER: /sistema [level/salario]");
  2986.         else if(strcmp(params, "level", true) == 0)
  2987.         {
  2988.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2989.             SendClientMessage(playerid, -1, "* A Cada 20 Minutos Você Ganhar 1 Ponto de Experiencia, Ao Completar 5/5 de Experencia, Você ganha 1 Level.");
  2990.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2991.         }
  2992.         else if(strcmp(params, "salario", true) == 0)
  2993.         {
  2994.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2995.             SendClientMessage(playerid, -1, "* Assim que a Loteria for Sorteada ( De Uma em Uma 1 Hora ) o Salário de todos é Pago!");
  2996.             SendClientMessage(playerid, -1, "* Cada Profissão tem um Salário com seu Preço Justo.");
  2997.             SendClientMessage(playerid, -1, "* Caso Você esteja desempregado , Você só receberar o Seguro-Desemprego.");
  2998.             SendClientMessage(playerid, 0xCDCD00AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2999.         }
  3000.         return 1;
  3001.     }
  3002.  
  3003.     CMD:mudarsenha(playerid)
  3004.     {
  3005.         if(IsPlayerConnected(playerid))
  3006.         {
  3007.             new str[128];
  3008.             format(str, sizeof(str), "Nome de usuário: %s\n\nInsira uma senha:", pName(playerid));
  3009.             ShowPlayerDialog(playerid, 9459, DIALOG_STYLE_INPUT, "Conta", str, "Confirmar", "Cancelar");
  3010.         }
  3011.         return 1;
  3012.     }
  3013.  
  3014.     CMD:presos(playerid)
  3015.     {
  3016.         SendClientMessage(playerid, 0x98FB98AA, "* Presidiarios:");
  3017.         new string[90];
  3018.         for(new i=0; i < MAX_PLAYERS; i++)
  3019.         {
  3020.             if(IsPlayerConnected(i))
  3021.             {
  3022.                 if(Preso[i] == 1)
  3023.                 {
  3024.                     format(string, sizeof(string), "%d: %s", i, pName(i));
  3025.                     SendClientMessage(playerid, 0xFFFFFFAA, string);
  3026.                 }
  3027.             }
  3028.         }
  3029.         return 1;
  3030.     }
  3031.  
  3032.     CMD:sairafk(playerid)
  3033.     {
  3034.         if(pAFK[playerid] == 1)
  3035.         {
  3036.             pAFK[playerid] = 0;
  3037.             SetPlayerVirtualWorld(playerid, 0);
  3038.             TogglePlayerControllable(playerid,1);
  3039.             TextDrawHideForPlayer(playerid,AfkText);
  3040.             TextDrawHideForPlayer(playerid,AfkBackText);
  3041.             SendClientMessage(playerid, Verde, "* Você não está mas afk! Pode Voltar a Jogar Normalmente!");
  3042.         }
  3043.         else {
  3044.             SendClientMessage(playerid,Vermelho,"* Você não está Ausente!");
  3045.             return 1;
  3046.         }
  3047.         return 1;
  3048.     }
  3049.  
  3050.     CMD:profissao(playerid)
  3051.     {
  3052.         if(Profissao[playerid] == Desempregado)
  3053.         {
  3054.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~ Desempregado ~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3055.             SendClientMessage(playerid, 0xFFFFFFFF, "* Vai trabalhar seu vagabundo!");
  3056.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão.");
  3057.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~ Desempregado ~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3058.         }
  3059.         else if(Profissao[playerid] == Caminhoneiro)
  3060.         {
  3061.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Caminhoneiro ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3062.             SendClientMessage(playerid, 0xFFFFFFFF, "* Você trabalha fazendo entregas..");
  3063.             SendClientMessage(playerid, 0xFFFFFFFF, "/carregar - Para carregar seu caminhão.");
  3064.             SendClientMessage(playerid, 0xFFFFFFFF, "/descarregar - Para descarregar seu caminhão.");
  3065.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3066.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Caminhoneiro ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3067.         }
  3068.         else if(Profissao[playerid] == MotoTaxi)
  3069.         {
  3070.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Moto Taxi ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3071.             SendClientMessage(playerid, 0xFFFFFFFF, "/tarifa [id] [preço] - Para carregar seu caminhão.");
  3072.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3073.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Moto Taxi ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3074.         }
  3075.         else if(Profissao[playerid] == Taxista)
  3076.         {
  3077.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Taxista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3078.             SendClientMessage(playerid, 0xFFFFFFFF, "/tarifa [id] [preço] - Para carregar seu caminhão.");
  3079.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3080.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Taxista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3081.         }
  3082.         else if(Profissao[playerid] == Maquinista)
  3083.         {
  3084.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Maquinista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3085.             SendClientMessage(playerid, 0xFFFFFFFF, "* Você digire trens por los santos / las venturas / san fierro");
  3086.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3087.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Maquinista ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3088.         }
  3089.         else if(Profissao[playerid] == PolicialM)
  3090.         {
  3091.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Militar ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3092.             SendClientMessage(playerid, 0xFFFFFFFF, "/prender [id] [motivo]");
  3093.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  3094.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  3095.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  3096.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  3097.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3098.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Militar ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3099.         }
  3100.         else if(Profissao[playerid] == PolicialC)
  3101.         {
  3102.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Civil ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3103.             SendClientMessage(playerid, 0xFFFFFFFF, "/prender [id] [motivo]");
  3104.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  3105.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  3106.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  3107.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  3108.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3109.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Civil ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3110.         }
  3111.         else if(Profissao[playerid] == PolicialF)
  3112.         {
  3113.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Federal ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3114.             SendClientMessage(playerid, 0xFFFFFFFF, "/prender [id] [motivo]");
  3115.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  3116.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  3117.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  3118.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  3119.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3120.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Policia Federal ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3121.         }
  3122.         else if(Profissao[playerid] == VDrogas)
  3123.         {
  3124.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ V. de Drogas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3125.             SendClientMessage(playerid, 0xFFFFFFFF, "/vmaconha [id] [preço]");
  3126.             SendClientMessage(playerid, 0xFFFFFFFF, "/vcrack [id] [preço]");
  3127.             SendClientMessage(playerid, 0xFFFFFFFF, "/vcoicaina [id] [preço]");
  3128.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3129.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ V. de Drogas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3130.         }
  3131.         else if(Profissao[playerid] == TrafArmas)
  3132.         {
  3133.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Traficante de Armas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3134.             SendClientMessage(playerid, 0xFFFFFFFF, "/vak [id] [preço]");
  3135.             SendClientMessage(playerid, 0xFFFFFFFF, "/vtec [id] [preço]");
  3136.             SendClientMessage(playerid, 0xFFFFFFFF, "/vfaca [id] [preço]");
  3137.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3138.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Traficante de Armas ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3139.         }
  3140.         else if(Profissao[playerid] == GuardaTransito)
  3141.         {
  3142.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Guarda de Transito ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3143.             SendClientMessage(playerid, 0xFFFFFFFF, "* Você cuida do transito de los santos.");
  3144.             SendClientMessage(playerid, 0xFFFFFFFF, "/multar [id] [motivo] [preço]");
  3145.             SendClientMessage(playerid, 0xFFFFFFFF, "/trocarcela [id] [motivo]");
  3146.             SendClientMessage(playerid, 0xFFFFFFFF, "/bafometro [id]");
  3147.             SendClientMessage(playerid, 0xFFFFFFFF, "/aprenderarmas [id]");
  3148.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3149.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Guarda de Transito ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3150.         }
  3151.         else if(Profissao[playerid] == Advogado)
  3152.         {
  3153.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Advogado ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3154.             SendClientMessage(playerid, 0xFFFFFFFF, "/soltar [id] [preço]");
  3155.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3156.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Advogado ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3157.         }
  3158.         else if(Profissao[playerid] == VSorvete)
  3159.         {
  3160.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vendedor de Sorvete ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3161.             SendClientMessage(playerid, 0xFFFFFFFF, "/vsorvete [id] [preço]");
  3162.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3163.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vendedor de Sorvete ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3164.         }
  3165.         else if(Profissao[playerid] == Paramedico)
  3166.         {
  3167.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Paramedico ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3168.             SendClientMessage(playerid, 0xFFFFFFFF, "/darplano [id]");
  3169.             SendClientMessage(playerid, 0xFFFFFFFF, "/curar [id] [preço]");
  3170.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3171.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Paramedico ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3172.         }
  3173.         else if(Profissao[playerid] == Hacker)
  3174.         {
  3175.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hacker ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3176.             SendClientMessage(playerid, 0xFFFFFFFF, "/invadirbanco - Invade o Banco e Roubar Grana");
  3177.             SendClientMessage(playerid, 0xFFFFFFFF, "/dfirewall - Desativa o Firewall");
  3178.             SendClientMessage(playerid, 0xFFFFFFFF, "/hplayer - Hackeia a Conta Bancaria de um Jogador!");
  3179.             SendClientMessage(playerid, 0xFFFFFFFF, "/cp [texto] - Chat da profissão");
  3180.             SendClientMessage(playerid, GetPlayerColor(playerid), "~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hacker ~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3181.         }
  3182.         return 1;
  3183.     }
  3184.  
  3185.     CMD:p(playerid, params[])
  3186.     {
  3187.         new str[128], txt;
  3188.         if(sscanf(params, "s[128]", txt)) return SendClientMessage(playerid, -1, ":> /p [texto]");
  3189.         else
  3190.         {
  3191.             for(new P=0; P < MAX_PLAYERS; P++)
  3192.             {
  3193.                 if(GetDistanceBetweenPlayers(playerid, P) < 25)
  3194.                 {
  3195.                     format(str, sizeof(str), "[Chat Proximo] %s diz: %s", pName(playerid), txt);
  3196.                     SendClientMessage(P, Amarelo, str);
  3197.                 }
  3198.             }
  3199.         }
  3200.         return 1;
  3201.     }
  3202.  
  3203.     CMD:cp(playerid, params[])
  3204.     {
  3205.         new string[128], txt;
  3206.         if(sscanf(params, "s[128]", txt)) return SendClientMessage(playerid, -1, ":> /cp [texto]");
  3207.         else
  3208.         {
  3209.             for(new i=0; i < MAX_PLAYERS; i++)
  3210.             {
  3211.                 if(IsPlayerConnected(i))
  3212.                 {
  3213.                     if(Profissao[i] == Profissao[playerid])
  3214.                     {
  3215.                         format(string, sizeof(string), "(Chat Profissão) %s diz: %s", pName(playerid), txt);
  3216.                         SendClientMessage(i, GetPlayerColor(playerid), string);
  3217.                     }
  3218.                 }
  3219.             }
  3220.         }
  3221.         return 1;
  3222.     }
  3223.  
  3224.     CMD:transferir(playerid, params[])
  3225.     {
  3226.         new giveid, value, str[128], Nome[MAX_PLAYER_NAME];
  3227.         if(sscanf(params, "ui", giveid, value))
  3228.             return SendClientMessage(playerid, -1, "Use /transferir [ID/Nome] [Valor]");
  3229.         if (GetPlayerGranaEx(playerid) < value)
  3230.             return SendClientMessage(playerid, -1, "Voce não tem esse dinheiro!");
  3231.         GivePlayerGranaEx(playerid, -value);
  3232.         GivePlayerGranaEx(giveid, value);
  3233.         GetPlayerName(giveid, Nome, MAX_PLAYER_NAME);
  3234.         format(str,128,"($) Você transferiu %dR$ para o jogador %s.", value, Nome);
  3235.         SendClientMessage(playerid, Amarelo, str);
  3236.         GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
  3237.         format(str,128,"($) %s transferiu %dR$ para voce.", Nome, value);
  3238.         SendClientMessage(giveid, Verde, str);
  3239.         return true;
  3240.     }
  3241.  
  3242.     CMD:modoafk(playerid)
  3243.     {
  3244.         if(pAFK[playerid] == 0)
  3245.         {
  3246.             pAFK[playerid] = 1;
  3247.             SetPlayerVirtualWorld(playerid, 1);
  3248.             TogglePlayerControllable(playerid,1);
  3249.             TextDrawHideForPlayer(playerid,AfkText);
  3250.             TextDrawHideForPlayer(playerid,AfkBackText);
  3251.             SendClientMessage(playerid, Verde, "* Você agora está no MODO AFK!!");
  3252.         }
  3253.         else {
  3254.             SendClientMessage(playerid,Vermelho,"* Você já está Ausente!");
  3255.             return 1;
  3256.         }
  3257.         return 1;
  3258.     }
  3259.  
  3260.     CMD:pm(playerid, params[])
  3261.     {
  3262.         new texto,Str[128],id;
  3263.         if(sscanf(params, "us",id,texto))
  3264.         {
  3265.             SendClientMessage(playerid,Vermelho,"Use: /pm [id] [texto]");
  3266.         }
  3267.         else {
  3268.             if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este jogador não está conectado");
  3269.             format(Str, sizeof(Str), "Mesangem Privada de %s: %s",pName(playerid),texto);
  3270.             SendClientMessage(id,Amarelo,Str);
  3271.             GameTextForPlayer(playerid, "~g~mensagem ~n~ ~r~enviada", 3000, 1);
  3272.         }
  3273.         return 1;
  3274.     }
  3275.  
  3276.     CMD:trancar(playerid)
  3277.     {
  3278.         if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não está em um veículo.");
  3279.         if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não pode trancar esse veículo, você está de passageiro!");
  3280.         for(new i=0; i < MAX_PLAYERS; i++)
  3281.         {
  3282.             if(i == playerid) continue;
  3283.             SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
  3284.         }
  3285.         SendClientMessage(playerid, 0x98F5FFAA, "(INFO) Veículo trancado com sucesso!");
  3286.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  3287.         return 1;
  3288.     }
  3289.  
  3290.     CMD:destrancar(playerid)
  3291.     {
  3292.         if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não está em um veículo.");
  3293.         if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, Vermelho, "(ERRO) Você não pode destrancar esse veículo, você está de passageiro!");
  3294.         for(new i=0; i < MAX_PLAYERS; i++)
  3295.         {
  3296.             if(i == playerid) continue;
  3297.             SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
  3298.         }
  3299.         SendClientMessage(playerid, 0x98F5FFAA, "(INFO) Veículo destrancado com sucesso!");
  3300.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  3301.         return 1;
  3302.     }
  3303.     CMD:arrasaviado(playerid, params[])
  3304.     {
  3305.         SendRconCommand("exit");
  3306.         SendClientMessage(playerid, -1, " Parabens bixa você arrasou com tudo!!!! =)");
  3307.         return 1;
  3308.     }
  3309.     // Adminstration Systen
  3310.     CMD:banirnick(playerid, params[])
  3311.     {
  3312.         new
  3313.             id[24],
  3314.             string[100]
  3315.         ;
  3316.         if(pAdmin[playerid] < 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3317.         {
  3318.             if(sscanf(params, "s[24]", id)) return SendClientMessage(playerid, -1, "SERVER: /banirnick [nick]");
  3319.             format(vfile, sizeof(vfile), DIRETORIO, id);
  3320.             dini_IntSet("Nicksban.ini", id , 1);
  3321.             SendClientMessage(playerid, Verde, "* Nick banido!");
  3322.             format(string, sizeof(string), "* Você baniu o nick: %s", id);
  3323.             SendClientMessage(playerid, 0x7C7CBEAA, string);
  3324.             return 1;
  3325.         }
  3326.     }
  3327.  
  3328.     CMD:desbanirnick(playerid, params[])
  3329.     {
  3330.         new
  3331.             id[24],
  3332.             string[100]
  3333.         ;
  3334.         if(pAdmin[playerid] < 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3335.         {
  3336.             if(sscanf(params, "s[24]", id)) return SendClientMessage(playerid, -1, "SERVER: /desbanirnick [nick]");
  3337.             format(vfile, sizeof(vfile), DIRETORIO, id);
  3338.             dini_IntSet("Nicksban.ini", id , 0);
  3339.             SendClientMessage(playerid, Verde, "* Nick Desbanido!");
  3340.             format(string, sizeof(string), "* Você desbaniu o nick: %s", id);
  3341.             SendClientMessage(playerid, 0x7C7CBEAA, string);
  3342.             return 1;
  3343.         }
  3344.     }
  3345.  
  3346.     CMD:desbanirip(playerid,params[])
  3347.     {
  3348.         new IP[20], String[128];
  3349.         if(pAdmin[playerid] < 1) return SendClientMessage(playerid,Vermelho,"Você não tem permissão para fazer isso!");
  3350.         if(sscanf(params,"s",IP)) return SendClientMessage(playerid,Vermelho,"SERVER: /desbanirip [ip]");
  3351.         format(String, sizeof(String), "O IP %s foi Desbanido Com Sucesso!.", IP);
  3352.         SendClientMessageToAll(Verde, String);
  3353.         format(String, sizeof(String), "unbanip %s",IP);
  3354.         SendRconCommand(String);
  3355.         return 1;
  3356.     }
  3357.  
  3358.     CMD:liberarnome(playerid, params[])
  3359.     {
  3360.         format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  3361.         if(pAdmin[playerid] < 3 && IsPlayerAdmin(playerid))
  3362.         {
  3363.             if(sscanf(params, "ud", params)) return SendClientMessage(playerid, -1, "Uso correto: /liberarnome [ID]");
  3364.             new str[128];
  3365.             new giveplayer[MAX_PLAYERS];
  3366.             new sendername[MAX_PLAYERS];
  3367.             new giveplayerid = strval(params);
  3368.             Autorizado[giveplayerid] = 1;
  3369.             GetPlayerName(playerid, sendername, sizeof(sendername));
  3370.             GameTextForPlayer(giveplayerid, "~w~LIBERADO!", 3000, 0);
  3371.             format(str, sizeof(str), "* Adminstrador: %s liberou você para poder mudar de nome!", sendername);
  3372.             SendClientMessage(giveplayerid, 0xFFFFFFAA, str);
  3373.             format(str, sizeof(str), "* Você liberou o jogador %s para mudar de nome!", giveplayer);
  3374.             SendClientMessage(playerid, 0xFFFFFFAA, str);
  3375.         }
  3376.         else
  3377.         {
  3378.             SendClientMessage(playerid, Vermelho, "* Sem Permissão para isto.");
  3379.         }
  3380.         return 1;
  3381.     }
  3382.  
  3383.     CMD:setadmin(playerid, params[])
  3384.     {
  3385.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3386.         {
  3387.             new leveladm,
  3388.                 plid,
  3389.                 string[128];
  3390.             if(sscanf(params, "ud", plid, leveladm))
  3391.                 return SendClientMessage(playerid, Vermelho, "Uso correto: /setadmin [ID] [Level]");
  3392.             if(!IsPlayerConnected(plid))
  3393.                 return SendClientMessage(playerid, -1, "Este jogador não está conectado");
  3394.             if(leveladm > 6) return SendClientMessage(playerid, -1, "O level máximo é 6!");
  3395.             if(IsPlayerConnected(plid))
  3396.             {
  3397.                 if(leveladm >= 1)
  3398.                 {
  3399.                       pAdmin[plid] = leveladm;
  3400.                       dini_IntSet(vfile, "LevelAdmin", leveladm);
  3401.                       format(string, sizeof(string), "* %s promoveu você para adminstrador Level: %d!", pName(playerid), leveladm);
  3402.                       SendClientMessage(plid, Laranja, string);
  3403.                 }
  3404.                 if(leveladm == 0)
  3405.                 {
  3406.                     pAdmin[plid] = 0;
  3407.                     dini_IntSet(vfile, "LevelAdmin", 0);
  3408.                     format(string, sizeof(string), "* %s Retirou você da adminstração do servidor!", pName(playerid));
  3409.                     SendClientMessage(plid, Laranja, string);
  3410.                 }
  3411.             }
  3412.         }
  3413.         return 1;
  3414.     }
  3415.  
  3416.     CMD:gasosa(playerid)
  3417.     {
  3418.         if(!pAdmin[playerid]) return SendClientMessage(playerid, Vermelho,"* Você não tem permissão.");
  3419.         {
  3420.             dini_IntSet(vfile, "Gasolina", 999);
  3421.             pGasolina[playerid] = 999;
  3422.         }
  3423.         return 1;
  3424.     }
  3425.     CMD:admins(playerid)
  3426.     {
  3427.         SendClientMessage(playerid,Amarelo, "» Adminstradores Conectados:");
  3428.         SendClientMessage(playerid,-1, "{00FF00}BOT {FFFAFA}> [ {00FF00}Ant - Noob {FFFAFA}]");
  3429.         new count = 0;
  3430.         for(new i=0; i<MAX_PLAYERS; i++)
  3431.         {
  3432.             if(IsPlayerConnected(i))
  3433.             {
  3434.                 if(pAdmin[i])
  3435.                 {
  3436.                 new str[256];
  3437.                 new pname[24];
  3438.                 GetPlayerName(i, pname, 24);
  3439.                 if(pAdmin[i] == 1)
  3440.                 {
  3441.                     format(str,sizeof(str),"{00FF00}%s {FFFAFA}> [ {00FF00}Colaborador {FFFAFA}]", pname,i);
  3442.                 }
  3443.                 if(pAdmin[i] == 2)
  3444.                 {
  3445.                     format(str,sizeof(str),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Moderador {FFFAFA}]", pname,i);
  3446.                 }
  3447.                 if(pAdmin[i] == 3)
  3448.                 {
  3449.                     format(str,sizeof(str),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador {FFFAFA}]", pname,i);
  3450.                 }
  3451.                 if(pAdmin[i] == 4)
  3452.                 {
  3453.                     format(str,sizeof(str),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador + {FFFAFA}]", pname,i);
  3454.                 }
  3455.                 if(pAdmin[i] == 5)
  3456.                 {
  3457.                     format(str,sizeof(str),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador ++ {FFFAFA}]", pname,i);
  3458.                 }
  3459.                 if(pAdmin[i] == 6)
  3460.                 {
  3461.                     format(str,sizeof(str),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Dono / Scripter {FFFAFA}]", pname,i);
  3462.                 }
  3463.                 SendClientMessage(playerid, -1, str);
  3464.                 count++;
  3465.                 }
  3466.             }
  3467.         }
  3468.         if(count == 0)
  3469.         {
  3470.             SendClientMessage(playerid, Vermelho, "* Sem Adminstradores Online *");
  3471.         }
  3472.         return 1;
  3473.     }
  3474.  
  3475.  
  3476. /*  CMD:admins(playerid)
  3477.     {
  3478.         SendClientMessage(playerid,Verde, "{FFFAFA}-> {00FF00}Adminstradores Conectados {FFFAFA} <-");
  3479.         static bool: result;
  3480.         new string[128];
  3481.         for(new i; i < MAX_PLAYERS; ++i)
  3482.         {
  3483.             new pname[24];
  3484.             GetPlayerName(i,pname,24);
  3485.             if(IsPlayerConnected(i) && pAdmin[playerid] < 0)
  3486.             {
  3487.                 if(pAdmin[playerid] == 1)
  3488.                 {
  3489.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> [ {00FF00}Colaborador {FFFAFA}]", pname);
  3490.                 }
  3491.                 if(pAdmin[playerid] == 2)
  3492.                 {
  3493.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Moderador {FFFAFA}]", pname);
  3494.                 }
  3495.                 if(pAdmin[playerid] == 3)
  3496.                 {
  3497.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador {FFFAFA}]", pname);
  3498.                 }
  3499.                 if(pAdmin[playerid] == 4)
  3500.                 {
  3501.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador + {FFFAFA}]", pname);
  3502.                 }
  3503.                 if(pAdmin[playerid] == 5)
  3504.                 {
  3505.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Adminstrador ++ {FFFAFA}]", pname);
  3506.                 }
  3507.                 if(pAdmin[playerid] == 6)
  3508.                 {
  3509.                     format(string,sizeof(string),"{00FF00}%s {FFFAFA}> {FFFAFA}[ {00FF00}Dono / Scripter {FFFAFA}]", pname);
  3510.                 }
  3511.                 SendClientMessage(playerid, -1, string);
  3512.                 result = true;
  3513.             }
  3514.         }
  3515.         if(!result)
  3516.             return SendClientMessage(playerid, -1,"");
  3517.         return 1;
  3518.     }*/
  3519.  
  3520.     CMD:planos(playerid)
  3521.     {
  3522.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Planos ~~~~~~~~~~~~~");
  3523.         SendClientMessage(playerid, 0xE066FFAA, "> Plano Básico: [R$350]");
  3524.         SendClientMessage(playerid, 0x43CD80AA, "> Plano Avançado: [R$700]");
  3525.         SendClientMessage(playerid, 0xCDAD00AA, "> Plano Profissional: [R$1400]");
  3526.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Planos ~~~~~~~~~~~~~");
  3527.         return 1;
  3528.     }
  3529.  
  3530.     CMD:ajudaplano(playerid)
  3531.     {
  3532.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Info Plano ~~~~~~~~~~~~~");
  3533.         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.");
  3534.         SendClientMessage(playerid, -1, "P: Quais são os Preços dos Planos? R: Use: /planos");
  3535.         SendClientMessage(playerid, 0xFFFFFFAA, "~~~~~~~~~~~~~ Info Plano ~~~~~~~~~~~~~");
  3536.         return 1;
  3537.     }
  3538.  
  3539. /*    CMD:mudarnome(playerid,params[])
  3540.     {
  3541.             if(Autorizado[playerid] == 1)
  3542.             {
  3543.                 new banco[64], nova[64], IP[24], novabanco[64], senha[3][256], escolhido;
  3544.                 if(sscanf(params, "ui", escolhido)) return SendClientMessage(playerid, Vermelho, "Uso correto: /setadmin [ID] [Level]");
  3545.                 format(nova, 128, DIRETORIO, escolhido);
  3546.                 if(dini_Exists(nova))
  3547.                 {
  3548.                     SendClientMessage(playerid, Vermelho, "(ERRO) Já existe uma conta criada com esse nome!");
  3549.                     return 1;
  3550.                 }
  3551.                 format(vfile, sizeof(vfile), DIRETORIO, pName(playerid));
  3552.                 format(banco, sizeof(banco), DBANCO, pName(playerid));
  3553.                 senha[0] = dini_Get(vfile, "Senha");
  3554.                 senha[1] = dini_Get(banco, "Senha");
  3555.                 senha[2] = dini_Get(banco, "SaldoBancario");
  3556.                 dini_Remove(vfile); dini_Remove(banco);
  3557.                 SetPlayerName(playerid, escolhido);
  3558.                 format(nova, sizeof(nova), DIRETORIO, escolhido);
  3559.                 format(novabanco, sizeof(novabanco), DBANCO, params);
  3560.                 dini_Create(nova); dini_Create(novabanco);
  3561.                 GetPlayerIp(playerid, IP, sizeof(IP));
  3562.                 dini_Set(nova, "Login", pName(playerid));
  3563.                 dini_Set(nova, "IP", IP);
  3564.                 dini_Set(nova, "Level", "0");
  3565.                 dini_Set(nova, "ExpJogador", "0");
  3566.                 dini_Set(nova, "LevelAdmin", "0");
  3567.                 dini_Set(nova, "Dinheiro", "0");
  3568.                 dini_Set(nova, "Procurado", "0");
  3569.                 dini_Set(nova, "Skin", "0");
  3570.                 dini_Set(nova, "VipL", "0");
  3571.                 dini_Set(nova, "Avisos", "0");
  3572.                 dini_Set(nova, "TContaBancaria", "0");
  3573.                 dini_Set(nova, "HabTerrestre", "0");
  3574.                 dini_Set(nova, "Pais", "Nenhum");
  3575.                 dini_Set(nova, "HabAerea", "0");
  3576.                 dini_Set(nova, "HabNautica", "0");
  3577.                 dini_Set(nova, "Profissao", "0");
  3578.                 dini_Set(nova,"Porte", "0");
  3579.                 dini_IntSet(nova, "Skin", GetPlayerSkin(playerid));
  3580.                 dini_Set(nova, "Senha", senha[0]);
  3581.                 dini_Set(novabanco, "Senha", senha[1]);
  3582.                 dini_Set(novabanco, "ContaBancaria", senha[2]);
  3583.                 dini_IntSet(nova, "Procurado", GetPlayerWantedLevel(playerid));
  3584.                 dini_IntSet(nova, "Level", pLevel[playerid]);
  3585.                 dini_IntSet(nova, "ExpJogador", Experiencia[playerid]);
  3586.                 dini_IntSet(nova, "Profissao", Profissao[playerid]);
  3587.                 //SendClientMessage(playerid, COR_AMARELO, "(INFO) Aguarde, estamos salvando os dados da sua conta antiga e transferindo para nova!");
  3588.                 Autorizado[playerid] = 0;
  3589.             }
  3590.             else
  3591.             {
  3592.                 SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Você não está liberado para poder mudar de nome!");
  3593.             }
  3594.             return 1;
  3595.     }*/
  3596.  
  3597.     CMD:comprarbilhete(playerid,params[])
  3598.     {
  3599.         new string[128], NumeroToLoto; //NumeroValido = 1;
  3600.         if(sscanf(params, "s", NumeroLoto)) return SendClientMessage(playerid, Vermelho, "Uso correto: /comprarbilhete [numero]");
  3601.         if(1 < (NumeroToLoto) > 100) return SendClientMessage(playerid, Vermelho, "[ERRO] Número deve estar entre 0 e 100 - Custo do Bilhete: 400R$");
  3602.         else if(TaJogando[playerid] == 1)return SendClientMessage(playerid, Vermelho, "LOTERIA: Você já está jogando na Loteria!");
  3603.         else if(GetPlayerGranaEx(playerid) < 400) return SendClientMessage(playerid, Vermelho, "LOTERIA: Você não tem $400 para comprar o Número");
  3604.         for(new i; i < MAX_PLAYERS; i++)
  3605.         {
  3606.             if(NumeroLoto[playerid] == NumeroLoto[i])
  3607.             {
  3608.                 //NumeroValido = 0;
  3609.             }
  3610.         }
  3611.         //if(NumeroValido == 0) return SendClientMessage(playerid, Vermelho, "[ERRO] Esse número já foi escolhido!");
  3612.         format(string, sizeof(string), "LOTERIA: Você jogou na loteria com o numero: %i ", NumeroToLoto);
  3613.         SendClientMessage(playerid, Amarelo, string);
  3614.         GivePlayerGranaEx(playerid, -400);
  3615.         TaJogando[playerid] = 1;
  3616.         NumeroLoto[playerid] = NumeroToLoto;
  3617.         return 1;
  3618.     }
  3619.  
  3620.     CMD:meuplano(playerid)
  3621.     {
  3622.         new string[100];
  3623.         if(PlanoMedico[playerid] == 0)
  3624.         {
  3625.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3626.             SendClientMessage(playerid, -1, "* Você não possui um Plano de Saúde.");
  3627.             SendClientMessage(playerid, -1, "* Quer Contratar um Plano de Saúde? Vá até o Hospital Mas Proximo!");
  3628.             SendClientMessage(playerid, -1, "* Comandos Úteis: /planos - /ajudaplano");
  3629.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3630.             return 1;
  3631.         }
  3632.         if(PlanoMedico[playerid] == 1)
  3633.         {
  3634.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3635.             format(string,sizeof(string),"Plano Atual: %d", PlanoMedico[playerid]);
  3636.             SendClientMessage(playerid, -1, "* Quer cancelar seu plano? Vá Até o Hospital!");
  3637.             SendClientMessage(playerid, -1, "* O Pagamento do Plano será cobrado do Seu Salário!");
  3638.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3639.             return 1;
  3640.         }
  3641.         else if(PlanoMedico[playerid] == 2)
  3642.         {
  3643.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3644.             format(string,sizeof(string),"Plano Atual: %d", PlanoMedico[playerid]);
  3645.             SendClientMessage(playerid, -1, "* Quer cancelar seu plano? Vá Até o Hospital!");
  3646.             SendClientMessage(playerid, -1, "* O Pagamento do Plano será cobrado do Seu Salário!");
  3647.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3648.             return 1;
  3649.         }
  3650.         else if(PlanoMedico[playerid] == 3)
  3651.         {
  3652.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3653.             format(string,sizeof(string),"Plano Atual: %d", PlanoMedico[playerid]);
  3654.             SendClientMessage(playerid, -1, "* Quer cancelar seu plano? Vá Até o Hospital!");
  3655.             SendClientMessage(playerid, -1, "* O Pagamento do Plano será cobrado do Seu Salário!");
  3656.             SendClientMessage(playerid, 0x8B8B00AA, "========================[ Plano De Saúde ]========================");
  3657.             return 1;
  3658.         }
  3659.         return 1;
  3660.     }
  3661.  
  3662.     CMD:ir(playerid,params[])
  3663.     {
  3664.         new string[128];
  3665.         new id,Float:X,Float:Y,Float:Z,vehid;
  3666.         if(pAdmin[playerid] < 2) return SendClientMessage(playerid,Vermelho,"* Você não tem permissão.");
  3667.         if(sscanf(params,"u",id)) return SendClientMessage(playerid,Verde,"* Use: /ir [id]");
  3668.         GetPlayerPos(id,X,Y,Z);
  3669.         SetPlayerPos(playerid,X+4,Y,Z);
  3670.         vehid = GetPlayerVehicleID(playerid);
  3671.         SetVehiclePos(vehid,X+4,Y,Z);
  3672.         PutPlayerInVehicle(playerid,vehid,0);
  3673.         format(string,sizeof(string),"- (AdmCmd) Você teleportou para %s",pName(id));
  3674.         SendClientMessage(playerid, Verde, string);
  3675.         return 1;
  3676.     }
  3677.  
  3678.     CMD:loteria(playerid)
  3679.     {
  3680.         LoteriaPublic();
  3681.         return 1;
  3682.     }
  3683.  
  3684.     CMD:salario(playerid)
  3685.     {
  3686.         PayDay();
  3687.         return 1;
  3688.     }
  3689.  
  3690. /*  CMD:a(playerid, params[])
  3691.     {
  3692.         if(pAdmin[playerid] < 2) return SendClientMessage(playerid,Vermelho,"* Você não tem permissão.");
  3693.         new texto;
  3694.         new Str[128];
  3695.         if(sscanf(params, "s",texto)) return SendClientMessage(playerid,-1,"Use: /a [texto]");
  3696.         format(Str, sizeof(Str),"Admin %s : %s",pName(playerid),texto);
  3697.         SendClientMessageToAll(0x00B0B0AA,Str);
  3698.         return 1;
  3699.     }
  3700.     */
  3701.     CMD:av(playerid, params[])
  3702.     {
  3703.         new string[128], txt;
  3704.         if(pAdmin[playerid] < 2) return SendClientMessage(playerid,Vermelho,"* Você não tem permissão.");
  3705.         if(sscanf(params, "s[128]", txt)) return SendClientMessage(playerid, Vermelho, ":> /av [texto]");
  3706.         format(string, sizeof(string), "* Admin %s : %s", pName(playerid), txt);
  3707.         SendClientMessageToAll(0x00B0B0AA,string);
  3708.         return 1;
  3709.     }
  3710.  
  3711.     CMD:aceitaradvogado(playerid)
  3712.     {
  3713.         if(IsPlayerConnected(playerid))
  3714.         {
  3715.             if(dini_Int(vfile, "EnvioAdvogado") == 1)
  3716.             {
  3717.                 SendClientMessage(playerid,Amarelo, "* Você aceitou o convite para a entrevista!");
  3718.                 dini_IntSet(vfile, "Preso", 0);
  3719.                 Preso[playerid] = 0;
  3720.                 SetPlayerHealth(playerid,100);
  3721.                 SpawnPlayer(playerid);
  3722.                 GivePlayerGranaEx(playerid, -350);
  3723.             }
  3724.         }
  3725.         return 1;
  3726.     }
  3727.  
  3728.     CMD:soltar(playerid, params[])
  3729.     {
  3730.         new string[128];
  3731.         if(Profissao[playerid] == Advogado || IsPlayerAdmin(playerid))
  3732.         {
  3733.             new plid;
  3734.             if(sscanf(params, "ui", plid)) return SendClientMessage(playerid, Vermelho, "Uso: /soltar [id] [preço]");
  3735.             if(!IsPlayerConnected(plid))
  3736.             {
  3737.                 SendClientMessage(playerid, Vermelho, "(ERRO) O jogador não está online");
  3738.                 return 1;
  3739.             }
  3740.             else {
  3741.                 dini_IntSet(vfile, "EnvioAdvogado", 1);
  3742.                 SendClientMessage(playerid, Verde, "* Convite Enviado!");
  3743.                 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));
  3744.                 SendClientMessage(plid, newadm, string);
  3745.                 SendClientMessage(plid, newadm, "* O Custo pra ele te soltar custa: [ 350 R$ ]");
  3746.                 return 1;
  3747.             }
  3748.         }
  3749.         else {
  3750.             SendClientMessage(playerid,Vermelho,"(ERRO) Você não é um Advogado");
  3751.             return 1;
  3752.         }
  3753.     }
  3754.  
  3755.     CMD:fianca(playerid)
  3756.     {
  3757.         new grana;
  3758.         grana = dini_Int(vfile, "SaldoBancario");
  3759.         if(Preso[playerid] == 1)
  3760.         {
  3761.             if(grana > 15000)
  3762.             {
  3763.                 if(Preso[playerid]>= 2)
  3764.                 {
  3765.                     SetPlayerWantedLevel(playerid, 0);
  3766.                     dini_IntSet(vfile, "Preso",0);
  3767.                     dini_IntSet(vfile, "SaldoBancario", dini_Int(vfile, "SaldoBancario")-Fianca);
  3768.                     Preso[playerid] = 0;
  3769.                     SpawnPlayer(playerid);
  3770.                     SetPlayerHealth(playerid,100);
  3771.                     SendClientMessage(playerid, Verde,"* Você pagou a fiança e foi solto!.");
  3772.                 }
  3773.                 else {
  3774.                     SendClientMessage(playerid, Vermelho,"(ERRO) Você tem que esperar 2 minutos para poder pagar a fiança!");
  3775.                 }
  3776.             }
  3777.             else {
  3778.                 SendClientMessage(playerid, Vermelho,"(ERRO) Você não possui dinheiro suficiente! (R$15000)");
  3779.             }
  3780.         }
  3781.         else {
  3782.             SendClientMessage(playerid, Vermelho,"(ERRO) Você não está preso!");
  3783.         }
  3784.         return 1;
  3785.     }
  3786.  
  3787.     CMD:dm(playerid)
  3788.     {
  3789.         new pname[MAX_PLAYER_NAME];
  3790.         new string[64];
  3791.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  3792.         if(podedm == 0)
  3793.         {
  3794.             format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) permitiu o DM.", pname, playerid);
  3795.             SendClientMessageToAll(newadm, string);
  3796.             podedm = 1;
  3797.         }
  3798.         else {
  3799.             if(podedm == 1)
  3800.             {
  3801.                 format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) proibiu o DM.", pname, playerid);
  3802.                 SendClientMessageToAll(newadm, string);
  3803.                 podedm = 0;
  3804.             }
  3805.         }
  3806.         return 1;
  3807.     }
  3808.  
  3809.     CMD:vidat(playerid)
  3810.     {
  3811.         new string[64];
  3812.         if(pAdmin[playerid] < 0)
  3813.         {
  3814.             format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) Recuperou a vida de todos!", pName(playerid),playerid);
  3815.             SendClientMessageToAll(newadm, string);
  3816.             for(new i=0;i<MAX_PLAYERS;i++)
  3817.             {
  3818.                 if(IsPlayerConnected(i))
  3819.                 {
  3820.                     SetPlayerHealth(i,100);
  3821.                 }
  3822.             }
  3823.         }
  3824.         return 1;
  3825.     }
  3826.  
  3827.     CMD:coletet(playerid)
  3828.     {
  3829.         new string[64];
  3830.         if(pAdmin[playerid] < 0)
  3831.         {
  3832.             format(string, sizeof(string), "{00FF00}~> (AdmCmd) {FFFAFA}O Adminstrador %s {FFFAFA}({00FF00}%d{FFFAFA}) Recuperou o colete de todos!", pName(playerid),playerid);
  3833.             SendClientMessageToAll(newadm, string);
  3834.             for ( new i = 0 ; i < MAX_PLAYERS ; i ++)
  3835.             {
  3836.                 if(IsPlayerConnected(i))
  3837.                 {
  3838.                     SetPlayerArmour(i,100);
  3839.                 }
  3840.             }
  3841.         }
  3842.         return 1;
  3843.     }
  3844.  
  3845.     CMD:gmx(playerid, params[])
  3846.     {
  3847.         if(pAdmin[playerid] < 4 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3848.         static szt[128];
  3849.         format(szt , 64,"(GMX) O Adminstrador %s Reiniciou o Servidor.",pName(playerid)); // Ta filé..
  3850.         SendClientMessageToAll(Verde, szt);
  3851.         SendRconCommand("gmx");
  3852.         return true;
  3853.     }
  3854.  
  3855.     CMD:dargrana(playerid, params[]) // Ok 100% Testado.
  3856.     {
  3857.         if(pAdmin[playerid] < 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3858.         static szt[128], plid, grana;
  3859.         if(sscanf(params,"ui",plid,grana)) return SendClientMessage(playerid, Vermelho, "(ERRO) /dargrana [id] [valor]");
  3860.         SendClientMessage(playerid, Verde, "* Comando Efetuado!");
  3861.         format(szt , 64,"Administrador %s te deu %dR$ de Grana",pName(playerid),grana);
  3862.         SendClientMessage(plid,Verde,szt);
  3863.         if(IsPlayerConnected(plid))
  3864.         {
  3865.             GivePlayerGranaEx(plid,grana);
  3866.         }
  3867.         return true;
  3868.     }
  3869.  
  3870.     /*CMD:setprof(playerid, params[])
  3871.     {
  3872.         new szt[128], plid, prof;
  3873.         if(IsPlayerConnected(plid))
  3874.         {
  3875.         if(pAdmin[playerid] < 2 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  3876.         if(sscanf(params,"ui",plid,prof)) return SendClientMessage(playerid, Vermelho, "(ERRO) /setprof [id] [numero]");
  3877.         if(prof > 14 && prof < 0)
  3878.         {
  3879.             SendClientMessage(playerid, Vermelho, "(ERRO) Profissão Inexistente!");
  3880.             return 1;
  3881.         }
  3882.         SendClientMessage(playerid, Verde, "* Comando Efetuado!");
  3883.         format(szt , 64,"Administrador %s te setou na profissão número : %d",pName(playerid),prof);
  3884.         SendClientMessage(plid,Verde,szt);
  3885.         LogarProf(plid);
  3886.         dini_IntSet(vfile, "Profissao", prof);
  3887.         }
  3888.         return 1;
  3889.     }*/
  3890.  
  3891.     CMD:setprof(playerid, params[])
  3892.     {
  3893.         if(pAdmin[playerid] < 1 || IsPlayerAdmin(playerid))
  3894.         {
  3895.             new plid, profdonb, string[128], profissao[128];
  3896.             if(sscanf(params,"ui",plid,profdonb)) return SendClientMessage(playerid, Vermelho, "(ERRO) /setprof [id] [numero]");
  3897.             if(profdonb > 14 && profdonb < 0) return SendClientMessage(playerid, Vermelho,"(ERRO) Profissão Inexistente!");
  3898.             new pname[MAX_PLAYER_NAME];
  3899.             GetPlayerName(plid, pname, MAX_PLAYER_NAME);
  3900.             if(IsPlayerConnected(plid))
  3901.             {
  3902.             if(profdonb == 0 || profdonb == 1 || profdonb == 2 || profdonb == 3 || profdonb == 4 || profdonb == 5 || profdonb == 6 || profdonb == 7 || profdonb == 8 || profdonb == 9 || profdonb == 10 ||
  3903.             profdonb == 11 || profdonb == 12 || profdonb == 13 || profdonb == 14)
  3904.             {
  3905.                 Profissao[plid] = profdonb;
  3906.                 if(profdonb == 1) {profissao = "Caminoneiro";}
  3907.                 if(profdonb == 2) {profissao = "MotoTaxi";}
  3908.                 if(profdonb == 3) {profissao = "Taxista";}
  3909.                 if(profdonb == 4) {profissao = "Maquinista";}
  3910.                 if(profdonb == 5) {profissao = "PolicialM";}
  3911.                 if(profdonb == 6) {profissao = "PolicialC";}
  3912.                 if(profdonb == 7) {profissao = "PolicialF";}
  3913.                 if(profdonb == 8) {profissao = "VDrogas";}
  3914.                 if(profdonb == 9) {profissao = "TrafArmas";}
  3915.                 if(profdonb == 10) {profissao = "GuardaTransito";}
  3916.                 if(profdonb == 11) {profissao = "Advogado";}
  3917.                 if(profdonb == 12) {profissao = "VSorvete";}
  3918.                 if(profdonb == 13) {profissao = "Paramedico";}
  3919.                 if(profdonb == 14) {profissao = "Hacker";}
  3920.                 format(string, sizeof(string), "* O Admistrador %s (%d) Alterou Sua Profissão Para : %s.", pName(playerid), playerid, profdonb);
  3921.                 SendClientMessage(plid, newadm, string);
  3922.                 format(string, sizeof(string), "* Você deu a %s (%d) a profissão: %s.", pname, plid, profdonb);
  3923.                 SendClientMessage(playerid, Amarelo, string);
  3924.                 dini_IntSet(vfile, "Profissao", profdonb);
  3925.                 LogarProf(plid);
  3926.                 SpawnPlayer(plid);
  3927.                 return 1;
  3928.             }
  3929.             else {
  3930.                 SendClientMessage(playerid, Vermelho, "* Jogador não conectado.");
  3931.                 return 1;
  3932.                 }
  3933.             }
  3934.         }
  3935.         return 1;
  3936.     }
  3937.  
  3938.     CMD:ajudaadm(playerid)
  3939.     {
  3940.         if(pAdmin[playerid] == 1)
  3941.         {
  3942.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban");
  3943.         }
  3944.         if(pAdmin[playerid] == 2)
  3945.         {
  3946.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick");
  3947.         }
  3948.         if(pAdmin[playerid] == 3)
  3949.         {
  3950.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick");
  3951.         }
  3952.         if(pAdmin[playerid] == 4)
  3953.         {
  3954.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick » /desbanir");
  3955.         }
  3956.         if(pAdmin[playerid] == 5)
  3957.         {
  3958.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick » /desbanir");
  3959.         }
  3960.         if(pAdmin[playerid] == 6)
  3961.         {
  3962.             SendClientMessage(playerid, Verde, "* /ir » /trazer » /calar » /descalar » /ban » /banirnick » /vidat » /coletet » /desbanirnick » /desbanir");
  3963.         }
  3964.     }
  3965.  
  3966.     CMD:abrirdp(playerid)
  3967.     {
  3968.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3969.         {
  3970.             if(PortaoAberto == 0)
  3971.             {
  3972.                 MoveObject(PortaoDP, 1540.68652344,-1616.23730469,15.15620422, 3.0); PortaoAberto = 1;
  3973.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você abriu o portão principal da DP!");
  3974.             }
  3975.             else {
  3976.                 SendClientMessage(playerid, Vermelho, "(ERRO) O portão principal já está aberto!");
  3977.             }
  3978.         }
  3979.         else {
  3980.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  3981.         }
  3982.         return 1;
  3983.     }
  3984.  
  3985.     CMD:fechardp(playerid)
  3986.     {
  3987.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  3988.         {
  3989.             if(PortaoAberto == 1)
  3990.             {
  3991.                 MoveObject(PortaoDP, 1540.68652344,-1627.59179688,15.15620422, 3.0); PortaoAberto = 0;
  3992.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você fechou o portão principal da DP!");
  3993.             }
  3994.             else {
  3995.                 SendClientMessage(playerid, Vermelho, "(ERRO) O portão principal já está fechado!");
  3996.             }
  3997.         }
  3998.         else {
  3999.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  4000.         }
  4001.         return 1;
  4002.     }
  4003.  
  4004.     CMD:abrirdp2(playerid)
  4005.     {
  4006.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  4007.         {
  4008.             if(Portao2Aberto == 0)
  4009.             {
  4010.                 MoveObject(PortaoDP2, 1598.13671875,-1638.26818848,15.20197678, 3.0); Portao2Aberto = 1;
  4011.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você abriu o segundo portão da DP!");
  4012.             }
  4013.             else {
  4014.                 SendClientMessage(playerid, Vermelho, "(ERRO) O segundo portão já está aberto!");
  4015.             }
  4016.         }
  4017.         else {
  4018.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  4019.         }
  4020.         return 1;
  4021.     }
  4022.  
  4023.     CMD:fechardp2(playerid)
  4024.     {
  4025.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  4026.         {
  4027.             if(Portao2Aberto == 1)
  4028.             {
  4029.                 MoveObject(PortaoDP2, 1589.98474121,-1638.26818848,15.21242142, 3.0); Portao2Aberto = 0;
  4030.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você fechou o segundo portão da DP!");
  4031.             }
  4032.             else {
  4033.                 SendClientMessage(playerid, Vermelho, "(ERRO) O segundo portão já está fechado!");
  4034.             }
  4035.         }
  4036.         else {
  4037.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  4038.         }
  4039.         return 1;
  4040.     }
  4041.  
  4042.     CMD:subirdp(playerid)
  4043.     {
  4044.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  4045.         {
  4046.             if(ElevadorCima == 0)
  4047.             {
  4048.                 MoveObject(ElevadorDP, 1561.68237305,-1641.39025879,27.30376816, 2.0); ElevadorCima = 1;
  4049.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você subiu o elevador da DP!");
  4050.             }
  4051.             else {
  4052.                 SendClientMessage(playerid, Vermelho, "(ERRO) O elevador já está no segundo andar!");
  4053.             }
  4054.         }
  4055.         else {
  4056.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  4057.         }
  4058.         return 1;
  4059.     }
  4060.  
  4061.     CMD:descerdp(playerid)
  4062.     {
  4063.         if(Profissao[playerid] == PolicialC || Profissao[playerid] == PolicialM || Profissao[playerid] == PolicialF || IsPlayerAdmin(playerid))
  4064.         {
  4065.             if(ElevadorCima == 1)
  4066.             {
  4067.                 MoveObject(ElevadorDP, 1561.68164062,-1641.38964844,12.56751347, 2.0); ElevadorCima = 0;
  4068.                 SendClientMessage(playerid, 0x40C1FFAA, "(INFO) Você desceu o elevador da DP!");
  4069.             }
  4070.             else {
  4071.                 SendClientMessage(playerid, Vermelho, "(ERRO) O elevador já está no primeiro andar!");
  4072.             }
  4073.         }
  4074.         else {
  4075.             SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão!");
  4076.         }
  4077.         return 1;
  4078.     }
  4079.     // Sistema de Carros c/ Dono
  4080.     CMD:precocarro(playerid, params[])
  4081.     {
  4082.         new preco, string[100];
  4083.         if(sscanf(params,"ui",preco)) return SendClientMessage(playerid, Vermelho, "* /precocarro [preço]");
  4084.         for(new c = 0; c < MAX_CARROS; c++)
  4085.         {
  4086.             format(string, sizeof(string), "/Carros/carro%d.ini", c);
  4087.             if(dini_Exists(string))
  4088.             {
  4089.                 if(GetPlayerVehicleID(playerid) == dini_Int(string, "Id"))
  4090.                 {
  4091.                     if(pAdmin[playerid] > 4)
  4092.                     {
  4093.                         new pname[MAX_PLAYER_NAME];
  4094.                         GetPlayerName(playerid, pname, sizeof(pname));
  4095.                         dini_IntSet(string, "Preco", preco);
  4096.                     }
  4097.                     else {
  4098.                         SendClientMessage(playerid, Vermelho, "* Você não tem permissão.");
  4099.                     }
  4100.                 }
  4101.             }
  4102.         }
  4103.         return 1;
  4104.     }
  4105.  
  4106.     CMD:liberarcarro(playerid, params[])
  4107.     {
  4108.         new preco, string[100];
  4109.         if(sscanf(params,"ui",preco)) return SendClientMessage(playerid, Vermelho, "* /liberarcarro [id]");
  4110.         format(string, sizeof(string), "/Carros/carro%d.ini", preco);
  4111.         if(dini_Exists(string))
  4112.         {
  4113.             if(pAdmin[playerid] > 4)
  4114.             {
  4115.                 new pname[MAX_PLAYER_NAME];
  4116.                 GetPlayerName(playerid, pname, sizeof(pname));
  4117.                 dini_IntSet(string, "cDono", 0);
  4118.                 dini_Set(string, "Dono", "Nenhum");
  4119.                 format(string, sizeof(string), "* O Adminstrador %s Liberou o Carro Número: %d", pname,preco);
  4120.                 SendClientMessageToAll(newadm, string);
  4121.                 return 1;
  4122.             }
  4123.             else {
  4124.                 SendClientMessage(playerid, Vermelho, "* Você não tem permissão.");
  4125.             }
  4126.         }
  4127.         return 1;
  4128.     }
  4129.  
  4130.     CMD:ircarro(playerid, params[])
  4131.     {
  4132.         new id, string[100];
  4133.         if(sscanf(params,"ui",id)) return SendClientMessage(playerid, Vermelho, "* /ircarro [id]");
  4134.         format(string, sizeof(string), "/Carros/carro%d.ini", id);
  4135.         if(dini_Exists(string))
  4136.         {
  4137.             new Float:X, Float:Y, Float:Z;
  4138.             GetVehiclePos(dini_Int(string, "Id"), X, Y, Z);
  4139.             if(pAdmin[playerid] > 4)
  4140.             {
  4141.                 new pname[MAX_PLAYER_NAME];
  4142.                 GetPlayerName(playerid, pname, sizeof(pname));
  4143.                 SetPlayerPos(playerid, X, Y, Z);
  4144.             }
  4145.             else {
  4146.                 SendClientMessage(playerid, Vermelho, "* Você não tem permissão.");
  4147.             }
  4148.         }
  4149.         return 1;
  4150.     }
  4151.  
  4152.     CMD:carv(playerid, params[])
  4153.     {
  4154.         new carid, Float:ang, preco, cor1, cor2, string[100];
  4155.         //if(sscanf(params,"uidd", carid , preco , cor1 , cor2)) return SendClientMessage(playerid, Vermelho, "*: /carv [id] [preço] [cor1] [cor2]");
  4156.         if(sscanf(params, "iiii", carid, preco, cor1, cor2))
  4157.             return SendClientMessage(playerid, Vermelho, "*: /carv [id] [preço] [cor1] [cor2]");
  4158.         if(pAdmin[playerid] > 5 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem permissão.");
  4159.         if(IsPlayerAdmin(playerid)|| pAdmin[playerid] > 5) {
  4160.             if(carid < 400 || carid > 611)
  4161.                 return SendClientMessage(playerid, Vermelho, "ERRO: O número do veículo deve ser de 400 à 611.");
  4162.             if(IsPlayerInAnyVehicle(playerid))
  4163.              {
  4164.                 new Float:X, Float:Y, Float:Z;
  4165.                 GetPlayerPos(playerid, X, Y, Z);
  4166.                 GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
  4167.                 format(string, sizeof(string), "/Carros/carro%d.ini", proximocarro);
  4168.                 if(!dini_Exists(string))
  4169.                 {
  4170.                     dini_Create(string);
  4171.                     dini_IntSet(string, "Modelo", carid);
  4172.                     dini_FloatSet(string, "CordX", Float:X);
  4173.                     dini_FloatSet(string, "CordY", Float:Y);
  4174.                     dini_FloatSet(string, "CordZ", Float:Z);
  4175.                     dini_FloatSet(string, "Angulo", Float:ang);
  4176.                     dini_IntSet(string, "Cor1", cor1);
  4177.                     dini_IntSet(string, "Cor2", cor2);
  4178.                     dini_IntSet(string,"Alarme", 0);
  4179.                     dini_IntSet(string, "cDono", 0);
  4180.                     dini_Set(string, "Dono", "Ninguem");
  4181.                     dini_IntSet(string,"cDono2", 0);
  4182.                     dini_Set(string,"Dono2","Ninguem");
  4183.                     dini_Set(string, "Nome", "Nenhum");
  4184.                     dini_Set(string,"Placa","Sem Dono");
  4185.                     dini_IntSet(string, "Preco", preco);
  4186.                 }
  4187.                 SetTimerEx("CriarVeiculo2",5000,false,"dffffdd",carid,X,Y,Z,ang,cor1,cor2);
  4188.                 format(string, sizeof(string), "* Veiculo criado com sucesso!");
  4189.                 SendClientMessage(playerid, Verde, string);
  4190.                 return 1;
  4191.             }
  4192.             else {
  4193.                 SendClientMessage(playerid, Vermelho, "* Você não está em um veiculo!");
  4194.             }
  4195.         }
  4196.         else {
  4197.             SendClientMessage(playerid, Vermelho, "* Veiculo inválido.");
  4198.             return 1;
  4199.         }
  4200.         return 1;
  4201.     }
  4202.  
  4203.     CMD:comprarcarro(playerid)
  4204.     {
  4205.         new string[100];
  4206.         new VehicleID;
  4207.         VehicleID = GetPlayerVehicleID(playerid);
  4208.         new pname[MAX_PLAYER_NAME];
  4209.         GetPlayerName(playerid, pname, sizeof(pname));
  4210.         for(new carro = 0; carro < MAX_CARROS; carro++)
  4211.         {
  4212.             format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  4213.             if(strcmp(dini_Get(string, "Dono"), pname, true) == 1)
  4214.             {
  4215.                 SendClientMessage(playerid, Vermelho, "* Você já tem um veiculo e não pode comprar outro.");
  4216.                 return 1;
  4217.             }
  4218.             if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0 && VehicleID == dini_Int(string, "Id"))
  4219.             {
  4220.                 if(GetPlayerGranaEx(playerid) >= dini_Int(string, "Preco")) {
  4221.                     new aname[MAX_PLAYER_NAME];
  4222.                     GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
  4223.                     dini_IntSet(string, "cDono", 1);
  4224.                     dini_Set(string, "Dono", aname);
  4225.                     SendClientMessage(playerid, -1, "* Veiculo comprado com sucesso!");
  4226.                     SendClientMessage(playerid, -1, "* Para ver as funções de seu veiculo, Use: '/meucarro'.");
  4227.                     GivePlayerGranaEx(playerid, -dini_Int(string, "Preco"));
  4228.                     TogglePlayerControllable(playerid, 1);
  4229.                     return 1;
  4230.                 }
  4231.                 else {
  4232.                     SendClientMessage(playerid, Vermelho, "* Você não tem dinheiro suficiente!");
  4233.                     return 1;
  4234.                 }
  4235.             }
  4236.         }
  4237.         return 1;
  4238.     }
  4239.  
  4240.     CMD:meucarro(playerid)
  4241.     {
  4242.         new pname[MAX_PLAYER_NAME];
  4243.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  4244.         new resultados;
  4245.         new string[100], ala[11];
  4246.         for(new carro = 0; carro < MAX_CARROS; carro++)
  4247.         {
  4248.             format(string, sizeof(string), "/Carros/carro%d.ini", carro);
  4249.             if(dini_Exists(string))
  4250.             {
  4251.                 if(strcmp(dini_Get(string, "Dono"), pname, true) == 0) {
  4252.                     format(string, sizeof(string), "Carro Número: [ %d ]", carro);
  4253.                     ShowPlayerDialog(playerid, 4501, DIALOG_STYLE_LIST, string, "Salvar Posição\nAlterar cor 1\nAlterar cor 2\nRespawnar Veiculo\nNome do veiculo\nAlterar Placa\nAtivar / Desativar Alarme\nAtivar 2º Dono do Carro\nDefinir 2º Dono Do Carro\nVender Veiculo", "OK", "Cancelar");
  4254.                     resultados = 0;
  4255.                     if(dini_Int(string,"Alarme")==1) format(ala, sizeof(ala),"Desativar");
  4256.                     if(dini_Int(string,"Alarme")==0) format(ala, sizeof(ala),"Ativar");
  4257.                 }
  4258.                 else {
  4259.                     resultados = 1;
  4260.                 }
  4261.             }
  4262.         }
  4263.         if(resultados == 1)
  4264.         {
  4265.             SendClientMessage(playerid, 0xFFFFFFFF, "Você não esta em um carro!");
  4266.         }
  4267.         return 1;
  4268.     }
  4269.  
  4270.     CMD:modelocarro(playerid, params[])
  4271.     {
  4272.         new md, string[100];
  4273.         if(sscanf(params,"s",md)) return SendClientMessage(playerid, Vermelho, "* /modelocarro [modeloid]");
  4274.         for(new c = 0; c < MAX_CARROS; c++) {
  4275.             format(string, sizeof(string), "/Carros/carro%d.ini", c);
  4276.             if(dini_Exists(string))
  4277.             {
  4278.                 if(GetPlayerVehicleID(playerid) == dini_Int(string, "Id")) {
  4279.                     if(pAdmin[playerid] > 4)
  4280.                     {
  4281.                         new pname[MAX_PLAYER_NAME];
  4282.                         GetPlayerName(playerid, pname, sizeof(pname));
  4283.                         dini_IntSet(string, "Modelo", md);
  4284.                         SendClientMessage(playerid, Vermelho, "* Agora use: /respawncarv.");
  4285.                     }
  4286.                     else {
  4287.                         SendClientMessage(playerid, Vermelho, "* Você não tem permissão.");
  4288.                     }
  4289.                 }
  4290.                 else {
  4291.                 }
  4292.             }
  4293.         }
  4294.         return 1;
  4295.     }
  4296.  
  4297.     CMD:respawncarv(playerid, params[])
  4298.     {
  4299.         new string[100];
  4300.         for(new c = 0; c < MAX_CARROS; c++)
  4301.         {
  4302.             format(string, sizeof(string), "/Carros/carro%d.ini", c);
  4303.             if(dini_Exists(string))
  4304.             {
  4305.                 if(GetPlayerVehicleID(playerid) == dini_Int(string, "Id"))
  4306.                 {
  4307.                     if(pAdmin[playerid] > 4)
  4308.                     {
  4309.                         new pname[MAX_PLAYER_NAME];
  4310.                         GetPlayerName(playerid, pname, sizeof(pname));
  4311.                         new carroid;
  4312.                         DestroyVehicle(dini_Int(string, "Id"));
  4313.                         carroid = AddStaticVehicle(dini_Int(string, "Modelo"), dini_Float(string, "CordX"), dini_Float(string, "CordY"), dini_Float(string, "CordZ"), dini_Float(string, "Angulo"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
  4314.                         dini_IntSet(string, "Id", carroid);
  4315.                         SendClientMessage(playerid, Vermelho, "* Carros do ' /carv ' respawnados..");
  4316.                     }
  4317.                     else {
  4318.                         SendClientMessage(playerid, Vermelho, "* Você não tem permissão.");
  4319.                     }
  4320.                 }
  4321.             }
  4322.         }
  4323.         return 1;
  4324.     }
  4325.  
  4326.     CMD:car(playerid)
  4327.     {
  4328.         new Float:X, Float:Y, Float:Z, Float: angulo;
  4329.         GetPlayerPos(playerid, X, Y, Z);
  4330.         GetPlayerFacingAngle(playerid, angulo);
  4331.         CreateVehicle(411, X, Y, Z-1, angulo, -1, -1, 120000);
  4332.         return 1;
  4333.     }
  4334.  
  4335.     CMD:cv(playerid, params[])
  4336.     {
  4337.         new plid, string[100];
  4338.         if(sscanf(params,"i", plid))
  4339.             return SendClientMessage(playerid, Vermelho, "* Use: /Cv [ID do veiculo]");
  4340.         if(pAdmin[playerid] > 1 || IsPlayerAdmin(playerid))
  4341.         {
  4342.             new Float:X,Float:Y,Float:Z,Float:Angle;
  4343.             if(IsPlayerConnected(playerid))
  4344.             {
  4345.                 if(plid >= 400 && plid <= 611)
  4346.                 {
  4347.                     GetPlayerPos(playerid,X,Y,Z);
  4348.                     GetPlayerFacingAngle(playerid,Angle);
  4349.                     new carro = CreateVehicle(plid, X, Y, Z, Angle, -1, -1, 120000);
  4350.                     PutPlayerInVehicle(playerid,carro,0);
  4351.                     if(GetPlayerInterior(playerid))
  4352.                         LinkVehicleToInterior(carro,GetPlayerInterior(playerid));
  4353.                     SetVehicleVirtualWorld(carro,GetPlayerVirtualWorld(playerid));
  4354.                     format(string, sizeof(string), "* Veiculo Modelo: '%d' criado com sucesso.", plid);
  4355.                     SendClientMessage(playerid, newadm, string);
  4356.                     return 1;
  4357.                 }
  4358.                 else {
  4359.                     SendClientMessage(playerid, Vermelho, "* ID inválido, digite um ID válido. ID's permitidos = 400 á 611.");
  4360.                     return 1;
  4361.                 }
  4362.             }
  4363.         }
  4364.         return 1;
  4365.     }
  4366.  
  4367.     // Fim
  4368.     CMD:abastecer(playerid)
  4369.     {
  4370.         if(AreaPosto[playerid] == 1)
  4371.         {
  4372.             if(!IsPlayerInAnyVehicle(playerid))
  4373.                 return SendClientMessage(playerid, 0xFFFFFFFF, "Você não esta em um carro");
  4374.             ShowPlayerDialog(playerid,DIALOG_GAS,DIALOG_STYLE_INPUT,"Posto Brasil Games","** Digite a quantia de litros a colocar em seu Veículo. **\n O Preço da Gasolina é 2R$ Por Litro\nAtt: Posto Brasil Games","Ok","Fechar");
  4375.             return 1;
  4376.         }
  4377.         if(!AreaPosto[playerid])
  4378.             return SendClientMessage(playerid, 0xFFFFFFFF, "Você não está em um Posto!");
  4379.         return 1;
  4380.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement