Advertisement
dPlaYer_

Boreal RPG

Jan 21st, 2013
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 185.48 KB | None | 0 0
  1. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. /*                                   PT: CRIADO POR DPLAYER                                              
  3.                                      EN: CREATOR: DPLAYER                                              */
  4. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  5.  
  6.  
  7. #include <a_samp>
  8. #include <c_vehicleinfo>
  9. #include <a_players>
  10. #include <a_vehicles>
  11. #include <DOF2>
  12. #include <zcmd>
  13. #include <sscanf>
  14. #include <streamer>
  15. #include <foreach>
  16.  
  17. #define ADMIN_SPEC_TYPE_NONE 0
  18. #define ADMIN_SPEC_TYPE_PLAYER 1
  19. #define ADMIN_SPEC_TYPE_VEHICLE 2
  20. #define MAX_CHECKPOINTS 100
  21. #define MAX_IDLE_TIME 5
  22.  
  23. #define IsConnected(%0)          if (IsPlayerConnected((%0)))
  24. #define dLoop(%0)           for(new %0 = 0; %0 < MAX_PLAYERS; %0++) if(IsPlayerConnected(%0))
  25. #define FC:%0(%1)           forward %0(%1);public %0(%1)
  26. //Cores
  27.  
  28. #define coradmin                                                                0xFFA500AA
  29. #define corpc1                                                                  0x1E90FFAA
  30. #define AzulClaro                                                               0xB0C4DEAA
  31. #define Blue                                                                    0x33AAFFFF
  32. #define Verde                                                                   0x00D700AA
  33. #define Vermelho                                                                0xFF0000AA
  34. #define Azul                                                                    0x00FFFFAA
  35. #define Roxo                                                                    0x9E3EFFAA
  36. #define Amarelo                                                                 0xFFFF00FF
  37. #define Branco                                                                  0xFFFFFFAA
  38. #define Preto                                                                   0x00000000
  39. #define Violeta                                                                 0x9955DEEE
  40.  
  41. #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
  42. #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
  43.  
  44. // Profissões
  45.  
  46. #define Desempregado        0 // Baixa
  47. #define Taxista             1 // Média
  48. #define Assaltante          2 // Crime
  49. #define Seguranca           3 // Media
  50. #define Carteiro            4 // Baixa
  51. #define Caminhoneiro        5 // Baixa
  52. #define Medico              6 // Media
  53. #define Mecanico            7 // Baixa
  54. #define Advogado            8 // Média
  55. #define Aposentado          9 // Alta
  56. #define P_Militar           10 // Alta
  57. #define P_Civil             11 // Alta
  58. #define P_Interpol          12 // Alta
  59. #define P_Federal           13 // Alta
  60. #define P_FBI               14 // Alta
  61. #define P_Swat              15 // Alta
  62. #define P_Rodoviaria        16 // Alta
  63. #define Sequestrador        17 // Crime
  64. #define MotoristaP          18 // Baixa
  65. #define Mendingo            19 // Baixa
  66. #define Jornalista          20 // Media
  67.            
  68.  
  69. //Menus Dialog
  70.  
  71. #define REGISTRO            100
  72. #define LOGIN               101
  73. #define DialogSexo          103
  74. #define CLIMA               104
  75. #define dUtilitarios        105
  76. #define dEmpregos           106
  77. #define dClasseAlta         107
  78. #define dClasseMedia        108
  79. #define dClasseBaixa        109
  80. #define dCrimeClasse        110
  81. #define DIALOGID            111
  82. #define DIALOGID1           112
  83. #define DIALOGV             113
  84. #define DIALOGID2           114
  85. #define DIALOGID3           115
  86. #define DIALOGID4           116
  87. #define DIALOGID5           117
  88. #define DIALOGID6           118
  89. #define dLicencas           119
  90.  
  91.  
  92. #define PASTA_CONTAS        "/Contas/%s.ini"         //Diretório onde as contas são salvas
  93. #define PASTA_BANS          "/Contas/Banidos"       //Diretório dos banimentos!
  94. #define DIRETORIOB          "/Contas/Banco/%s.ini"
  95.  
  96. //#define GivePlayerGrana(%0,%1)      dMoney[%0] += %1, GivePlayerMoney(%0,%1)
  97. #define GivePlayerGrana(%0,%1)   GivePlayerMoney(%0,%1)
  98. #define ResetPlayerGrana(%0)        dMoney[%0] = 0,   ResetPlayerMoney(%0)
  99. #define GetPlayerGrana(%0)          dMoney[%0]
  100. //#define GetPlayerGrana(%0)         (dMoney[%0] != GetPlayerMoney(%0) ? CallLocalFunction("OnMoneyHack", "ii", %0) : GetPlayerMoney(%0))
  101.  
  102.  
  103. new MensagensRandom[3][256] = {
  104.     "( Auto - Mensagem ) Digite: /comandos , Para Visualizar Os Comandos do Servidor .",
  105.     "( Auto - Mensagem ) Veja os Criadores / Ajudandes do Servidor Usando: /creditos .",
  106.     "( Auto - Mensagem ) O GameMode foi Criado por : dPlaYer e está proibida a remoção dos créditos."
  107. };
  108.  
  109. new CoresMRandom[] = {
  110.     0x80FF00AA
  111. };
  112.  
  113. enum pInfo
  114. {
  115.     Logado,
  116.     LoginsFalsos
  117. }
  118.  
  119. enum pPos
  120. {
  121.     Float:LastX,
  122.     Float:LastY,
  123.     Float:LastZ,
  124. }
  125.  
  126. new Equipado[MAX_PLAYERS], PrimeiraPessoa[MAX_PLAYERS], Level[MAX_PLAYERS] , Experiencia[MAX_PLAYERS], gSpectateID[MAX_PLAYERS], gSpectateType[MAX_PLAYERS],TemJP[MAX_PLAYERS],
  127.     NumeroLoto[MAX_PLAYERS] , TGanhador , DinheiroAcumuladoLoto , vernumerosorteado[MAX_PLAYERS] , TaJogando[MAX_PLAYERS], AFK[MAX_PLAYERS], hora, minutoss,PJetPack[MAX_PLAYERS],
  128.     dia, dMoney[MAX_PLAYERS], Taximetro[MAX_PLAYERS][2], PrecoCorrida[MAX_PLAYERS], StringDL[256] , dFile[128], PlayerInfo[MAX_PLAYERS][pInfo],LogoSAMP[MAX_PLAYERS],
  129.     Text:BoxLoto , Text:TextLoteria , Text:TextSalarioLoto, Text:TextAus1 , Text:TextAus2, Text:TextBaixo1 , CarrosDP[18] , CarrosHP[7], PlayerLastPos[MAX_PLAYERS][pPos],
  130.     PlayerAfkTicks[MAX_PLAYERS] , Float:PlayerCurrentPos[3], IsAdmin[MAX_PLAYERS], GzFavela, GzParque, TempoLevel[MAX_PLAYERS], Profissao[MAX_PLAYERS], Gasolina[MAX_PLAYERS], PSamp,
  131.     TemPSurf[MAX_PLAYERS], EstaPreso[MAX_PLAYERS], TimerPreso[MAX_PLAYERS] , IsVip[MAX_PLAYERS] , Text:BoxIntro , Text:IntroText1 , Text:IntroText2 , Text:IntroText3 , Text:IntroText4,
  132.     vidc, modeloc , Text:VeloText0[MAX_PLAYERS] , Text:VeloText1[MAX_PLAYERS] , Text:VeloText2[MAX_PLAYERS] , Text:VeloText3[MAX_PLAYERS] , Text:VeloText5[MAX_PLAYERS], bool:LogadoB[MAX_PLAYERS],
  133.     bool:SenhaB[MAX_PLAYERS] , LigadorCel[MAX_PLAYERS], RecebedorCel[MAX_PLAYERS], EmLigacao[MAX_PLAYERS], AceitLigacao[MAX_PLAYERS], Dominando[MAX_PLAYERS], ProvocouSkate[MAX_PLAYERS], TempoGuerraSkate,
  134.     AlguemDominando, Cela1[MAX_PLAYERS] , Cela2[MAX_PLAYERS] , Cela3[MAX_PLAYERS] , Text3D:LabelPlayer[MAX_PLAYERS];
  135.    
  136. new CarrosH[0][1] =
  137. {
  138.     400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410,
  139.     411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421,
  140.     431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441,
  141.     442, 443, 444, 445, 447, 448, 449, 450, 451, 455, 456,
  142.     457, 456, 457, 458, 459, 470, 471, 474, 475, 477, 478,
  143.     479, 480, 482, 483, 485, 486, 489, 490, 491, 492, 494,
  144.     495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505,
  145.     506, 507, 508, 514, 515, 516, 517, 518, 521, 522, 523,
  146.     524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534,
  147.     535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
  148.     550, 551, 552, 554, 555, 556, 557, 558, 559, 560, 561,
  149.     562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572,
  150.     573, 574, 575, 576, 578, 579, 580, 581, 582, 583, 584,
  151.     585, 586, 587, 588, 589, 590, 591, 594, 596, 597, 598,
  152.     599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609,
  153.     610
  154. };
  155.  
  156. new Airplanes[0][1] =
  157. {
  158.     460, 487, 476, 511, 512, 513, 519, 520, 553, 577, 592,
  159.     593, 460, 476
  160. };
  161.  
  162. new Boats[0][1] =
  163. {
  164.     430, 446, 452, 453, 454, 472, 473, 474, 484, 493,
  165.     595, 430, 446, 452, 453, 454
  166. };
  167.    
  168. new NomeCarro[212][] =
  169. {
  170.     "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana",
  171.     "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat",
  172.     "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife",
  173.     "Trailer 1", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo",
  174.     "Seasparrow", "Pizzaboy", "Tram", "Trailer 2", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
  175.     "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic", "Sanchez", "Sparrow",
  176.     "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX", "Burrito",
  177.     "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring",
  178.     "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B",
  179.     "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster","Stunt",  "Tanker",
  180.     "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
  181.     "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak",
  182.     "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck LA", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit",
  183.     "Utility", "Nevada", "Yosemite", "Windsor", "Monster A", "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance",
  184.     "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway",
  185.     "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer 3", "Emperor", "Wayfarer", "Euros", "Hotdog",
  186.     "Club", "Freight Carriage", "Trailer 4", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)",
  187.     "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A",
  188.     "Luggage Trailer B", "Stairs", "BoxVille", "Tiller", "Utility Trailer"
  189. };
  190.  
  191. // Pickups
  192.  
  193. new SaidaDP, EntradaDP, EntradaUtilitarios, SaidaUTL, EntrarPref, SairPref, EntrarAEscola , SairAEscola,
  194.     EntrarCentral, SairCentral, PickupProf, SairBanco, EntrarBanco, EntrarCentro, SairCentro;
  195.  
  196. // Forwards
  197. forward MudarHora();
  198. forward LoteriaPublic();
  199. forward BanLog(string[]);
  200. forward Taxi();
  201. forward CombustivelVeiculos();
  202. forward Velocimetro();
  203. forward LevelPublic();
  204. forward MandarRMensagens();
  205. forward IsNumeric(const string[]);
  206.  
  207. main(){}
  208.  
  209. public OnGameModeInit()
  210. {
  211.     SetGameModeText("Boreal RPG");
  212.     SendRconCommand("hostname Boreal [ RPG ] ® SA:MP 0.3e");
  213.     print("===============================================================================");
  214.     print("     GameMode Boreal RPG Carregado com Sucesso!");
  215.     print("     Este Foi GameMode Re-Criado por dPlaYer_");
  216.     print("     Com Novos Conteudos,Atualizacao,Remocao de Bugs,Outros");
  217.     print("===============================================================================\n");
  218.     //======================================= Veiculos ========================================
  219.    
  220.     //Carros / Motos Hospital
  221.     CarrosHP[0] = AddStaticVehicle(487,-292.9399,1007.3346,19.8073,358.6371,29,42); // heli-hosp
  222.     CarrosHP[1] = AddStaticVehicle(522,-338.9988,1061.5620,19.3061,0.6272,1,3); // moto-hosp
  223.     CarrosHP[2] = AddStaticVehicle(522,-336.6566,1061.5696,19.2994,355.8684,1,3); // moto-hosp
  224.     CarrosHP[3] = AddStaticVehicle(522,-334.4579,1061.5270,19.3028,356.8936,1,3); // moto-hosp
  225.     CarrosHP[4] = AddStaticVehicle(522,-331.8118,1061.5819,19.3099,357.6658,8,82); // moto-hosp
  226.     CarrosHP[5] = AddStaticVehicle(522,-328.8756,1061.5317,19.3049,353.2344,1,3); // moto-hosp
  227.     // Carros / Motos da DP
  228.     CarrosDP[0] = AddStaticVehicle(427,1605.3044,-1606.6864,13.6658,180.2834,0,1); // Carro-DP
  229.     CarrosDP[1] = AddStaticVehicle(427,1600.9781,-1606.7438,13.6289,179.7672,0,1); // Carro-DP
  230.     CarrosDP[2] = AddStaticVehicle(427,1596.1467,-1606.7711,13.5759,180.1573,0,1); // Carro-DP
  231.     CarrosDP[3] = AddStaticVehicle(427,1592.0189,-1606.7498,13.5380,180.9068,0,1); // Carro-DP
  232.     CarrosDP[4] = AddStaticVehicle(596,1588.2010,-1605.3330,12.9200,179.9344,0,1); // Carro-DP
  233.     CarrosDP[5] = AddStaticVehicle(596,1584.2837,-1605.3312,12.9181,181.1962,0,1); // Carro-DP
  234.     CarrosDP[6] = AddStaticVehicle(596,1580.6594,-1605.4951,12.9389,181.1555,0,1); // Carro-DP
  235.     CarrosDP[7] = AddStaticVehicle(596,1577.1396,-1605.3586,12.8702,181.6530,0,1); // Carro-DP
  236.     CarrosDP[8] = AddStaticVehicle(490,1573.4358,-1605.9906,13.5168,179.8688,0,0); // Carro-DP
  237.     CarrosDP[9] = AddStaticVehicle(490,1569.1477,-1606.0416,13.5180,179.6565,0,0); // Carro-DP
  238.     CarrosDP[10] = AddStaticVehicle(490,1564.7357,-1606.0890,13.5160,178.5018,0,0); // Carro-DP
  239.     CarrosDP[11] = AddStaticVehicle(490,1560.4122,-1606.1499,13.4911,178.7210,0,0); // Carro-DP
  240.     CarrosDP[12] = AddStaticVehicle(523,1556.1492,-1604.9941,12.9415,181.1519,0,0); // Carro-DP
  241.     CarrosDP[13] = AddStaticVehicle(523,1553.9086,-1605.0771,12.9416,176.5080,0,0); // Carro-DP
  242.     CarrosDP[14] = AddStaticVehicle(523,1552.0410,-1605.0570,12.9415,182.0315,0,0); // Carro-DP
  243.     CarrosDP[15] = AddStaticVehicle(523,1549.9292,-1605.1558,12.9180,179.7617,0,0); // Carro-DP
  244.     CarrosDP[16] = AddStaticVehicle(497,1563.0851,-1619.9470,13.6767,268.4767,0,1); // Carro-DP
  245.     //Fim Carros
  246.  
  247.     //Pickups Inicio
  248.     SaidaDP = CreatePickup(1247, 1, 1554.5309, -1675.6157, 16.1953);
  249.     EntradaDP = CreatePickup(1318, 1, 246.9260, 63.1708, 1003.6406);
  250.     EntradaUtilitarios = CreatePickup(1276, 1, 1352.3068,-1758.4059,13.5078);
  251.     SaidaUTL = CreatePickup(1246, 1, -26.0753,-187.4198,1003.5469);
  252.     EntrarPref = CreatePickup(1277, 1, 1478.6147, -1771.7782, 18.7958);
  253.     SairPref = CreatePickup(1318, 1, 389.5828, 173.8764, 1008.3828);
  254.     EntrarAEscola = CreatePickup(1314, 1, 1809.7018, -1166.7360, 24.2266);
  255.     SairAEscola = CreatePickup(1318, 1, -2026.9381, -104.0587, 1035.1719);
  256.     EntrarCentral = CreatePickup(1239, 1, 366.5288, 158.7328, 1008.3828);
  257.     SairCentral = CreatePickup(1318, 1, 1494.3634, 1304.1212, 1093.2891);
  258.     PickupProf = CreatePickup(1210, 1, 1490.4816, 1305.5992, 1093.2964);
  259.     SairBanco = CreatePickup(1318, 1, 1415.1571, -988.8884,1639.7843);
  260.     EntrarBanco = CreatePickup(1274, 1, 1462.3181, -1010.7484, 26.8438);
  261.     EntrarCentro = CreatePickup(1277, 1, 1631.9540, -1172.4180, 24.0843);
  262.     SairCentro = CreatePickup(1318, 1, 834.2897, 7.2396, 1004.1870);
  263.     //Pickups Fim
  264.    
  265.     SetWeather(2);
  266.     DisableInteriorEnterExits();
  267.     EnableStuntBonusForAll(0);
  268.    
  269.     // 3D TEXT LABEL
  270.    
  271.     Create3DTextLabel("Departamento de Polícia\nLos Santos\nAperte ENTER", -1 , 1554.5309, -1675.6157, 16.1953, 60.0 , 0); // Pickup Entrada DP
  272.     Create3DTextLabel("Loja de Utilitários\nLos Santos\nAperte ENTER", -1 , 1352.3068, -1758.4059, 13.5078, 60.0, 0);
  273.     Create3DTextLabel("Saída\nAperte ENTER", -1 , 246.9260, 63.1708, 1003.6406, 60.0 , 0); // Pickup Saida DP
  274.     Create3DTextLabel("Saida\nAperte ENTER", -1 , -26.0753, -187.4198, 1003.5469, 60.0, 0);// Pickup Saida Utilitarios
  275.     Create3DTextLabel("Prefeitura Municipal\nLos Santos\nAperte ENTER", -1, 1478.6147, -1771.7782, 18.7958, 60.0, 0);// Pickup Entrada Prefeitura
  276.     Create3DTextLabel("Saída\nAperte ENTER", -1, 389.5828, 173.8764, 1008.3828, 60.0, 0);// Pickup Saida Prefeitura
  277.     Create3DTextLabel("Auto Escola\nLos Santos\nAperte ENTER", -1, 1809.7018, -1166.7360, 24.2266, 60.0, 0);// Pickup Entrada Auto Escola
  278.     Create3DTextLabel("Saída\nAperte ENTER", -1, -2026.9381, -104.0587, 1035.1719, 60.0, 0);// Pickup Saida Auto Escola
  279.     Create3DTextLabel("Central de Empregos\nAperte ENTER", -1, 366.5288, 158.7328, 1008.3828, 60.0, 0);//  3d Text Central Entrada
  280.     Create3DTextLabel("Saída\nAperte ENTER", -1, 1494.3634, 1304.1212, 1093.2891, 60.0, 0);// 3d Text Central Saida
  281.     Create3DTextLabel("/empregos", -1, 1490.4816, 1305.5992, 1093.2964, 60.0, 0);// 3d Text Central CMD
  282.     Create3DTextLabel("Banco Central\nLos Santos\nAperte ENTER", -1, 1462.3181, -1010.7484, 26.8438, 60.0, 0);// entradabanco
  283.     Create3DTextLabel("Saída\nAperte ENTER", -1, 1415.1571, -988.8884, 1639.7843, 60.0, 0);//saida banco
  284.     Create3DTextLabel("/criarconta", -1, 1424.6754, -981.2695, 1639.7843, 60.0, 0);// banco
  285.     Create3DTextLabel("/banco", -1, 1417.7922, -981.4893, 1639.7843, 60.0, 0);// banco
  286.     Create3DTextLabel("/senhabanco", -1, 1421.2357, -981.5718, 1639.7843, 60.0, 0);// banco
  287.     Create3DTextLabel("Centro de Licenças\nLos Santos\nAperte ENTER", -1, 1631.9540, -1172.4180, 24.0843, 60.0, 0);// entrada licenca centro
  288.     Create3DTextLabel("Saída\nAperte ENTER", -1, 834.2897, 7.2396, 1004.1870, 60.0 , 0);
  289.     Create3DTextLabel("/licencas", -1, 822.8384,3.1775,1004.1797, 60.0 , 0);
  290.     //
  291.     AddPlayerClass(299, 608.2704, -1458.6222, 14.3811, 269.15, 0, 0, 0, 0, 0, 0);
  292.     //Banidos / Nicks / Proibidos Re- Criar Caso não exista nas scripts files.
  293.     if(!fexist("/Contas/Banidos/JogadoresBanidos.ini")) DOF2_CreateFile("JogadoresBanidos.ini");
  294.     if(!fexist("/Contas/Banidos/NicksBanidos.ini")) DOF2_CreateFile("NicksBanidos.ini");
  295.     if(!fexist("/Contas/Banidos/NicksProibidos.ini")) DOF2_CreateFile("NicksProibidos.ini");
  296.    
  297.     //SetTimers
  298.     SetTimer("LoteriaPublic", 600000, 1);
  299.     SetTimer("Taxi", 5000, 1);
  300.     SetTimer("CombustivelVeiculos", 30000 , 1);
  301.     SetTimer("Velocimetro", 100, 1);
  302.     SetTimer("Clima", 600000, 1);
  303.     SetTimer("MandarRMensagens", 180000,1);
  304.     SetTimer("AtualizarLabel", 1000,1);
  305.     SetTimer("LevelPublic", 60000, 1);
  306.     SetTimer("MudarHora", 2000, true);
  307.     SetTimer("AMoneyHack", 2000, 1);
  308.    
  309.     //Texdraws
  310.     for (new i = 0; i < GetMaxPlayers(); i++)
  311.     {
  312.         VeloText0[i] = TextDrawCreate(515.000000, 269.000000, ".");
  313.         TextDrawBackgroundColor(VeloText0[i], -65281);
  314.         TextDrawFont(VeloText0[i], 1);
  315.         TextDrawLetterSize(VeloText0[i], 10.380004, 0.900000);
  316.         TextDrawColor(VeloText0[i], -1);
  317.         TextDrawSetOutline(VeloText0[i], 0);
  318.         TextDrawSetProportional(VeloText0[i], 1);
  319.         TextDrawSetShadow(VeloText0[i], 1);
  320.  
  321.         VeloText1[i] = TextDrawCreate(515.000000, 365.000000, ".");
  322.         TextDrawBackgroundColor(VeloText1[i], -65281);
  323.         TextDrawFont(VeloText1[i], 1);
  324.         TextDrawLetterSize(VeloText1[i], 10.380004, 0.900000);
  325.         TextDrawColor(VeloText1[i], -1);
  326.         TextDrawSetOutline(VeloText1[i], 0);
  327.         TextDrawSetProportional(VeloText1[i], 1);
  328.         TextDrawSetShadow(VeloText1[i], 1);
  329.  
  330.         VeloText2[i] = TextDrawCreate(530.000000, 285.000000, "~g~100 ~w~KM/H");
  331.         TextDrawBackgroundColor(VeloText2[i], 255);
  332.         TextDrawFont(VeloText2[i], 1);
  333.         TextDrawLetterSize(VeloText2[i], 0.440000, 1.200000);
  334.         TextDrawColor(VeloText2[i], -1);
  335.         TextDrawSetOutline(VeloText2[i], 1);
  336.         TextDrawSetProportional(VeloText2[i], 1);
  337.  
  338.         VeloText3[i] = TextDrawCreate(531.000000, 304.000000, "~g~100 ~w~Litros");
  339.         TextDrawBackgroundColor(VeloText3[i], 255);
  340.         TextDrawFont(VeloText3[i], 1);
  341.         TextDrawLetterSize(VeloText3[i], 0.440000, 1.200000);
  342.         TextDrawColor(VeloText3[i], -1);
  343.         TextDrawSetOutline(VeloText3[i], 1);
  344.         TextDrawSetProportional(VeloText3[i], 1);
  345.  
  346.         VeloText5[i] = TextDrawCreate(548.000000, 325.000000, "Infernus");
  347.         TextDrawBackgroundColor(VeloText5[i], 255);
  348.         TextDrawFont(VeloText5[i], 1);
  349.         TextDrawLetterSize(VeloText5[i], 0.310000, 1.500000);
  350.         TextDrawColor(VeloText5[i], -1);
  351.         TextDrawSetOutline(VeloText5[i], 1);
  352.         TextDrawSetProportional(VeloText5[i], 1);
  353.  
  354.     }
  355.  
  356.     BoxIntro = TextDrawCreate(700.000000, -9.000000, "_");
  357.     TextDrawBackgroundColor(BoxIntro, 255);
  358.     TextDrawFont(BoxIntro, 1);
  359.     TextDrawLetterSize(BoxIntro, 0.500000, 53.000000);
  360.     TextDrawColor(BoxIntro, -1);
  361.     TextDrawSetOutline(BoxIntro, 0);
  362.     TextDrawSetProportional(BoxIntro, 1);
  363.     TextDrawSetShadow(BoxIntro, 1);
  364.     TextDrawUseBox(BoxIntro, 1);
  365.     TextDrawBoxColor(BoxIntro, 255);
  366.     TextDrawTextSize(BoxIntro, -70.000000, 50.000000);
  367.  
  368.     IntroText1 = TextDrawCreate(180.000000, 160.000000, "Boreal RPG");
  369.     TextDrawBackgroundColor(IntroText1, 65535);
  370.     TextDrawFont(IntroText1, 1);
  371.     TextDrawLetterSize(IntroText1, 0.730000, 4.000000);
  372.     TextDrawColor(IntroText1, -1);
  373.     TextDrawSetOutline(IntroText1, 1);
  374.     TextDrawSetProportional(IntroText1, 1);
  375.  
  376.     IntroText2 = TextDrawCreate(180.000000, 147.000000, ".");
  377.     TextDrawBackgroundColor(IntroText2, -1);
  378.     TextDrawFont(IntroText2, 1);
  379.     TextDrawLetterSize(IntroText2, 21.160045, 1.000000);
  380.     TextDrawColor(IntroText2, -1);
  381.     TextDrawSetOutline(IntroText2, 0);
  382.     TextDrawSetProportional(IntroText2, 1);
  383.     TextDrawSetShadow(IntroText2, 1);
  384.  
  385.     IntroText3 = TextDrawCreate(304.000000, 200.000000, "Versao: 1.0~n~semforum.brasil.net");
  386.     TextDrawBackgroundColor(IntroText3, 65535);
  387.     TextDrawFont(IntroText3, 1);
  388.     TextDrawLetterSize(IntroText3, 0.280000, 1.599999);
  389.     TextDrawColor(IntroText3, -1);
  390.     TextDrawSetOutline(IntroText3, 1);
  391.     TextDrawSetProportional(IntroText3, 1);
  392.  
  393.     IntroText4 = TextDrawCreate(180.000000, 237.000000, ".");
  394.     TextDrawBackgroundColor(IntroText4, -1);
  395.     TextDrawFont(IntroText4, 1);
  396.     TextDrawLetterSize(IntroText4, 21.160045, 1.000000);
  397.     TextDrawColor(IntroText4, -1);
  398.     TextDrawSetOutline(IntroText4, 0);
  399.     TextDrawSetProportional(IntroText4, 1);
  400.     TextDrawSetShadow(IntroText4, 1);
  401.    
  402.     TextLoteria = TextDrawCreate(20.000000, 200.000000, "~g~[ ~w~Loteria & Salario ~g~] ~n~Premio Acumulado~w~ : 500000~g~ R$~n~Numero Sorteado~w~ : 72~n~~g~Ganhador ~w~: Niguem");
  403.     TextDrawBackgroundColor(TextLoteria, 255);
  404.     TextDrawFont(TextLoteria, 1);
  405.     TextDrawLetterSize(TextLoteria, 0.350000, 1.500000);
  406.     TextDrawColor(TextLoteria, -1);
  407.     TextDrawSetOutline(TextLoteria, 1);
  408.     TextDrawSetProportional(TextLoteria, 1);
  409.  
  410.     TextSalarioLoto = TextDrawCreate(20.000000, 255.000000, "~g~Seu Salario~w~ : 6500 ~g~R$");
  411.     TextDrawBackgroundColor(TextSalarioLoto, 255);
  412.     TextDrawFont(TextSalarioLoto, 1);
  413.     TextDrawLetterSize(TextSalarioLoto, 0.350000, 1.500000);
  414.     TextDrawColor(TextSalarioLoto, -1);
  415.     TextDrawSetOutline(TextSalarioLoto, 1);
  416.     TextDrawSetProportional(TextSalarioLoto, 1);
  417.  
  418.     TextAus1 = TextDrawCreate(207.000000, 282.000000, "~b~~h~~h~Voce esta no Modo 'Ausente'~n~e esta bloqueado de upar.");
  419.     TextDrawBackgroundColor(TextAus1, 255);
  420.     TextDrawFont(TextAus1, 1);
  421.     TextDrawLetterSize(TextAus1, 0.500000, 2.900000);
  422.     TextDrawColor(TextAus1, -1);
  423.     TextDrawSetOutline(TextAus1, 0);
  424.     TextDrawSetProportional(TextAus1, 1);
  425.     TextDrawSetShadow(TextAus1, 1);
  426.  
  427.     TextAus2 = TextDrawCreate(200.000000, 310.000000, "~n~~b~~h~~h~Para Sair Do Modo 'Ausente' Use: /sairaus");
  428.     TextDrawBackgroundColor(TextAus2, 255);
  429.     TextDrawFont(TextAus2, 1);
  430.     TextDrawLetterSize(TextAus2, 0.370000, 2.599999);
  431.     TextDrawColor(TextAus2, -1);
  432.     TextDrawSetOutline(TextAus2, 0);
  433.     TextDrawSetProportional(TextAus2, 1);
  434.     TextDrawSetShadow(TextAus2, 1);
  435.  
  436.     TextBaixo1 = TextDrawCreate(243.000000, 432.000000, "~g~~h~~h~sem-nada.forumbrasil.net");
  437.     TextDrawBackgroundColor(TextBaixo1, 255);
  438.     TextDrawFont(TextBaixo1, 1);
  439.     TextDrawLetterSize(TextBaixo1, 0.460000, 1.600000);
  440.     TextDrawColor(TextBaixo1, -1);
  441.     TextDrawSetOutline(TextBaixo1, 1);
  442.     TextDrawSetProportional(TextBaixo1, 1);
  443.  
  444.     //gang zones
  445.     GzFavela = GangZoneCreate(2016.010986, -1161.922363, 2324.010986, -923.518310);
  446.     GzParque = GangZoneCreate(1861.328125, -1455.078125, 1972.65625, -1349.609375);
  447.     //GangZoneCreate(1859.010375, -1460.937563, 1974.609375, -1351.562510);
  448.     // Objetos + Outros
  449.    
  450.     UsePlayerPedAnims();
  451.  
  452.     SetGameModeText("• Brasil - LS");
  453.     SendRconCommand("mapname • Los Santos [ 0.3e ]");
  454.  
  455.     //Delegacia Objetos
  456.      
  457.     CreateDynamicObject(987, 1539.712402, -1617.860229, 15.864212, 0.0000, 0.0000, 0.0000);
  458.     CreateDynamicObject(987, 1539.558594, -1605.747192, 15.920271, 0.0000, 0.0000, 270.0000);
  459.     CreateDynamicObject(987, 1539.591431, -1602.403564, 15.923369, 0.0000, 0.0000, 270.0000);
  460.     CreateDynamicObject(987, 1552.073120, -1602.460083, 15.911283, 0.0000, 0.0000, 180.0000);
  461.     CreateDynamicObject(987, 1563.900391, -1602.440063, 15.911283, 0.0000, 0.0000, 180.0000);
  462.     CreateDynamicObject(987, 1575.692017, -1602.587036, 15.787424, 0.0000, 0.0000, 180.0000);
  463.     CreateDynamicObject(987, 1587.663574, -1602.587036, 15.804110, 0.0000, 0.0000, 180.0000);
  464.     CreateDynamicObject(987, 1599.633789, -1602.587036, 15.867235, 0.0000, 0.0000, 180.0000);
  465.     CreateDynamicObject(987, 1607.935181, -1602.587036, 15.843401, 0.0000, 0.0000, 180.0000);
  466.     CreateDynamicObject(987, 1607.812500, -1614.482788, 15.886260, 0.0000, 0.0000, 90.0000);
  467.     CreateDynamicObject(987, 1607.812500, -1626.008301, 15.778906, 0.0000, 0.0000, 90.0000);
  468.     CreateDynamicObject(987, 1607.654907, -1637.863525, 15.914963, 0.0000, 0.0000, 90.0000);
  469.     CreateDynamicObject(987, 1595.940918, -1638.659058, 15.833544, 0.0000, 0.0000, 0.0000);
  470.     CreateDynamicObject(3749, 1551.805176, -1627.452393, 18.241226, 0.0000, 0.0000, 90.0000);
  471.     CreateDynamicObject(2755, 1549.655029, -1619.792725, 15.646338, 0.0000, 0.0000, 270.0000);
  472.     CreateDynamicObject(2755, 1549.630005, -1635.219849, 15.633092, 0.0000, 0.0000, 270.0000);
  473.     CreateDynamicObject(1985, 1579.702148, -1635.100586, 15.435662, 0.0000, 0.0000, 0.0000);
  474.     CreateDynamicObject(973, 1534.571045, -1711.216675, 13.387095, 0.0000, 0.0000, 90.0000);
  475.     CreateDynamicObject(973, 1534.536743, -1701.927856, 13.387095, 0.0000, 0.0000, 90.0000);
  476.     CreateDynamicObject(973, 1534.600586, -1693.167358, 13.340213, 0.0000, 0.0000, 90.0000);
  477.     CreateDynamicObject(973, 1535.045532, -1686.178223, 12.840220, 0.0000, 0.0000, 90.0000);
  478.     CreateDynamicObject(970, 1536.434448, -1681.462158, 12.934294, 0.0000, 0.0000, 0.0000);
  479.     CreateDynamicObject(970, 1536.276489, -1664.047852, 12.934294, 0.0000, 0.0000, 0.0000);
  480.     CreateDynamicObject(973, 1534.348633, -1659.169434, 13.223033, 0.0000, 0.0000, 90.0000);
  481.     CreateDynamicObject(973, 1534.372192, -1650.187012, 13.223033, 0.0000, 0.0000, 90.0000);
  482.     CreateDynamicObject(973, 1534.353271, -1642.250854, 13.223033, 0.0000, 0.0000, 90.0000);
  483.     // Interior Banco - LS
  484.    
  485.     CreateDynamicObject(14789,1424.69030800,-1004.06616200,1643.01867700,0.00000000,0.00000000,90.00000000); //
  486.     CreateDynamicObject(2774,1433.02624500,-1004.64392100,1635.81982400,0.00000000,0.00000000,0.00000000); //
  487.     CreateDynamicObject(2774,1429.29699700,-1004.61865200,1641.28112800,0.00000000,0.00000000,0.00000000); //
  488.     CreateDynamicObject(2774,1440.95703100,-979.68206800,1640.29772900,0.00000000,0.00000000,0.00000000); //
  489.     CreateDynamicObject(2774,1429.33715800,-979.54528800,1639.72338900,0.00000000,0.00000000,0.00000000); //
  490.     CreateDynamicObject(2774,1449.31408700,-984.50500500,1648.02319300,0.00000000,0.00000000,0.00000000); //
  491.     CreateDynamicObject(2774,1413.91406300,-984.51538100,1643.07348600,0.00000000,0.00000000,0.00000000); //
  492.     CreateDynamicObject(1886,1448.51013200,-1003.64294400,1647.09399400,19.76700000,0.00000000,223.35840000); //
  493.     CreateDynamicObject(1886,1414.70654300,-980.60443100,1647.06164600,19.76700000,0.00000000,43.35840000); //
  494.     CreateDynamicObject(2774,1430.41687000,-999.01727300,1638.72241200,0.00000000,269.75920000,0.00000000); //
  495.     CreateDynamicObject(2774,1408.14929200,-998.99682600,1638.72241200,0.00000000,269.75920000,180.00000000); //
  496.     CreateDynamicObject(2774,1443.57727100,-986.63464400,1638.72338900,0.00000000,269.75920000,270.00000000); //
  497.     CreateDynamicObject(2774,1443.60449200,-998.99816900,1647.79748500,0.00000000,0.00000000,0.00000000); //
  498.     CreateDynamicObject(11359,1414.35620100,-988.98535200,1639.79589800,0.00000000,0.00000000,90.00000000); //
  499.     CreateDynamicObject(2774,1413.92736800,-986.01171900,1643.04699700,0.00000000,0.00000000,270.00000000); //
  500.     CreateDynamicObject(2774,1413.76367200,-992.08538800,1643.67334000,0.00000000,0.00000000,0.00000000); //
  501.     CreateDynamicObject(626,1427.55456500,-997.32299800,1640.76647900,0.00000000,0.00000000,135.00000000); //
  502.     CreateDynamicObject(626,1427.48828100,-990.75250200,1640.84155300,0.00000000,0.00000000,135.00000000); //
  503.     CreateDynamicObject(2773,1427.75671400,-995.78118900,1639.31018100,0.00000000,0.00000000,0.00000000); //
  504.     CreateDynamicObject(2773,1427.69494600,-992.84143100,1639.31018100,0.00000000,0.00000000,0.00000000); //
  505.     CreateDynamicObject(2773,1427.59692400,-989.12860100,1639.30151400,0.00000000,0.00000000,0.00000000); //
  506.     CreateDynamicObject(2773,1429.86315900,-982.92736800,1639.31018100,0.00000000,0.00000000,90.00000000); //
  507.     CreateDynamicObject(626,1427.66528300,-983.12860100,1640.84155300,0.00000000,0.00000000,236.25000000); //
  508.     CreateDynamicObject(2773,1432.75585900,-982.99078400,1639.31018100,0.00000000,0.00000000,90.00000000); //
  509.     CreateDynamicObject(626,1434.64831500,-983.18890400,1640.84155300,0.00000000,0.00000000,236.25000000); //
  510.     CreateDynamicObject(2773,1437.09143100,-983.05499300,1639.31018100,0.00000000,0.00000000,90.00000000); //
  511.     CreateDynamicObject(2773,1440.04028300,-983.01275600,1639.31018100,0.00000000,0.00000000,90.00000000); //
  512.     CreateDynamicObject(3462,1448.46691900,-993.01446500,1640.29797400,0.00000000,0.00000000,0.00000000); //
  513.     CreateDynamicObject(3462,1448.51208500,-982.99261500,1640.18151900,0.00000000,0.00000000,0.00000000); //
  514.     CreateDynamicObject(626,1441.63623000,-997.04772900,1640.74145500,0.00000000,0.00000000,146.25000000); //
  515.     CreateDynamicObject(14632,1443.64868200,-995.93463100,1638.66772500,0.00000000,0.00000000,90.00000000); //
  516.     CreateDynamicObject(14632,1432.15637200,-1018.01525900,1639.98815900,0.00000000,0.00000000,270.00000000); //
  517.     CreateDynamicObject(1514,1432.29492200,-998.85247800,1639.74011200,0.00000000,0.00000000,180.00000000); //
  518.     CreateDynamicObject(1514,1438.35253900,-998.84674100,1639.81567400,0.00000000,0.00000000,180.00000000); //
  519.     CreateDynamicObject(2773,1435.18383800,-996.75927700,1639.30151400,0.00000000,0.00000000,0.00000000); //
  520.     CreateDynamicObject(2773,1435.15246600,-993.93255600,1639.30151400,0.00000000,0.00000000,0.00000000); //
  521.     CreateDynamicObject(2773,1439.33862300,-996.65869100,1639.30151400,0.00000000,0.00000000,0.00000000); //
  522.     CreateDynamicObject(2773,1439.28894000,-994.00067100,1639.30151400,0.00000000,0.00000000,0.00000000); //
  523.     CreateDynamicObject(1723,1426.28015100,-994.86358600,1638.70727500,0.00000000,0.00000000,270.00000000); //
  524.     CreateDynamicObject(1723,1426.24462900,-991.15045200,1638.73230000,0.00000000,0.00000000,270.00000000); //
  525.     CreateDynamicObject(1723,1422.27746600,-996.93505900,1638.68225100,0.00000000,0.00000000,90.00000000); //
  526.     CreateDynamicObject(1723,1422.27929700,-993.21002200,1638.65722700,0.00000000,0.00000000,90.00000000); //
  527.     CreateDynamicObject(2637,1424.23242200,-992.17358400,1638.83874500,0.00000000,0.00000000,270.00000000); //
  528.     CreateDynamicObject(2637,1424.22851600,-995.70416300,1638.83874500,0.00000000,0.00000000,270.00000000); //
  529.     CreateDynamicObject(3657,1432.63330100,-987.73901400,1639.20239300,0.00000000,0.00000000,0.00000000); //
  530.     CreateDynamicObject(3657,1432.63110400,-986.97723400,1639.20239300,0.00000000,0.00000000,180.00000000); //
  531.     CreateDynamicObject(3657,1438.11157200,-986.97753900,1639.20239300,0.00000000,0.00000000,180.00000000); //
  532.     CreateDynamicObject(3657,1438.08630400,-987.73071300,1639.22741700,0.00000000,0.00000000,0.00000000); //
  533.     CreateDynamicObject(2961,1439.02832000,-999.82666000,1639.21130400,0.00000000,0.00000000,0.00000000); //
  534.     CreateDynamicObject(2961,1433.50561500,-999.82763700,1639.30139200,0.00000000,0.00000000,0.00000000); //
  535.     CreateDynamicObject(2946,1414.35522500,-990.51348900,1638.75561500,0.00000000,0.00000000,0.00000000); //
  536.     CreateDynamicObject(2946,1414.38024900,-987.39251700,1638.75500500,0.00000000,0.00000000,180.00000000); //
  537.     CreateDynamicObject(2963,1424.16528300,-1004.81567400,1640.78112800,0.00000000,0.00000000,270.00000000); //
  538.     CreateDynamicObject(2963,1426.80676300,-1004.83252000,1640.82690400,0.00000000,0.00000000,90.00000000); //
  539.     CreateDynamicObject(1886,1414.73059100,-993.52301000,1646.90856900,17.18870000,0.00000000,67.50000000); //
  540.     CreateDynamicObject(2773,1431.41455100,-996.84582500,1639.30151400,0.00000000,0.00000000,0.00000000); //
  541.     CreateDynamicObject(2773,1431.47338900,-994.01709000,1639.30151400,0.00000000,0.00000000,0.00000000); //
  542.     CreateDynamicObject(632,1434.73535200,-987.75750700,1639.13122600,0.00000000,0.00000000,213.75000000); //
  543.     CreateDynamicObject(2942,1417.71362300,-980.47515900,1639.36352500,0.00000000,0.00000000,0.00000000); //
  544.     CreateDynamicObject(1216,1443.28137200,-989.31127900,1639.38781700,0.00000000,0.00000000,270.00000000); //
  545.     CreateDynamicObject(2942,1421.21716300,-980.44891400,1639.38549800,0.00000000,0.00000000,0.00000000); //
  546.     CreateDynamicObject(2942,1424.63049300,-980.52667200,1639.37146000,0.00000000,0.00000000,0.00000000); //
  547.     CreateDynamicObject(1216,1443.27783200,-991.42486600,1639.42419400,0.00000000,0.00000000,270.00000000); //
  548.     CreateDynamicObject(1216,1443.25122100,-987.27819800,1639.37622100,0.00000000,0.00000000,270.00000000); //
  549.     CreateDynamicObject(1216,1443.25976600,-985.48498500,1639.37622100,0.00000000,0.00000000,270.00000000); //
  550.     CreateDynamicObject(2773,1441.22863800,-993.04296900,1639.30151400,0.00000000,0.00000000,270.00000000); //
  551.     CreateDynamicObject(2824,1424.29724100,-992.05493200,1639.24768100,0.00000000,0.00000000,78.75000000); //
  552.     return 1;
  553. }
  554.  
  555. public OnGameModeExit()
  556. {
  557.     for(new i=0;i<MAX_PLAYERS;i++)
  558.     {
  559.         if(IsPlayerConnected(i))
  560.         {
  561.             SetPlayerColor(i,0xFFFFFFAA);
  562.             SalvarDados(i);
  563.             PlayerInfo[i][Logado] = 0;
  564.         }
  565.     }
  566.     DOF2_Exit();
  567.     return 1;
  568. }
  569.  
  570. public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
  571. {
  572.     new Float:Life, Float:Colete, Float:Dano;
  573.     GetPlayerArmour(damagedid, Colete);
  574.     GetPlayerHealth(damagedid, Life);
  575.     if(Colete > 0)
  576.     {
  577.         if(amount > Colete)
  578.         {
  579.             Dano = amount - Colete;
  580.             Life = Life - Dano;
  581.             SetPlayerArmour(damagedid, 0.0);
  582.             SetPlayerHealth(damagedid, Life);
  583.             return 1;
  584.         }
  585.         Colete = Colete - amount;
  586.         SetPlayerArmour(damagedid, Colete);
  587.     }
  588.     if(Colete < 1)
  589.     {
  590.         Life = Life - amount;
  591.         SetPlayerHealth(damagedid, Life);
  592.     }
  593.     return 1;
  594. }
  595.  
  596. FC:ChecarPorteArmas(playerid)
  597. {
  598.     format(dFile, sizeof(dFile), PASTA_CONTAS, GetName(playerid));
  599.     if(DOF2_GetInt(dFile, "PorteArmas") == 0){ResetPlayerWeapons(playerid);}
  600.     return 1;
  601. }
  602.  
  603. public OnPlayerConnect(playerid)
  604. {
  605.     new string[200];
  606.     //SetTimerEx("Intro1", 2000, false, "d", playerid);
  607.     SetTimerEx("ChecarPorteArmas", 1000, 1, "e" , playerid);
  608.     SetPlayerColor(playerid, 0xFFFFFFAA);
  609.     format(string, sizeof(string), "{1E90FF}~> {FFFAFA}%s (%d) conectou-se ao servidor.", GetName(playerid), playerid);
  610.     SendClientMessageToAll(-1, string);
  611.     PlayerInfo[playerid][LoginsFalsos] = 0;
  612.     PlayerInfo[playerid][Logado] = 0;
  613.     if(DOF2_GetInt("/Contas/Banidos/NicksBanidos.ini", GetName(playerid)) == 1)
  614.     {
  615.         SendClientMessage(playerid, Vermelho, "( Info ) Este Nome está banido no servidor!!");
  616.         format(string, sizeof(string), "( Info ) %s (%d) foi Kickado, Motivo:( Nick Banido ).", GetName(playerid) ,playerid);
  617.         SendClientMessageToAll(Vermelho, string);
  618.         ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Informações Banimento", "---------------------- Info Ban ----------------------\nVocê deve ter feito alguma coisa de errada para ter sido banido\nContate a adminstração para saber qual foi o motivo que você foi banido.\nEsta conta ficará banida até que se prove a inocência do infrator.", "Fechar", "");
  619.         Kick(playerid);
  620.         return 1;
  621.     }
  622.     else if(DOF2_GetInt("/Contas/Banidos/JogadoresProibidos.ini", GetName(playerid)) == 1)
  623.     {
  624.         SendClientMessage(playerid, Vermelho, "( Info - Ban ) Esta conta está banida!!");
  625.         format(string, sizeof(string), "( Info - Ban ) %s (%d) foi Kickado, Motivo: ( Banido ).", GetName(playerid) ,playerid);
  626.         SendClientMessageToAll(Vermelho, string);
  627.         ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Informações Banimento", "---------------------- Info Ban ----------------------\nVocê deve ter feito alguma coisa de errada para ter sido banido\nContate a adminstração para saber qual foi o motivo que você foi banido.\nEsta conta ficará banida até que se prove a inocência do infrator.", "Fechar", "");
  628.         Kick(playerid);
  629.         return 1;
  630.     }
  631.     else if(DOF2_GetInt("/Contas/Banidos/NicksProibidos.ini", GetName(playerid)) == 1)
  632.     {
  633.         SendClientMessage(playerid, Vermelho, "( Info ) Este nome é proibido no servidor!");
  634.         format(string, sizeof(string), "( Info ) %s (%d) foi Kickado, Motivo:( Nick Proibido ).", GetName(playerid) ,playerid);
  635.         SendClientMessageToAll(Vermelho, string);
  636.         Kick(playerid);
  637.         ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Informações Banimento", "---------------------- Info Ban ----------------------\nVocê deve ter feito alguma coisa de errada para ter sido banido\nContate a adminstração para saber qual foi o motivo que você foi banido.\nEsta conta ficará banida até que se prove a inocência do infrator.", "Fechar", "");
  638.         return 1;
  639.     }
  640.     //MapIcons
  641.     SetPlayerMapIcon(playerid, 0, 1554.5309, -1675.6157, 16.1953, 30, 0); // Departamento de Polícia
  642.     SetPlayerMapIcon(playerid, 1, 1352.3068, -1758.4059, 13.5078, 17, 0); // Utilitarios
  643.     SetPlayerMapIcon(playerid, 2, 1478.6147, -1771.7782, 18.7958, 20, 0); // Prefeitura
  644.     SetPlayerMapIcon(playerid, 3, 1809.7018, -1166.7360, 24.2266, 55, 0); // Auto Escola
  645.     SetPlayerMapIcon(playerid, 4, 1462.3181, -1010.7484, 26.8438, 52, 0); // Banco
  646.     SetPlayerMapIcon(playerid, 5, 1631.9540, -1172.4180, 24.0843, 16, 0); // Centro de Licenças
  647.     //
  648.     LogadoB[playerid] = false;
  649.     new conta[256];
  650.     format(conta, sizeof(conta), "/Contas/%s.ini", nome(playerid));
  651.     if(PlayerInfo[playerid][Logado] == 0)
  652.     {
  653.         if (!DOF2_FileExists(conta))
  654.         {
  655.             format(conta, sizeof(conta), "{1E90FF}Usuário {FFFAFA}: %s\n{1E90FF}Status da Conta {FFFAFA}: {FF0000}Não Registrada\n{1E90FF}Insira uma senha e clique em {FFFAFA}'Registrar'", nome(playerid));
  656.             ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Conta", conta, "Registrar", "Sair");
  657.         }
  658.         else if(DOF2_FileExists(conta))
  659.         {
  660.             format(conta, sizeof(conta), "{1E90FF}Usuário {FFFAFA}: %s\n{1E90FF}Status da Conta {FFFAFA}: Registrada\n{1E90FF}Insira sua senha e clique em {FFFAFA}'Logar'", nome(playerid));
  661.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Conta", conta, "Logar", "Sair");
  662.         }
  663.         SetPlayerPos(playerid, -2023.0532, 896.6314, 67.2109);
  664.         SetPlayerCameraPos(playerid, -2025.2670, 928.9287, 86.9998);
  665.         SetPlayerCameraLookAt(playerid, -2031.3472, 928.7211, 86.9998);
  666.     }
  667.     return 1;
  668. }
  669.  
  670. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  671. {
  672.     if(IsAdmin[playerid] == 1)
  673.     {
  674.         if(fNitro(vehicleid))
  675.         {
  676.             AddVehicleComponent(vehicleid, 1010);
  677.         }
  678.     }
  679.     return 1;
  680. }
  681.  
  682. public OnPlayerExitedMenu(playerid)
  683. {
  684.     new Menu:Current = GetPlayerMenu(playerid);
  685.     HideMenuForPlayer(Current, playerid);
  686.     TogglePlayerControllable(playerid, true);
  687.     TogglePlayerControllable(playerid, true);
  688.     return 1;
  689. }
  690.  
  691. public OnPlayerExitVehicle(playerid, vehicleid)
  692. {
  693.     return 1;
  694. }
  695.  
  696. public OnPlayerDisconnect(playerid, reason)
  697. {
  698.     new Arq[24];
  699.     format(Arq, sizeof(Arq), PASTA_CONTAS, GetName(playerid));
  700.     SalvarDados(playerid);
  701.     PlayerInfo[playerid][Logado] = 0;
  702.     new string[256];
  703.     switch(reason)
  704.     {
  705.         case 0: format(string,sizeof string,"%s (%d) desconectou-se do Servidor {FF0000}( {FFFFFF}Conexão {FF0000})", GetName(playerid) , playerid);
  706.         case 1: format(string,sizeof string,"%s (%d) desconectou-se do Servidor {FF0000}( {FFFFFF}Vontade Própria {FF0000})",GetName(playerid) , playerid);
  707.         case 2: format(string,sizeof string,"%s (%d) desconectou-se do Servidor {FF0000}( {FFFFFF}Kickado/Banido {FF0000})",GetName(playerid) , playerid);
  708.     }
  709.     SendClientMessageToAll(-1, string);
  710.     return 1;
  711. }
  712.  
  713. public OnPlayerSpawn(playerid)
  714. {
  715.     AtualizarCores(playerid);
  716.     GangZoneShowForAll(GzFavela , 0xFF0000AA);
  717.     GangZoneShowForAll(GzParque , 0xFF000096);
  718.     return 1;
  719. }
  720.  
  721. FC:AtualizarLabel(playerid)
  722. {
  723.     dLoop(i)
  724.     {
  725.         new prof[60];
  726.         format(prof, sizeof(prof), PASTA_CONTAS, GetName(i));
  727.         if (DOF2_GetInt(prof, "Profissao") == 0)
  728.         {
  729.             Update3DTextLabelText(LabelPlayer[i], -1, "Desempregado");
  730.         }
  731.         else if (DOF2_GetInt(prof, "Profissao") == 1)
  732.         {
  733.             Update3DTextLabelText(LabelPlayer[i], -1, "Taxista");
  734.         }
  735.         else if (DOF2_GetInt(prof, "Profissao") == 2)
  736.         {
  737.             Update3DTextLabelText(LabelPlayer[i], -1, "Assaltante");
  738.         }
  739.         else if (DOF2_GetInt(prof, "Profissao") == 3)
  740.         {
  741.             Update3DTextLabelText(LabelPlayer[i], -1, "Segurança");
  742.         }
  743.         else if (DOF2_GetInt(prof, "Profissao") == 4) {
  744.             Update3DTextLabelText(LabelPlayer[i], -1, "Carteiro");
  745.         }
  746.         else if (DOF2_GetInt(prof, "Profissao") == 5) {
  747.             Update3DTextLabelText(LabelPlayer[i], -1, "Caminhoneiro");
  748.         }
  749.         else if (DOF2_GetInt(prof, "Profissao") == 6) {
  750.             Update3DTextLabelText(LabelPlayer[i], -1, "Médico");
  751.         }
  752.         else if (DOF2_GetInt(prof, "Profissao") == 7) {
  753.             Update3DTextLabelText(LabelPlayer[i], -1, "Mecânico");
  754.         }
  755.         else if (DOF2_GetInt(prof, "Profissao") == 8) {
  756.             Update3DTextLabelText(LabelPlayer[i], -1, "Advogado");
  757.         }
  758.         else if (DOF2_GetInt(prof, "Profissao") == 9) {
  759.             Update3DTextLabelText(LabelPlayer[i], -1, "Aposentado");
  760.         }
  761.         else if (DOF2_GetInt(prof, "Profissao") == 10) {
  762.             Update3DTextLabelText(LabelPlayer[i], -1, "Policial Militar");
  763.         }
  764.         else if (DOF2_GetInt(prof, "Profissao") == 11) {
  765.             Update3DTextLabelText(LabelPlayer[i], -1, "Policial Civil");
  766.         }
  767.         else if (DOF2_GetInt(prof, "Profissao") == 12) {
  768.             Update3DTextLabelText(LabelPlayer[i], -1, "Membro da Interpol");
  769.         }
  770.         else if (DOF2_GetInt(prof, "Profissao") == 13) {
  771.             Update3DTextLabelText(LabelPlayer[i], -1, "Policial Federal");
  772.         }
  773.         else if (DOF2_GetInt(prof, "Profissao") == 14) {
  774.             Update3DTextLabelText(LabelPlayer[i], -1, "Membro da F.B.I");
  775.         }
  776.         else if (DOF2_GetInt(prof, "Profissao") == 15) {
  777.             Update3DTextLabelText(LabelPlayer[i], -1, "Membro da S.W.A.T");
  778.         }
  779.         else if (DOF2_GetInt(prof, "Profissao") == 16) {
  780.             Update3DTextLabelText(LabelPlayer[i], -1, "Policial Rodoviário");
  781.         }
  782.         else if (DOF2_GetInt(prof, "Profissao") == 17) {
  783.             Update3DTextLabelText(LabelPlayer[i], -1, "Sequestrador");
  784.         }
  785.         else if (DOF2_GetInt(prof, "Profissao") == 18) {
  786.             Update3DTextLabelText(LabelPlayer[i], -1, "Motorista Particular");
  787.         }
  788.         else if (DOF2_GetInt(prof, "Profissao") == 19) {
  789.             Update3DTextLabelText(LabelPlayer[i], -1, "Mendingo");
  790.         }
  791.         else if (DOF2_GetInt(prof, "Profissao") == 20) {
  792.             Update3DTextLabelText(LabelPlayer[i], -1, "Jornalista");
  793.         }
  794.         else if (IsAdmin[i] == 1) {
  795.             Update3DTextLabelText(LabelPlayer[i], Verde, "- Adminstrador -");
  796.         }
  797.         else if (IsVip[i] == 1) {
  798.             Update3DTextLabelText(LabelPlayer[i], Amarelo, "- Vip -");
  799.         }
  800.     }
  801.     return 1;
  802. }
  803.  
  804. public OnPlayerText(playerid, text[])
  805. {
  806.     if(gettime() < GetPVarInt(playerid, "flood")) return SendClientMessage(playerid, Vermelho, "( Info ) Aguarde 1 Segundo Para enviar outra mensagem."), false;
  807.     SetPVarInt(playerid, "flood", (gettime() + 1));
  808.     if(strlen(text) > 60) return SendClientMessage(playerid, Vermelho, "( Info ) Texto grande demais!");
  809.     new sChat[256], sNome[MAX_PLAYER_NAME];
  810.     if(EmLigacao[playerid] == 1)
  811.     {
  812.         format(sChat, sizeof(sChat), "( Celular ) %s (%d) : %s", sNome, playerid , sChat);
  813.         SendClientMessage(LigadorCel[playerid], Amarelo, sChat);
  814.         //
  815.         format(sChat, sizeof(sChat), "( Celular ) %s (%d) : %s", sNome, playerid , sChat);
  816.         SendClientMessage(RecebedorCel[playerid], Amarelo, sChat);
  817.     }
  818.     if(IsAdmin[playerid] == 1 && !IsVip[playerid])
  819.     {
  820.         GetPlayerName(playerid, sNome, MAX_PLAYER_NAME);
  821.         format(sChat, 128, "» %s {FFFAFA}: %s", sNome,text,playerid);
  822.         for(new i; i != GetMaxPlayers(); i++)
  823.             SendClientMessage(i, GetPlayerColor(playerid), sChat);
  824.     }
  825.     else if(!IsAdmin[playerid] && IsVip[playerid] == 1)
  826.     {
  827.         GetPlayerName(playerid, sNome, MAX_PLAYER_NAME);
  828.         format(sChat, 128, "» %s {FFFAFA} [%d]: %s » {FFFAFA}[{FFFF00}VIP{FFFAFA}]", sNome,playerid, text);
  829.         for(new i; i != GetMaxPlayers(); i++)
  830.             SendClientMessage(i, GetPlayerColor(playerid), sChat);
  831.     }
  832.     else if(!IsAdmin[playerid] && !IsVip[playerid])
  833.     {
  834.         GetPlayerName(playerid, sNome, MAX_PLAYER_NAME);
  835.         format(sChat, 128, "» %s {FFFAFA} [%d] : %s", sNome,playerid, text);
  836.         for(new i; i != GetMaxPlayers(); i++)
  837.             SendClientMessage(i, GetPlayerColor(playerid), sChat);
  838.     }
  839.     else if(IsAdmin[playerid] == 1 && IsVip[playerid] == 1)
  840.     {
  841.         GetPlayerName(playerid, sNome, MAX_PLAYER_NAME);
  842.         format(sChat, 128, "» %s {FFFAFA} [%d]: %s » {FFFAFA}[{FFFF00}VIP / ADMIN{FFFAFA}]", sNome,playerid, text);
  843.         for(new i; i != GetMaxPlayers(); i++)
  844.             SendClientMessage(i, GetPlayerColor(playerid), sChat);
  845.     }
  846.     return 0;
  847. }
  848.  
  849. FC:AtualizarCores(playerid)
  850. {
  851.     new sFile[60];
  852.     format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  853.     if(IsAdmin[playerid] == 1)
  854.     {
  855.         SetPlayerColor(playerid, 0x0FFDD349);
  856.         return 1;
  857.     }
  858.     else if(DOF2_GetInt(sFile, "Profissao") == 0)
  859.     {
  860.         SetPlayerColor(playerid, -1);
  861.     }
  862.     else if(DOF2_GetInt(sFile, "Profissao") == 1) // x
  863.     {
  864.         SetPlayerColor(playerid, 0x33CCFFAA);
  865.     }
  866.     else if(DOF2_GetInt(sFile, "Profissao") == 2) //x
  867.     {
  868.         SetPlayerColor(playerid, 0x9ACD32AA);
  869.     }
  870.     else if(DOF2_GetInt(sFile, "Profissao") == 3)
  871.     {
  872.         SetPlayerColor(playerid, 0xFFFFB3AA);
  873.     }
  874.     else if(DOF2_GetInt(sFile, "Profissao") == 4) // x
  875.     {
  876.         SetPlayerColor(playerid, 0xFFFF00AA);
  877.     }
  878.     else if(DOF2_GetInt(sFile, "Profissao") == 5) // x
  879.     {
  880.         SetPlayerColor(playerid, 0x9E3EFFAA);
  881.     }
  882.     else if(DOF2_GetInt(sFile, "Profissao") == 6) // x
  883.     {
  884.         SetPlayerColor(playerid, 0xA60000AA);
  885.     }
  886.     else if(DOF2_GetInt(sFile, "Profissao") == 7) // x
  887.     {
  888.         SetPlayerColor(playerid, 0x00FF00AA);
  889.     }
  890.     else if(DOF2_GetInt(sFile, "Profissao") == 8) // x
  891.     {
  892.         SetPlayerColor(playerid, 0xFFFFB0AA);
  893.     }
  894.     else if(DOF2_GetInt(sFile, "Profissao") == 9) // x
  895.     {
  896.         SetPlayerColor(playerid, 0xFFFF04AA);
  897.     }
  898.     else if(DOF2_GetInt(sFile, "Profissao") == 10) // x
  899.     {
  900.         SetPlayerColor(playerid, 0x6A6A35AA);
  901.     }
  902.     else if(DOF2_GetInt(sFile, "Profissao") == 11)
  903.     {
  904.         SetPlayerColor(playerid, 0x33CCFFAA);
  905.     }
  906.     else if(DOF2_GetInt(sFile, "Profissao") == 12)
  907.     {
  908.         SetPlayerColor(playerid, 0x7777FFAA);
  909.     }
  910.     else if(DOF2_GetInt(sFile, "Profissao") == 13)
  911.     {
  912.         SetPlayerColor(playerid, 0x009F9FAA);
  913.     }
  914.     else if(DOF2_GetInt(sFile, "Profissao") == 14)
  915.     {
  916.         SetPlayerColor(playerid, 0x934FF6F6);
  917.     }
  918.     else if(DOF2_GetInt(sFile, "Profissao") == 15)
  919.     {
  920.         SetPlayerColor(playerid, 0xFFA6A6AA);
  921.     }
  922.     else if(DOF2_GetInt(sFile, "Profissao") == 16)
  923.     {
  924.         SetPlayerColor(playerid, 0x800080AA);
  925.     }
  926.     else if(DOF2_GetInt(sFile, "Profissao") == 17)
  927.     {
  928.         SetPlayerColor(playerid, 0x79E1FFAA);
  929.     }
  930.     else if(DOF2_GetInt(sFile, "Profissao") == 18)
  931.     {
  932.         SetPlayerColor(playerid, 0x00E1E1AA);
  933.     }
  934.     else if(DOF2_GetInt(sFile, "Profissao") == 19)
  935.     {
  936.         SetPlayerColor(playerid, 0x790079AA);
  937.     }
  938.     else if(DOF2_GetInt(sFile, "Profissao") == 20)
  939.     {
  940.         SetPlayerColor(playerid, 0xAAAAAAAA);
  941.     }
  942.     return 1;
  943. }
  944.  
  945. FC:AtualizarCSpawn(playerid)
  946. {
  947.     new sFile[60];
  948.     format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  949.     if(DOF2_GetInt(sFile, "Profissao") == 0)
  950.     {
  951.         SetPlayerPos(playerid, 1280.7905,-1337.3821,13.3722);
  952.     }
  953.     else if(DOF2_GetInt(sFile, "Profissao") == 1) // x
  954.     {
  955.         SetPlayerPos(playerid, 2153.8550,-1797.9377,13.5539);
  956.     }
  957.     else if(DOF2_GetInt(sFile, "Profissao") == 2) //x
  958.     {
  959.         SetPlayerPos(playerid, 1153.2084,-1181.3967,32.8187);
  960.     }
  961.     else if(DOF2_GetInt(sFile, "Profissao") == 3)
  962.     {
  963.     //
  964.     }
  965.     else if(DOF2_GetInt(sFile, "Profissao") == 4) // x
  966.     {
  967.         SetPlayerPos(playerid, 1211.3303,-1747.8651,13.5941);
  968.     }
  969.     else if(DOF2_GetInt(sFile, "Profissao") == 5) // x
  970.     {
  971.         SetPlayerPos(playerid, -525.0360,-505.5577,25.5234);
  972.     }
  973.     else if(DOF2_GetInt(sFile, "Profissao") == 6) // x
  974.     {
  975.         SetPlayerPos(playerid, 1177.5985,-1322.3787,14.0786);
  976.     }
  977.     else if(DOF2_GetInt(sFile, "Profissao") == 7) // x
  978.     {
  979.         SetPlayerPos(playerid, 1835.6530,-1875.6486,13.5781);
  980.     }
  981.     else if(DOF2_GetInt(sFile, "Profissao") == 8) // x
  982.     {
  983.         SetPlayerPos(playerid, 1774.6375,-1669.0959,14.4268);
  984.     }
  985.     else if(DOF2_GetInt(sFile, "Profissao") == 9) // x
  986.     {
  987.         SetPlayerPos(playerid, 1243.3101,-1699.3876,14.8672);
  988.     }
  989.     else if(DOF2_GetInt(sFile, "Profissao") == 10) // x
  990.     {
  991.         SetPlayerPos(playerid, 252.9100,67.8120,1003.6406);
  992.         SetPlayerInterior(playerid, 6);
  993.     }
  994.     else if(DOF2_GetInt(sFile, "Profissao") == 11)
  995.     {
  996.     }
  997.     else if(DOF2_GetInt(sFile, "Profissao") == 12)
  998.     {
  999.     }
  1000.     else if(DOF2_GetInt(sFile, "Profissao") == 13)
  1001.     {
  1002.     }
  1003.     else if(DOF2_GetInt(sFile, "Profissao") == 14)
  1004.     {
  1005.     }
  1006.     else if(DOF2_GetInt(sFile, "Profissao") == 15)
  1007.     {
  1008.     }
  1009.     else if(DOF2_GetInt(sFile, "Profissao") == 16)
  1010.     {
  1011.     }
  1012.     else if(DOF2_GetInt(sFile, "Profissao") == 17)
  1013.     {
  1014.         SetPlayerPos(playerid, 2244.2620,-1929.4495,13.5469);
  1015.     }
  1016.     else if(DOF2_GetInt(sFile, "Profissao") == 18)
  1017.     {
  1018.         SetPlayerPos(playerid, 1208.7290,-2036.4012,69.0078);
  1019.     }
  1020.     else if(DOF2_GetInt(sFile, "Profissao") == 19)
  1021.     {
  1022.         SetPlayerPos(playerid, 2288.2229,-1105.2611,37.9967);
  1023.     }
  1024.     else if(DOF2_GetInt(sFile, "Profissao") == 20)
  1025.     {
  1026.         SetPlayerPos(playerid, 735.2441,-1355.3424,14.8382);
  1027.     }
  1028.     return 1;
  1029. }
  1030.  
  1031. public OnPlayerPickUpPickup(playerid, pickupid)
  1032. {
  1033.     if(pickupid == SaidaDP) return 1;
  1034.     if(pickupid == EntradaDP) return 1;
  1035.     if(pickupid == EntradaUtilitarios) return 1;
  1036.     if(pickupid == SaidaUTL) return 1;
  1037.     if(pickupid == EntrarPref) return 1;
  1038.     if(pickupid == SairPref) return 1;
  1039.     if(pickupid == EntrarAEscola) return 1;
  1040.     if(pickupid == SairAEscola) return 1;
  1041.     if(pickupid == EntrarCentral) return 1;
  1042.     if(pickupid == SairCentral) return 1;
  1043.     if(pickupid == PickupProf) return 1;
  1044.     if(pickupid == SairBanco) return 1;
  1045.     if(pickupid == EntrarBanco) return 1;
  1046.     if(pickupid == EntrarCentro) return 1;
  1047.     if(pickupid == SairCentro) return 1;
  1048.     return 1;
  1049. }
  1050.  
  1051. public OnPlayerEnterCheckpoint(playerid)
  1052. {
  1053.     return 1;
  1054. }
  1055.  
  1056. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1057. {
  1058.     //new string[256];
  1059.     new banco[190], extrato[200], anox, mesx, diax, horax, minutox, segundox;
  1060.     format(banco, sizeof(banco), DIRETORIOB, nome(playerid));
  1061.     if (dialogid == REGISTRO)
  1062.     {
  1063.         new sFile[256];
  1064.         format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1065.         if (response)
  1066.         {
  1067.             DOF2_CreateFile(sFile);
  1068.             DOF2_SetString(sFile, "Senha", inputtext);
  1069.             DOF2_SetInt(sFile, "Profissao", 0);
  1070.             DOF2_SetInt(sFile, "HTerrestre", 0);
  1071.             DOF2_SetInt(sFile, "HAerea", 0);
  1072.             DOF2_SetInt(sFile, "HNautica", 0);
  1073.             DOF2_SetInt(sFile, "Preso", 0);
  1074.             DOF2_SetInt(sFile, "TempoPreso", 0);
  1075.             DOF2_SetInt(sFile, "Level", 0);
  1076.             DOF2_SetInt(sFile, "TempoLevel", 0);
  1077.             DOF2_SetInt(sFile, "Experiencia", 0);
  1078.             DOF2_SetInt(sFile, "Gasolina", 30);
  1079.             DOF2_SetInt(sFile, "TemJP", 0);
  1080.             DOF2_SetInt(sFile, "LogoSAMP", 0);
  1081.             DOF2_SetInt(sFile, "TemPSurf", 0);
  1082.             DOF2_SetInt(sFile, "PorteArmas", 0);
  1083.             DOF2_SetInt(sFile, "NivelAdmin", 0);
  1084.             DOF2_SetInt(sFile, "Vip", 0);
  1085.             DOF2_SetInt(sFile, "Skin", 299);
  1086.             DOF2_SetInt(sFile, "Banido", 0);
  1087.             DOF2_SetInt(sFile, "EstiloLuta", 0);
  1088.             SetPlayerSkin(playerid, DOF2_GetInt(sFile, "Skin"));
  1089.             SetPlayerColor(playerid, 0xFFFFFFAA);
  1090.             PlayerPlaySound(playerid, 1057, 0, 0, 0);
  1091.             //
  1092.             Level[playerid] = 0;
  1093.             Gasolina[playerid] = 30;
  1094.             EstaPreso[playerid] = 0;
  1095.             TempoLevel[playerid] = 0;
  1096.             Experiencia[playerid] = 0;
  1097.             IsAdmin[playerid] = 0;
  1098.             IsVip[playerid] = 0;
  1099.             Profissao[playerid] = Desempregado;
  1100.             //
  1101.             ShowPlayerDialog(playerid, DialogSexo, DIALOG_STYLE_MSGBOX, "Sexo", "Qual é seu sexo?", "Masculino", "Feminino");
  1102.             new xd[150];
  1103.             format(xd, sizeof(xd), "{FFFAFA}• Você se registrou com a senha: {FFDAB9}'%s'{FFFAFA}, Guarde-a pois será nessesário para ter acesso a sua conta novamente.", inputtext);
  1104.             SendClientMessage(playerid, Vermelho, xd);
  1105.             new ano, mes, dia2, stringd[30], stringh[30], Hour, Minute, Second;
  1106.             getdate(ano, mes, dia2);
  1107.             format(stringd, sizeof(stringd), " (%d/%d/%d)", dia2, mes, ano);
  1108.             gettime(Hour, Minute, Second);
  1109.             format(stringh, sizeof(stringh), " (%d:%d:%d)", Hour, Minute, Second);
  1110.             DOF2_SetString(sFile, "Logou", stringd);
  1111.             DOF2_SetString(sFile, "Horas", stringh);
  1112.             DOF2_SaveFile();
  1113.         }
  1114.         else
  1115.         {
  1116.             format(StringDL, sizeof(StringDL), "{1E90FF}Usuário {FFFAFA}: %s\n{1E90FF}Status da Conta {FFFAFA}: {FF0000}Não Registrada\n{1E90FF}Insira uma senha e clique em {FFFAFA}'Registrar'", nome(playerid));
  1117.             ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Conta", StringDL, "Registrar", "Sair");
  1118.         }
  1119.     }
  1120.     if(dialogid == DialogSexo)
  1121.     {
  1122.         new sFile[256];
  1123.         format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1124.         if(response == 1)
  1125.         {
  1126.             SetPlayerSkin(playerid, 299);
  1127.             DOF2_SetInt(sFile, "Skin", 299);
  1128.             DOF2_SetFloat(sFile, "SpawnX", 608.2704);
  1129.             DOF2_SetFloat(sFile, "SpawnY", -1458.6222);
  1130.             DOF2_SetFloat(sFile, "SpawnZ", 14.3811);
  1131.             SetSpawnInfo(playerid, 1, DOF2_GetInt(sFile, "Skin"), DOF2_GetFloat(sFile, "SpawnX"), DOF2_GetFloat(sFile, "SpawnY"), DOF2_GetFloat(sFile, "SpawnZ"), 354.1657, 0, 0, 0, 0, 0, 0);
  1132.             format(sFile, sizeof(sFile), "{1E90FF}Agora Logue-se Em Sua Conta!\n{1E90FF}Usuário {FFFAFA}: %s\n{1E90FF}Status da Conta {FFFAFA}: Registrada\n{1E90FF}Insira sua senha e clique em {FFFAFA}'Logar'", nome(playerid));
  1133.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Conta", sFile, "Logar", "Sair");
  1134.         }
  1135.         else
  1136.         {
  1137.             SetPlayerSkin(playerid, 65);
  1138.             DOF2_SetInt(sFile, "Skin", 65);
  1139.             DOF2_SetFloat(sFile, "SpawnX", 608.2704);
  1140.             DOF2_SetFloat(sFile, "SpawnY", -1458.6222);
  1141.             DOF2_SetFloat(sFile, "SpawnZ", 14.3811);
  1142.             SetSpawnInfo(playerid, 1, DOF2_GetInt(sFile, "Skin"), DOF2_GetFloat(sFile, "SpawnX"), DOF2_GetFloat(sFile, "SpawnY"), DOF2_GetFloat(sFile, "SpawnZ"), 354.1657, 0, 0, 0, 0, 0, 0);
  1143.             format(sFile, sizeof(sFile), "{1E90FF}Usuário {FFFAFA}: %s\n{1E90FF}Status da Conta {FFFAFA}: Registrada\n{1E90FF}Insira sua senha e clique em {FFFAFA}'Logar'", nome(playerid));
  1144.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Conta", sFile, "Logar", "Sair");
  1145.         }
  1146.         return 1;
  1147.     }
  1148.     if (dialogid == LOGIN)
  1149.     {
  1150.         new Arq[256];
  1151.         format(Arq, sizeof(Arq), PASTA_CONTAS, GetName(playerid));
  1152.         if (response)
  1153.         {
  1154.             if(!strcmp(inputtext, DOF2_GetString(Arq, "Senha"), false))
  1155.             {
  1156.                 PlayerInfo[playerid][Logado] = 1;
  1157.                 GivePlayerGrana(playerid, DOF2_GetInt(Arq, "Dinheiro"));
  1158.                 SetSpawnInfo(playerid, 0, DOF2_GetInt(Arq, "Skin"), DOF2_GetFloat(Arq, "SpawnX"), DOF2_GetFloat(Arq, "SpawnY"), DOF2_GetFloat(Arq, "SpawnZ"), 354.1657, 0, 0, 0, 0, 0, 0);
  1159.                 //
  1160.                 IsAdmin[playerid] = DOF2_GetInt(Arq, "NivelAdmin");
  1161.                 IsVip[playerid] = DOF2_GetInt(Arq, "Vip");
  1162.                 SetPlayerSkin(playerid, DOF2_GetInt(Arq, "Skin"));
  1163.                 Experiencia[playerid] = DOF2_GetInt(Arq, "Experiencia");
  1164.                 TempoLevel[playerid] = DOF2_GetInt(Arq, "TempoLevel");
  1165.                 Gasolina[playerid] = DOF2_GetInt(Arq, "Gasolina");
  1166.                 Profissao[playerid] = DOF2_GetInt(Arq, "Profissao");
  1167.                 AtualizarLabel(playerid);
  1168.                 //
  1169.                 if(DOF2_GetInt(Arq, "EstiloLuta") == 1)
  1170.                 {
  1171.                     SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
  1172.                 }
  1173.                 if(DOF2_GetInt(Arq, "EstiloLuta") == 2)
  1174.                 {
  1175.                     SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
  1176.                 }
  1177.                 if(DOF2_GetInt(Arq, "EstiloLuta") == 3)
  1178.                 {
  1179.                     SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
  1180.                 }
  1181.                 if(DOF2_GetInt(Arq, "EstiloLuta") == 4)
  1182.                 {
  1183.                     SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
  1184.                 }
  1185.                 if(DOF2_GetInt(Arq, "EstiloLuta") == 5)
  1186.                 {
  1187.                     SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  1188.                 }
  1189.                 if(DOF2_GetInt(Arq, "EstiloLuta") == 6)
  1190.                 {
  1191.                     SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
  1192.                 }
  1193.                 //
  1194.                 TemJP[playerid] = DOF2_GetInt(Arq, "TemJP");
  1195.                 LogoSAMP[playerid] = DOF2_GetInt(Arq, "LogoSAMP");
  1196.                 TemPSurf[playerid] = DOF2_GetInt(Arq, "TemPSurf");
  1197.                 //
  1198.                 Level[playerid] = DOF2_GetInt(Arq, "Level");
  1199.                 SetPlayerFightingStyle(playerid, DOF2_GetInt(Arq, "Lutas"));
  1200.                 AtualizarCSpawn(playerid);
  1201.                 AtualizarCores(playerid);
  1202.                 //SetPlayerInterior(playerid, 0);
  1203.                 new ano, mes, dia2, stringd[30], stringh[30], Hour, Minute, Second;
  1204.                 getdate(ano, mes, dia2);
  1205.                 format(stringd, sizeof(stringd), " (%d/%d/%d)", dia2, mes, ano);
  1206.                 gettime(Hour, Minute, Second);
  1207.                 format(stringh, sizeof(stringh), " (%d:%d:%d)", Hour, Minute, Second);
  1208.                 DOF2_SetString(Arq, "Logou", stringd);
  1209.                 DOF2_SetString(Arq, "Horas", stringh);
  1210.                 //
  1211.                 TextDrawHideForPlayer(playerid, BoxIntro);
  1212.                 TextDrawHideForPlayer(playerid, IntroText1);
  1213.                 TextDrawHideForPlayer(playerid, IntroText2);
  1214.                 TextDrawHideForPlayer(playerid, IntroText3);
  1215.                 TextDrawHideForPlayer(playerid, IntroText4);
  1216.                 TextDrawShowForPlayer(playerid, TextBaixo1);
  1217.                 SpawnPlayer(playerid);
  1218.                 SetTimerEx("ChecarPorteArmas", 1000, 1, "e" , playerid);
  1219.                 DOF2_SaveFile();
  1220.             }
  1221.             else
  1222.             {
  1223.                 PlayerInfo[playerid][LoginsFalsos]++;
  1224.                 if (PlayerInfo[playerid][LoginsFalsos] >= 3)
  1225.                 {
  1226.                     format(StringDL, sizeof(StringDL), "( Info ) %s foi kickado automaticamente. ( %d tentativas de login)", GetName(playerid), 3);
  1227.                     SendClientMessageToAll(0x00C1C1AA, StringDL);
  1228.                     SetPlayerColor(playerid, 0xFFFFFFAA);
  1229.                     Kick(playerid);
  1230.                 }
  1231.                 else
  1232.                 {
  1233.                     format(StringDL, sizeof(StringDL), "{1E90FF}Senha Incorreta!\n{1E90FF}Insira sua senha e clique em {FFFAFA}'Logar'", nome(playerid));
  1234.                     ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Conta", StringDL, "Logar", "Sair");
  1235.                 }
  1236.             }
  1237.         }
  1238.         else
  1239.         {
  1240.             format(StringDL, sizeof(StringDL), "{1E90FF}Usuário {FFFAFA}: %s\n{1E90FF}Status da Conta {FFFAFA}: Registrada\n{1E90FF}Insira sua senha e clique em {FFFAFA}'Logar'", nome(playerid));
  1241.             ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Conta", StringDL, "Logar", "Sair");
  1242.         }
  1243.     }
  1244.     if (dialogid == dUtilitarios)
  1245.     {
  1246.         if (response)
  1247.         {
  1248.             new sFile[60];
  1249.             format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1250.             if (listitem == 0)
  1251.             {
  1252.                 DOF2_SetInt(sFile, "TemJP", 1);
  1253.                 SendClientMessage(playerid, Verde, "( Utilitários ) Você acaba de comprar um JetPack! Para Pegar Use: /jetpack");
  1254.                 GivePlayerMoney(playerid, -750000);
  1255.                 PJetPack[playerid] = 0;
  1256.             }
  1257.             if(listitem == 1)
  1258.             {
  1259.                 DOF2_SetInt(sFile, "LogoSAMP", 1);
  1260.                 SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337);
  1261.                 SendClientMessage(playerid, Verde, "( Utilitários ) Você acaba de comprar o objeto: Logo SA:MP ! Para Usar, Digite: /lsamp");
  1262.                 GivePlayerMoney(playerid, -50000);
  1263.                 LogoSAMP[playerid] = 1;
  1264.             }
  1265.             if(listitem == 2)
  1266.             {
  1267.                 DOF2_SetInt(sFile, "TemPSurf", 1);
  1268.                 SetPlayerAttachedObject( playerid, 0, 2404, 1, 0.051352, -0.140526, -0.077093, 0.000000, 121.550628, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_SURF_BOARD - Prancha de surf nas costas
  1269.                 SendClientMessage(playerid, Verde, "( Utilitários ) Você acaba de comprar o objeto: Prancha de Surf ! Para Usar, Digite: /psurf");
  1270.                 GivePlayerMoney(playerid, -75000);
  1271.                 TemPSurf[playerid] = 1;
  1272.             }
  1273.         }
  1274.     }
  1275.     if (dialogid == dLicencas)
  1276.     {
  1277.         if(response)
  1278.         {
  1279.             new sFile[40];
  1280.             format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1281.             if(listitem == 0) // Terrestre
  1282.             {
  1283.                 if (DOF2_GetInt(sFile, "HTerrestre") == 1) return SendClientMessage(playerid, Amarelo, "( Info ) Você não pode comprar esta habilitação novamente pois você já tem!");
  1284.                 DOF2_SetInt(sFile, "HTerrestre", 1);
  1285.                 SendClientMessage(playerid, Amarelo, "( Info ) Você comprou a Habilitação Terrestre!");
  1286.                 GivePlayerGrana(playerid, -700);
  1287.             }
  1288.             if(listitem == 1) // Nautica
  1289.             {
  1290.                 if (DOF2_GetInt(sFile, "HNautica") == 1) return SendClientMessage(playerid, Amarelo, "( Info ) Você não pode comprar esta habilitação novamente pois você já tem!");
  1291.                 DOF2_SetInt(sFile, "HNautica", 1);
  1292.                 SendClientMessage(playerid, Amarelo, "( Info ) Você comprou a Habilitação Náutica!");
  1293.                 GivePlayerGrana(playerid, -1000);
  1294.             }
  1295.             if(listitem == 2) // Aerea
  1296.             {
  1297.                 if (DOF2_GetInt(sFile, "HAerea") == 1) return SendClientMessage(playerid, Amarelo, "( Info ) Você não pode comprar esta habilitação novamente pois você já tem!");
  1298.                 DOF2_SetInt(sFile, "HAerea", 1);
  1299.                 SendClientMessage(playerid, Amarelo, "( Info ) Você comprou a Habilitação Aérea!");
  1300.                 GivePlayerGrana(playerid, -1300);
  1301.             }
  1302.             if(listitem == 3) // Porte de Armas
  1303.             {
  1304.                 if (DOF2_GetInt(sFile, "PorteArmas") == 1) return SendClientMessage(playerid, Amarelo, "( Info ) Você não pode comprar esta o porte de armas novamente pois você já tem!");
  1305.                 DOF2_SetInt(sFile, "PorteArmas", 1);
  1306.                 SendClientMessage(playerid, Amarelo, "( Info ) Você comprou a Licença para Usar Armas ( Porte de Armas ) !");
  1307.                 GivePlayerGrana(playerid, -2500);
  1308.             }
  1309.         }
  1310.     }
  1311.     if (dialogid == dEmpregos)
  1312.     {
  1313.         if(response)
  1314.         {
  1315.             new sFile[24];
  1316.             format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1317.             if(listitem == 0)
  1318.             {
  1319.                 ShowPlayerDialog(playerid, dClasseAlta, DIALOG_STYLE_LIST, "Empregos - Classe Alta", "Aposentado - Level 950 [ 4000R$ ]\nPolícia Militar - Level 70 [ 1300R$ ]\nPolícia Civil - Level 90 [ 1600R$ ]\nInterpol - Level 110 [ 1900R$ ]\nPolícia Federal - Level 130 [ 2200R$ ]\nF.B.I - Level 150 [ 2500R$ ]\nS.W.A.T - Level 180 [ 2800R$ ]\nPolícia Rodoviaria - Level 50 [ 1000R$ ]", "Selecionar", "Cancelar");
  1320.             }
  1321.             if(listitem == 1)
  1322.             {
  1323.                 ShowPlayerDialog(playerid, dClasseMedia, DIALOG_STYLE_LIST, "Empregos - Classe Média", "Taxista - Level 10 [ 700R$ ]\nSegurança - Level 65 [ 1100R$ ]\nMédico - Level 25 [ 900R$ ]\nAdvogado - Level 50 [ 1500R$ ]\nJornalista - Level 40 [ 920R$ ]", "Selecionar", "Cancelar");
  1324.             }
  1325.             if(listitem == 2)
  1326.             {
  1327.                 ShowPlayerDialog(playerid, dClasseBaixa, DIALOG_STYLE_LIST, "Empregos - Classe Baixa", "Carteiro - Level 5 [ 400R$ ]\nCaminhoneiro - Level 10 [ 700R$ ]\nMecânico - Level 0 [ 200R$ ]\nMotorista Particular - Level 0 [ 500R$ ]\nMendingo - Level 0 [ 100R$ ]", "Selecionar", "Cancelar");
  1328.             }
  1329.             if(listitem == 3)
  1330.             {
  1331.                 ShowPlayerDialog(playerid, dCrimeClasse, DIALOG_STYLE_LIST, "Empregos - Crime", "Assaltante - Level 40 [ 850R$ ]\nSequestrador - Level 60 [ 900R$ ]", "Selecionar", "Cancelar");
  1332.             }
  1333.             if(listitem == 4)
  1334.             {
  1335.                 Profissao[playerid] = 0;
  1336.                 DOF2_SetInt(sFile, "Profissao", 0);
  1337.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora está desempregado! ");
  1338.                 AtualizarLabel(playerid);
  1339.             }
  1340.         }
  1341.     }
  1342.     if(dialogid == dClasseAlta)
  1343.     {
  1344.         new sFile[40];
  1345.         format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1346.         if(response)
  1347.         {
  1348.             if(listitem == 0)
  1349.             {
  1350.                 AtualizarCores(playerid);
  1351.                 Profissao[playerid] = 9;
  1352.                 AtualizarLabel(playerid);
  1353.                 DOF2_SetInt(sFile, "Profissao", 9);
  1354.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Aposentado");
  1355.                 SetPlayerSkin(playerid, 261);
  1356.             }
  1357.             if(listitem == 1)
  1358.             {
  1359.                 AtualizarCores(playerid);
  1360.                 Profissao[playerid] = 10;
  1361.                 DOF2_SetInt(sFile, "Profissao", 10);
  1362.                 AtualizarLabel(playerid);
  1363.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial Militar");
  1364.                 SetPlayerSkin(playerid, 265);
  1365.             }
  1366.             if(listitem == 2)
  1367.             {
  1368.                 AtualizarCores(playerid);
  1369.                 Profissao[playerid] = 11;
  1370.                 DOF2_SetInt(sFile, "Profissao", 11);
  1371.                 AtualizarLabel(playerid);
  1372.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial Civil");
  1373.                 SetPlayerSkin(playerid, 266);
  1374.             }
  1375.             if(listitem == 3)
  1376.             {
  1377.                 AtualizarCores(playerid);
  1378.                 Profissao[playerid] = 12;
  1379.                 DOF2_SetInt(sFile, "Profissao", 12);
  1380.                 AtualizarLabel(playerid);
  1381.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial da Interpol");
  1382.                 SetPlayerSkin(playerid, 267);
  1383.             }
  1384.             if(listitem == 4)
  1385.             {
  1386.                 AtualizarCores(playerid);
  1387.                 Profissao[playerid] = 13;
  1388.                 DOF2_SetInt(sFile, "Profissao", 13);
  1389.                 AtualizarLabel(playerid);
  1390.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial Federal");
  1391.                 SetPlayerSkin(playerid, 280);
  1392.             }
  1393.             if(listitem == 5)
  1394.             {
  1395.                 AtualizarCores(playerid);
  1396.                 Profissao[playerid] = 14;
  1397.                 DOF2_SetInt(sFile, "Profissao", 14);
  1398.                 AtualizarLabel(playerid);
  1399.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial da FBI");
  1400.                 SetPlayerSkin(playerid, 286);
  1401.             }
  1402.             if(listitem == 6)
  1403.             {
  1404.                 AtualizarCores(playerid);
  1405.                 Profissao[playerid] = 15;
  1406.                 DOF2_SetInt(sFile, "Profissao", 15);
  1407.                 AtualizarLabel(playerid);
  1408.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial da SWAT");
  1409.                 SetPlayerSkin(playerid, 285);
  1410.             }
  1411.             if(listitem == 7)
  1412.             {
  1413.                 AtualizarCores(playerid);
  1414.                 Profissao[playerid] = 16;
  1415.                 DOF2_SetInt(sFile, "Profissao", 16);
  1416.                 AtualizarLabel(playerid);
  1417.                 SendClientMessage(playerid, Amarelo, "( Info ) Você agora trabalha como: Policial Rodoviário");
  1418.                 SetPlayerSkin(playerid, 284);
  1419.             }
  1420.         }
  1421.     }
  1422.     if(dialogid == dClasseMedia)
  1423.     {
  1424.         new sFile[40];
  1425.         format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1426.         if(response)
  1427.         {
  1428.             if(listitem == 0)
  1429.             {
  1430.                 AtualizarCores(playerid);
  1431.                 AtualizarLabel(playerid);
  1432.             }
  1433.             if(listitem == 1)
  1434.             {
  1435.                 AtualizarCores(playerid);
  1436.                 AtualizarLabel(playerid);
  1437.             }
  1438.             if(listitem == 2)
  1439.             {
  1440.                 AtualizarCores(playerid);
  1441.                 AtualizarLabel(playerid);
  1442.             }
  1443.             if(listitem == 3)
  1444.             {
  1445.                 AtualizarCores(playerid);
  1446.                 AtualizarLabel(playerid);
  1447.             }
  1448.             if(listitem == 4)
  1449.             {
  1450.                 AtualizarCores(playerid);
  1451.                 AtualizarLabel(playerid);
  1452.             }
  1453.         }
  1454.     }
  1455.     if(dialogid == dClasseBaixa)
  1456.     {
  1457.         new sFile[40];
  1458.         format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1459.         if(response)
  1460.         {
  1461.             if(listitem == 0)
  1462.             {
  1463.                 AtualizarCores(playerid);
  1464.                 AtualizarLabel(playerid);
  1465.             }
  1466.             if(listitem == 1)
  1467.             {
  1468.                 AtualizarCores(playerid);
  1469.                 AtualizarLabel(playerid);
  1470.             }
  1471.             if(listitem == 2)
  1472.             {
  1473.                 AtualizarCores(playerid);
  1474.                 AtualizarLabel(playerid);
  1475.             }
  1476.             if(listitem == 3)
  1477.             {
  1478.                 AtualizarCores(playerid);
  1479.                 AtualizarLabel(playerid);
  1480.             }
  1481.             if(listitem == 4)
  1482.             {
  1483.                 AtualizarCores(playerid);
  1484.                 AtualizarLabel(playerid);
  1485.             }
  1486.         }
  1487.     }
  1488.     if(dialogid == dCrimeClasse)
  1489.     {
  1490.         new sFile[40];
  1491.         format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(playerid));
  1492.         if(response)
  1493.         {
  1494.             if(listitem == 0)
  1495.             {
  1496.                 AtualizarCores(playerid);
  1497.                 AtualizarLabel(playerid);
  1498.             }
  1499.             if(listitem == 1)
  1500.             {
  1501.                 AtualizarCores(playerid);
  1502.                 AtualizarLabel(playerid);
  1503.             }
  1504.         }
  1505.     }
  1506.     if (dialogid == CLIMA) // Menu
  1507.     {
  1508.         if (response)
  1509.         {
  1510.             if (listitem == 0) // Clima
  1511.             {
  1512.                 ShowPlayerDialog(playerid, CLIMA + 1, DIALOG_STYLE_LIST, "Clima", "Ensolarado \nTemporal \nNublado \nCeu Azul \nTempestade de Areia \nEscuro \nQuente \nVoltar", "Selecionar", "Cancelar");
  1513.             }
  1514.             if (listitem == 1) // Hora
  1515.             {
  1516.                 ShowPlayerDialog(playerid, CLIMA + 2, DIALOG_STYLE_LIST, "Hora", "1:00 \n3:00 \n5:00 \n7:00 \n9:00 \n11:00 \n13:00 \n15:00 \n17:00 \n19:00 \n21:00 \n23:00 \nVoltar", "Selecionar", "Cancelar");
  1517.             }
  1518.         }
  1519.         return 1;
  1520.     }
  1521.     if (dialogid == CLIMA + 1) // Clima
  1522.     {
  1523.         if (response)
  1524.         {
  1525.             if (listitem == 0) // Ensolarado
  1526.             {
  1527.                 SetWeather(5);
  1528.             }
  1529.             if (listitem == 1) // Temporal
  1530.             {
  1531.                 SetWeather(8);
  1532.             }
  1533.             if (listitem == 2) // Nublado
  1534.             {
  1535.                 SetWeather(9);
  1536.             }
  1537.             if (listitem == 3) // Ceu Azul
  1538.             {
  1539.                 SetWeather(10);
  1540.             }
  1541.             if (listitem == 4) // Tempestade de Areia
  1542.             {
  1543.                 SetWeather(19);
  1544.             }
  1545.             if (listitem == 5) // Escuro
  1546.             {
  1547.                 SetWeather(45);
  1548.             }
  1549.             if (listitem == 6) // Quente
  1550.             {
  1551.                 SetWeather(11);
  1552.             }
  1553.             if (listitem == 7) // Voltar
  1554.             {
  1555.                 ShowPlayerDialog(playerid, CLIMA, DIALOG_STYLE_LIST, "Climas / Tempos", "Clima \nHora", "Selecionar", "Cancelar");
  1556.             }
  1557.         }
  1558.         return 1;
  1559.     }
  1560.     if (dialogid == CLIMA + 2) // Hora
  1561.     {
  1562.         if (response)
  1563.         {
  1564.             if (listitem == 0) //
  1565.             {
  1566.                 SetPlayerTime(playerid, 1, 0);
  1567.             }
  1568.             if (listitem == 1) //
  1569.             {
  1570.                 SetPlayerTime(playerid, 3, 0);
  1571.             }
  1572.             if (listitem == 2) //
  1573.             {
  1574.                 SetPlayerTime(playerid, 5, 0);
  1575.             }
  1576.             if (listitem == 3) //
  1577.             {
  1578.                 SetPlayerTime(playerid, 7, 0);
  1579.             }
  1580.             if (listitem == 4) //
  1581.             {
  1582.                 SetPlayerTime(playerid, 9, 0);
  1583.             }
  1584.             if (listitem == 5) //
  1585.             {
  1586.                 SetPlayerTime(playerid, 11, 0);
  1587.             }
  1588.             if (listitem == 6) //
  1589.             {
  1590.                 SetPlayerTime(playerid, 13, 0);
  1591.             }
  1592.             if (listitem == 7) //
  1593.             {
  1594.                 SetPlayerTime(playerid, 15, 0);
  1595.             }
  1596.             if (listitem == 8) //
  1597.             {
  1598.                 SetPlayerTime(playerid, 17, 0);
  1599.             }
  1600.             if (listitem == 9) //
  1601.             {
  1602.                 SetPlayerTime(playerid, 19, 0);
  1603.             }
  1604.             if (listitem == 10) //
  1605.             {
  1606.                 SetPlayerTime(playerid, 21, 0);
  1607.             }
  1608.             if (listitem == 11) //
  1609.             {
  1610.                 SetPlayerTime(playerid, 23, 0);
  1611.             }
  1612.             if (listitem == 12) //
  1613.             {
  1614.                 ShowPlayerDialog(playerid, CLIMA, DIALOG_STYLE_LIST, "Climas / Tempos", "Clima \nHora", "Selecionar", "Cancelar");
  1615.             }
  1616.         }
  1617.         return 1;
  1618.     }
  1619.     if(dialogid == DIALOGID2)
  1620.     {
  1621.         if(response)
  1622.         {
  1623.             new dinheiro = strval(inputtext);
  1624.             if(!DOF2_FileExists(banco)) return SendClientMessage(playerid, Vermelho, "( Info ) Você ainda não tem uma conta bancária.");
  1625.             if(!LogadoB[playerid]) return SendClientMessage(playerid, Vermelho, "( Info ) Você precisa logar em sua conta bancária.");
  1626.             if(GetPlayerMoney(playerid) < dinheiro || dinheiro <= 0) return SendClientMessage(playerid, Vermelho, "( Info ) Quantia Inválida.");
  1627.             if(dinheiro > 10000000) return SendClientMessage(playerid, Vermelho, "( Info ) Você só pode depositar no máximo até 10 milhões!");
  1628.             GivePlayerMoney(playerid, -dinheiro);
  1629.             new quantidade = DOF2_GetInt(banco, "Saldo");
  1630.             DOF2_SetInt(banco, "Saldo", quantidade + dinheiro);
  1631.             getdate(anox, mesx, diax);
  1632.             gettime(horax, minutox, segundox);
  1633.             new saldo = DOF2_GetInt(banco, "Saldo");
  1634.             format(extrato, sizeof(extrato), "Conta Bancária\n -- Extrato Bancário --\nNome do Usuário: %s\nSaldo Atual: %dR$\nhorax: %d:%d:%d\nData: %d/%d/%d", nome(playerid), saldo, horax, minutox, segundox, diax, mesx, anox);
  1635.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Banco - 24/7", extrato, "Fechar", "");
  1636.         }
  1637.     }
  1638.     if(dialogid == DIALOGID3)
  1639.     {
  1640.         if(response)
  1641.         {
  1642.             new dinheiro = strval(inputtext);
  1643.             if(!DOF2_FileExists(banco)) return SendClientMessage(playerid, Vermelho, "( Info ) Você ainda não tem uma conta bancária.");
  1644.             if(!LogadoB[playerid]) return SendClientMessage(playerid, Vermelho, "( Info ) Você precisa logar em sua conta bancária.");
  1645.             if(strfind(inputtext, "-", true) != -1) return SendClientMessage(playerid, Vermelho ,"( Info ) Valor invalido.");
  1646.             new saldo = DOF2_GetInt(banco, "Saldo");
  1647.             if(saldo < dinheiro || dinheiro <= 0) return SendClientMessage(playerid, Vermelho, "( Info ) Quantia Inválida.");
  1648.             GivePlayerMoney(playerid, dinheiro);
  1649.             new quantidade = DOF2_GetInt(banco, "Saldo");
  1650.             DOF2_SetInt(banco, "Saldo", quantidade - dinheiro);
  1651.             getdate(anox, mesx, diax);
  1652.             gettime(horax, minutox, segundox);
  1653.             format(extrato, sizeof(extrato), "Conta Bancária\n -- Extrato Bancário --\nNome do Usuário: %s\nSaldo Atual: %dR$\nhorax: %d:%d:%d\nData: %d/%d/%d", nome(playerid), quantidade, horax, minutox, segundox, diax, mesx, anox);
  1654.             DOF2_SaveFile();
  1655.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Banco - 24/7", extrato, "Fechar", "");
  1656.         }
  1657.     }
  1658.     if(dialogid == DIALOGID5)
  1659.     {
  1660.         if(response)
  1661.         {
  1662.             getdate(anox, mesx, diax);
  1663.             gettime(horax, minutox, segundox);
  1664.             new saldo = DOF2_GetInt(banco, "Saldo");
  1665.             format(extrato, sizeof(extrato), "Conta Bancária\n -- Extrato Bancário --\nNome do Usuário: %s\nSaldo Atual: %dR$\nhorax: %d:%d:%d\nData: %d/%d/%d", nome(playerid), saldo, horax, minutox, segundox, diax, mesx, anox);
  1666.             ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Banco - 24/7", extrato, "Fechar", "");
  1667.         }
  1668.         else
  1669.         {
  1670.             format(banco, sizeof(banco), "Conta Bancária\n -- Transação Bancária --\n\nSeu Usuário: %s\n\nQual transação você deseja realizar:", nome(playerid));
  1671.             ShowPlayerDialog(playerid, DIALOGID6, DIALOG_STYLE_MSGBOX, "Banco - 24/7", banco, "Depositar", "Sacar");
  1672.         }
  1673.     }
  1674.     if(dialogid == DIALOGID6)
  1675.     {
  1676.         if(response)
  1677.         {
  1678.             format(banco, sizeof(banco), "Conta Bancária\n -- Deposito Bancário --\n\nSeu Usuário: %s\n\nInsira a quantia que deseja depositar:", nome(playerid));
  1679.             ShowPlayerDialog(playerid, DIALOGID2, DIALOG_STYLE_INPUT, "Banco - 24/7", banco, "Depositar", "Cancelar");
  1680.         }
  1681.         else
  1682.         {
  1683.             format(banco, sizeof(banco), "Conta Bancária\n -- Saque Bancário --\n\nSeu Usuário: %s\n\nInsira a quantia que deseja sacar:", nome(playerid));
  1684.             ShowPlayerDialog(playerid, DIALOGID3, DIALOG_STYLE_INPUT, "Banco - 24/7", banco, "Sacar", "Cancelar");
  1685.         }
  1686.     }
  1687.     if(dialogid == DIALOGID4)
  1688.     {
  1689.         if(response)
  1690.         {
  1691.             if(strlen(inputtext))
  1692.             {
  1693.                 DOF2_CreateFile(banco);
  1694.                 DOF2_SetString(banco, "Senha", inputtext);
  1695.                 DOF2_SetInt(banco, "Saldo", 0);
  1696.                 format(banco, sizeof(banco), "( Info ) Sua conta bancária foi criada com sucesso! - Senha : %s", inputtext);
  1697.                 SendClientMessage(playerid, -1, banco);
  1698.                 PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1699.                 LogadoB[playerid] = true;
  1700.                 DOF2_SaveFile();
  1701.             }
  1702.             else
  1703.             {
  1704.                 format(banco, sizeof(banco), "Não deixe o campo Em Branco!\n\nSeu Usuário: %s\n\nInsira uma senha para prosseguir:", nome(playerid));
  1705.                 ShowPlayerDialog(playerid, DIALOGV, DIALOG_STYLE_INPUT, "Banco - 24/7", banco, "Criar", "Cancelar");
  1706.             }
  1707.         }
  1708.     }
  1709.     if(dialogid == DIALOGID)
  1710.     {
  1711.         if(response)
  1712.         {
  1713.             if(strlen(inputtext))
  1714.             {
  1715.                 new acesso[150];
  1716.                 acesso = DOF2_GetString(banco, "Senha");
  1717.                 if(strcmp(inputtext, acesso, true) == 0)
  1718.                 {
  1719.                     SendClientMessage(playerid, -1, "( Info ) Sua conta bancária foi carregada com sucesso!");
  1720.                     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  1721.                     LogadoB[playerid] = true;
  1722.                     if(SenhaB[playerid] == true)
  1723.                     {
  1724.                         format(banco, sizeof(banco), "Seu Usuário: %s\n\nInsira sua nova senha bancária:", nome(playerid));
  1725.                         ShowPlayerDialog(playerid, DIALOGID1, DIALOG_STYLE_INPUT, "Conta", banco, "Confirmar", "Cancelar");
  1726.                         SenhaB[playerid] = false;
  1727.                     }
  1728.                 }
  1729.                 else
  1730.                 {
  1731.                     format(banco, sizeof(banco), "Senha Incorreta!\n\nSeu Usuário: %s\n\nInsira sua senha bancária:", nome(playerid));
  1732.                     ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_INPUT, "Banco - 24/7", banco, "Entrar", "Cancelar");
  1733.                     SendClientMessage(playerid, Vermelho, "( Info ) Senha Incorreta.");
  1734.                 }
  1735.             }
  1736.             else
  1737.             {
  1738.                 format(banco, sizeof(banco), "Não deixe o campo em branco!\n\nSeu Usuário: %s\n\nInsira sua senha para prosseguir:", nome(playerid));
  1739.                 ShowPlayerDialog(playerid, DIALOGV, DIALOG_STYLE_INPUT, "Banco - 24/7", banco, "Entrar", "Cancelar");
  1740.             }
  1741.         }
  1742.     }
  1743.     if(dialogid == DIALOGID1)
  1744.     {
  1745.         if(response)
  1746.         {
  1747.             format(banco, sizeof(banco), "* %s Sua senha bancária foi alterada para : '%s' Guarde-a.", nome(playerid), inputtext);
  1748.             SendClientMessage(playerid, Vermelho, banco);
  1749.         }
  1750.     }
  1751.     /*if(dialogid == mudarsenha)
  1752.     {
  1753.         if(response == 1)
  1754.         {
  1755.             format(dFile, sizeof(dFile), PASTA_CONTAS, GetName(playerid));
  1756.             DOF2_SetString(dFile, "Senha", inputtext);
  1757.             SendClientMessage(playerid, Verde, "( Info ) Senha Alterada com sucesso!");
  1758.         }
  1759.     }*/
  1760.     return 1;
  1761. }
  1762.  
  1763. public MandarRMensagens()
  1764. {
  1765.     new string[256];
  1766.     new random1 = random(sizeof(MensagensRandom));
  1767.     new random2 = random(sizeof(CoresMRandom));
  1768.     format(string, sizeof(string), "%s", MensagensRandom[random1]);
  1769.     SendClientMessageToAll(CoresMRandom[random2],string);
  1770. }
  1771.  
  1772. public OnPlayerEnterRaceCheckpoint(playerid)
  1773. {
  1774.     return 1;
  1775. }
  1776.  
  1777. public OnPlayerStateChange(playerid, newstate, oldstate)
  1778. {
  1779.     new model = GetVehicleModel(GetPlayerVehicleID(playerid));
  1780.     new StringST[60];
  1781.     format(StringST, sizeof(StringST), PASTA_CONTAS, GetName(playerid));
  1782.     //Camera 1º Pessoa
  1783.     /*if(newstate == PLAYER_STATE_DRIVER && PrimeiraPessoa[playerid] == 1)
  1784.     {
  1785.         SetPVarInt(playerid, #Object, CreateObject(18688, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
  1786.         AttachObjectToPlayer(GetPVarInt(playerid, #Object), playerid, 0.0190, 0.1059, 0.5557, 88.0, 0.0, 87.0);//playerid, 0.0194, 0.1061, 0.5559, 90.0, 0.0, 90.0);
  1787.         AttachCameraToObject(playerid, GetPVarInt(playerid, #Object));
  1788.     } else if \/ */
  1789.     if(oldstate == PLAYER_STATE_DRIVER && PrimeiraPessoa[playerid] == 1) {
  1790.         DestroyObject(GetPVarInt(playerid, #Object));
  1791.         DeletePVar(playerid, #Object);
  1792.         PrimeiraPessoa[playerid] = 0;
  1793.         SetCameraBehindPlayer(playerid);
  1794.     }
  1795.     if(model == 596 || model == 427 || model == 497 || model == 523)
  1796.     {
  1797.         if(IsAdmin[playerid] == 1 || DOF2_GetInt(StringST,"Profissao") == 10 || DOF2_GetInt(StringST,"Profissao") == 11 || DOF2_GetInt(StringST,"Profissao") == 12 || DOF2_GetInt(StringST,"Profissao") == 13 || DOF2_GetInt(StringST,"Profissao") == 14 || DOF2_GetInt(StringST,"Profissao") == 15)
  1798.         {
  1799.         //
  1800.         }
  1801.         else
  1802.         {
  1803.             SendClientMessage(playerid, -1,"( Info ) Você não pode dirigir um carro de polícia!");
  1804.             RemovePlayerFromVehicle(playerid);
  1805.         }
  1806.     }
  1807.     for(new i; i < 200; i++)
  1808.     {
  1809.         new vehicleid = GetPlayerVehicleID(playerid);
  1810.         if(GetVehicleModel(vehicleid) == CarrosH[i][0])
  1811.         {
  1812.             if (DOF2_GetInt(StringST, "HTerrestre") == 0)
  1813.             {
  1814.                 SendClientMessage(playerid, Vermelho, "( Info ) Você está conduzindo um veículo sem habilitação, você pode ser multado! Cuidado com os Policiais!");
  1815.             }
  1816.         }
  1817.         if(GetVehicleModel(vehicleid) == Airplanes[i][0])
  1818.         {
  1819.             if (DOF2_GetInt(StringST, "HAerea") == 0)
  1820.             {
  1821.                 SendClientMessage(playerid, Vermelho, "( Info ) Você está conduzindo um veículo sem habilitação, você pode ser multado! Cuidado com os Policiais!");
  1822.             }
  1823.         }
  1824.         if(GetVehicleModel(vehicleid) == Boats[i][0])
  1825.         {
  1826.             if (DOF2_GetInt(StringST, "HNautica") == 0)
  1827.             {
  1828.                 SendClientMessage(playerid, Vermelho, "( Info ) Você está conduzindo um veículo sem habilitação, você pode ser multado! Cuidado com os Policiais!");
  1829.             }
  1830.         }
  1831.     }
  1832.     if (Gasolina[playerid] < 0)
  1833.     {
  1834.         SendClientMessage(playerid, 0x972FFFAA, "( Info ) Você não pode mover o carro sem gasolina.");
  1835.         RemovePlayerFromVehicle(playerid);
  1836.         TogglePlayerControllable(playerid, 1);
  1837.         return 1;
  1838.     }
  1839.     return 1;
  1840. }
  1841.  
  1842. forward IsNumeric(const string[]);
  1843. public IsNumeric(const string[])
  1844. {
  1845.     for (new i = 0, j = strlen(string); i < j; i++) if (string[i] > '9' || string[i] < '0') return 0;
  1846.     return 1;
  1847. }
  1848.  
  1849. stock GetPlayer2DZone(playerid, zoneada[], len)
  1850. {
  1851.     new Float: x;
  1852.     new Float: y;
  1853.     new Float: z;
  1854.     GetPlayerPos(playerid, x, y, z);
  1855.     for (new i = 0; i != sizeof(gSAZones); i++)
  1856.     {
  1857.         if (x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
  1858.         {
  1859.             return format(zoneada, len, gSAZones[i][SAZONE_NAME], 0);
  1860.         }
  1861.     }
  1862.     return 0;
  1863. }
  1864.  
  1865. public OnPlayerDeath(playerid, killerid, reason)
  1866. {
  1867.     SendDeathMessage(killerid, playerid, reason);
  1868.     if(IsPlayerInPSkate(playerid))
  1869.     {
  1870.         Dominando[playerid] = 0;
  1871.         AlguemDominando = 0;
  1872.         ProvocouSkate[playerid] = 0;
  1873.     }
  1874.     return 1;
  1875. }
  1876.  
  1877. public CombustivelVeiculos()
  1878. {
  1879.     for(new i = 0; i < MAX_PLAYERS; i++)
  1880.     {
  1881.         new mFile[32] , iState = GetPlayerVehicleSeat(i);
  1882.         format(mFile, sizeof(mFile), PASTA_CONTAS, GetName(i));
  1883.         vidc = GetPlayerVehicleID(i);
  1884.         modeloc = GetVehicleModel(vidc);
  1885.         if(!(modeloc == 509 || modeloc == 510 || modeloc == 481))
  1886.         {
  1887.             GetPlayerState(i);
  1888.             if(IsPlayerInAnyVehicle(i)) continue;
  1889.             if(iState == 0) return DOF2_SetInt(mFile, "Gasolina", DOF2_GetInt(mFile, "Gasolina") - 1);
  1890.             if(Gasolina[i] < 2)
  1891.             {
  1892.                 if(IsPlayerInAnyVehicle(i)) return SendClientMessage(i, Vermelho, "( Info ) O Seu Tanque de Combustível está vazio, vá até o posto mais próximo para re-abastecer seu veículo.");
  1893.                 RemovePlayerFromVehicle(i);
  1894.             }
  1895.         }
  1896.     }
  1897.     return 1;
  1898. }
  1899.  
  1900. public Velocimetro()
  1901. {
  1902.     for(new i = 0; i < MAX_VEHICLES; i++)
  1903.     {
  1904.         if(IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
  1905.         {
  1906.             new Float: X,Float: Y,Float: Z,Float: Speed , nocarro[30],velocidade
  1907.             , box1[40], box2[40], box3[40];
  1908.             GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
  1909.             Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 230.0);
  1910.             velocidade = floatround(Speed, floatround_floor);
  1911.             new PlayerVehicleModelID = GetVehicleModel(GetPlayerVehicleID(i));
  1912.             PlayerVehicleModelID -= 400;
  1913.             format(nocarro, 30, NomeCarro[PlayerVehicleModelID]);
  1914.             //format(string, 256, "~y~~h~Velocidade~w~: %i~b~~h~ KM/H ~n~~y~~h~Modelo~w~: %s ~n~~y~~h~Combustivel~w~: %d~b~~h~ Litros", velocidade, nocarro, Gasolina[i]);//DOF2_GetInt(arq, "Gasolina"));
  1915.             format(box1 , 256, "~n~~g~%i ~w~KM/H", velocidade);
  1916.             TextDrawSetString(VeloText2[i], box1);
  1917.             format(box2 , 256, "~n~~g~%d ~w~Litros", Gasolina[i]);
  1918.             TextDrawSetString(VeloText3[i], box2);
  1919.             format(box3 , 256, "~n~%s", nocarro);
  1920.             TextDrawSetString(VeloText5[i], box3);
  1921.             TextDrawShowForPlayer(i, VeloText0[i]);
  1922.             TextDrawShowForPlayer(i, VeloText1[i]);
  1923.             TextDrawShowForPlayer(i, VeloText2[i]);
  1924.             TextDrawShowForPlayer(i, VeloText3[i]);
  1925.             TextDrawShowForPlayer(i, VeloText5[i]);
  1926.         }
  1927.         else if(!IsPlayerInAnyVehicle(i))
  1928.         {
  1929.             TextDrawHideForPlayer(i, VeloText0[i]);
  1930.             TextDrawHideForPlayer(i, VeloText1[i]);
  1931.             TextDrawHideForPlayer(i, VeloText2[i]);
  1932.             TextDrawHideForPlayer(i, VeloText3[i]);
  1933.             TextDrawHideForPlayer(i, VeloText5[i]);
  1934.         }
  1935.     }
  1936.     return 1;
  1937. }
  1938.  
  1939. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1940. {
  1941.     if (IsAdmin[playerid] == 1)
  1942.     {
  1943.         if (IsPlayerInAnyVehicle(playerid))
  1944.         {
  1945.             new var0 = GetPlayerVehicleID(playerid);
  1946.             if (fNitro(var0) && (oldkeys & 1 || oldkeys & 4))
  1947.             {
  1948.                 RemoveVehicleComponent(var0, 1010);
  1949.                 AddVehicleComponent(var0, 1010);
  1950.             }
  1951.         }
  1952.     }
  1953.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1554.5309, -1675.6157, 16.1953)) //Entrada DP
  1954.     {
  1955.         SetPlayerPos(playerid, 246.1938, 65.1244, 1003.6406);
  1956.         SetPlayerInterior(playerid, 6);
  1957.     }
  1958.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 246.9260,63.1708,1003.6406)) // Saida DP
  1959.     {
  1960.         SetPlayerPos(playerid, 1553.2592, -1675.4808, 16.1953);
  1961.         SetPlayerInterior(playerid, 0);
  1962.     }
  1963.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1352.3068, -1758.4059, 13.5078)) //Entrada Utilitarios
  1964.     {
  1965.         SetPlayerPos(playerid, -25.7294, -185.3465, 1003.5469);
  1966.         SetPlayerInterior(playerid, 17);
  1967.     }
  1968.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , -26.0753, -187.4198, 1003.5469)) //Saida Utilitarios
  1969.     {
  1970.         SetPlayerPos(playerid, 1351.9530, -1755.2668, 13.3550);
  1971.         SetPlayerInterior(playerid, 0);
  1972.     }
  1973.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1478.6147, -1771.7782, 18.7958)) //Entrada Prefeitura
  1974.     {
  1975.         SetPlayerPos(playerid, 385.5677, 174.1882, 1008.3828);
  1976.         SetPlayerInterior(playerid, 3);
  1977.     }
  1978.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 389.5828, 173.8764, 1008.3828)) //Saida Prefeitura
  1979.     {
  1980.         SetPlayerPos(playerid, 1478.6147, -1771.7782, 18.7958);
  1981.         SetPlayerInterior(playerid, 0);
  1982.     }
  1983.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1809.7018, -1166.7360, 24.2266)) //Saida Auto Escola
  1984.     {
  1985.         SetPlayerPos(playerid, -2029.2554, -105.0380, 1035.1719);
  1986.         SetPlayerInterior(playerid, 3);
  1987.     }
  1988.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , -2026.9381, -104.0587, 1035.1719)) //Saida Auto Escola
  1989.     {
  1990.         SetPlayerPos(playerid, 1809.0400, -1171.0183, 23.8281);
  1991.         SetPlayerInterior(playerid, 0);
  1992.     }
  1993.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 366.5288, 158.7328, 1008.3828)) //Entrada Central
  1994.     {
  1995.         SetPlayerPos(playerid, 1494.7965, 1306.7031, 1093.2943);
  1996.         SetPlayerInterior(playerid, 3);
  1997.     }
  1998.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1494.3634, 1304.1212, 1093.2891)) //Saida Central
  1999.     {
  2000.         SetPlayerPos(playerid, 366.4662, 161.0530, 1008.3828);
  2001.         SetPlayerInterior(playerid, 3);
  2002.     }
  2003.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1462.3181, -1010.7484, 26.8438)) // Entrada Banco
  2004.     {
  2005.         //SetPlayerPos(playerid, 1417.3867, -989.1342, 1639.7843);
  2006.         SetPlayerPos(playerid, 1417.5822, -988.7551, 1640.0978);
  2007.     }
  2008.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1415.1571, -988.8884, 1639.7843)) // Saida Banco
  2009.     {
  2010.         SetPlayerPos(playerid, 1462.4246, -1013.8778, 26.7837);
  2011.     }
  2012.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 1631.9540,-1172.4180,24.0843)) // Entrada Centro Licenças
  2013.     {
  2014.         SetPlayerPos(playerid, 832.1034, 7.4615, 1004.1797);
  2015.         SetPlayerInterior(playerid, 3);
  2016.     }
  2017.     if(newkeys == KEY_SECONDARY_ATTACK && PlayerToPoint(2.0, playerid , 834.2897, 7.2396, 1004.1870)) // Saida Centro Licenças
  2018.     {
  2019.         SetPlayerPos(playerid, 1632.2113,-1170.3450,24.0781);
  2020.         SetPlayerInterior(playerid, 0);
  2021.     }
  2022.     return 1;
  2023. }
  2024.  
  2025. AntiWH()
  2026. {
  2027.     for (new i = 0; i < MAX_PLAYERS; i++)
  2028.     {
  2029.         new string[135+24];
  2030.         if (!IsPlayerAdmin(i) && IsAdmin[i] == 0)
  2031.         {
  2032.             if (GetPlayerWeapon(i) == 37)
  2033.             {
  2034.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Flame Thrower)", nome(i));
  2035.                 SendClientMessage(i, -1, string);
  2036.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2037.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2038.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2039.                 Ban(i);
  2040.                 return 1;
  2041.             }
  2042.             else if (GetPlayerWeapon(i) == 36)
  2043.             {
  2044.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Rocket Launcher)", nome(i));
  2045.                 SendClientMessage(i, -1, string);
  2046.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2047.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2048.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2049.                 Ban(i);
  2050.                 return 1;
  2051.             }
  2052.             else if (GetPlayerWeapon(i) == 35)
  2053.             {
  2054.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Heat Seeking RPG)", nome(i));
  2055.                 SendClientMessage(i, -1, string);
  2056.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2057.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2058.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2059.                 Ban(i);
  2060.                 return 1;
  2061.             }
  2062.             else if (GetPlayerWeapon(i) == 45)
  2063.             {
  2064.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Thermal Goggles)", nome(i));
  2065.                 SendClientMessage(i, -1, string);
  2066.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2067.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2068.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2069.                 Ban(i);
  2070.                 return 1;
  2071.             }
  2072.             else if (GetPlayerWeapon(i) == 40)
  2073.             {
  2074.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Detonador)", nome(i));
  2075.                 SendClientMessage(i, -1, string);
  2076.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2077.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2078.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2079.                 Ban(i);
  2080.                 return 1;
  2081.             }
  2082.             else if (GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PJetPack[i] == 0)
  2083.             {
  2084.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Jetpack)", nome(i));
  2085.                 SendClientMessage(i, -1, string);
  2086.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2087.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2088.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2089.                 Ban(i);
  2090.                 return 1;
  2091.             }
  2092.             else if (GetPlayerWeapon(i) == 38)
  2093.             {
  2094.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Minigun)", nome(i));
  2095.                 SendClientMessage(i, -1, string);
  2096.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2097.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2098.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2099.                 Ban(i);
  2100.                 return 1;
  2101.             }
  2102.             else if (GetPlayerWeapon(i) == 39)
  2103.             {
  2104.                 format(string, sizeof(string), "{FF0000}[ {FFFAFA}ANTI - WH {FF0000}] {FFFAFA}%s {FF0000}foi banido automaticamente pelo sistema. {FFFAFA}(Motivo: Sachel Charges)", nome(i));
  2105.                 SendClientMessage(i, -1, string);
  2106.                 SendClientMessage(i, Vermelho, "( Info ) Você foi banido do servidor!");
  2107.                 GameTextForPlayer(i, "~r~banido~w~!", 2500, 3);
  2108.                 SetPlayerPos(i, 831.9581, -1102.1510, 24.2969);
  2109.                 Ban(i);
  2110.                 return 1;
  2111.             }
  2112.         }
  2113.     }
  2114.     return 0;
  2115. }
  2116.  
  2117.  
  2118. fNitro(n)
  2119. {
  2120.     GetVehicleModel(n);
  2121.     random(sizeof(n));
  2122.     return n;
  2123. }
  2124.  
  2125. public Taxi()
  2126. {
  2127.     for (new i = 0; i < MAX_PLAYERS; i++)
  2128.     {
  2129.         if (Taximetro[i][0] == 1)
  2130.         {
  2131.             if (GetPlayerGrana(i) > PrecoCorrida[i] + 3)
  2132.             {
  2133.                 new string[256];
  2134.                 PrecoCorrida[i] = PrecoCorrida[i] + 3;
  2135.                 format(string, sizeof(string), "( Taximetro ) O taxímetro cobra: $%d", PrecoCorrida[i]);
  2136.                 SendClientMessage(i, 0xFFFF00AA, string);
  2137.                 SendClientMessage(Taximetro[i][1], Verde, string);
  2138.             }
  2139.             if (GetPlayerGrana(i) < PrecoCorrida[i] + 3)
  2140.             {
  2141.                 SendClientMessage(i, Vermelho, "( Taximetro ) Você não tem mais dinheiro para o taxi,e foi expulso do veiculo.");
  2142.                 SendClientMessage(Taximetro[i][1], Vermelho, "( Info ) Seu passageiro ficou sem dinheiro e por isso foi expulso do taxi.");
  2143.                 GivePlayerGrana(i, 0 - PrecoCorrida[i]);
  2144.                 GivePlayerGrana(Taximetro[i][1], PrecoCorrida[i]);
  2145.                 RemovePlayerFromVehicle(i);
  2146.                 PrecoCorrida[i] = 0;
  2147.                 Taximetro[i][1] = 0;
  2148.             }
  2149.         }
  2150.     }
  2151. }
  2152.  
  2153. public BanLog(string[])
  2154. {
  2155.     new entry[256];
  2156.     format(entry, sizeof(entry), "%s\r\n", string);
  2157.     new File: hFile;
  2158.     hFile = fopen("ban.log", io_append);
  2159.     fwrite(hFile, entry);
  2160.     fclose(hFile);
  2161. }
  2162.  
  2163. public LevelPublic()
  2164. {
  2165.     for (new i = 0; i < MAX_PLAYERS; i++)
  2166.     {
  2167.         if (IsPlayerConnected(i))
  2168.         {
  2169.             new sFile[256];
  2170.             format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(i));
  2171.             if (AFK[i] == 0)
  2172.             {
  2173.                 DOF2_SetInt(sFile, "TempoLevel", DOF2_GetInt(sFile, "TempoLevel") + 1);
  2174.             }
  2175.             else if (TempoLevel[i] > 7)
  2176.             {
  2177.                 DOF2_SetInt(sFile, "Experiencia", DOF2_GetInt(sFile, "Experiencia") + 1);
  2178.                 format(sFile, sizeof(sFile), "( Info - UP ) Você ganhou +1 ponto de experiência. (%d/5)", DOF2_GetInt(sFile, "Experiencia"));
  2179.                 PlayerPlaySound(i, 1057, 0, 0, 0);
  2180.                 SendClientMessage(i, 0x80FFFFAA, sFile);
  2181.                 DOF2_SetInt(dFile, "TempoLevel", 0);
  2182.                 Experiencia[i]++;
  2183.                 TempoLevel[i] = 0;
  2184.                 DOF2_SetInt(sFile, "TempoLevel", TempoLevel[i]);
  2185.             }
  2186.             else if (Experiencia[i] >= 5)
  2187.             {
  2188.                 Level[i]++;
  2189.                 DOF2_SetInt(sFile, "Level", Level[i]);
  2190.                 format(sFile, sizeof(sFile), "( Info - UP ) Você juntou 5 de Experiencia e ganhou mais um 'Level', Um Total de : '%d' Leveis ", Level[i]);
  2191.                 SendClientMessage(i, 0x80FFFFAA, sFile);
  2192.                 PlayerPlaySound(i, 1057, 0, 0, 0);
  2193.                 Experiencia[i] = 0;
  2194.                 DOF2_SetInt(sFile, "Experiencia", Experiencia[i]);
  2195.             }
  2196.             else if(AFK[i] == 1)
  2197.             {
  2198.                 SendClientMessage(i, Vermelho, "( Info - UP ) Você está proibido de passar de nível pois está no modo ausente!");
  2199.             }
  2200.         }
  2201.     }
  2202. }
  2203.  
  2204.  
  2205. forward TempoAFK();
  2206. public TempoAFK()
  2207. {
  2208.     for (new i = 0; i < MAX_PLAYERS; i++)
  2209.     {
  2210.         if (IsPlayerConnected(i))
  2211.         {
  2212.             //
  2213.             GetPlayerPos(i, PlayerCurrentPos[0], PlayerCurrentPos[1], PlayerCurrentPos[2]);
  2214.  
  2215.             if (!floatcmp(PlayerCurrentPos[0], PlayerLastPos[i][LastX]) && !floatcmp(PlayerCurrentPos[1], PlayerLastPos[i][LastY]))
  2216.             {
  2217.                 PlayerAfkTicks[i]++;
  2218.             }
  2219.             else
  2220.             {
  2221.                 PlayerAfkTicks[i] = 0;
  2222.             }
  2223.             PlayerLastPos[i][LastX] = PlayerCurrentPos[0];
  2224.             PlayerLastPos[i][LastY] = PlayerCurrentPos[1];
  2225.             PlayerLastPos[i][LastZ] = PlayerCurrentPos[2];
  2226.  
  2227.             if (PlayerAfkTicks[i] == MAX_IDLE_TIME * 60)
  2228.             {
  2229.                 AFK[i] = 1;
  2230.                 SendClientMessage(i, Vermelho, "( Info ) Você está proibido de upar pois está no modo ausente.");
  2231.                 SetPlayerVirtualWorld(i, 1);
  2232.                 SetCameraBehindPlayer(i);
  2233.                 TogglePlayerControllable(i, 0);
  2234.                 TextDrawShowForPlayer(i, TextAus1);
  2235.                 TextDrawShowForPlayer(i, TextAus2);
  2236.             }
  2237.         }
  2238.     }
  2239. }
  2240.  
  2241. stock SaveLastPosition(vehicleid)
  2242. {
  2243.     new Float:SaveCoord_X, Float:SaveCoord_Y, Float:SaveCoord_Z;
  2244.     GetVehiclePos(vehicleid, SaveCoord_X, SaveCoord_Y, SaveCoord_Z);
  2245.     sVehicle_X[vehicleid]=SaveCoord_X;
  2246.     sVehicle_Y[vehicleid]=SaveCoord_Y;
  2247.     sVehicle_Z[vehicleid]=SaveCoord_Z;
  2248. }
  2249.  
  2250.  
  2251. stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  2252. {
  2253.     new Float:oldposx, Float:oldposy, Float:oldposz;
  2254.     new Float:tempposx, Float:tempposy, Float:tempposz;
  2255.     GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  2256.     tempposx = (oldposx -x);
  2257.     tempposy = (oldposy -y);
  2258.     tempposz = (oldposz -z);
  2259.     if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  2260.     {
  2261.         return 1;
  2262.     }
  2263.     return 0;
  2264. }
  2265.  
  2266. stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
  2267. {
  2268.     new RetValue = 0;
  2269.     new Float:X,Float:Y,Float:Z;
  2270.     GetPlayerPos(playerid,X,Y,Z );
  2271.     if( X >= XMin && Y >= YMin && X < XMax && Y < YMax )
  2272.     {
  2273.         RetValue = 1;
  2274.     }
  2275.     return RetValue;
  2276. }
  2277.  
  2278. stock GetDistanceBetweenPlayers(playerid,playerid2)
  2279. {
  2280.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  2281.     new Float:tmpdis;
  2282.     GetPlayerPos(playerid,x1,y1,z1);
  2283.     GetPlayerPos(playerid2,x2,y2,z2);
  2284.     tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  2285.     return floatround(tmpdis);
  2286. }
  2287.  
  2288. stock GetPlayerArea(playerid)
  2289. {
  2290.     new str[130];
  2291.     format(str,sizeof(str),"%s",Zones[GetPlayerZone(playerid)][zone_name]);
  2292.     return str;
  2293. }
  2294.  
  2295. stock GetPlayerZone(playerid)
  2296. {
  2297.     new Float:x,Float:y,Float:z;
  2298.     GetPlayerPos(playerid,x,y,z);
  2299.     for(new i=0;i<sizeof(Zones);i++)
  2300.     {
  2301.         if(x > Zones[i][zone_minx] && y > Zones[i][zone_miny] && z > Zones[i][zone_minz] && x < Zones[i][zone_maxx] && y < Zones[i][zone_maxy] && z < Zones[i][zone_maxz])
  2302.         return i;
  2303.     }
  2304.     return false;
  2305. }
  2306.  
  2307. stock chrfind(needle, haystack[], start = 0)
  2308. {
  2309.     while(haystack[start])
  2310.     {
  2311.         if(haystack[start++] == needle)
  2312.         {
  2313.             return start-1;
  2314.         }
  2315.     }
  2316.     return -1;
  2317. }
  2318.  
  2319.  
  2320. stock GetName(playerid)
  2321. {
  2322.     new Name[24];
  2323.     GetPlayerName(playerid,Name,24);
  2324.     return Name;
  2325. }
  2326.  
  2327. stock GetSkinName(skinid)
  2328. {
  2329.     new returnt[64];
  2330.     switch(skinid)
  2331.     {
  2332.         case 0  : { format(returnt,sizeof(returnt),  "Carl CJ Johnson"); }
  2333.         case 1  : { format(returnt,sizeof(returnt),  "The Truth"); }
  2334.         case 2  : { format(returnt,sizeof(returnt),  "Maccer"); }
  2335.         case 3  : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2336.         case 4  : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2337.         case 5  : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2338.         case 6  : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2339.         case 7  : { format(returnt,sizeof(returnt),  "Taxi Driver/Train Driver"); }
  2340.         case 8  : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2341.         case 9  : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2342.         case 10 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2343.         case 11 : { format(returnt,sizeof(returnt),  "Casino Worker"); }
  2344.         case 12 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2345.         case 13 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2346.         case 14 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2347.         case 15 : { format(returnt,sizeof(returnt),  "RS Haul Owner"); }
  2348.         case 16 : { format(returnt,sizeof(returnt),  "Airport Ground Worker"); }
  2349.         case 17 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2350.         case 18 : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2351.         case 19 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2352.         case 20 : { format(returnt,sizeof(returnt),  "Madd Dogg's Manager"); }
  2353.         case 21 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2354.         case 22 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2355.         case 23 : { format(returnt,sizeof(returnt),  "BMXer"); }
  2356.         case 24 : { format(returnt,sizeof(returnt),  "Madd Dogg Bodyguard"); }
  2357.         case 25 : { format(returnt,sizeof(returnt),  "Madd Dogg Bodyguard"); }
  2358.         case 26 : { format(returnt,sizeof(returnt),  "Mountain Climber"); }
  2359.         case 27 : { format(returnt,sizeof(returnt),  "Builder"); }
  2360.         case 28 : { format(returnt,sizeof(returnt),  "Drug Dealer"); }
  2361.         case 29 : { format(returnt,sizeof(returnt),  "Drug Dealer"); }
  2362.         case 30 : { format(returnt,sizeof(returnt),  "Drug Dealer"); }
  2363.         case 31 : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2364.         case 32 : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2365.         case 33 : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2366.         case 34 : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2367.         case 35 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2368.         case 36 : { format(returnt,sizeof(returnt),  "Golfer"); }
  2369.         case 37 : { format(returnt,sizeof(returnt),  "Golfer"); }
  2370.         case 38 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2371.         case 39 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2372.         case 40 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2373.         case 41 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2374.         case 42 : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2375.         case 43 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2376.         case 44 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2377.         case 45 : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2378.         case 46 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2379.         case 47 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2380.         case 48 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2381.         case 49 : { format(returnt,sizeof(returnt),  "Snakehead (Da Nang)"); }
  2382.         case 50 : { format(returnt,sizeof(returnt),  "Mechanic"); }
  2383.         case 51 : { format(returnt,sizeof(returnt),  "Mountain Biker"); }
  2384.         case 52 : { format(returnt,sizeof(returnt),  "Mountain Biker"); }
  2385.         case 53 : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2386.         case 54 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2387.         case 55 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2388.         case 56 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2389.         case 57 : { format(returnt,sizeof(returnt),  "Feds"); }
  2390.         case 58 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2391.         case 59 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2392.         case 60 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2393.         case 61 : { format(returnt,sizeof(returnt),  "Pilot"); }
  2394.         case 62 : { format(returnt,sizeof(returnt),  "Colonel Fuhrberger"); }
  2395.         case 63 : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2396.         case 64 : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2397.         case 65 : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2398.         case 66 : { format(returnt,sizeof(returnt),  "Pool Player"); }
  2399.         case 67 : { format(returnt,sizeof(returnt),  "Pool Player"); }
  2400.         case 68 : { format(returnt,sizeof(returnt),  "Priest"); }
  2401.         case 69 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2402.         case 70 : { format(returnt,sizeof(returnt),  "Scientist"); }
  2403.         case 71 : { format(returnt,sizeof(returnt),  "Security Guard"); }
  2404.         case 72 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2405.         case 73 : { format(returnt,sizeof(returnt),  "Jethro"); }
  2406.         case 74 : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2407.         case 75 : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2408.         case 76 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2409.         case 77 : { format(returnt,sizeof(returnt),  "Homeless"); }
  2410.         case 78 : { format(returnt,sizeof(returnt),  "Homeless"); }
  2411.         case 79 : { format(returnt,sizeof(returnt),  "Homeless"); }
  2412.         case 80 : { format(returnt,sizeof(returnt),  "Boxer"); }
  2413.         case 81 : { format(returnt,sizeof(returnt),  "Boxer"); }
  2414.         case 82 : { format(returnt,sizeof(returnt),  "Elvis Wannabe"); }
  2415.         case 83 : { format(returnt,sizeof(returnt),  "Elvis Wannabe"); }
  2416.         case 84 : { format(returnt,sizeof(returnt),  "Elvis Wannabe"); }
  2417.         case 85 : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2418.         case 86 : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2419.         case 87 : { format(returnt,sizeof(returnt),  "Whore"); }
  2420.         case 88 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2421.         case 89 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2422.         case 90 : { format(returnt,sizeof(returnt),  "Whore"); }
  2423.         case 91 : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2424.         case 92 : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2425.         case 93 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2426.         case 94 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2427.         case 95 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2428.         case 96 : { format(returnt,sizeof(returnt),  "Jogger"); }
  2429.         case 97 : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2430.         case 98 : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2431.         case 99 : { format(returnt,sizeof(returnt),  "Skeelering"); }
  2432.         case 100    : { format(returnt,sizeof(returnt),  "Biker"); }
  2433.         case 101    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2434.         case 102    : { format(returnt,sizeof(returnt),  "Balla"); }
  2435.         case 103    : { format(returnt,sizeof(returnt),  "Balla"); }
  2436.         case 104    : { format(returnt,sizeof(returnt),  "Balla"); }
  2437.         case 105    : { format(returnt,sizeof(returnt),  "Grove Street Families"); }
  2438.         case 106    : { format(returnt,sizeof(returnt),  "Grove Street Families"); }
  2439.         case 107    : { format(returnt,sizeof(returnt),  "Grove Street Families"); }
  2440.         case 108    : { format(returnt,sizeof(returnt),  "Los Santos Vagos"); }
  2441.         case 109    : { format(returnt,sizeof(returnt),  "Los Santos Vagos"); }
  2442.         case 110    : { format(returnt,sizeof(returnt),  "Los Santos Vagos"); }
  2443.         case 111    : { format(returnt,sizeof(returnt),  "The Russian Mafia"); }
  2444.         case 112    : { format(returnt,sizeof(returnt),  "The Russian Mafia"); }
  2445.         case 113    : { format(returnt,sizeof(returnt),  "The Russian Mafia"); }
  2446.         case 114    : { format(returnt,sizeof(returnt),  "Varios Los Aztecas"); }
  2447.         case 115    : { format(returnt,sizeof(returnt),  "Varios Los Aztecas"); }
  2448.         case 116    : { format(returnt,sizeof(returnt),  "Varios Los Aztecas"); }
  2449.         case 117    : { format(returnt,sizeof(returnt),  "Traid"); }
  2450.         case 118    : { format(returnt,sizeof(returnt),  "Traid"); }
  2451.         case 119    : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2452.         case 120    : { format(returnt,sizeof(returnt),  "Traid"); }
  2453.         case 121    : { format(returnt,sizeof(returnt),  "Da Nang Boy"); }
  2454.         case 122    : { format(returnt,sizeof(returnt),  "Da Nang Boy"); }
  2455.         case 123    : { format(returnt,sizeof(returnt),  "Da Nang Boy"); }
  2456.         case 124    : { format(returnt,sizeof(returnt),  "The Mafia"); }
  2457.         case 125    : { format(returnt,sizeof(returnt),  "The Mafia"); }
  2458.         case 126    : { format(returnt,sizeof(returnt),  "The Mafia"); }
  2459.         case 127    : { format(returnt,sizeof(returnt),  "The Mafia"); }
  2460.         case 128    : { format(returnt,sizeof(returnt),  "Farm Inhabitant"); }
  2461.         case 129    : { format(returnt,sizeof(returnt),  "Farm Inhabitant"); }
  2462.         case 130    : { format(returnt,sizeof(returnt),  "Farm Inhabitant"); }
  2463.         case 131    : { format(returnt,sizeof(returnt),  "Farm Inhabitant"); }
  2464.         case 132    : { format(returnt,sizeof(returnt),  "Farm Inhabitant"); }
  2465.         case 133    : { format(returnt,sizeof(returnt),  "Farm Inhabitant"); }
  2466.         case 134    : { format(returnt,sizeof(returnt),  "Homeless"); }
  2467.         case 135    : { format(returnt,sizeof(returnt),  "Homeless"); }
  2468.         case 136    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2469.         case 137    : { format(returnt,sizeof(returnt),  "Homeless"); }
  2470.         case 138    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2471.         case 139    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2472.         case 140    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2473.         case 141    : { format(returnt,sizeof(returnt),  "Office Worker"); }
  2474.         case 142    : { format(returnt,sizeof(returnt),  "Taxi Driver"); }
  2475.         case 143    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2476.         case 144    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2477.         case 145    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2478.         case 146    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2479.         case 147    : { format(returnt,sizeof(returnt),  "Director"); }
  2480.         case 148    : { format(returnt,sizeof(returnt),  "Secretary"); }
  2481.         case 149    : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2482.         case 150    : { format(returnt,sizeof(returnt),  "Secretary"); }
  2483.         case 151    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2484.         case 152    : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2485.         case 153    : { format(returnt,sizeof(returnt),  "Coffee mam'"); }
  2486.         case 154    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2487.         case 155    : { format(returnt,sizeof(returnt),  "Well Stacked Pizza"); }
  2488.         case 156    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2489.         case 157    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2490.         case 158    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2491.         case 159    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2492.         case 160    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2493.         case 161    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2494.         case 162    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2495.         case 163    : { format(returnt,sizeof(returnt),  "Bouncer"); }
  2496.         case 164    : { format(returnt,sizeof(returnt),  "Bouncer"); }
  2497.         case 165    : { format(returnt,sizeof(returnt),  "MIB Agent"); }
  2498.         case 166    : { format(returnt,sizeof(returnt),  "MIB Agent"); }
  2499.         case 167    : { format(returnt,sizeof(returnt),  "Cluckin' Bell"); }
  2500.         case 168    : { format(returnt,sizeof(returnt),  "Food Vendor"); }
  2501.         case 169    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2502.         case 170    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2503.         case 171    : { format(returnt,sizeof(returnt),  "Casino Worker"); }
  2504.         case 172    : { format(returnt,sizeof(returnt),  "Hotel Services"); }
  2505.         case 173    : { format(returnt,sizeof(returnt),  "San Fierro Rifa"); }
  2506.         case 174    : { format(returnt,sizeof(returnt),  "San Fierro Rifa"); }
  2507.         case 175    : { format(returnt,sizeof(returnt),  "San Fierro Rifa"); }
  2508.         case 176    : { format(returnt,sizeof(returnt),  "Tatoo Shop"); }
  2509.         case 177    : { format(returnt,sizeof(returnt),  "Tatoo Shop"); }
  2510.         case 178    : { format(returnt,sizeof(returnt),  "Whore"); }
  2511.         case 179    : { format(returnt,sizeof(returnt),  "Ammu-Nation Salesmen"); }
  2512.         case 180    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2513.         case 181    : { format(returnt,sizeof(returnt),  "Punker"); }
  2514.         case 182    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2515.         case 183    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2516.         case 184    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2517.         case 185    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2518.         case 186    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2519.         case 187    : { format(returnt,sizeof(returnt),  "Buisnessman"); }
  2520.         case 188    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2521.         case 189    : { format(returnt,sizeof(returnt),  "Valet"); }
  2522.         case 190    : { format(returnt,sizeof(returnt),  "Barbara Schternvart"); }
  2523.         case 191    : { format(returnt,sizeof(returnt),  "Helena Wankstein"); }
  2524.         case 192    : { format(returnt,sizeof(returnt),  "Michelle Cannes"); }
  2525.         case 193    : { format(returnt,sizeof(returnt),  "Katie Zhan"); }
  2526.         case 194    : { format(returnt,sizeof(returnt),  "Millie Perkins"); }
  2527.         case 195    : { format(returnt,sizeof(returnt),  "Denise Robinson"); }
  2528.         case 196    : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2529.         case 197    : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2530.         case 198    : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2531.         case 199    : { format(returnt,sizeof(returnt),  "Farm-Town inhabitant"); }
  2532.         case 200    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2533.         case 201    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2534.         case 202    : { format(returnt,sizeof(returnt),  "Farmer"); }
  2535.         case 203    : { format(returnt,sizeof(returnt),  "Karate Teacher"); }
  2536.         case 204    : { format(returnt,sizeof(returnt),  "Karate Teacher"); }
  2537.         case 205    : { format(returnt,sizeof(returnt),  "Burger Shot Cashier"); }
  2538.         case 206    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2539.         case 207    : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2540.         case 208    : { format(returnt,sizeof(returnt),  "Well Stacked Pizza"); }
  2541.         case 209    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2542.         case 210    : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2543.         case 211    : { format(returnt,sizeof(returnt),  "Shop Staff"); }
  2544.         case 212    : { format(returnt,sizeof(returnt),  "Homeless"); }
  2545.         case 213    : { format(returnt,sizeof(returnt),  "Weird old man"); }
  2546.         case 214    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2547.         case 215    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2548.         case 216    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2549.         case 217    : { format(returnt,sizeof(returnt),  "Shop Staff"); }
  2550.         case 218    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2551.         case 219    : { format(returnt,sizeof(returnt),  "Secretary"); }
  2552.         case 220    : { format(returnt,sizeof(returnt),  "Taxi Driver"); }
  2553.         case 221    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2554.         case 222    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2555.         case 223    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2556.         case 224    : { format(returnt,sizeof(returnt),  "Sofori"); }
  2557.         case 225    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2558.         case 226    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2559.         case 227    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2560.         case 228    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2561.         case 229    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2562.         case 230    : { format(returnt,sizeof(returnt),  "Homeless"); }
  2563.         case 231    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2564.         case 232    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2565.         case 233    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2566.         case 234    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2567.         case 235    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2568.         case 236    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2569.         case 237    : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2570.         case 238    : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2571.         case 239    : { format(returnt,sizeof(returnt),  "Homeless"); }
  2572.         case 240    : { format(returnt,sizeof(returnt),  "The D.A"); }
  2573.         case 241    : { format(returnt,sizeof(returnt),  "Afro-American"); }
  2574.         case 242    : { format(returnt,sizeof(returnt),  "Mexican"); }
  2575.         case 243    : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2576.         case 244    : { format(returnt,sizeof(returnt),  "Whore"); }
  2577.         case 245    : { format(returnt,sizeof(returnt),  "Prostitute"); }
  2578.         case 246    : { format(returnt,sizeof(returnt),  "Whore"); }
  2579.         case 247    : { format(returnt,sizeof(returnt),  "Biker"); }
  2580.         case 248    : { format(returnt,sizeof(returnt),  "Biker"); }
  2581.         case 249    : { format(returnt,sizeof(returnt),  "Pimp"); }
  2582.         case 250    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2583.         case 251    : { format(returnt,sizeof(returnt),  "Beach Visitor"); }
  2584.         case 252    : { format(returnt,sizeof(returnt),  "Naked Valet"); }
  2585.         case 253    : { format(returnt,sizeof(returnt),  "Bus Driver"); }
  2586.         case 254    : { format(returnt,sizeof(returnt),  "Drug Dealer"); }
  2587.         case 255    : { format(returnt,sizeof(returnt),  "Limo Driver"); }
  2588.         case 256    : { format(returnt,sizeof(returnt),  "Whore"); }
  2589.         case 257    : { format(returnt,sizeof(returnt),  "Whore"); }
  2590.         case 258    : { format(returnt,sizeof(returnt),  "Golfer"); }
  2591.         case 259    : { format(returnt,sizeof(returnt),  "Golfer"); }
  2592.         case 260    : { format(returnt,sizeof(returnt),  "Construction Site"); }
  2593.         case 261    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2594.         case 262    : { format(returnt,sizeof(returnt),  "Taxi Driver"); }
  2595.         case 263    : { format(returnt,sizeof(returnt),  "Normal Ped"); }
  2596.         case 264    : { format(returnt,sizeof(returnt),  "Clown"); }
  2597.         case 265    : { format(returnt,sizeof(returnt),  "Tenpenny"); }
  2598.         case 266    : { format(returnt,sizeof(returnt),  "Pulaski"); }
  2599.         case 267    : { format(returnt,sizeof(returnt),  "Officer Frank Tenpenny (Crooked Cop)"); }
  2600.         case 268    : { format(returnt,sizeof(returnt),  "Dwaine"); }
  2601.         case 269    : { format(returnt,sizeof(returnt),  "Melvin Big Smoke Harris"); }
  2602.         case 270    : { format(returnt,sizeof(returnt),  "Sweet "); }
  2603.         case 271    : { format(returnt,sizeof(returnt),  "Lance Ryder Wilson"); }
  2604.         case 272    : { format(returnt,sizeof(returnt),  "Mafia Boss"); }
  2605.         case 273    : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2606.         case 274    : { format(returnt,sizeof(returnt),  "Paramedic"); }
  2607.         case 275    : { format(returnt,sizeof(returnt),  "Paramedic"); }
  2608.         case 276    : { format(returnt,sizeof(returnt),  "Paramedic"); }
  2609.         case 277    : { format(returnt,sizeof(returnt),  "Firefighter"); }
  2610.         case 278    : { format(returnt,sizeof(returnt),  "Firefighter"); }
  2611.         case 279    : { format(returnt,sizeof(returnt),  "Firefighter"); }
  2612.         case 280    : { format(returnt,sizeof(returnt),  "Los Santos Police"); }
  2613.         case 281    : { format(returnt,sizeof(returnt),  "San Fierro Police"); }
  2614.         case 282    : { format(returnt,sizeof(returnt),  "Las Venturas Police"); }
  2615.         case 283    : { format(returnt,sizeof(returnt),  "Country Sheriff"); }
  2616.         case 284    : { format(returnt,sizeof(returnt),  "San Andreas Police Dept."); }
  2617.         case 285    : { format(returnt,sizeof(returnt),  "S.W.A.T Special Forces"); }
  2618.         case 286    : { format(returnt,sizeof(returnt),  "Federal Agents"); }
  2619.         case 287    : { format(returnt,sizeof(returnt),  "San Andreas Army"); }
  2620.         case 288    : { format(returnt,sizeof(returnt),  "Desert Sheriff"); }
  2621.         case 289    : { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2622.         case 290    : { format(returnt,sizeof(returnt),  "Ken Rosenberg"); }
  2623.         case 291    : { format(returnt,sizeof(returnt),  "Desert Sheriff"); }
  2624.         case 292    : { format(returnt,sizeof(returnt),  "Cesar Vialpando"); }
  2625.         case 293    : { format(returnt,sizeof(returnt),  "Jeffrey OG Loc Cross"); }
  2626.         case 294    : { format(returnt,sizeof(returnt),  "Wu Zi Mu (Woozie)"); }
  2627.         case 295    : { format(returnt,sizeof(returnt),  "Michael Toreno"); }
  2628.         case 296    : { format(returnt,sizeof(returnt),  "Jizzy B."); }
  2629.         case 297    : { format(returnt,sizeof(returnt),  "Madd Dogg"); }
  2630.         case 298    : { format(returnt,sizeof(returnt),  "Catalina"); }
  2631.         case 299    : { format(returnt,sizeof(returnt),  "Claude"); }
  2632.         default: { format(returnt,sizeof(returnt),  "INVALID_SKIN_ID"); }
  2633.     }
  2634.     return returnt;
  2635. }
  2636.  
  2637. stock strrest(const string[], &index)
  2638. {
  2639.     new length = strlen(string);
  2640.     while ((index < length) && (string[index] <= ' '))
  2641.     {
  2642.         index++;
  2643.     }
  2644.     new offset = index;
  2645.     new result[128];
  2646.     while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
  2647.     {
  2648.         result[index - offset] = string[index];
  2649.         index++;
  2650.     }
  2651.     result[index - offset] = EOS;
  2652.     return result;
  2653. }
  2654.  
  2655. FC:AMoneyHack()
  2656. {
  2657.     for ( new i = 0 ; i < MAX_PLAYERS ; i ++ )
  2658.     {
  2659.         new ch[40];
  2660.         format(ch, sizeof(ch), PASTA_CONTAS, GetName(i));
  2661.         ResetPlayerMoney(i);
  2662.         GivePlayerGrana(i, DOF2_GetInt(ch, "Dinheiro"));
  2663.     }
  2664.     return 1;
  2665. }
  2666.  
  2667. public OnPlayerUpdate(playerid)
  2668. {
  2669.     AntiWH();
  2670.     LevelSetavel();
  2671.     if(PlayerProx(playerid) <= 5.0) return PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);
  2672.     return 1;
  2673. }
  2674.  
  2675. public MudarHora()
  2676. {
  2677.     if (minutoss < 60)
  2678.     {
  2679.         minutoss = minutoss + 1;
  2680.     }
  2681.     else if (minutoss == 60)
  2682.     {
  2683.         minutoss = 0;
  2684.         hora = hora + 1;
  2685.     }
  2686.     else if (hora == 24)
  2687.     {
  2688.         hora = 0;
  2689.         dia = dia + 1;
  2690.     }
  2691.     else if (dia == 30)
  2692.     {
  2693.         dia = 1;
  2694.     }
  2695.     SetWorldTime(hora);
  2696.     return 1;
  2697. }
  2698.  
  2699. forward RelogioBasico(playerid);
  2700. public RelogioBasico(playerid)
  2701. {
  2702.     new year,month,day,hour,minute,second;
  2703.     getdate(year,month,day);
  2704.     gettime(hour,minute,second);
  2705.     new mes[12];
  2706.     if(month == 1) { mes = "Janeiro"; }
  2707.     else if(month == 2) {mes = "Fevereiro";}
  2708.     else if(month == 3) {mes = "Marco";}
  2709.     else if(month == 4) {mes = "Abril";}
  2710.     else if(month == 5) {mes = "Maio";}
  2711.     else if(month == 6) {mes = "Junho";}
  2712.     else if(month == 7) {mes = "Julho";}
  2713.     else if(month == 8) {mes = "Agosto";}
  2714.     else if(month == 9) {mes = "Setembro";}
  2715.     else if(month == 10) {mes = "Outubro";}
  2716.     else if(month == 11) {mes = "Novembro";}
  2717.     else if(month == 12) {mes= "Dezembro";}
  2718.     if(hour == 0 && minute >= 0 && minute <= 59) { SetWorldTime(0); }
  2719.     if(hour == 1 && minute >= 0 && minute <= 59) { SetWorldTime(1); }
  2720.     if(hour == 2 && minute >= 0 && minute <= 59) { SetWorldTime(2); }
  2721.     if(hour == 3 && minute >= 0 && minute <= 59) { SetWorldTime(3); }
  2722.     if(hour == 4 && minute >= 0 && minute <= 59) { SetWorldTime(4); }
  2723.     if(hour == 5 && minute >= 0 && minute <= 39) { SetWorldTime(5); }
  2724.     if(hour == 5 && minute >= 40 && minute <= 49) { SetWorldTime(23); }
  2725.     if(hour == 5 && minute >= 50 && minute <= 59) { SetWorldTime(22); }
  2726.     if(hour == 6 && minute >= 0 && minute <= 9) { SetWorldTime(21); }
  2727.     if(hour == 6 && minute >= 30 && minute <= 59) { SetWorldTime(7); }
  2728.     if(hour == 7 && minute >= 0 && minute <= 59) { SetWorldTime(7); }
  2729.     if(hour == 8 && minute >= 0 && minute <= 59) { SetWorldTime(8); }
  2730.     if(hour == 9 && minute >= 0 && minute <= 59) { SetWorldTime(9); }
  2731.     if(hour == 10 && minute >= 0 && minute <= 59) { SetWorldTime(10); }
  2732.     if(hour == 11 && minute >= 0 && minute <= 59) { SetWorldTime(11); }
  2733.     if(hour == 12 && minute >= 0 && minute <= 59) { SetWorldTime(12); }
  2734.     if(hour == 13 && minute >= 0 && minute <= 59) { SetWorldTime(13); }
  2735.     if(hour == 14 && minute >= 0 && minute <= 59) { SetWorldTime(14); }
  2736.     if(hour == 15 && minute >= 0 && minute <= 59) { SetWorldTime(15); }
  2737.     if(hour == 16 && minute >= 0 && minute <= 59) { SetWorldTime(16); }
  2738.     if(hour == 17 && minute >= 0 && minute <= 59) { SetWorldTime(17); }
  2739.     if(hour == 17 && minute >= 35 && minute <= 39) { SetWorldTime(20); }
  2740.     if(hour == 17 && minute >= 40 && minute <= 49) { SetWorldTime(21); }
  2741.     if(hour == 17 && minute >= 55 && minute <= 59) { SetWorldTime(23); }
  2742.     if(hour == 18 && minute >= 0 && minute <= 29) { SetWorldTime(5); }
  2743.     if(hour == 19 && minute >= 0 && minute <= 59) { SetWorldTime(4); }
  2744.     if(hour == 20 && minute >= 0 && minute <= 59) { SetWorldTime(3); }
  2745.     if(hour == 21 && minute >= 0 && minute <= 59) { SetWorldTime(2); }
  2746.     if(hour == 22 && minute >= 0 && minute <= 59) { SetWorldTime(1); }
  2747.     if(hour == 23 && minute >= 0 && minute <= 59) { SetWorldTime(0); }
  2748. }
  2749.  
  2750. stock PlayerProx(playerid)
  2751. {
  2752.     new
  2753.         Float: P[3],
  2754.         Float: Raio = 0b0110000100000110100010111111100
  2755.     ;
  2756.     if(GetPlayerPos(playerid, P[0], P[1], P[2]))
  2757.     {
  2758.         new LOL = -1, Float: gPos, Float: sPos[3];
  2759.         for(new i=0; i < MAX_PLAYERS; i++)
  2760.         {
  2761.             if(GetPlayerPos(i, sPos[0], sPos[1], sPos[2]))
  2762.             {
  2763.                 sPos[0] -= P[0], sPos[1] -= P[1] , sPos[2] -= P[2];
  2764.                 gPos = sPos[0] * sPos[0] + sPos[1] * sPos[1] + sPos[2] * sPos[2];
  2765.  
  2766.                 if(sPos[0] * sPos[0] + sPos[1] * sPos[1] + sPos[2] * sPos[2] < Raio)
  2767.                 {
  2768.                     Raio = gPos, LOL = i;
  2769.                 }
  2770.             }
  2771.         }
  2772.         return LOL;
  2773.     }
  2774.     return 1;
  2775. }
  2776.  
  2777. stock ConverterTexto(string[])
  2778. {
  2779.     for(new arraysize = 0; arraysize < strlen(string); arraysize++)
  2780.     {
  2781.         if(strfind(string, "â", true) != -1){new pos = strfind(string, "â", true); strdel(string, pos, pos+strlen("â")); strins(string, "™", pos, sizeof(pos));}
  2782.         if(strfind(string, "ã", true) != -1){new pos = strfind(string, "ã", true); strdel(string, pos, pos+strlen("ã")); strins(string, "š", pos, sizeof(pos));}
  2783.         if(strfind(string, "á", true) != -1){new pos = strfind(string, "á", true); strdel(string, pos, pos+strlen("á")); strins(string, "˜", pos, sizeof(pos));}
  2784.         if(strfind(string, "é", true) != -1){new pos = strfind(string, "é", true); strdel(string, pos, pos+strlen("é")); strins(string, "ž", pos, sizeof(pos));}
  2785.         if(strfind(string, "ú", true) != -1){new pos = strfind(string, "ú", true); strdel(string, pos, pos+strlen("ú")); strins(string, "“", pos, sizeof(pos));}
  2786.         if(strfind(string, "ó", true) != -1){new pos = strfind(string, "ó", true); strdel(string, pos, pos+strlen("ó")); strins(string, "¦", pos, sizeof(pos));}
  2787.         if(strfind(string, "ê", true) != -1){new pos = strfind(string, "ê", true); strdel(string, pos, pos+strlen("ê")); strins(string, "Ÿ", pos, sizeof(pos));}
  2788.         if(strfind(string, "í", true) != -1){new pos = strfind(string, "í", true); strdel(string, pos, pos+strlen("í")); strins(string, "¢", pos, sizeof(pos));}
  2789.         if(strfind(string, "ç", true) != -1){new pos = strfind(string, "ç", true); strdel(string, pos, pos+strlen("ç")); strins(string, "œ", pos, sizeof(pos));}
  2790.         if(strfind(string, "ô", true) != -1){new pos = strfind(string, "ô", true); strdel(string, pos, pos+strlen("ô")); strins(string, "§", pos, sizeof(pos));}
  2791.     }
  2792. }
  2793. /* Exemplo de uso /\
  2794. CMD:b(playerid, params[])
  2795. {
  2796.     new
  2797.         message[ 128 ];
  2798.     if( sscanf ( params, "s[128]", message ) ) return SendClientMessage( playerid, -1, #Syntax /b [texto] );
  2799.     ConverterTexto(message); // <<
  2800.     GameTextForAll(message, 3000, 3);
  2801.     return true;
  2802. }
  2803.  
  2804. */
  2805.  
  2806. public OnEnterExitModShop(playerid, enterexit, interiorid)
  2807. {
  2808.     if(enterexit == 0) return TogglePlayerControllable(playerid, 1);
  2809.     else if(enterexit == 1) return TogglePlayerControllable(playerid, 0);
  2810.     return 1;
  2811. }
  2812.  
  2813. stock GetPlayerWeaponName(playerid)
  2814. {
  2815.     static str[21];
  2816.     switch(GetPlayerWeapon(playerid))
  2817.     {
  2818.         case 0: str = "Unarmed";
  2819.         case 1: str = "Brass Knuckles";
  2820.         case 2: str = "Golf Club";
  2821.         case 3: str = "Nite Stick";
  2822.         case 4: str = "Knife";
  2823.         case 5: str = "Baseball Bat";
  2824.         case 6: str = "Shovel";
  2825.         case 7: str = "Pool Cue";
  2826.         case 8: str = "Katana";
  2827.         case 9: str = "Chainsaw";
  2828.         case 10: str = "Purple Dildo";
  2829.         case 11: str = "Small White Vibrator";
  2830.         case 12: str = "Large White Vibrator";
  2831.         case 13: str = "Silver Vibrator";
  2832.         case 14: str = "Flowers";
  2833.         case 15: str = "Cane";
  2834.         case 16: str = "Grenade";
  2835.         case 17: str = "Tear Gas";
  2836.         case 18: str = "Molotov Cocktail";
  2837.         case 22: str = "9mm";
  2838.         case 23: str = "Silenced 9mm";
  2839.         case 24: str = "Desert Eagle";
  2840.         case 25: str = "Shotgun";
  2841.         case 26: str = "Sawn-off Shotgun";
  2842.         case 27: str = "Combat Shotgun";
  2843.         case 28: str = "Micro SMG";
  2844.         case 29: str = "MP5";
  2845.         case 30: str = "AK-47";
  2846.         case 31: str = "M4";
  2847.         case 32: str = "Tec9";
  2848.         case 33: str = "Country Rifle";
  2849.         case 34: str = "Sniper Rifle";
  2850.         case 35: str = "Rocket Launcher";
  2851.         case 36: str = "HS Rocket Launcher";
  2852.         case 37: str = "Flamethrower";
  2853.         case 38: str = "Minigun";
  2854.         case 39: str = "Satchel Charge";
  2855.         case 40: str = "Detonator";
  2856.         case 41: str = "Spraycan";
  2857.         case 42: str = "Fire Extinguisher";
  2858.         case 43: str = "Camera";
  2859.         case 44: str = "Nightvision Goggles";
  2860.         case 45: str = "Thermal Goggles";
  2861.         case 46: str = "Parachute";
  2862.     }
  2863.     return str;
  2864. }
  2865.  
  2866. /*stock GetProfissao(playerid)
  2867. {
  2868.     static str[21];
  2869.     switch(Profissao[playerid])
  2870.     {
  2871.         case 0: str = "Desempregado";
  2872.         case 1: str = "Taxista";
  2873.         case 2: str = "Assaltante";
  2874.         case 3: str = "Seguranca";
  2875.         case 4: str = "Carteiro";
  2876.         case 5: str = "Caminhoneiro";
  2877.         case 6: str = "Medico";
  2878.         case 7: str = "Mecanico";
  2879.         case 8: str = "Advogado";
  2880.         case 9: str = "Aposentado";
  2881.         case 10: str = "Policia Militar";
  2882.         case 11: str = "Policia Civil";
  2883.         case 12: str = "Interpol";
  2884.         case 13: str = "Federal";
  2885.         case 14: str = "F.B.I";
  2886.         case 15: str = "S.W.A.T";
  2887.         case 16: str = "Policia Rodoviraria";
  2888.         case 17: str = "Sequestrador";
  2889.         case 18: str = "Motorista Partiuclar";
  2890.         case 19: str = "Mendingo";
  2891.         case 20: str = "Jornalista";
  2892.     }
  2893.     return str;
  2894. }*/
  2895.  
  2896. stock Float: GetDistanceToPlayer(playerid, playerid2)
  2897. {
  2898.     new Float: x1,Float: y1,Float: z1,Float: x2,Float: y2,Float: z2;
  2899.     if (!IsPlayerConnected(playerid) || !IsPlayerConnected(playerid2))
  2900.     {
  2901.         return -1.00;
  2902.     }
  2903.     GetPlayerPos(playerid, x1, y1, z1);
  2904.     GetPlayerPos(playerid2, x2, y2, z2);
  2905.     return floatsqroot(floatpower(floatabs(floatsub(x2, x1)), 2) + floatpower(floatabs(floatsub(y2, y1)), 2) + floatpower(floatabs(floatsub(z2, z1)), 2));
  2906. }
  2907.  
  2908. stock nome(playerid)
  2909. {
  2910.     new nj[MAX_PLAYER_NAME];
  2911.     GetPlayerName(playerid, nj, sizeof(nj));
  2912.     return nj;
  2913. }
  2914.  
  2915. forward LevelSetavel();
  2916. public LevelSetavel()
  2917. {
  2918.     for (new i=0;i<MAX_PLAYERS;i++)
  2919.     {
  2920.         if(IsPlayerConnected(i))
  2921.         {
  2922.             new sFile[60];
  2923.             format(sFile, sizeof(sFile), PASTA_CONTAS, GetName(i));
  2924.             SetPlayerScore(i, DOF2_GetInt(sFile, "Level"));
  2925.         }
  2926.     }
  2927.     return 1;
  2928. }
  2929.  
  2930. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  2931. {
  2932.     new String[60];
  2933.     if(PlayerInfo[playerid][Logado] == 0) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não logou então não pode usar nenhum comando.");
  2934.     if(!IsAdmin[playerid])
  2935.     {
  2936.         if(EstaPreso[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, "Você não pode digitar nenhum comando na cadeia.");
  2937.     }
  2938.     if(!success)
  2939.     {
  2940.         format(String, sizeof(String), "( Info - Server ) O Comando '%s' é Inválido!", cmdtext);
  2941.         return SendClientMessage(playerid, Vermelho, String);
  2942.     }
  2943.     return true;
  2944. }
  2945.  
  2946. /* Sistema de Dominios */
  2947.  
  2948. CMD:dominar(playerid)
  2949. {
  2950.     if(IsPlayerInPSkate(playerid))
  2951.     {
  2952.         if(Dominando[playerid] == 1) return SendClientMessage(playerid, Vermelho, "( Info ) Você já está dominando este território");
  2953.         if(AlguemDominando == 1) return SendClientMessage(playerid, Vermelho, "( Info ) Alguem já está dominando este território! Aguarde");
  2954.         new string[100];
  2955.         Dominando[playerid] = 1;
  2956.         ProvocouSkate[playerid] = 1;
  2957.         AlguemDominando = 1;
  2958.         format(string, sizeof(string), "( GangZones ) %s está tentando dominar a pista de skate!", GetName(playerid));
  2959.         SendClientMessageToAll(Amarelo, string);
  2960.         SendClientMessage(playerid, Amarelo, "( Info - GZ ) Você está Dominando a Pista de Skate.. Aguarde 1 Minuto");
  2961.         TempoGuerraSkate = SetTimerEx("GuerraSkate", 60000, 0, "i", playerid);
  2962.         GangZoneFlashForAll(GzParque, Branco);
  2963.     }
  2964.     else
  2965.     {
  2966.         SendClientMessage(playerid, Vermelho, "Você não está em nenhum território!");
  2967.     }
  2968.     return 1;
  2969. }
  2970.  
  2971. stock IsPlayerInPSkate(playerid)
  2972. {
  2973.     new Float:x,Float:y,Float:z;
  2974.     GetPlayerPos(playerid, x, y, z);
  2975.     if(x >= 1861.328 && y >= -1455.078 && x <= 1972.656 && y <= -1349.609) return 1;
  2976.     else return 0;
  2977. }
  2978.  
  2979. FC:GuerraSkate(playerid)
  2980. {
  2981.     if(IsPlayerInPSkate(playerid))
  2982.     {
  2983.         new string[100];
  2984.         GangZoneStopFlashForAll(GzParque);
  2985.         GangZoneShowForAll(GzParque, GetPlayerColor(playerid));
  2986.         Dominando[playerid] = 0;
  2987.         ProvocouSkate[playerid] = 0;
  2988.         AlguemDominando = 0;
  2989.         KillTimer(TempoGuerraSkate);
  2990.         format(string, sizeof(string), "( GangZones ) %s conseguiu dominar a pista de skate!", GetName(playerid));
  2991.         SendClientMessageToAll(Amarelo, string);
  2992.         SendClientMessage(playerid, Amarelo, "( Info - GZ ) Você dominou um território e ganhou 200R$.");
  2993.         GivePlayerGrana(playerid, 200);
  2994.     }
  2995.     else
  2996.     {
  2997.         GangZoneStopFlashForAll(GzParque);
  2998.         GangZoneShowForAll(GzParque, 0xFF000096);
  2999.     }
  3000.     return 1;
  3001. }
  3002.  
  3003. /* Sistema de Dominios */
  3004.  
  3005. /* Lista de Comandos do Servidor */
  3006.  
  3007. CMD:admins(playerid)
  3008. {
  3009.     SendClientMessage(playerid, Verde, "» Adminstradores Online:");
  3010.     new Jogador[24];
  3011.     new count = 0;
  3012.     new msg[120];
  3013.     for (new i = 0; i < MAX_PLAYERS; i++)
  3014.     {
  3015.         if (IsPlayerConnected(i) && IsAdmin[i])
  3016.         {
  3017.             GetPlayerName(i, Jogador, 24);
  3018.             format(msg, sizeof(msg), "%s (%d)", Jogador, i);
  3019.             SendClientMessage(playerid, 0xFFFFFFAA, msg);
  3020.             count++;
  3021.         }
  3022.     }
  3023.     if (count == 0){}
  3024.     return 1;
  3025. }
  3026.  
  3027. CMD:vips(playerid)
  3028. {
  3029.     SendClientMessage(playerid, Verde, "» Jogados Vips Online:");
  3030.     new Jogador[24];
  3031.     new count = 0;
  3032.     new msg[120];
  3033.     for (new i = 0; i < MAX_PLAYERS; i++)
  3034.     {
  3035.         if (IsPlayerConnected(i) && IsVip[i])
  3036.         {
  3037.             GetPlayerName(i, Jogador, 24);
  3038.             format(msg, sizeof(msg), "%s (%d)", Jogador, i);
  3039.             SendClientMessage(playerid, 0xFFFFFFAA, msg);
  3040.             count++;
  3041.         }
  3042.     }
  3043.     if (count == 0){}
  3044.     return 1;
  3045. }
  3046.  
  3047. CMD:test1(playerid)
  3048. {
  3049.     SetPlayerAttachedObject(playerid, 1, 2630, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337);
  3050.     return 1;
  3051. }
  3052.  
  3053. CMD:test2(playerid)
  3054. {
  3055.     SetPlayerAttachedObject(playerid, 1, 3074, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337);
  3056.     return 1;
  3057. }
  3058.  
  3059. CMD:test3(playerid)
  3060. {
  3061.     SetPlayerAttachedObject(playerid, 1, 1314, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337);
  3062.     return 1;
  3063. }
  3064.  
  3065. CMD:equipamentos(playerid)
  3066. {
  3067.     if(Equipado[playerid] == 0)
  3068.     {
  3069.         SetPlayerAttachedObject(playerid, 0 , 19142 , 11 , 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
  3070.         SetPlayerAttachedObject(playerid, 1 , 19141 , 12 , 0.11, 0.0, 0.0, 0.0, 0.0, 0.0);
  3071.         SetPlayerAttachedObject(playerid, 2 , 18637 , 13 , 0.35, 0.0, 0.0, 0.0, 0.0, 180.0);
  3072.         SetPlayerAttachedObject(playerid, 3 , 18642 , 14 , 0.1, 0.0, -0.11, 0.0, -90.0, 90.0);
  3073.         SendClientMessage(playerid, Vermelho, "( Info ) Você colocou seus equipamentos de batalha!");
  3074.     }
  3075.     else if(Equipado[playerid] == 1)
  3076.     {
  3077.         SendClientMessage(playerid, Vermelho, "( Info ) Você removeu seus equipamentos de batalha!");
  3078.         RemovePlayerAttachedObject(playerid, 0);
  3079.         RemovePlayerAttachedObject(playerid, 1);
  3080.         RemovePlayerAttachedObject(playerid, 2);
  3081.         RemovePlayerAttachedObject(playerid, 3);
  3082.     }
  3083.     return 1;
  3084. }
  3085.  
  3086. CMD:primeirapessoa(playerid)
  3087. {
  3088.     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "( Erro ) O Modo Primeira Pessoa não pode ser usado em Carros.");
  3089.     if(PrimeiraPessoa[playerid] == 0)
  3090.     {
  3091.         PrimeiraPessoa[playerid] = 1;
  3092.         SendClientMessage(playerid, Vermelho, "( Info ) O Modo 1º Pessoa Foi Ativado, Entre em um Carro para ativar o modo.");
  3093.         SetPVarInt(playerid, #Object, CreateObject(18698, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
  3094.         AttachObjectToPlayer(GetPVarInt(playerid, #Object), playerid, 0.0190, 0.1059, 0.5557, 88.0, 0.0, 87.0);
  3095.         //AttachCameraToObject(playerid, GetPVarInt(playerid, #Object));
  3096.     }
  3097.     else if(PrimeiraPessoa[playerid] == 1)
  3098.     {
  3099.         PrimeiraPessoa[playerid] = 0;
  3100.         SendClientMessage(playerid, Vermelho, "( Info ) O Modo 1º Pessoa Foi Desativado.");
  3101.         DestroyObject(GetPVarInt(playerid, #Object));
  3102.         DeletePVar(playerid, #Object);
  3103.         SetCameraBehindPlayer(playerid);
  3104.     }
  3105.     return 1;
  3106. }
  3107.  
  3108. CMD:relatorio(playerid, params[])
  3109. {
  3110.     new text[128], str[256];
  3111.     if(sscanf(params,"s", text)) return SendClientMessage(playerid, Vermelho ,"Use: /relatorio [Texto]");
  3112.     for(new i = 0; i < MAX_PLAYERS; i++)
  3113.     {
  3114.         if(IsPlayerAdmin(playerid) && IsAdmin[playerid] == 1)
  3115.         {
  3116.             format(str ,sizeof(str),"[ Relatório ] %s (%d) : %s", GetName(playerid), i , text);
  3117.             SendClientMessage(i, Verde, str);
  3118.         }
  3119.         SendClientMessage(playerid, Amarelo ,"( Info ) Relatório Enviado com Sucesso!");
  3120.     }
  3121.     return 1;
  3122. }
  3123.  
  3124. /* Comandos Adminstradores */
  3125.  
  3126. CMD:alterarcela(playerid, params[])
  3127. {
  3128.     new cela, id, str[60];
  3129.     if(Profissao[playerid] <= 15 && 10 >= Profissao[playerid] || IsAdmin[playerid] == 1)
  3130.     {
  3131.         if(sscanf(params, "ui", id, cela)) return SendClientMessage(playerid, Vermelho ,"Use: /alterarcela <playerid> < 1 | 2 | 3 >");
  3132.         if(cela > 3) return SendClientMessage(playerid, Vermelho ,"( Erro ) Cela Inválida.");
  3133.         if(!EstaPreso[id]) return SendClientMessage(playerid, Vermelho ,"( Erro ) Este jogador não está preso.");
  3134.         if(cela == 1)
  3135.         {
  3136.             Cela1[id] = 1;
  3137.             SetPlayerPos(id, 264.0872 , 77.3831 , 1001.0391);
  3138.             SetPlayerInterior(id, 6);
  3139.             format(str ,sizeof(str),"( Info ) O Adminstrador %s alterou sua cela.", GetName(playerid));
  3140.             SendClientMessage(id, Verde, str);
  3141.         }
  3142.         else if(cela == 2)
  3143.         {
  3144.             SetPlayerPos(id, 263.7667 , 82.3926 , 1001.0391);
  3145.             SetPlayerInterior(id, 6);
  3146.             Cela2[id] = 1;
  3147.             format(str ,sizeof(str),"( Info ) O Adminstrador %s alterou sua cela.", GetName(playerid));
  3148.             SendClientMessage(id, Verde, str);
  3149.         }
  3150.         else if(cela == 3)
  3151.         {
  3152.             SetPlayerPos(id, 263.6069 , 87.0886 , 1001.0391);
  3153.             SetPlayerInterior(id, 6);
  3154.             Cela3[id] = 1;
  3155.             format(str ,sizeof(str),"( Info ) O Adminstrador %s alterou sua cela.", GetName(playerid));
  3156.             SendClientMessage(id, Verde, str);
  3157.         }
  3158.     }
  3159.     return 1;
  3160. }
  3161.  
  3162. CMD:prender(playerid, params[])
  3163. {
  3164.     new prenderid, tempo, str[80];
  3165.     if(Profissao[playerid] <= 15 && 10 >= Profissao[playerid] || IsAdmin[playerid] == 1)
  3166.     {
  3167.         format(str, sizeof(str), PASTA_CONTAS, GetName(prenderid));
  3168.         if(sscanf(params, "ui", prenderid, tempo)) return SendClientMessage(playerid,0xFF0000AA,"Use: /prender <playerid> <tempo>");
  3169.         if(!IsPlayerConnected(prenderid)) return SendClientMessage(playerid,0xFF0000AA,"( Erro ) Este jogador não está online.");
  3170.         if(EstaPreso[prenderid] == 1) return SendClientMessage(playerid,0xFF0000AA,"( Erro ) Este jogador já está preso.");
  3171.         if(tempo < 0) return SendClientMessage(playerid,0xFF0000AA,"( Erro ) Tempo invalido.");
  3172.         format(str, sizeof(str), "( Info - Cadeia ) %s prendeu %s por %d minutos.", GetName(playerid) , GetName(prenderid) , tempo);
  3173.         SendClientMessageToAll(0xFF0000AA, str);
  3174.         SendClientMessage(prenderid,0xFF0000AA,"( Info - Cadeia ) Você acaba de ser preso!");
  3175.         SetPlayerPos(prenderid, 264.0872 , 77.3831 , 1001.0391);
  3176.         SetPlayerInterior(prenderid, 6);
  3177.         Cela1[prenderid] = 1;
  3178.         ResetPlayerWeapons(prenderid);
  3179.         EstaPreso[prenderid] = 1;
  3180.         TimerPreso[prenderid] = SetTimerEx("InPrisao", 60000*tempo, false, "i", prenderid);
  3181.         DOF2_SetInt(str, "Preso", 1);
  3182.         DOF2_SetInt(str, "TempoPreso", TimerPreso[prenderid]);
  3183.     }
  3184.     else {
  3185.         SendClientMessage(playerid, Vermelho, "( Info ) Você não tem permissão!");
  3186.     }
  3187.     return 1;
  3188. }
  3189.  
  3190. CMD:soltar(playerid, params[])
  3191. {
  3192.     new prenderid, str[80];
  3193.     if(Profissao[playerid] <= 15 && 10 >= Profissao[playerid] || IsAdmin[playerid] == 1)
  3194.     {
  3195.         format(str, sizeof(str), PASTA_CONTAS, GetName(prenderid));
  3196.         if(sscanf(params, "u", prenderid)) return SendClientMessage(playerid,0xFF0000AA,"Use: /soltar <playerid>");
  3197.         if(!IsPlayerConnected(prenderid)) return SendClientMessage(playerid,0xFF0000AA,"( Erro ) Este jogador não está online.");
  3198.         if(EstaPreso[prenderid] == 0) return SendClientMessage(playerid,0xFF0000AA,"( Erro ) Este jogador não está preso.");
  3199.         format(str, sizeof(str), "( Info - Cadeia ) %s soltou %s da prisão", GetName(playerid), GetName(prenderid));
  3200.         SendClientMessageToAll(0xFF0000AA, str);
  3201.         SendClientMessage(prenderid,0xFF0000AA,"( Info - Cadeia ) Você acaba de ser solto!");
  3202.         SetPlayerPos(prenderid, 252.9100,67.8120,1003.6406);
  3203.         SetPlayerInterior(prenderid, 6);
  3204.         EstaPreso[prenderid] = 0;
  3205.         Cela1[prenderid] = 0;
  3206.         Cela2[prenderid] = 0;
  3207.         Cela3[prenderid] = 0;
  3208.         KillTimer(TimerPreso[prenderid]);
  3209.         DOF2_SetInt(str, "Preso", 0);
  3210.         DOF2_SetInt(str, "TempoPreso", 0);
  3211.     }
  3212.     else {
  3213.         SendClientMessage(playerid, Vermelho, "( Info ) Você não tem permissão!");
  3214.     }
  3215.     return 1;
  3216. }
  3217.  
  3218. forward InPrisao(prenderid);
  3219. public InPrisao(prenderid)
  3220. {
  3221.     new str[80];
  3222.     format(str, sizeof(str), PASTA_CONTAS, GetName(prenderid));
  3223.     SetPlayerPos(prenderid, 252.9100,67.8120,1003.6406);
  3224.     SetPlayerInterior(prenderid, 6);
  3225.     EstaPreso[prenderid] = 0;
  3226.     Cela1[prenderid] = 0;
  3227.     Cela2[prenderid] = 0;
  3228.     Cela3[prenderid] = 0;
  3229.     KillTimer(TimerPreso[prenderid]);
  3230.     DOF2_SetInt(str, "Preso", 0);
  3231.     DOF2_SetInt(str, "TempoPreso", 0);
  3232.     SendClientMessage(prenderid, Vermelho, "( Info - Cadeia ) Você cumpriu sua pena e foi solto da cadeia!");
  3233.     return 1;
  3234. }
  3235.  
  3236. CMD:darcombustivel(playerid, params[])
  3237. {
  3238.     new quant, dString[126], id;
  3239.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3240.     if(sscanf(params, "ud", id, quant)) return SendClientMessage(playerid, 0xF0F0F0AA, "Use: /darcombustivel [id] [quantia]");
  3241.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xF0F0F0AA, "( Erro ) Jogador não conectado");
  3242.     if(0 < quant > 139) return SendClientMessage(playerid, 0xF0F0F0AA, "( Erro ) Quantia entre 0 e 140");
  3243.     format(dString, sizeof(dString), PASTA_CONTAS, GetName(id));
  3244.     Gasolina[id] = quant;
  3245.     DOF2_SetInt(dString, "Gasolina", quant);
  3246.     format(dString, sizeof(dString), "( AdminCMD ) Você colocou %d Litros no combustível de %s.", quant);
  3247.     SendClientMessage(playerid, Amarelo, dString);
  3248.     format(dString, sizeof(dString), "( AdminCMD ) O Adminstrador %s colocou %d Litros de Gasolina Em Seu Combustível.", GetName(playerid), quant);
  3249.     SendClientMessage(id, Amarelo, dString);
  3250.     return true;
  3251. }
  3252.  
  3253. CMD:dargrana(playerid, params[])
  3254. {
  3255.     new wGrana, Wc1[30], Wc2[30], wString[126], id;
  3256.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3257.     if(sscanf(params, "ud", id, wGrana)) return SendClientMessage(playerid, 0xF0F0F0AA, "Use: /dargrana [ID] [Quantia]");
  3258.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xF0F0F0AA, "( Erro ) Jogador não conectado");
  3259.     GetPlayerName(playerid, Wc1, 23);
  3260.     GetPlayerName(id, Wc2, 23);
  3261.     GivePlayerMoney(id, wGrana);
  3262.     format(wString, sizeof(wString), PASTA_CONTAS, GetName(id));
  3263.     DOF2_SetInt(wString, "Dinheiro", DOF2_GetInt(wString, "Dinheiro") + wGrana);
  3264.     format(wString, sizeof(wString), "{FFFF00}( AdminCMD ) Você deu {009900}$%d {FFFF00} para o jogador %s.", wGrana, Wc2);
  3265.     SendClientMessage(playerid, Amarelo, wString);
  3266.     format(wString, sizeof(wString), "{FFFF00}( AdminCMD ) Você ganhou {009900}$%d {FFFF00}do admin %s.", wGrana, Wc1);
  3267.     SendClientMessage(id, Amarelo, wString);
  3268.     return true;
  3269. }
  3270.  
  3271. CMD:tirargrana(playerid, params[])
  3272. {
  3273.     new wGrana, Wc1[30], Wc2[30], wString[126], id;
  3274.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3275.     if(sscanf(params, "ud", id, wGrana)) return SendClientMessage(playerid, 0xF0F0F0AA, "Use: /retirargrana [ID] [Quantia]");
  3276.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xF0F0F0AA, "( Erro ) Jogador não conectado");
  3277.     GetPlayerName(playerid, Wc1, 23);
  3278.     GetPlayerName(id, Wc2, 23);
  3279.     GivePlayerMoney(id, -wGrana);
  3280.     format(wString, sizeof(wString), "{FFFF00}( AdminCMD ) Você tirou{FF4F4F}-$%d {FFFF00}do jogador %s.", wGrana, Wc2);
  3281.     SendClientMessage(playerid, Amarelo, wString);
  3282.     format(wString, sizeof(wString), "{FFFF00}( AdminCMD ) Você perdeu {FF4F4F}-$%d {FFFF00} do admin %s.", wGrana, Wc1);
  3283.     SendClientMessage(id, Amarelo, wString);
  3284.     return true;
  3285. }
  3286.  
  3287. CMD:desbugar(playerid, params[])
  3288. {
  3289.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3290.     new Ele;
  3291.     if(sscanf(params, "u", Ele))  return SendClientMessage(playerid, Vermelho, "Use: /spawn (ID ou Nome)");
  3292.     if(!IsPlayerConnected(Ele)) return  SendClientMessage(playerid, Vermelho, "( Erro ) O Jogador está offline!");
  3293.     SpawnPlayer(Ele);
  3294.     SendClientMessage(Ele, coradmin, "( AdminCMD ) Você foi spawnado por um adminstrador.");
  3295.     return true;
  3296. }
  3297.  
  3298. CMD:cv(playerid, params[])
  3299. {
  3300.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3301.     new vehicle, id, Float:X, Float:Y, Float:Z, Float:A;
  3302.     if(sscanf(params, "d", id)) return SendClientMessage(playerid, 0xFF4500AA, "Use: /cv [400-611]");
  3303.     if (id >= 400 && id <= 611)
  3304.     {
  3305.         GetPlayerPos(playerid, X, Y, Z);
  3306.         GetPlayerFacingAngle(playerid, A);
  3307.         vehicle = CreateVehicle(id, X, Y, Z, A, -1, -1, 30000);
  3308.         PutPlayerInVehicle(playerid, vehicle, 0);
  3309.     }
  3310.     else
  3311.     {
  3312.         SendClientMessage(playerid, Vermelho, "( Erro ) ID's de 400 a 611.");
  3313.     }
  3314.     return 1;
  3315. }
  3316.  
  3317. CMD:dv(playerid)
  3318. {
  3319.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3320.     new vid;
  3321.     vid = GetPlayerVehicleID(playerid);
  3322.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho,"( Erro ) Você não está em um carro!");
  3323.     DestroyVehicle(vid);
  3324.     SendClientMessage(playerid, 0x0080FFAA ,"( Info ) Veiculo deletado com sucesso!");
  3325.     return 1;
  3326. }
  3327.  
  3328. CMD:reparar(playerid)
  3329. {
  3330.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não é um adminstrador");
  3331.     new vid = GetPlayerVehicleID(playerid);
  3332.     if(!vid) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não está em um veículo!");
  3333.     RepairVehicle(vid);
  3334.     PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
  3335.     return 1;
  3336. }
  3337.  
  3338. CMD:rv(playerid)
  3339. {
  3340.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3341.     new string[140+24];
  3342.     for (new v; v < MAX_VEHICLES; v++) SetVehicleToRespawn(v);
  3343.     format(string,sizeof(string), "( AdminCMD ) O Adminstrador %s Respawnou Todos os Veículos.", GetName(playerid));
  3344.     SendClientMessageToAll(Verde, string);
  3345.     return 1;
  3346. }
  3347.  
  3348. CMD:setlevel(playerid, params[])
  3349. {
  3350.     new id, qnt , sFile[60], dString[32];
  3351.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3352.     if(sscanf(params, "ui", id, qnt)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /setlevel [id] [quantia]");
  3353.     format(dString, sizeof(dString), PASTA_CONTAS, GetName(id));
  3354.     format(sFile, sizeof(sFile), "( Info ) Você setou o level do jogador %s para: %d", GetName(id), qnt);
  3355.     SendClientMessage(playerid, Amarelo, sFile);
  3356.     //DOF2_SetInt(sFile, "Level", qnt);
  3357.     DOF2_SetInt(dString, "Level", qnt);
  3358.     Level[id] = qnt;
  3359.     return 1;
  3360. }
  3361.  
  3362. CMD:gmx(playerid)
  3363. {
  3364.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3365.     new dString[100];
  3366.     format(dString, sizeof(dString), "( GMX ) O Adminstrador %s deu GMX No Servidor! Seus Dados Foram Salvos!", GetName(playerid));
  3367.     SendClientMessage(playerid, Amarelo, dString);
  3368.     dLoop(i)
  3369.     {
  3370.         SalvarDados(i);
  3371.     }
  3372.     SendRconCommand("gmx");
  3373.     return 1;
  3374. }
  3375.  
  3376. CMD:salvardados(playerid)
  3377. {
  3378.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3379.     new dString[100];
  3380.     format(dString, sizeof(dString), "( Info - Dados ) O Adminstrador %s vai reiniciar o servidor e seus dados foram salvos!", GetName(playerid));
  3381.     SendClientMessage(playerid, Amarelo, dString);
  3382.     dLoop(i)
  3383.     {
  3384.         SalvarDados(i);
  3385.     }
  3386.     return 1;
  3387. }
  3388.  
  3389. CMD:darlevel(playerid, params[])
  3390. {
  3391.     new id, qnt , sFile[60], dString[32];
  3392.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3393.     if(sscanf(params, "ui", id, qnt)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /darlevel [id] [quantia]");
  3394.     format(dString, sizeof(dString), PASTA_CONTAS, GetName(id));
  3395.     format(sFile, sizeof(sFile), "( Info ) Você deu para o jogador %s, %d Leveis", GetName(id), qnt);
  3396.     SendClientMessage(playerid, Amarelo, sFile);
  3397.     DOF2_SetInt(sFile, "Level",  DOF2_GetInt(sFile, "Level")+qnt);
  3398.     Level[id] = Level[id]+qnt;
  3399.     return 1;
  3400. }
  3401.  
  3402. CMD:ban(playerid, params[])
  3403. {
  3404.     new id, mot , sFile[60];
  3405.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3406.     if(sscanf(params, "us", id, mot)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /ban [id] [motivo]");
  3407.     if(DOF2_GetInt("/Contas/Banidos/JogadoresBanidos.ini", GetName(id)) == 1) return SendClientMessage(playerid, 0xFF4500AA, "( Erro ) Este jogador já está banido do servidor!");
  3408.     format(sFile, sizeof(sFile), "( Info - Ban ) O Jogador %s Foi Banido !", GetName(id));
  3409.     SendClientMessage(playerid, Amarelo, sFile);
  3410.     DOF2_SetInt("/Contas/Banidos/JogadoresBanidos.ini", GetName(id), 1);
  3411.     Ban(id);
  3412.     DOF2_SaveFile();
  3413.     return 1;
  3414. }
  3415.  
  3416. CMD:banirnick(playerid, params[])
  3417. {
  3418.     new nick[24] , sFile[60];
  3419.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3420.     if(sscanf(params, "s", nick)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /banirnick [Nick]");
  3421.     format(sFile, sizeof(sFile), "( Info - Ban ) O Nick %s Foi Banido !", nick);
  3422.     SendClientMessage(playerid, Amarelo, sFile);
  3423.     DOF2_SetInt("/Contas/Banidos/NicksBanidos.ini", nick, 1);
  3424.     DOF2_SaveFile();
  3425.     return 1;
  3426. }
  3427.  
  3428. CMD:jetpack(playerid)
  3429. {
  3430.     if(!IsAdmin[playerid] && TemJP[playerid] == 0) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3431.     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "Você não pode usar um jetpack dentro de um veículo.");
  3432.     SetPlayerSpecialAction(playerid, 2);
  3433.     PJetPack[playerid] = 1;
  3434.     return 1;
  3435. }
  3436.  
  3437. CMD:setprof(playerid,params[])
  3438. {
  3439.     if(!IsAdmin[playerid] && TemJP[playerid] == 0) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3440.     new id, prof, like[128];
  3441.     if(sscanf(params, "ui", id, prof)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /setprof [id] [0-20]");
  3442.     Profissao[playerid] = prof;
  3443.     format(like, sizeof(like), "( AdminCMD ) Você alterou a profissão de %s para número : %d!", GetName(id), prof);
  3444.     SendClientMessage(playerid, Verde, like);
  3445.     format(like, sizeof(like), "( AdminCMD ) O Adminstrador %s alterou sua profissão para número %d!", GetName(playerid), prof);
  3446.     SendClientMessage(playerid, Verde, like);
  3447.     format(like, sizeof(like), PASTA_CONTAS, GetName(id));
  3448.     DOF2_SetInt(like, "Profissao", prof);
  3449.     SpawnPlayer(id);
  3450.     AtualizarCores(id);
  3451.     AtualizarCSpawn(id);
  3452.     AtualizarLabel(id);
  3453.     DOF2_SaveFile();
  3454.     return 1;
  3455. }
  3456.  
  3457. CMD:setadmin(playerid,params[])
  3458. {
  3459.     new id, level, oi[100], string[150];
  3460.     if(sscanf(params, "ui", id, level)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /setadmin [id] [0/1]");
  3461.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3462.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Vermelho, "( Erro ) Jogador não conectado.");
  3463.     if(level > 2) return SendClientMessage(playerid, Vermelho, "( Erro ) Use '0' Para Retirar e '1' Para Colocar..");
  3464.     if(level == 1)
  3465.     {
  3466.         IsAdmin[id] = 1;
  3467.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3468.         format(string, sizeof(string),"( Admin ) %s Setou Você como Membro da Adminstração..", GetName(playerid));
  3469.         SendClientMessage(id, -1 ,string);
  3470.         SendClientMessage(id, -1 , "( Info ) Bem Vindo a Adminstração do Servidor!");
  3471.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3472.         format(string, sizeof(string),"( Info ) Você promoveu %s para de adminstrador...", GetName(id));
  3473.         format(oi, sizeof(oi), PASTA_CONTAS, GetName(id));
  3474.         DOF2_SetInt(oi, "NivelAdmin", 1);
  3475.         AtualizarLabel(id);
  3476.     }
  3477.     else if(level == 0)
  3478.     {
  3479.         IsAdmin[id] = 0;
  3480.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3481.         format(string, sizeof(string),"( Info ) %s Retirou Você da Adminstração..", GetName(playerid));
  3482.         SendClientMessage(id, -1 ,string);
  3483.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3484.         format(string, sizeof(string),"( Info ) Você retirou %s da adminstração...", GetName(id));
  3485.         SendClientMessage(playerid, Vermelho ,string);
  3486.         format(oi, sizeof(oi), PASTA_CONTAS, GetName(id));
  3487.         DOF2_SetInt(oi, "NivelAdmin", 0);
  3488.         AtualizarLabel(id);
  3489.     }
  3490.     return 1;
  3491. }
  3492.  
  3493. CMD:setvip(playerid,params[])
  3494. {
  3495.     new id, level, oi[100], string[150];
  3496.     if(sscanf(params, "ui", id, level)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /setvip [id] [0/1]");
  3497.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3498.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Vermelho, "( Erro ) Jogador não conectado.");
  3499.     if(level > 2) return SendClientMessage(playerid, Vermelho, "( Erro ) Use '0' Para Retirar e '1' Para Colocar..");
  3500.     if(level == 1)
  3501.     {
  3502.         IsVip[id] = 1;
  3503.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ V.I.P ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3504.         format(string, sizeof(string),"( Vip ) %s setou você como um membro Vip!!", GetName(playerid));
  3505.         SendClientMessage(id, -1 ,string);
  3506.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ V.I.P ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3507.         format(string, sizeof(string),"( Info ) Você promoveu %s para de adminstrador...", GetName(id));
  3508.         format(oi, sizeof(oi), PASTA_CONTAS, GetName(id));
  3509.         DOF2_SetInt(oi, "Vip", 1);
  3510.     }
  3511.     else if(level == 0)
  3512.     {
  3513.         IsVip[id] = 0;
  3514.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ V.I.P ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3515.         format(string, sizeof(string),"( Info ) %s retirou seu vip! Seu Prazo de Vip Acabou.", GetName(playerid));
  3516.         SendClientMessage(id, -1 ,string);
  3517.         SendClientMessage(id, Verde , "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ V.I.P ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  3518.         format(string, sizeof(string),"( Info ) Você retirou o VIP do Jogador: %s ...", GetName(id));
  3519.         SendClientMessage(playerid, Vermelho ,string);
  3520.         format(oi, sizeof(oi), PASTA_CONTAS, GetName(id));
  3521.         DOF2_SetInt(oi, "Vip", 0);
  3522.     }
  3523.     return 1;
  3524. }
  3525.  
  3526. CMD:test(playerid)
  3527. {
  3528.     dLoop(i){AtualizarLabel(i);return true;}
  3529.     return 1;
  3530. }
  3531.  
  3532. CMD:trazerall(playerid)
  3533. {
  3534.     new index = -1, Float:pos[3], sTr[100];
  3535.     GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  3536.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3537.     while(++index < MAX_PLAYERS)
  3538.     {
  3539.         SetPlayerPos(index, pos[0], pos[1], pos[2]);
  3540.         format(sTr, sizeof(sTr), "( AdminCMD ) O Adminstrador %s puxou todos para a sua posição!", GetName(playerid));
  3541.         SendClientMessageToAll(coradmin, sTr);
  3542.     }
  3543.     return 1;
  3544. }
  3545.  
  3546. CMD:ejetar(playerid,params[])
  3547. {
  3548.     new id, string[150];
  3549.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3550.     if(sscanf(params,"u", id)) return SendClientMessage(playerid,0xF6DF00AA,"( Erro ) Uso correto: /ejetar [ID do Jogador]");
  3551.     if(!IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid,0xF60000AA,"( Erro ) Este jogador não esta em um veiculo.");
  3552.     format(string, sizeof(string),"( AdminCMD ) O administrador %s removeu você do veiculo.", GetName(playerid));
  3553.     SendClientMessage(id, coradmin ,string);
  3554.     format(string, sizeof(string),"( AdminCMD ) Você removeu o jogador %s do veiculo.", GetName(id));
  3555.     SendClientMessage(playerid, coradmin ,string);
  3556.     RemovePlayerFromVehicle(id);
  3557.     return 1;
  3558. }
  3559.  
  3560. CMD:injetar(playerid,params[])
  3561. {
  3562.     new id, string[150];
  3563.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3564.     if(sscanf(params,"u", id)) return SendClientMessage(playerid,0xF6DF00AA,"( Erro ) Uso correto: /injetar [ID do Jogador]");
  3565.     format(string, sizeof(string),"( AdminCMD ) O administrador %s injetou você no veiculo.", GetName(playerid));
  3566.     SendClientMessage(id, coradmin ,string);
  3567.     format(string, sizeof(string),"( AdminCMD ) Você Injetou o jogador %s no veiculo.", GetName(id));
  3568.     SendClientMessage(playerid, coradmin ,string);
  3569.     PutPlayerInVehicle(id, GetPlayerVehicleID(playerid), 1);
  3570.     return 1;
  3571. }
  3572.  
  3573. CMD:ecarona(playerid,params[])
  3574. {
  3575.     new id, string[150];
  3576.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3577.     if(sscanf(params,"u", id)) return SendClientMessage(playerid,0xF6DF00AA,"( Erro ) Uso correto: /ecarona [ID do Jogador]");
  3578.     format(string, sizeof(string),"( AdminCMD ) Você Entrou no carro  do jogador %s.", GetName(id));
  3579.     SendClientMessage(playerid, coradmin ,string);
  3580.     new vid;
  3581.     vid = GetPlayerVehicleID(id);
  3582.     PutPlayerInVehicle(playerid, vid, 1);
  3583.     return 1;
  3584. }
  3585.  
  3586. CMD:virar(playerid)
  3587. {
  3588.     new Float:X, Float:Y, Float:Z;
  3589.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3590.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFF0000AA,"( Erro ) Você não está em um veiculo!");
  3591.     SetCameraBehindPlayer(playerid);
  3592.     GetPlayerPos(playerid, X, Y, Z);
  3593.     SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
  3594.     SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
  3595.     return 1;
  3596. }
  3597.  
  3598. CMD:limparchat(playerid)
  3599. {
  3600.     new string[70];
  3601.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3602.     for(new i=0; i < 0xF; i++){SendClientMessageToAll(0xFFFFFFFF, " ");}
  3603.     format(string, sizeof(string), "( AdminCMD ) O Admin %s limpou o chat!", GetName(playerid));
  3604.     SendClientMessageToAll(coradmin,string);
  3605.     return 1;
  3606. }
  3607.  
  3608. cmd(trazer, playerid, params[])
  3609. {
  3610.     new ID , string[120];
  3611.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3612.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Vermelho, "Use: /trazer (ID)");
  3613.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Vermelho, "( Erro ) Id Invalido!");
  3614.     format(string, 120, "( AdminCMD ) Você trouxe '%s' (%d) até a sua posição.", GetName(ID), ID);
  3615.     SendClientMessage(playerid, coradmin, string);
  3616.     new Float:x, Float:y, Float:z;
  3617.     GetPlayerPos(playerid, x, y, z);
  3618.     SetPlayerPos(ID, x, y, z);
  3619.     SetPlayerInterior(ID, GetPlayerInterior(playerid));
  3620.     if(IsPlayerInAnyVehicle(playerid))
  3621.     {
  3622.         new VehicleID;
  3623.         VehicleID = GetPlayerVehicleID(playerid);
  3624.         SetVehiclePos(VehicleID, x + 1, y + 1, z);
  3625.         PutPlayerInVehicle(playerid, VehicleID, 0);
  3626.     }
  3627.     return 1;
  3628. }
  3629.  
  3630. cmd(ir, playerid, params[])
  3631. {
  3632.     new ID , string[120];
  3633.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3634.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Vermelho, "Use: /ir (ID)");
  3635.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Vermelho, "( Erro ) Id Invalido!");
  3636.     format(string, 120, "( AdminCMD ) Você se teleportou até: '%s' (%d)", GetName(ID), ID);
  3637.     SendClientMessage(playerid, coradmin, string);
  3638.     new Float:x, Float:y, Float:z;
  3639.     GetPlayerPos(ID, x, y, z);
  3640.     SetPlayerPos(playerid, x, y, z);
  3641.     SetPlayerInterior(playerid, GetPlayerInterior(ID));
  3642.     if(IsPlayerInAnyVehicle(playerid))
  3643.     {
  3644.         new VehicleID;
  3645.         VehicleID = GetPlayerVehicleID(playerid);
  3646.         SetVehiclePos(VehicleID, x + 1, y + 1, z);
  3647.         PutPlayerInVehicle(playerid, VehicleID, 0);
  3648.     }
  3649.     return 1;
  3650. }
  3651.  
  3652. cmd(congelar, playerid, params[])
  3653. {
  3654.     new ID , string[120];
  3655.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3656.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Vermelho, "Use: /congelar (id)");
  3657.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Vermelho, "( Erro ) Id Invalido.");
  3658.     format(string, 120, "( AdmCMD ) Você congelou o jogador: '%s' (%d)", GetName(ID), ID);
  3659.     SendClientMessage(playerid, coradmin, string);
  3660.     format(string, 120, "( AdmCMD ) O Adminstrador %s (%d) Congelou Você.", GetName(playerid), playerid);
  3661.     SendClientMessage(ID, coradmin, string);
  3662.     TogglePlayerControllable(ID, 0);
  3663.     return 1;
  3664. }
  3665.  
  3666. cmd(descongelar, playerid, params[])
  3667. {
  3668.     new ID , string[120];
  3669.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3670.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Vermelho, "Use: /descongelar (id)");
  3671.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Vermelho, "( Erro ) Id Invalido");
  3672.     format(string, 120, "( AdmCMD ) Você descongelou o jogador: '%s' (%d)", GetName(ID), ID);
  3673.     SendClientMessage(playerid, coradmin, string);
  3674.     format(string, 120, "( AdmCMD ) O Adminstrador %s (%d) Descongelou Você.", GetName(playerid), playerid);
  3675.     SendClientMessage(ID, coradmin, string);
  3676.     TogglePlayerControllable(ID, 1);
  3677.     return 1;
  3678. }
  3679.  
  3680. CMD:dararma(playerid, params[])
  3681. {
  3682.     new pid, arma, string[120];
  3683.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3684.     if(pid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Vermelho, "( Erro ) ID invalido.");
  3685.     if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, Vermelho, "( Erro ) Usuario não conectado.");
  3686.     if(sscanf(params, "ui", pid, arma)) return SendClientMessage(playerid, Vermelho, "Use:  /dararma [id] [quantia]");
  3687.     format(string, 120, "( AdmCMD ) O Adminstrador %s (%d) Deu para você a Arma: %s.", GetName(playerid), playerid, GetPlayerWeaponName(playerid));
  3688.     SendClientMessage(playerid, 0x00FF40AA, string);
  3689.     GivePlayerWeapon(pid, arma, 400);
  3690.     return 1;
  3691. }
  3692.  
  3693. CMD:av(playerid, params[])
  3694. {
  3695.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3696.     new text[128], str[256];
  3697.     if(sscanf(params,"s", text))return SendClientMessage(playerid, Vermelho ,"Use: /av [Texto]");
  3698.     format(str ,sizeof(str),"[ Mensagem da Adminstração ] %s (%d) : %s", GetName(playerid), playerid , text);
  3699.     SendClientMessageToAll(Verde, str);
  3700.     return 1;
  3701. }
  3702.  
  3703. CMD:climas(playerid)
  3704. {
  3705.     if(!IsAdmin[playerid] && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Vermelho, "Você não é um adminstrador");
  3706.     ShowPlayerDialog(playerid, CLIMA, DIALOG_STYLE_LIST, "Tempos", "Clima\nHora", "Selecionar", "Cancelar");
  3707.     return 1;
  3708. }
  3709.  
  3710. CMD:clima(playerid, params[])
  3711. {
  3712.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Info )  Você não tem permissão para usar este comando!");
  3713.     new Clima, Nome[MAX_PLAYER_NAME], String[100];
  3714.     if(sscanf(params, "d", Clima)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /clima [0 a 45]");
  3715.     if(Clima <= 0 && Clima >= 46) return SendClientMessage(playerid, 0xFF4500AA, "( Erro ) O clima precisa ser entre 1 a 45!");
  3716.     if(Clima <= 0) return SendClientMessage(playerid, 0xFF4500AA, "( Erro ) O clima precisa ser entre 1 a 45!");
  3717.     if(Clima >= 1 && Clima < 46)
  3718.     SetWeather(Clima);
  3719.     GetPlayerName(playerid, Nome, sizeof(Nome));
  3720.     format(String, sizeof(String), "( AdminCMD ) %s mudou o clima para (%d)", Nome,Clima);
  3721.     SendClientMessageToAll(coradmin, String);
  3722.     return true;
  3723. }
  3724.  
  3725. CMD:espiar(playerid, params[])
  3726. {
  3727.     new specplayerid , Ele, string[150];
  3728.     if(sscanf(params, "u", Ele))  return SendClientMessage(playerid, 0x0000FFAA, "Use:  /espiar (Id)");
  3729.     TogglePlayerSpectating(playerid, 1);
  3730.     PlayerSpectatePlayer(playerid, specplayerid);
  3731.     SetPlayerInterior(playerid, GetPlayerInterior(specplayerid));
  3732.     gSpectateID[playerid] = specplayerid;
  3733.     gSpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
  3734.     format(string, sizeof(string), "( AdminCMD ) Você está espiando o Jogador: %s (%d)", GetName(Ele), Ele);
  3735.     SendClientMessage(Ele, corpc1, string);
  3736.     return 1;
  3737. }
  3738.  
  3739. CMD:pararespiar(playerid, params[])
  3740. {
  3741.     new Ele, string[150];
  3742.     if(sscanf(params, "u", Ele))  return SendClientMessage(playerid, 0x0000FFAA, "Use:  /paraespiar (Id)");
  3743.     TogglePlayerSpectating(playerid, 0);
  3744.     gSpectateID[playerid] = INVALID_PLAYER_ID;
  3745.     gSpectateType[playerid] = ADMIN_SPEC_TYPE_NONE;
  3746.     format(string, sizeof(string), "( AdminCMD ) Você parou de Espiar o Jogador: %s (%d)", GetName(Ele), Ele);
  3747.     SendClientMessage(Ele, corpc1, string);
  3748.     return 1;
  3749. }
  3750.  
  3751. CMD:ac(playerid, params[])
  3752. {
  3753.     new text[128], str[256];
  3754.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3755.     if(sscanf(params,"s", text))return SendClientMessage(playerid, Vermelho ,"Use: /ac [Texto]");
  3756.     for(new i = 0; i < MAX_PLAYERS; i++)
  3757.     {
  3758.         if(IsPlayerAdmin(playerid) && IsAdmin[playerid] == 1)
  3759.         {
  3760.             format(str ,sizeof(str),"[ Chat da Adminstração ] %s (%d) : %s", GetName(playerid), i , text);
  3761.             SendClientMessage(i, Amarelo, str);
  3762.         }
  3763.     }
  3764.     return 1;
  3765. }
  3766.  
  3767. CMD:setskin(playerid, params[])
  3768. {
  3769.     new skinid,pid,string[120];
  3770.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3771.     if(sscanf(params, "ui", pid, skinid)) return SendClientMessage(playerid, Vermelho, "Use:  /setskin [id] [skin]");
  3772.     if(pid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Vermelho, "( Erro ) ID invalido.");
  3773.     if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, Vermelho, "( Erro ) Usuario não conectado.");
  3774.     SetPlayerSkin(pid, skinid);
  3775.     format(string, 120, "( AdmCMD ) O Adminstrador %s (%d) Alterou sua Skin Para: %d.", GetName(playerid), playerid, skinid);
  3776.     SendClientMessage(playerid, 0x00FF40AA, string);
  3777.     return 1;
  3778. }
  3779.  
  3780. CMD:pintar(playerid, params[])
  3781. {
  3782.     static c1, c2 , string[128];
  3783.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3784.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho,"( Erro ) Você não está em um carro!");
  3785.     if(sscanf(params,"ii", c1, c2)) return SendClientMessage(playerid , 0xF60000AA , "Use: /pintar [cor1] [cor2]!") ;
  3786.     ChangeVehicleColor(GetPlayerVehicleID (playerid), c1,c2) ;
  3787.     format(string, 128, "( AdminCMD ) Você mudou as cores do veículo para: %d - %d", c1, c2);
  3788.     SendClientMessage(playerid, coradmin, string);
  3789.     return 1;
  3790. }
  3791.  
  3792. CMD:acmd(playerid)
  3793. {
  3794.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3795.     ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Comandos De Adminstrador", "/jetpack /setskin /ac /av /pararespiar /espiar /clima /climas (< em dialog) /dararma\n/congelar /descongelar /ir /trazer /limparchat /virar /ejetar /ban\n/rv /reparar /cv /dv /trazerall /pintar /setprof /dargrana /retirargrana\n/setvip /darcombustivel /setlevel /darlevel /injetar /ecarona", "Fechar", "");
  3796.     return 1;
  3797. }
  3798.  
  3799. /* Fim Comandos Dos Adminstradores */
  3800.  
  3801. CMD:comandos(playerid)
  3802. {
  3803.     ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Comandos Do Servidor", "/pm /creditos /transferir /admnis /apostarlot /relatorio\n/lsamp /jetpack /primeirapessoa /utilitarios /criarconta /entrarconta /banco /senhabanco /licencas /empregos /", "Fechar", "");
  3804.     return 1;
  3805. }
  3806.  
  3807. CMD:criarconta(playerid)
  3808. {
  3809.     if(!PlayerToPoint(20.0, playerid, 1424.6754, -981.2695, 1639.7843)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não está no Banco Central!");
  3810.     new string[140+24];
  3811.     format(string, sizeof(string), DIRETORIOB , nome(playerid));
  3812.     if(DOF2_FileExists(string)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não pode criar duas contas no banco, para acessar a sua normalmente use: /entrarconta");
  3813.     format(string, sizeof(string), "Conta Bancária\n\nSeu Usuário: %s\nInsira uma Senha Bancária para Continuar:", nome(playerid));
  3814.     ShowPlayerDialog(playerid, DIALOGID4, DIALOG_STYLE_INPUT, "Banco - 24/7", string, "Criar", "Cancelar");
  3815.     return 1;
  3816. }
  3817.  
  3818. CMD:entrarconta(playerid)
  3819. {
  3820.     new string[140+24];
  3821.     if(LogadoB[playerid] == true) return SendClientMessage(playerid, Vermelho, "( Info ) Você já está logado em sua conta bancária.");
  3822.     format(string, sizeof(string), DIRETORIOB , nome(playerid));
  3823.     if(!DOF2_FileExists(string)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não tem uma conta no banco, Para criar uma: /criarconta");
  3824.     format(string, sizeof(string), "Conta Bancária\n\nSeu Usuário: %s\n\nInsira sua senha bancária:", nome(playerid));
  3825.     ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_INPUT, "Banco - 24/7", string, "Entrar", "Cancelar");
  3826.     return 1;
  3827. }
  3828.  
  3829. CMD:banco(playerid)
  3830. {
  3831.     if(!PlayerToPoint(20.0, playerid, 1417.7922, -981.4893, 1639.7843)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não está no Banco Central!");
  3832.     new string[140+24];
  3833.     if(!LogadoB[playerid]) return SendClientMessage(playerid, Vermelho, "( Info ) Você precisa logar em sua conta bancária.");
  3834.     format(string, sizeof(string), DIRETORIOB , nome(playerid));
  3835.     if(!DOF2_FileExists(string)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não tem conta bancária, para criar: /criarconta");
  3836.     format(string, sizeof(string), "Conta Bancária\nSeu Usuário: %s\n\nQual operação deseja fazer?", nome(playerid));
  3837.     ShowPlayerDialog(playerid, DIALOGID5, DIALOG_STYLE_MSGBOX, "Banco", string, "Saldo", "Transação");
  3838.     return 1;
  3839. }
  3840.  
  3841. CMD:senhabanco(playerid)
  3842. {
  3843.     if(!PlayerToPoint(20.0, playerid, 1421.2357, -981.5718, 1639.7843)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não está no Banco Central!");
  3844.     new string[140+24];
  3845.     if(!LogadoB[playerid]) return SendClientMessage(playerid, Vermelho, "( Info ) Você precisa logar em sua conta bancária.");
  3846.     format(string, sizeof(string), "Conta Bancária\nSeu Usuário: %s\nInsira sua senha antiga para continuar:", nome(playerid));
  3847.     ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_INPUT, "Banco - 24/7", string, "Confirmar", "Cancelar");
  3848.     SenhaB[playerid] = true;
  3849.     return 1;
  3850. }
  3851.  
  3852. CMD:utilitarios(playerid)
  3853. {
  3854.     if(!PlayerToPoint(20.0, playerid, -29.5713, -185.1213, 1003.5469)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não está na Loja de Utilitários");
  3855.     ShowPlayerDialog(playerid, dUtilitarios, DIALOG_STYLE_LIST, "Loja de Utilitários", "Jetpack [ 750.000 {00FF00}R$ {FFFAFA} ]\nLogo SA:MP [ 50.000 {00FF00}R$ {FFFAFA}]\nPrancha de Surf [ 75.000 {00FF00}R$ {FFFAFA}]", "Comprar", "Cancelar");
  3856.     return 1;
  3857. }
  3858.  
  3859. CMD:empregos(playerid)
  3860. {
  3861.     if(!PlayerToPoint(20.0, playerid, 1490.4816, 1305.5992, 1093.2964)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não está na Central de Empregos");
  3862.     ShowPlayerDialog(playerid, dEmpregos, DIALOG_STYLE_LIST, "Empregos", "Profissões de Classe Alta\nProfissões de Classe Média\nProfissões de Classe Baixa\nProfissões do Crime\nFicar Desempregado", "Selecionar", "Cancelar");
  3863.     return 1;
  3864. }
  3865.  
  3866. CMD:licencas(playerid)
  3867. {
  3868.     if(!PlayerToPoint(20.0, playerid, 822.8384, 3.1775, 1004.1797)) return SendClientMessage(playerid, Vermelho, "( Info ) Você não está no Centro de Licenças");
  3869.     ShowPlayerDialog(playerid, dLicencas, DIALOG_STYLE_LIST, "Licenças - Info", "Habilitação Terrestre [ 700 {00FF00}R$ {FFFAFA} ]\nHabilitação Náutica [ 1000 {00FF00}R$ {FFFAFA} ]\nHabilitação Aérea [ 1300 {00FF00}R$ {FFFAFA} ]\nPorte de Armas [ 2500 {00FF00}R$ {FFFAFA} ]", "Selecionar", "Cancelar");
  3870.     return 1;
  3871. }
  3872.  
  3873. CMD:pm(playerid, params[])
  3874. {
  3875.     new id, text[280];
  3876.     if(sscanf(params,"us", id, text))return SendClientMessage(playerid, Vermelho ,"Use: /pm [ID] [Text]");
  3877.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Vermelho, "( Erro ) Jogador não conectado!");
  3878.     format(text, 120, "[ PM - Recebida ] %s (%d): %s", GetName(playerid), playerid, text);
  3879.     SendClientMessage(id, 0xFA00FFFF, text);
  3880.     format(text, 120, "[ PM - Enviada ] %s (%d): %s", GetName(id), id , text);
  3881.     SendClientMessage(playerid, 0xFA00FFFF, text);
  3882.     return 1;
  3883. }
  3884.  
  3885. CMD:creditos(playerid)
  3886. {
  3887.     SendClientMessage(playerid, corpc1 ,"~~~~~~~~~~~~~~~~~~~~~~ Créditos ~~~~~~~~~~~~~~~~~~~~~~");
  3888.     SendClientMessage(playerid, -1 ,"• GameMode Feito e Atualizado Por dPlaYer_");
  3889.     SendClientMessage(playerid, -1 ,"• Agracemos a Nossa Equipe e a Você Por Ajudar a Manter o Servidor Online.");
  3890.     SendClientMessage(playerid, corpc1 ,"~~~~~~~~~~~~~~~~~~~~~~ Créditos ~~~~~~~~~~~~~~~~~~~~~~");
  3891.     return 1;
  3892. }
  3893.  
  3894. CMD:ligarc(playerid, params[])
  3895. {
  3896.     new id, dString[50];
  3897.     if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /ligarc [id] [quantia]");
  3898.     format(dString, sizeof(dString), "( Info ) Você ligou pro jogador %s, aguarde ele atender a chamada! Para Encerrar a Chamada use: /desligarc", GetName(id));
  3899.     SendClientMessage(playerid, Verde, dString);
  3900.     //
  3901.     format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(id));
  3902.     SendClientMessage(playerid, Verde, dString);
  3903.     AceitLigacao[id] = 1;
  3904.     SetTimerEx("AceitarLigacao", 1000, true, "i", id);
  3905.     LigadorCel[playerid] = playerid;
  3906.     RecebedorCel[playerid] = id;
  3907.     return 1;
  3908. }
  3909.  
  3910. forward AceitarLigacao(playerid);
  3911. public AceitarLigacao(playerid)
  3912. {
  3913.     new dString[100];
  3914.     if(AceitLigacao[playerid] == 1)
  3915.     {
  3916.         format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(LigadorCel[playerid]));
  3917.         SendClientMessage(playerid, Verde, dString);
  3918.         AceitLigacao[playerid] = 2;
  3919.     }
  3920.     if(AceitLigacao[playerid] == 2)
  3921.     {
  3922.         AceitLigacao[playerid] = 3;
  3923.         format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(LigadorCel[playerid]));
  3924.         SendClientMessage(playerid, Verde, dString);
  3925.     }
  3926.     if(AceitLigacao[playerid] == 3)
  3927.     {
  3928.         AceitLigacao[playerid] = 4;
  3929.         format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(LigadorCel[playerid]));
  3930.         SendClientMessage(playerid, Verde, dString);
  3931.     }
  3932.     if(AceitLigacao[playerid] == 4)
  3933.     {
  3934.         AceitLigacao[playerid] = 5;
  3935.         format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(LigadorCel[playerid]));
  3936.         SendClientMessage(playerid, Verde, dString);
  3937.     }
  3938.     if(AceitLigacao[playerid] == 5)
  3939.     {
  3940.         AceitLigacao[playerid] = 0;
  3941.         format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(LigadorCel[playerid]));
  3942.         SendClientMessage(playerid, Verde, dString);
  3943.     }
  3944.     return true;
  3945. }
  3946.  
  3947. CMD:desligarc(playerid, params[])
  3948. {
  3949.     new id, dString[50];
  3950.     if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF4500AA, "Use:  /ligarc [id] [quantia]");
  3951.     format(dString, sizeof(dString), "( Info ) Você ligou pro jogador %s, aguarde ele atender a chamada! Para Encerrar a Chamada use: /desligarc", GetName(id));
  3952.     SendClientMessage(playerid, Verde, dString);
  3953.     //
  3954.     format(dString, sizeof(dString), "( Info ) O Jogador %s está ligando pra você, Para Atender a Chamada use: /atenderc", GetName(id));
  3955.     SendClientMessage(playerid, Verde, dString);
  3956.     return 1;
  3957. }
  3958.  
  3959.  
  3960. CMD:transferir(playerid, params[])
  3961. {
  3962.     new id, quant, string[150];
  3963.     if(sscanf(params, "ud", id, quant)) return SendClientMessage(playerid, Vermelho, "Use: /transferir [id] [quantidade]");
  3964.     GivePlayerGrana(playerid, -quant);
  3965.     GivePlayerGrana(id, quant);
  3966.     format(string, sizeof(string),"( Info ) Você enviou à %s [%i] %dR$", GetName(id), id, quant);
  3967.     SendClientMessage(playerid, Amarelo, string);
  3968.     format(string, sizeof(string),"( Info ) Você recebeu de %s [%i]  %dR$", GetName(playerid), playerid, quant);
  3969.     SendClientMessage(id, Amarelo, string);
  3970.     return true;
  3971. }
  3972.  
  3973. CMD:pgrana(playerid)
  3974. {
  3975.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para isto!");
  3976.     GivePlayerGrana(playerid, 5000);
  3977.     return 1;
  3978. }
  3979.  
  3980. CMD:loteria(playerid,params[])
  3981. {
  3982.     if(!IsAdmin[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para isto!");
  3983.     LoteriaPublic();
  3984.     return 1;
  3985. }
  3986.  
  3987. CMD:lsamp(playerid)
  3988. {
  3989.     if(!LogoSAMP[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  3990.     if(PSamp == 0)
  3991.     {
  3992.         SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337);
  3993.         SendClientMessage(playerid, 0xFFF000AA, "( Info ) Você acaba de usar o objeto: Logo SA:MP, para remove-lo digite: /lsamp");
  3994.         PSamp = 1;
  3995.     }
  3996.     else if(PSamp == 1)
  3997.     {
  3998.         SendClientMessage(playerid, 0xFFF000AA, "( Info ) Você acaba de remover o objeto: Logo SA:MP, para coloca-lo digite: /lsamp");
  3999.         RemovePlayerAttachedObject(playerid, 1);
  4000.         PSamp = 0;
  4001.     }
  4002.     return 1;
  4003. }
  4004.  
  4005. CMD:psurf(playerid)
  4006. {
  4007.     if(!TemPSurf[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Você não tem permissão para usar este comando!");
  4008.     if(PSamp == 0)
  4009.     {
  4010.         SetPlayerAttachedObject(playerid, 2, 2404, 1, 0.051352, -0.140526, -0.077093, 0.000000, 121.550628, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_SURF_BOARD - Prancha de surf nas costas
  4011.         SendClientMessage(playerid, 0xFFF000AA, "( Info ) Você acaba de usar o objeto: Prancha de Surf, para remove-lo digite: /psurf");
  4012.         PSamp = 1;
  4013.     }
  4014.     else if(PSamp == 1)
  4015.     {
  4016.         SendClientMessage(playerid, 0xFFF000AA, "( Info ) Você acaba de remover o objeto: Prancha de Surf, para coloca-lo digite: /psurf");
  4017.         RemovePlayerAttachedObject(playerid, 2);
  4018.         PSamp = 0;
  4019.     }
  4020.     return 1;
  4021. }
  4022.  
  4023.  
  4024. CMD:apostarlot(playerid,params[])
  4025. {
  4026.     new string[128], NumeroToLoto;// , NumeroValido;
  4027.     if(sscanf(params, "s", NumeroToLoto)) return SendClientMessage(playerid, Vermelho, "Uso correto: /apostarlot [numero]");
  4028.     //if(1 < (NumeroToLoto) > 100) return SendClientMessage(playerid, Vermelho, "( Erro ) Número deve estar entre 0 e 100 - Custo do Bilhete: 400R$");
  4029.     if(NumeroToLoto > 100 && NumeroToLoto < 1) return SendClientMessage(playerid, Vermelho, "( Erro ) Número deve estar entre 0 e 100 - Custo do Bilhete: 400R$");
  4030.     else if(TaJogando[playerid] == 1)return SendClientMessage(playerid, Vermelho, "LOTERIA: Você já está jogando na Loteria!");
  4031.     else if(GetPlayerMoney(playerid) < 400) return SendClientMessage(playerid, Vermelho, "LOTERIA: Você não tem $400 para comprar o Número");
  4032.     if(NumeroToLoto == NumeroLoto[playerid]) return SendClientMessage(playerid, Vermelho, "( Erro ) Esse número já foi escolhido!");
  4033.     format(string, sizeof(string), "LOTERIA: Você jogou na loteria com o numero: %d", NumeroToLoto);
  4034.     SendClientMessage(playerid, Amarelo, string);
  4035.     GivePlayerGrana(playerid, -400);
  4036.     TaJogando[playerid] = 1;
  4037.     return 1;
  4038. }
  4039.  
  4040. stock SalvarDados(playerid)
  4041. {
  4042.     new conta[256],conta2[60];
  4043.     format(conta, sizeof(conta), PASTA_CONTAS, GetName(playerid));
  4044.     format(conta2, sizeof(conta2), DIRETORIOB, GetName(playerid));
  4045.     if(PlayerInfo[playerid][Logado] == 1)
  4046.     {
  4047.         DOF2_SetInt(conta, "Profissao", Profissao[playerid]);
  4048.         DOF2_SetInt(conta2, "Saldo", DOF2_GetInt(conta, "Saldo"));
  4049.         DOF2_SetInt(conta, "Dinheiro", GetPlayerGrana(playerid));
  4050.         DOF2_SetInt(conta, "HTerrestre", DOF2_GetInt(conta, "HTerrestre"));
  4051.         DOF2_SetInt(conta, "HNautica", DOF2_GetInt(conta, "HNautica"));
  4052.         DOF2_SetInt(conta, "HAerea", DOF2_GetInt(conta, "HAerea"));
  4053.         DOF2_SetInt(conta, "PorteArmas", DOF2_GetInt(conta, "PorteArmas"));
  4054.         DOF2_SetInt(conta, "Preso", EstaPreso[playerid]);
  4055.         DOF2_SetInt(conta, "TempoPreso", TimerPreso[playerid]);
  4056.         DOF2_SetInt(conta, "Level", Level[playerid]);
  4057.         DOF2_SetInt(conta, "TempoLevel", TempoLevel[playerid]);
  4058.         DOF2_SetInt(conta, "Experiencia", Experiencia[playerid]);
  4059.         DOF2_SetInt(conta, "Gasolina", DOF2_GetInt(conta, "Gasolina"));
  4060.         DOF2_SetInt(conta, "TemJP", DOF2_GetInt(conta, "TemJP"));
  4061.         DOF2_SetInt(conta, "LogoSAMP", DOF2_GetInt(conta, "LogoSAMP"));
  4062.         DOF2_SetInt(conta, "TemPSurf", DOF2_GetInt(conta, "TemPSurf"));
  4063.         DOF2_SetInt(conta, "NivelAdmin", IsAdmin[playerid]);
  4064.         DOF2_SetInt(conta, "Vip", IsVip[playerid]);
  4065.         DOF2_SetInt(conta, "Skin", DOF2_GetInt(conta, "Skin"));
  4066.         DOF2_SetInt(conta, "EstiloLuta", GetPlayerFightingStyle(playerid));
  4067.         new ano, mes, dia2, stringd[30], stringh[30], Hour, Minute, Second;
  4068.         getdate(ano, mes, dia2);
  4069.         format(stringd, sizeof(stringd), " (%d/%d/%d)", dia2, mes, ano);
  4070.         gettime(Hour, Minute, Second);
  4071.         format(stringh, sizeof(stringh), " (%d:%d:%d)", Hour, Minute, Second);
  4072.         DOF2_SetString(conta, "Logou", stringd);
  4073.         DOF2_SetString(conta, "Horas", stringh);
  4074.         PlayerInfo[playerid][Logado] = 0;
  4075.         DOF2_SaveFile();
  4076.     }
  4077. }
  4078.  
  4079. public LoteriaPublic()
  4080. {
  4081.     new stringcm[256];
  4082.     new numerosorteado = randomEx(0, 99);
  4083.     new rand = random(9000);
  4084.     rand += 5000;
  4085.     DinheiroAcumuladoLoto += rand;
  4086.     for (new i = 0; i < MAX_PLAYERS; i++)
  4087.     {
  4088.         if (TaJogando[i] == 1)
  4089.         {
  4090.             if (vernumerosorteado[i] == numerosorteado)
  4091.             {
  4092.                 TGanhador = i;
  4093.             }
  4094.             TaJogando[i] = 0;
  4095.             NumeroLoto[i] = 0;
  4096.         }
  4097.         if (TGanhador != 0)
  4098.         {
  4099.             format(stringcm, sizeof(stringcm), "~g~[ ~w~Loteria & Salario ~g~] ~n~Premio Acumulado~w~ : %iR$~g~ R$~n~Numero Sorteado~w~ : %i~n~~g~Ganhador ~w~: %s", DinheiroAcumuladoLoto, numerosorteado, GetName(TGanhador));
  4100.             TextDrawSetString(TextLoteria, stringcm);
  4101.             TextDrawShowForPlayer(i, TextLoteria);
  4102.             TextDrawShowForPlayer(i, BoxLoto);
  4103.             //GivePlayerGrana(TGanhador, DinheiroAcumuladoLoto);
  4104.             //SendClientMessageToAll(Verde, stringcm);
  4105.             SetTimerEx("DestruirTDLoto", 5000, false, "d", i);
  4106.             TGanhador = -1;
  4107.         }
  4108.         format(stringcm, sizeof(stringcm), "~g~[ ~w~Loteria & Salario ~g~] ~n~Premio Acumulado~w~ : %iR$~g~ R$~n~Numero Sorteado~w~ : %i~n~~g~Ganhador ~w~: Niguem", DinheiroAcumuladoLoto, numerosorteado);
  4109.         TextDrawSetString(TextLoteria, stringcm);
  4110.         TextDrawShowForPlayer(i, TextLoteria);
  4111.         TextDrawShowForPlayer(i, BoxLoto);
  4112.         //GivePlayerGrana(TGanhador, DinheiroAcumuladoLoto);
  4113.         SetTimerEx("DestruirTDLoto", 5000, false, "d", i);
  4114.     }
  4115.     return 1;
  4116. }
  4117.  
  4118. forward DestruirTDLoto();
  4119. public DestruirTDLoto()
  4120. {
  4121.     for(new i; i < MAX_PLAYERS; i ++)
  4122.     {
  4123.         TextDrawHideForPlayer(i, BoxLoto);
  4124.         TextDrawHideForPlayer(i, TextLoteria);
  4125.     }
  4126.     return 1;
  4127. }
  4128.  
  4129. stock randomEx(minnum = cellmin,maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement