Advertisement
Guest User

Base RPG || iAplle

a guest
Apr 9th, 2019
4,218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 109.44 KB | None | 0 0
  1. #include <a_samp>
  2. #include <DOF2>
  3. #include <Pawn.CMD>
  4. #include <streamer>
  5. #include <foreach>
  6. #include <sscanf2>
  7. #include <mailer>
  8. #include <timerfix>
  9. #include <PreviewModelDialog>
  10.  
  11. //DEFINES//
  12. #define DIALOG_REGISTRO             1
  13. #define DIALOG_LOGIN                2
  14. #define DIALOG_AGENCIA              3
  15. #define DIALOG_HONES                4
  16. #define DIALOG_TRANSPORTES          5
  17. #define DIALOG_GOVERNO              6
  18. #define DIALOG_POLICIA              7
  19. #define DIALOG_FARMADAS             8
  20. #define DIALOG_MAFIA                9
  21. #define DIALOG_ROTAONIBUS           10
  22. #define DIALOG_SEMENTE              11
  23. #define DIALOG_SEMENTES             12
  24. #define DIALOG_PROFISSOES           13
  25. #define DIALOG_HOSPITAL             14
  26. #define DIALOG_UTILITARIOS          15
  27. #define DIALOG_CREDITOS             16
  28. #define DIALOG_EMAIL                17
  29. #define DIALOG_ATIVAR_CONTA         18
  30. #define DIALOG_RECUPERAR            19
  31. #define DIALOG_RECUPERAR_CODIGO     20
  32. #define DIALOG_SEXUALIDADE          21
  33. #define ADMIN_LEVEL                 22
  34. #define DIALOG_SEMPARAR             23
  35. #define DIALOG_IDENTIDADE           24
  36. #define DIALOG_ROTACARRO            25
  37. #define DIALOG_CONCE                26
  38. #define PASTA_CONTAS                "Contas/%s.ini"
  39. #define PASTA_CARROS                "Carros/%i.ini"
  40. /*FIM DEFINES*/
  41.  
  42. #define MAX_CARROS                  10
  43.  
  44. new sstring[300];
  45.  
  46. #define     SendClientFormat(%1,%2,%3,%4) do{format(sstring,sizeof(sstring),%3,%4);SendClientMessage(%1,%2,sstring);}while(IsPlayerConnected(-1))
  47.  
  48. #define MAILER_URL                  "sampdayz.000webhostapp.com/sendmailer.php"
  49. #define EMAIL_SERVIDOR              "Email"
  50.  
  51. //DEFINES CORES
  52. #define COR_ERRO                    0xFF4500FF
  53.  
  54. //DEFINES CONCE
  55. #define CARROS 3
  56. #define SPAWN_X 528.3288
  57. #define SPAWN_Y -1320.7841
  58. #define SPAWN_Z 17.2422
  59. #define ANGULO 99.7823
  60. #define Car_Infernus 30000
  61. #define Car_Cheetah 30000
  62. #define Car_Banshee 30000
  63.  
  64. //CORES PROFISSOES//
  65. #define COR_DESEMPREGADO            0xFFFAFAFF
  66. #define COR_MOTORISTABUS            0x009ACDFF
  67. #define COR_TAXI                    0xFFFF00FF
  68. #define COR_PILOTO                  0x6495EDFF
  69. #define COR_FAZENDEIRO              0xEE0000FF
  70. #define COR_CARROFORTE              0x5F9EA0FF
  71. #define COR_SMS                     0xFFA500FF
  72. #define COR_ADM                     0x4169E1FF
  73. #define COR_VERDE                   0x32CD32FF
  74. #define COR_BRANCO                  0xFFFFFFFF
  75. #define COR_VERMELHO                0xFF0000FF
  76. //TextDraws
  77. new Text:Textdraw0;
  78. new Text:Textdraw1;
  79. new Text:Aviso[MAX_PLAYERS];
  80.  
  81. //EMPREGOS//
  82. #define DESEMPREGADO                0
  83. #define MOTORISTA_ONIBUS            1
  84. #define TAXISTA                     2
  85. #define PILOTO                      3
  86. #define FAZENDEIRO                  4
  87. #define MOTORISTA_CARROFORTE        5
  88.  
  89. //FORWARDS
  90. forward PassageirosE(playerid);
  91. forward PassageirosD(playerid);
  92. forward DescarregouT(playerid);
  93. forward DescarregarA(playerid);
  94. forward Horas(playerid);
  95. forward Plantar1(playerid);
  96. forward Sumiu(playerid);
  97. //FIM FORWARDS
  98.  
  99. enum pPickupID {
  100.     PickUpAGENCIAEMPREGOSENTRADA,
  101.     PickUpAGENCIAEMPREGOSSAIDA
  102. }
  103. new PickupLeo[pPickupID];
  104.  
  105. enum pLeo {
  106.     bool:RegistroNaoConcluido,
  107.     pSenhaInvalida,
  108.     Senha,
  109.     Matou,
  110.     Morreu,
  111.     Dinheiro,
  112.     Profissao,
  113.     Sementes,
  114.     PlanoMedico,
  115.     Celular,
  116.     Creditos,
  117.     CodigoAtivarConta,
  118.     CodigoRecuperar,
  119.     Admin,
  120.     CarroID,
  121.     Level
  122. }
  123.  
  124. new PlayerLeo[MAX_PLAYERS][pLeo];
  125.  
  126. new CCP[MAX_PLAYERS];
  127. new Carregado[MAX_PLAYERS];
  128. new Trabalhando[MAX_PLAYERS];
  129. new EmRota[MAX_PLAYERS];
  130. new CCO[MAX_PLAYERS];
  131. new CheckCF[MAX_PLAYERS];
  132. new Plantando[MAX_PLAYERS];
  133. new Colher[MAX_PLAYERS];
  134. new Colhido[MAX_PLAYERS];
  135. new PassagemValor[MAX_PLAYERS];
  136. new PassagemOferecido[MAX_PLAYERS];
  137. new PassagemRecebido[MAX_PLAYERS];
  138. new PassagemID[MAX_PLAYERS];
  139. new PassagemPID[MAX_PLAYERS];
  140. new PassagemMensagem[MAX_PLAYERS];
  141. new PassagemTimer[MAX_PLAYERS];
  142. new PassagemJa[MAX_PLAYERS];
  143. new SemParar[MAX_PLAYERS];
  144. new CancelaP[MAX_PLAYERS][6];
  145. new bool:PassouPedagio[MAX_PLAYERS];
  146. new Calado[MAX_PLAYERS];
  147. new TimerCalado[MAX_PLAYERS];
  148. new CheckFazenda[5];
  149. new PAviao[8];
  150. new MOnibus[8];
  151. new CarroForte[8];
  152. new Maconha;
  153.  
  154. enum Plantacao
  155. {
  156.     Float:posX,
  157.     Float:posY,
  158.     Float:posZ
  159. };
  160.  
  161. static const PlantacaoF[][Plantacao] =
  162. {
  163.     {-1060.3507, -1616.7421, 76.3672}, //0
  164.     {-1060.2245, -1623.3790, 76.3672}, //1
  165.     {-1060.1792, -1630.3490, 76.3672}, //2
  166.     {-1052.4302, -1616.5619, 76.3672}, //3
  167.     {-1052.1691, -1623.4929, 76.3672}, //4
  168.     {-1051.9437, -1630.5760, 76.3672}, //5
  169.     {-1043.8438, -1616.5940, 76.3672}, //6
  170.     {-1043.6317, -1623.7639, 76.3672}, //7
  171.     {-1043.3975, -1630.7271, 76.3672}, //8
  172.     {-1035.2700, -1616.2325, 76.3672}, //9
  173.     {-1035.4470, -1623.9568, 76.3672}, //10
  174.     {-1035.6522, -1630.6733, 76.3672}  //11
  175. };
  176.  
  177. enum VeiculosConce {
  178.     VeiculosID,
  179.     VeiculoNome[28],
  180.     Preco
  181. };
  182.  
  183. new const VeiculosT[][VeiculosConce] =
  184. {
  185.     {400, "Landstalker", 35000},
  186.     {401, "Bravura", 40000},
  187.     {402, "Buffalo", 45000},
  188.     {403, "Linerunner", 120000},
  189.     {404, "Perennial", 30000},
  190.     {405, "Sentinel", 28000},
  191.     {408, "Trashmaster", 80000},
  192.     {409, "Stretch", 60000},
  193.     {410, "Manana", 60000},
  194.     {411, "Infernus", 200000},
  195.     {412, "Voodoo", 70000},
  196.     {413, "Pony", 65000},
  197.     {414, "Mule", 70000},
  198.     {415, "Cheetah", 50000},
  199.     {418, "Moonbeam", 50000},
  200.     {419, "Esperanto", 50000},
  201.     {421, "Washington", 50000},
  202.     {422, "Bobcat", 50000},
  203.     {424, "BF Injection", 50000},
  204.     {426, "Premier", 50000},
  205.     {429, "Banshee", 50000},
  206.     {431, "Bus", 50000},
  207.     {434, "Hotknife", 50000},
  208.     {436, "Previon", 50000},
  209.     {437, "Coach", 50000},
  210.     {439, "Stallion", 50000},
  211.     {440, "Rumpo", 50000},
  212.     {442, "Romero", 50000},
  213.     {445, "Admiral", 50000},
  214.     {451, "Turismo", 50000},
  215.     {455, "Flatbed", 50000},
  216.     {456, "Yankee", 50000},
  217.     {458, "Solair", 50000},
  218.     {461, "PCJ-600", 50000},
  219.     {462, "Faggio", 50000},
  220.     {463, "Freeway", 50000},
  221.     {466, "Glendale", 50000},
  222.     {467, "Oceanic", 50000},
  223.     {468, "Sanchez", 50000},
  224.     {471, "Quad", 50000},
  225.     {474, "Hermes", 50000},
  226.     {475, "Sabre", 50000},
  227.     {477, "ZR-350", 50000},
  228.     {478, "Walton", 50000},
  229.     {479, "Regina", 50000},
  230.     {480, "Comet", 50000},
  231.     {482, "Burrito", 50000},
  232.     {483, "Camper", 50000},
  233.     {489, "Rancher", 50000},
  234.     {491, "Virgo", 50000},
  235.     {492, "Greenwood", 50000},
  236.     {494, "Hotring Racer", 50000},
  237.     {495, "Sandking", 50000},
  238.     {496, "Blista Compact", 50000},
  239.     {498, "Boxville", 50000},
  240.     {499, "Benson", 50000},
  241.     {500, "Mesa", 50000},
  242.     {502, "Hotring Racer A", 50000},
  243.     {503, "Hotring Racer B", 50000},
  244.     {505, "Rancher Lure", 50000},
  245.     {506, "Super GT", 50000},
  246.     {507, "Elegant", 50000},
  247.     {508, "Journey", 50000},
  248.     {514, "Tanker", 50000},
  249.     {515, "Roadtrain", 50000},
  250.     {516, "Nebula", 50000},
  251.     {517, "Majestic", 50000},
  252.     {518, "Buccaneer", 50000},
  253.     {521, "FCR-900", 50000},
  254.     {522, "NRG-500", 50000},
  255.     {526, "Fortune", 50000},
  256.     {527, "Cadrona", 50000},
  257.     {529, "Willard", 50000},
  258.     {533, "Feltzer", 50000},
  259.     {534, "Remington", 50000},
  260.     {535, "Slamvan", 50000},
  261.     {536, "Blade", 50000},
  262.     {539, "Vortex", 50000},
  263.     {540, "Vincent", 50000},
  264.     {541, "Bullet", 50000},
  265.     {542, "Clover", 50000},
  266.     {543, "Sadler", 50000},
  267.     {545, "Hustler", 50000},
  268.     {546, "Intruder", 50000},
  269.     {547, "Primo", 50000},
  270.     {550, "Sunrise", 50000},
  271.     {551, "Merit", 50000},
  272.     {554, "Yosemite", 50000},
  273.     {555, "Windsor", 50000},
  274.     {558, "Uranus", 50000},
  275.     {559, "Jester", 50000},
  276.     {560, "Sultan", 50000},
  277.     {561, "Stratum", 50000},
  278.     {562, "Elegy", 50000},
  279.     {565, "Flash", 50000},
  280.     {566, "Tahoma", 50000},
  281.     {567, "Savanna", 50000},
  282.     {568, "Bandito", 50000},
  283.     {575, "Broadway", 50000},
  284.     {576, "Tornado", 50000},
  285.     {578, "DFT-30", 50000},
  286.     {579, "Huntley", 50000},
  287.     {580, "Stafford", 50000},
  288.     {581, "BF-400", 50000},
  289.     {585, "Emperor", 50000},
  290.     {586, "Wayfarer", 50000},
  291.     {587, "Euros", 50000},
  292.     {589, "Club", 50000},
  293.     {600, "Picador", 50000},
  294.     {602, "Alpha", 50000},
  295.     {603, "Phoenix", 50000}
  296. };
  297.  
  298. new
  299.     vNames[212][] =
  300.     {
  301.         "Landstalker", "Bravura", "Buffalo", "Linerunner", "Pereniel", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
  302.         "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Mr Whoopee", "BF Injection",
  303.         "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
  304.         "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
  305.         "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider",
  306.         "Glendale", "Oceanic", "Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina",
  307.         "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood",
  308.         "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B",
  309.         "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropdust", "Stunt", "Tanker", "RoadTrain",
  310.         "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "FBI Truck",
  311.         "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover",
  312.         "Sadler", "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster A",
  313.         "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight", "Trailer",
  314.         "Kart", "Mower", "Duneride", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "Newsvan", "Tug", "Trailer A", "Emperor",
  315.         "Wayfarer", "Euros", "Hotdog", "Club", "Trailer B", "Trailer C", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)",
  316.         "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T. Van", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A", "Luggage Trailer B",
  317.         "Stair Trailer", "Boxville", "Farm Plow", "Utility Trailer"
  318.     }
  319. ;
  320.  
  321. main()
  322. {
  323.     print("\n----------------------------------");
  324.     print(" Blank Gamemode by your name here");
  325.     print("----------------------------------\n");
  326. }
  327.  
  328. public OnGameModeInit()
  329. {
  330.     new string[64];
  331.     SetGameModeText("Nova Revolucão");
  332.  
  333.     for(new i = 0; i < sizeof(PlantacaoF); i ++)
  334.     {
  335.         format(string, sizeof(string), "{32CD32}Plantação de Maconha {FFFFFF}ID: %d", i);
  336.         Create3DTextLabel(string, 0xFFFFFFFF, PlantacaoF[i][posX], PlantacaoF[i][posY], PlantacaoF[i][posZ], 20.0, 0);
  337.         CheckFazenda[0] = CreateDynamicCP(PlantacaoF[i][posX], PlantacaoF[i][posY], PlantacaoF[i][posZ], 0.7, -1, -1, -1, 10);
  338.     }
  339.     AddPlayerClass(0, 1938.1903, -2645.8267, 13.5469, 355.7780, 0, 0, 0, 0, 0, 0);
  340.  
  341.     PickupLeo[PickUpAGENCIAEMPREGOSENTRADA] = CreatePickup(1314, 1, 1153.9910,-1771.7023,16.5992, -1); //Entrada Agência de Empregos
  342.     PickupLeo[PickUpAGENCIAEMPREGOSSAIDA] = CreatePickup(1239, 1, 1494.3116,1303.6232,1093.2891, -1); //Saida Agência de Empregos
  343.     //Aviao Piloto
  344.     PAviao[0] = CreateVehicle(593, 1938.1903, -2645.8267, 13.5469, 355.7780, -1, -1, 300);
  345.     PAviao[1] = CreateVehicle(593, 1738.0029, -2646.0476, 14.0346, 0.0000, -1, -1, 300);
  346.     PAviao[2] = CreateVehicle(593, 1904.8475, -2644.3452, 14.0346, 0.0000, -1, -1, 300);
  347.     PAviao[3] = CreateVehicle(593, 1870.2150, -2644.3452, 14.0346, 0.0000, -1, -1, 300);
  348.     PAviao[4] = CreateVehicle(593, 1839.0034, -2644.4233, 14.0346, 0.0000, -1, -1, 300);
  349.     PAviao[5] = CreateVehicle(593, 1804.4484, -2645.1787, 14.0346, 0.0000, -1, -1, 300);
  350.     PAviao[6] = CreateVehicle(593, 1772.5469, -2645.7295, 14.0346, 0.0000, -1, -1, 300);
  351.     //Onibus Motorista de Onbus
  352.     MOnibus[0] = CreateVehicle(437, 2807.5803, 1348.5842, 10.7402, -90.0000, -1, -1, 300);
  353.     MOnibus[1] = CreateVehicle(437, 2767.2524, 1271.9750, 10.7402, -90.0000, -1, -1, 300);
  354.     MOnibus[2] = CreateVehicle(437, 2767.2532, 1278.3861, 10.7402, -90.0000, -1, -1, 300);
  355.     MOnibus[3] = CreateVehicle(437, 2781.9856, 1292.4948, 10.7402, 180.0000, -1, -1, 300);
  356.     MOnibus[4] = CreateVehicle(437, 2767.3435, 1288.0079, 10.7402, -90.0000, -1, -1, 300);
  357.     MOnibus[5] = CreateVehicle(437, 2807.6604, 1335.7874, 10.7402, -90.0000, -1, -1, 300);
  358.     MOnibus[6] = CreateVehicle(437, 2807.3787, 1361.4490, 10.7402, -90.0000, -1, -1, 300);
  359.  
  360.     CarroForte[0] = CreateVehicle(428, 608.3939, -1306.0569, 14.3516, 8.0000, 6, 6, 300);
  361.     CarroForte[1] = CreateVehicle(428, 579.4124, -1309.7803, 14.0116, 8.0000, 6, 6, 300);
  362.     CarroForte[2] = CreateVehicle(428, 584.8554, -1309.2919, 14.0116, 8.0000, 6, 6, 300);
  363.     CarroForte[3] = CreateVehicle(428, 590.2287, -1308.8018, 14.0116, 8.0000, 6, 6, 300);
  364.     CarroForte[4] = CreateVehicle(428, 596.3364, -1307.7777, 14.0116, 8.0000, 6, 6, 300);
  365.     CarroForte[5] = CreateVehicle(428, 602.5659, -1306.9375, 14.0516, 8.0000, 6, 6, 300);
  366.  
  367.     //text draw horas
  368.     {
  369.         Textdraw1 = TextDrawCreate(547.486694, 31.516885, "00:00:00");
  370.         TextDrawLetterSize(Textdraw1, 0.265001, 1.989999);
  371.         TextDrawAlignment(Textdraw1, 1);
  372.         TextDrawColor(Textdraw1, -1);
  373.         TextDrawSetShadow(Textdraw1, 0);
  374.         TextDrawSetOutline(Textdraw1, 1);
  375.         TextDrawBackgroundColor(Textdraw1, 255);
  376.         TextDrawFont(Textdraw1, 2);
  377.         TextDrawSetProportional(Textdraw1, 1);
  378.         TextDrawSetShadow(Textdraw1, 0);
  379.     //text draw data
  380.         Textdraw0 = TextDrawCreate(547.330322, 16.183233, "00/00/00");
  381.         TextDrawLetterSize(Textdraw0, 0.278001, 1.799998);
  382.         TextDrawAlignment(Textdraw0, 1);
  383.         TextDrawColor(Textdraw0, -1);
  384.         TextDrawSetShadow(Textdraw0, 0);
  385.         TextDrawSetOutline(Textdraw0, 1);
  386.         TextDrawBackgroundColor(Textdraw0, 255);
  387.         TextDrawFont(Textdraw0, 2);
  388.         TextDrawSetProportional(Textdraw0, 1);
  389.         TextDrawSetShadow(Textdraw0, 0);
  390.         SetTimer("Horas", 1000, 1);
  391.     }
  392.     for(new i=0; i<GetMaxPlayers(); i++)
  393.     {
  394.         Aviso[i] = TextDrawCreate(35.000000, 152.000000, " ");
  395.         TextDrawBackgroundColor(Aviso[i], 255);
  396.         TextDrawFont(Aviso[i], 1);
  397.         TextDrawLetterSize(Aviso[i], 0.310000, 1.000000);
  398.         TextDrawColor(Aviso[i], -1);
  399.         TextDrawSetOutline(Aviso[i], 1);
  400.         TextDrawSetProportional(Aviso[i], 1);
  401.     }
  402.     SetTimer("CheckSemParar", 300, true);
  403.  
  404.     for(new i = 0; i < GetMaxPlayers(); i ++)
  405.     {
  406.         SetTimerEx("CorrigirSementes", 1000, true, "i", i);
  407.     }
  408.     return 1;
  409. }
  410.  
  411. public OnGameModeExit()
  412. {
  413.     DOF2_SaveFile();
  414.     DOF2_Exit();
  415.     return 1;
  416. }
  417.  
  418. public OnPlayerRequestClass(playerid, classid)
  419. {
  420.     SetPlayerPos(playerid, 1940.1903, -2645.8267, 13.5469);
  421.     SetPlayerCameraPos(playerid, 1940.1903, -2645.8267, 13.5469);
  422.     SetPlayerCameraLookAt(playerid, 1940.1903, -2645.8267, 13.5469);
  423.  
  424.     new  string[200];
  425.  
  426.     /* -- SISTEMA DE REGISTRO --*/
  427.     if(DOF2_FileExists(Contas(playerid))) {
  428.         format(string, sizeof(string), "{FFFFFF}Seja Bem Vindo novamente ao servidor!\n\nNick:{32CD32} %s{FFFFFF}\n\nNível:{FF0000} %d{FFFFFF}\n\nRegistrado: {00FF00}Sim\n\n{FFFFFF}Digite sua senha para efetuar o login!", GetPlayerNome(playerid), DOF2_GetInt(Contas(playerid), "Level"));
  429.         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "BVR - LOGIN", string , "Logar", "Recuperar");
  430.     } else {
  431.         format(string, sizeof(string), "{FFFFFF}Seja Bem Vindo ao servidor!\n\nNick:{32CD32} %s{FFFFFF}\n\nNível:{FF0000} N/A{FFFFFF}\n\nRegistrado: {FF0000}Não\n\n*Digite uma senha para efetuar o registro!*", GetPlayerNome(playerid));
  432.         ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "BVR - REGISTRO", string , "Registrar", "Sair");
  433.     }
  434.  
  435.     return 1;
  436. }
  437.  
  438. public OnPlayerConnect(playerid)
  439. {
  440.     //OBJETOS AEROPORTO
  441.     RemoveBuildingForPlayer(playerid, 3672, 1889.6563, -2666.0078, 18.8828, 0.25);
  442.     RemoveBuildingForPlayer(playerid, 3672, 1822.7344, -2666.0078, 18.8828, 0.25);
  443.     RemoveBuildingForPlayer(playerid, 3672, 1682.7266, -2666.0078, 18.8828, 0.25);
  444.     RemoveBuildingForPlayer(playerid, 3672, 1617.2813, -2666.0078, 18.8828, 0.25);
  445.     RemoveBuildingForPlayer(playerid, 3672, 1754.1719, -2666.0078, 18.8828, 0.25);
  446.     RemoveBuildingForPlayer(playerid, 3629, 1617.2813, -2666.0078, 18.8828, 0.25);
  447.     RemoveBuildingForPlayer(playerid, 1290, 1649.0625, -2641.4063, 18.4766, 0.25);
  448.     RemoveBuildingForPlayer(playerid, 3629, 1682.7266, -2666.0078, 18.8828, 0.25);
  449.     RemoveBuildingForPlayer(playerid, 3629, 1754.1719, -2666.0078, 18.8828, 0.25);
  450.     RemoveBuildingForPlayer(playerid, 3629, 1822.7344, -2666.0078, 18.8828, 0.25);
  451.     RemoveBuildingForPlayer(playerid, 3629, 1889.6563, -2666.0078, 18.8828, 0.25);
  452.     CreateObject(16098, 1887.62842, -2648.11816, 17.43370,   0.00000, 0.00000, 91.00000);
  453.     CreateObject(16098, 1821.55042, -2648.11816, 17.43370,   0.00000, 0.00000, 90.00000);
  454.     CreateObject(16098, 1755.09839, -2648.11816, 17.43370,   0.00000, 0.00000, 90.00000);
  455.     CreateObject(1290, 1788.81494, -2639.88672, 18.47660,   356.85840, 0.00000, -3.12520);
  456.     CreateObject(10814, 1640.06714, -2676.80347, 16.15450,   0.00000, 0.00000, 178.00000);
  457.     CreateObject(1290, 1720.92419, -2639.88672, 18.47656,   356.85840, 0.00000, -3.12515);
  458.     CreateObject(1290, 1630.12244, -2656.98828, 18.47656,   356.85840, 0.00000, -3.12515);
  459.     CreateObject(1290, 1646.11169, -2657.57275, 18.47656,   356.85840, 0.00000, -3.12515);
  460.     //FIM OBJETOS AEROPORTO
  461.  
  462.     //PEDAGIO ANGEL PINE
  463.     CreateObject(7033, -1119.19543, -2857.91821, 71.06570,   0.00000, 0.00000, 91.00000);
  464.     CreateObject(966, -1120.57800, -2860.29834, 66.66960,   0.00000, 0.00000, 92.30000);
  465.     CreateObject(1237, -1120.27002, -2869.80884, 66.66370,   0.00000, 0.00000, 0.00000);
  466.     CreateObject(1237, -1120.24792, -2867.89624, 66.66370,   0.00000, 0.00000, 0.00000);
  467.     CreateObject(1237, -1120.28540, -2868.87402, 66.66370,   0.00000, 0.00000, 0.00000);
  468.     CreateObject(966, -1121.28479, -2855.61279, 66.66960,   0.00000, 0.00000, -87.76000);
  469.     CreateObject(1237, -1120.24792, -2867.89624, 66.66370,   0.00000, 0.00000, 0.00000);
  470.     CreateObject(1237, -1121.69775, -2848.11035, 66.66370,   0.00000, 0.00000, 0.00000);
  471.     CreateObject(1237, -1120.27002, -2869.80884, 66.66370,   0.00000, 0.00000, 0.00000);
  472.     CreateObject(1237, -1121.70935, -2847.03345, 66.66370,   0.00000, 0.00000, 0.00000);
  473.     CreateObject(1237, -1121.72217, -2845.90430, 66.66370,   0.00000, 0.00000, 0.00000);
  474.     CreateObject(19989, -1160.66919, -2859.07910, 66.65020,   0.00000, 0.00000, 273.00000);
  475.     CreateObject(19989, -1079.16602, -2857.70190, 66.65020,   0.00000, 0.00000, 90.00000);
  476.     //PEDAGIO LS/LV
  477.     CreateObject(9623, 1741.29565, 527.96973, 29.39350,   -3.00000, 0.00000, -18.50000);
  478.     CreateObject(966, 1752.70667, 529.16046, 26.26540,   2.16000, 0.50000, 158.53999);
  479.     CreateObject(966, 1743.73718, 532.58051, 26.26540,   2.16000, 0.50000, 158.53999);
  480.     CreateObject(966, 1738.24561, 523.41498, 26.84540,   -2.50000, 0.00000, -17.96000);
  481.     CreateObject(966, 1729.86572, 526.34528, 26.84540,   -2.50000, 0.00000, -17.96000);
  482.     CreateObject(1237, 1722.46045, 528.80078, 26.96500,   -6.72000, 0.00000, 0.00000);
  483.     CreateObject(1237, 1721.50623, 529.15082, 26.96500,   -6.72000, 0.00000, 0.00000);
  484.     CreateObject(1237, 1759.71533, 526.29120, 26.34500,   0.00000, 0.00000, 0.00000);
  485.  
  486.     //CANCELA PEDAGIO ANGEL PINE
  487.     CancelaP[playerid][0] = CreatePlayerObject(playerid, 968, -1120.59277, -2860.23462, 67.43290, 0.00000, 90.00000, 272.38000);
  488.     CancelaP[playerid][1] = CreatePlayerObject(playerid, 968, -1121.28052, -2855.66870, 67.43290, 0.00000, 90.00000, 92.18000);
  489.     //CANCELA PEDAGIO LS/LV
  490.     CancelaP[playerid][2] = CreatePlayerObject(playerid, 968, 1752.64233, 529.21753, 27.08570,   0.00000, 90.00000, -21.52000); //Direita meio
  491.     CancelaP[playerid][3] = CreatePlayerObject(playerid, 968, 1743.69641, 532.61810, 27.08570,   0.00000, 90.00000, -21.52000); //direita
  492.     CancelaP[playerid][4] = CreatePlayerObject(playerid, 968, 1738.31946, 523.43921, 27.62790,   0.00000, 90.00000, 162.17999); //esquerda
  493.     CancelaP[playerid][5] = CreatePlayerObject(playerid, 968, 1729.92896, 526.36902, 27.62790,   0.00000, 90.00000, 162.17999); //esuquerda meio
  494.  
  495.  
  496.     LimparChat(playerid, 50);
  497.     new Celula[128];
  498.     GetPlayerVersion(playerid, Celula, sizeof(Celula));
  499.     format(Celula, sizeof(Celula), "{FF8C00}Sua versão do SA-MP é:{FFFFFF} %s", Celula);
  500.     SendClientMessage(playerid, 0xFF8C00FF, Celula);
  501.     SetPlayerColor(playerid, 0xFFFFFFAA);
  502.  
  503.     //Text Relogio e data
  504.     TextDrawShowForPlayer(playerid, Textdraw0);
  505.     TextDrawShowForPlayer(playerid, Textdraw1);
  506.     //Fim text relogio e data
  507.     if(PassagemOferecido[playerid] == 1)
  508.     {
  509.         KillTimer(PassagemTimer[playerid]);
  510.         PassagemOferecido[playerid] = 0;
  511.         PassagemRecebido[playerid] = 0;
  512.         PassagemMensagem[playerid] = 0;
  513.         PassagemValor[playerid] = 0;
  514.         PassagemJa[playerid] = 0;
  515.         PassagemID[playerid] = -1;
  516.     }
  517.     Colher[playerid] = 1;
  518.     Carregado[playerid] = 0;
  519.     Trabalhando[playerid] = 0;
  520.     EmRota[playerid] = 0;
  521.     Plantando[playerid] = 0;
  522.     Colhido[playerid] = 0;
  523.     return 1;
  524. }
  525.  
  526. public OnPlayerDisconnect(playerid, reason)
  527. {
  528.     Carregado[playerid] = 0;
  529.     Trabalhando[playerid] = 0;
  530.     EmRota[playerid] = 0;
  531.     Plantando[playerid] = 0;
  532.     Colher[playerid] = 0;
  533.     Colhido[playerid] = 0;
  534.     PlayerLeo[playerid][pSenhaInvalida] = 0;
  535.     PlayerLeo[playerid][CodigoRecuperar] = 0;
  536.     PlayerLeo[playerid][CodigoAtivarConta] = 0;
  537.     if(PlayerLeo[playerid][RegistroNaoConcluido] == true) { DOF2_RemoveFile(Contas(playerid)); }
  538.     SalvarContas(playerid);
  539.     SalvarCarros(playerid);
  540.     DOF2_SaveFile();
  541.     return 1;
  542. }
  543.  
  544. public OnPlayerSpawn(playerid)
  545. {
  546.     SetPlayerPos(playerid, -1060.3507, -1616.7421, 76.3672);
  547.     PlayerLeo[playerid][RegistroNaoConcluido] = false;
  548.     SetPlayerColor(playerid, 0xFFFFFFAA);
  549.     return 1;
  550. }
  551.  
  552. public OnPlayerDeath(playerid, killerid, reason)
  553. {
  554.     if(PlayerLeo[playerid][PlanoMedico] == 1) {
  555.         SendClientMessage(playerid, -1, "Tem Plano");
  556.         return 1;
  557.     }
  558.     if(PlayerLeo[playerid][PlanoMedico] == 0) {
  559.         SendClientMessage(playerid, -1, "Não tem Plano");
  560.         return 1;
  561.     }
  562.     if(Trabalhando[playerid] == 1)
  563.     {
  564.         SendClientMessage(playerid, 0xFFFF00FF, "| MORTE | Você morreu em trabalho e o mesmo foi cancelado, para custear as despesas você pagou R$1000 a empresa.");
  565.         GivePlayerMoney(playerid, -1000);
  566.         DisablePlayerRaceCheckpoint(playerid);
  567.         DisablePlayerCheckpoint(playerid);
  568.         Carregado[playerid] = 0;
  569.         Trabalhando[playerid] = 0;
  570.         EmRota[playerid] = 0;
  571.         return 1;
  572.     }
  573.     PlayerLeo[playerid][Morreu]++;
  574.     return 1;
  575. }
  576.  
  577. public OnVehicleSpawn(vehicleid)
  578. {
  579.     return 1;
  580. }
  581.  
  582. public OnVehicleDeath(vehicleid, killerid)
  583. {
  584.     return 1;
  585. }
  586.  
  587. public OnPlayerText(playerid, text[])
  588. {
  589.     new string[1000];
  590.     if(Calado[playerid] == 1)
  591.     {
  592.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você está calado e não pode falar no chat!");
  593.         return 0;
  594.     }
  595.     if(PlayerLeo[playerid][Admin] == 5) {
  596.         format(string, sizeof(string), "%s{FFFFFF}: [{228B22}Staff{FFFFFF}]{FFFFFF} [%d] %s", GetPlayerNome(playerid), playerid, text);
  597.         SendClientMessageToAll(GetPlayerColor(playerid), string);
  598.         return 0;
  599.     }
  600.     if(PlayerLeo[playerid][Admin] == 4) {
  601.         format(string, sizeof(string), "%s{FFFFFF}: [{1E90FF}Adm{FFFFFF}]{FFFFFF} [%d] %s", GetPlayerNome(playerid), playerid, text);
  602.         SendClientMessageToAll(GetPlayerColor(playerid), string);
  603.         return 0;
  604.     }
  605.     if(PlayerLeo[playerid][Admin] == 3) {
  606.         format(string, sizeof(string), "%s{FFFFFF}: [{87CEFA}Adm-Ajudante{FFFFFF}]{FFFFFF} [%d] %s", GetPlayerNome(playerid), playerid, text);
  607.         SendClientMessageToAll(GetPlayerColor(playerid), string);
  608.         return 0;
  609.     }
  610.     if(PlayerLeo[playerid][Admin] == 2) {
  611.         format(string, sizeof(string), "%s{FFFFFF}: [{FFA500}Mod{FFFFFF}]{FFFFFF} [%d] %s", GetPlayerNome(playerid), playerid, text);
  612.         SendClientMessageToAll(GetPlayerColor(playerid), string);
  613.         return 0;
  614.     }
  615.     if(PlayerLeo[playerid][Admin] == 1) {
  616.         format(string, sizeof(string), "%s{FFFFFF}: [{FFFF00}Ajudante{FFFFFF}]{FFFFFF} [%d] %s", GetPlayerNome(playerid), playerid, text);
  617.         SendClientMessageToAll(GetPlayerColor(playerid), string);
  618.         return 0;
  619.     }
  620.     if(PlayerLeo[playerid][Admin] == 0) {
  621.         format(string, sizeof(string), "%s{FFFFFF}: [%d] %s", GetPlayerNome(playerid), playerid, text);
  622.         SendClientMessageToAll(GetPlayerColor(playerid), string);
  623.         return 0;
  624.     }
  625.     return 0;
  626. }
  627.  
  628. /*public OnPlayerCommandText(playerid, cmdtext[])
  629. {
  630.     return 0;
  631. }*/
  632.  
  633. CMD:sms(playerid, params[])
  634. {
  635.     new id = -1, texto[128];
  636.     sscanf(params, "us[128]", id, texto);
  637.     if(PlayerLeo[playerid][Celular] == 0) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem um celular!");
  638.     if(PlayerLeo[playerid][Creditos] <= 0) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem créditos!");
  639.     PlayerLeo[playerid][Creditos] --;
  640.     if(id != -1)
  641.     {
  642.         if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Este jogador(a) não esta conectado(a).");
  643.         if(PlayerLeo[id][Celular] == 0) return SendClientMessage(playerid, COR_ERRO, "| ERRO | O(A) jogador(a) que você está tentando mandar mensagem não tem um celular!");
  644.         if(playerid == id) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não pode mandar mensagem para você!");
  645.         if(isnull(texto)) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Digite alguma mensagem!");
  646.          
  647.         new nome[MAX_PLAYER_NAME], nome2[MAX_PLAYER_NAME], str[128];
  648.         GetPlayerName(playerid, nome, 16);
  649.         GetPlayerName(id, nome2, 16);
  650.         format(str, sizeof(str), "| SMS | O Jogador(a) %s[%d] te enviou uma mensagem: %s", nome, playerid, texto);
  651.         GameTextForPlayer(playerid, "Mensagem recebida!", 4000, 1);
  652.         SendClientMessage(id, COR_SMS, str);
  653.         format(str, sizeof(str), "| SMS | Você enviou uma mensagem para %s[%d]: %s", nome2, id, texto);
  654.         GameTextForPlayer(playerid, "Mensagem enviada!", 4000, 1);
  655.         SendClientMessage(playerid, COR_SMS, str);
  656.     }
  657.     else SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso correto: /Sms [ID] [Mensagem]");
  658.     return 1;
  659. }
  660.  
  661. CMD:semparar(playerid, params[])
  662. {
  663.     ShowPlayerDialog(playerid, DIALOG_SEMPARAR, DIALOG_STYLE_TABLIST_HEADERS, "{FF0000}#{FFFFFF}Sem Parar",
  664.     "Quantidade\tPreço(R$)\n\
  665.     10 Passagens{FFFFFF}\t{32CD32}R${FFFFFF}900\n{FFFFFF}20 Passagens{FFFFFF}\t{32CD32}R${FFFFFF}1700\n{FFFFFF}30 Passagens{FFFFFF}\t{32CD32}R${FFFFFF}3200\n{FFFFFF}40 Passagens\t{32CD32}R${FFFFFF}6200", "Comprar", "Sair");
  666. }
  667.  
  668. CMD:concessionaria(playerid, params[])
  669. {
  670.     static string[sizeof(VeiculosT) * 64];
  671.     if (string[0] == EOS) {
  672.         for(new i; i < sizeof(VeiculosT); i ++)
  673.         {
  674.             format(string, sizeof(string), "%s%i\t~w~~h~%s~n~~g~~h~R$%i\n", string, VeiculosT[i][VeiculosID], VeiculosT[i][VeiculoNome], VeiculosT[i][Preco]);
  675.         }
  676.     }
  677.     return ShowPlayerDialog(playerid, DIALOG_CONCE, DIALOG_STYLE_PREVIEW_MODEL, "Concessionaria Terrestre", string, "Comprar", "Sair");
  678. }
  679.  
  680. CMD:utilitarios(playerid, params[])
  681. {
  682.     ShowPlayerDialog(playerid, DIALOG_UTILITARIOS, DIALOG_STYLE_TABLIST_HEADERS, "Loja de Utilitarios",
  683.      "Itens\tUnidades\tPreço(R$)\n\
  684.      Celular\t1\tR$3000\n\
  685.      Créditos\t50\tR$300", "Comprar", "Sair");
  686.     return 1;
  687. }
  688.  
  689. CMD:cv(playerid, params[])
  690. {
  691.     new Float:Cv[3];
  692.     GetPlayerPos(playerid, Cv[0], Cv[1], Cv[2]);
  693.     CreateVehicle(411, Cv[0]+3, Cv[1], Cv[2], 0, -1, -1, -1);
  694.     return 1;
  695. }
  696.  
  697. CMD:hospital(playerid, params[])
  698. {
  699.     ShowPlayerDialog(playerid, DIALOG_HOSPITAL, DIALOG_STYLE_TABLIST_HEADERS, "Menu - Hospital",
  700.     "Itens\tPreço(R$)\n\
  701.     Plano Médico\tR$5000\nMudar Sexo\tR$50000", "Selecionar", "Sair");
  702.     return 1;
  703. }
  704.  
  705. CMD:cp(playerid, params[])
  706. {
  707.     new texto[24], str[64];
  708.     if(sscanf(params, "s[128]", texto))
  709.     {
  710.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso correto: /Cp [Texto].");
  711.     }
  712.     else {
  713.         foreach(Player, i) {
  714.             if(PlayerLeo[i][Profissao] == PlayerLeo[playerid][Profissao]) {
  715.                 format(str, sizeof(str), "(C/P) '%s' diz: %s", GetPlayerNome(playerid), texto);
  716.                 SendClientMessage(i, GetPlayerColor(playerid), str);
  717.             }
  718.         }
  719.     }
  720.     return 1;
  721. }
  722.    
  723. CMD:profissao(playerid, params[])
  724. {
  725.     ComandosProf(playerid);
  726.     return 1;
  727. }
  728.  
  729. CMD:cnn1(playerid, params[])
  730. {
  731.     new texto[128], str[128];
  732.     if(sscanf(params, "s[24]", texto))
  733.     {
  734.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso correto: /Cnn1 [Texto]");
  735.         return 1;
  736.     }
  737.     else {
  738.         for(new i = 0; i < MAX_PLAYERS; i++)
  739.         {
  740.         format(str, sizeof(str), "~g~~h~%s~w~~h~: %s", GetPlayerNome(playerid), texto);
  741.         TextDrawSetString(Aviso[i], str);
  742.         TextDrawShowForPlayer(i, Aviso[i]);
  743.         SetTimerEx("Sumiu", 5000, false, "i", i);
  744.         }
  745.         return 1;
  746.     }
  747. }
  748.  
  749. CMD:calar(playerid, params[])
  750. {
  751.     if(PlayerLeo[playerid][Admin] < 2 )
  752.     {
  753.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  754.         return 1;
  755.     }
  756.     new id, tempo, motivo[28], string[300];
  757.     if(sscanf(params, "uis", id, tempo, motivo))
  758.     {
  759.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso válido: /Calar [ID] [Tempo] [Motivo]");
  760.         return 1;
  761.     }
  762.     if(id == INVALID_PLAYER_ID)
  763.     {
  764.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido");
  765.         return 1;
  766.     }
  767.     if(Calado[id] == 1)
  768.     {
  769.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) já está mutado");
  770.         return 1;
  771.     }
  772.     if(tempo < 1 || tempo > 20)
  773.     {
  774.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Tempo de 1 á 20 minutos!");
  775.         return 1;
  776.     }
  777.     Calado[id] = 1;
  778.  
  779.     format(string, sizeof(string), "| ADM | O(A) %s %s calou o jogador(a) %s por %i minutos. (Motivo: %s)", AdminLevel(playerid), GetPlayerNome(playerid), GetPlayerNome(id), tempo, motivo);
  780.     SendClientMessageToAll(COR_VERMELHO, string);
  781.  
  782.     format(string, sizeof(string), "| ADM | O(A) %s %s calou você por %i minutos. (Motivo: %s)", AdminLevel(playerid), GetPlayerNome(playerid), tempo, motivo);
  783.     SendClientMessage(id, COR_VERMELHO, string);
  784.  
  785.     format(string, sizeof(string), "| INFO | Você calou o jogador(a) %s por %i minutos. (Motivo: %s)", GetPlayerNome(id), tempo, motivo);
  786.     SendClientMessage(playerid, COR_ADM, string);
  787.  
  788.     TimerCalado[id] = SetTimerEx("MutadoTimer", tempo *1000 *60, false, "i", id);
  789.     return 1;
  790. }
  791.  
  792. CMD:descalar(playerid, params[])
  793. {
  794.     if(PlayerLeo[playerid][Admin] < 2)
  795.     {
  796.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  797.         return 1;
  798.     }
  799.     new id, string[128];
  800.     if(sscanf(params, "u", id))
  801.     {
  802.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso válido: /Descalar [ID]");
  803.         return 1;
  804.     }
  805.     if(id == INVALID_PLAYER_ID)
  806.     {
  807.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido");
  808.         return 1;
  809.     }
  810.     if(Calado[id] == 0)
  811.     {
  812.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) não esta calado!");
  813.         return 1;
  814.     }
  815.     Calado[id] = 0;
  816.  
  817.     format(string, sizeof(string), "| ADM | O(A) %s %s descalou você.", AdminLevel(playerid), GetPlayerNome(playerid));
  818.     SendClientMessage(id, COR_ADM, string);
  819.  
  820.     format(string, sizeof(string), "| INFO | Você descalou o jogador(a) %s", GetPlayerNome(id));
  821.     SendClientMessage(playerid, COR_ADM, string);
  822.  
  823.     KillTimer(TimerCalado[id]);
  824.     return 1;
  825. }
  826.  
  827. CMD:daradmin(playerid, params[])
  828.  {
  829.     if(IsPlayerConnected(playerid))
  830.     {
  831.         if(PlayerLeo[playerid][Admin] < 4)
  832.         {
  833.             SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  834.             return 1;
  835.         }
  836.         new novoadmin, nivel;
  837.         if(sscanf(params, "ui", novoadmin, nivel))
  838.         {
  839.             SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso correto: /Daradmin [ID] [NivelAdm] ou use /AdminsLevel");
  840.             return 1;
  841.         }
  842.         if(nivel > 5) {
  843.             SendClientMessage(playerid, -1, "| ERRO | Level de admin de 0 á 5 {FF0000}Obs: Level 0 = Jogador{FFFFFF}!");
  844.             return 1;
  845.         }
  846.         if(novoadmin == INVALID_PLAYER_ID) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido(a)");
  847.         PlayerLeo[novoadmin][Admin] = nivel;
  848.         new string[128], nome[MAX_PLAYER_NAME+1];
  849.         GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
  850.         format(string, sizeof(string), "| INFO | Você foi promovido para %s - Por %s", AdminLevel(novoadmin), GetPlayerNome(playerid));
  851.         SendClientMessage(novoadmin, COR_ADM, string);
  852.         GetPlayerName(novoadmin, nome, MAX_PLAYER_NAME);
  853.         format(string, sizeof(string), "| INFO | Você promoveu %s para o level %d de Admin. Para mais informações /AdminsLevel", GetPlayerNome(novoadmin), nivel);
  854.         SendClientMessage(playerid, COR_ADM, string);
  855.     }
  856.     return 1;
  857. }
  858.  
  859. CMD:irjogador(playerid, params[])
  860. {
  861.     if(PlayerLeo[playerid][Admin] < 2)
  862.     {
  863.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando Inválido");
  864.         return 1;
  865.     }
  866.     new id, string[128];
  867.     if(sscanf(params, "u", id))
  868.     {
  869.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso válido: /IrJogador [ID]");
  870.         return 1;
  871.     }
  872.     if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido(a)");
  873.     else {
  874.         new Float:Pos[3];
  875.         GetPlayerPos(id, Pos[0], Pos[1], Pos[2]);
  876.         SetPlayerPos(playerid, Pos[0], Pos[1]+1, Pos[2]);
  877.  
  878.         format(string, sizeof(string), "| ADM | O(A) %s %s veio até você.", AdminLevel(playerid), GetPlayerNome(playerid));
  879.         SendClientMessage(id, COR_ADM, string);
  880.  
  881.         format(string, sizeof(string), "| ADM | Você foi até o jogador(a) %s.", GetPlayerNome(id));
  882.         SendClientMessage(playerid, COR_ADM, string);
  883.     }
  884.     return 1;
  885. }
  886.  
  887. CMD:dargrana(playerid, params[])
  888. {
  889.     if(PlayerLeo[playerid][Admin] < 3)
  890.     {
  891.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  892.         return 1;
  893.     }
  894.     new id, grana;
  895.     if(sscanf(params, "ui", id, grana))
  896.     {
  897.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso válido: /DarGrana [ID] [Quantidade]");
  898.         return 1;
  899.     }
  900.     if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido(a)");
  901.     else {
  902.         GivePlayerMoney(playerid, grana);
  903.         new string[128];
  904.         format(string, sizeof(string), "| INFO | O %s %s te deu R$%d", AdminLevel(playerid), GetPlayerNome(playerid), grana);
  905.         SendClientMessage(id, COR_ADM, string);
  906.  
  907.         format(string, sizeof(string), "| INFO | Você deu R$%d para{FFFFFF} %s", grana, GetPlayerNome(id));
  908.         SendClientMessage(playerid, COR_ADM, string);
  909.     }
  910.     return 1;
  911. }
  912.  
  913. CMD:darlevel(playerid, params[])
  914. {
  915.     if(PlayerLeo[playerid][Admin] < 3)
  916.     {
  917.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  918.         return 1;
  919.     }
  920.     new id, qlevel;
  921.     if(sscanf(params, "ui", id, qlevel))
  922.     {
  923.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso válido: /DarLevel [ID] [Score]");
  924.         return 1;
  925.     }
  926.     if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido(a)");
  927.     else {
  928.         SetPlayerScore(id, qlevel);
  929.         new string[128];
  930.         format(string, sizeof(string), "| INFO | O %s %s te deu %d scores", AdminLevel(playerid), GetPlayerNome(playerid), qlevel);
  931.         SendClientMessage(id, COR_ADM, string);
  932.  
  933.         format(string, sizeof(string), "| INFO | Você deu %d scores para %s", qlevel, GetPlayerNome(id));
  934.         SendClientMessage(playerid, COR_ADM, string);
  935.     }
  936.     return 1;
  937. }
  938.  
  939. CMD:tapa(playerid, params[])
  940. {
  941.     if(PlayerLeo[playerid][Admin] < 1)
  942.     {
  943.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  944.         return 1;
  945.     }
  946.     new id;
  947.     if(sscanf(params, "u", id))
  948.     {
  949.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso válido: /Tapa [ID]");
  950.         return 1;
  951.     }
  952.     if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido(a)");
  953.     else {
  954.         new Float:Pos[3], string[128];
  955.         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  956.         SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+15);
  957.         format(string, sizeof(string), "| ADM | O(A) %s %s deu um tapa no jogador(a) %s.", AdminLevel(playerid), GetPlayerNome(playerid), GetPlayerNome(id));
  958.         SendClientMessageToAll(0xFF0000FF, string);
  959.  
  960.         format(string, sizeof(string), "| ADM | O(A) %s %s te deu um tapa.", AdminLevel(playerid), GetPlayerNome(playerid));
  961.         SendClientMessage(id, COR_ADM, string);
  962.  
  963.         format(string, sizeof(string), "| INFO | Você deu um tapa no jogador %s.", GetPlayerNome(id));
  964.         SendClientMessage(playerid, COR_ADM, string);
  965.     }
  966.     return 1;
  967. }
  968.  
  969. CMD:identidade(playerid, params[])
  970. {
  971.         new stg[1500], gstring[1500], oi[128];
  972.         format(gstring, sizeof(gstring), "{FFFFFF}» Level: {32CD32}%d", GetPlayerScore(playerid));
  973.         strcat(stg, gstring);
  974.         if(PlayerLeo[playerid][Celular] == 1)
  975.         {
  976.             format(gstring, sizeof(gstring), "\n{FFFFFF}» Celular: {32CD32}Possui");
  977.             strcat(stg, gstring);
  978.         }
  979.         if(PlayerLeo[playerid][Celular] == 0)
  980.         {
  981.             format(gstring, sizeof(gstring), "\n{FFFFFF}» Celular: {FF0000}Não Possui");
  982.             strcat(stg, gstring);
  983.         }
  984.         if(SemParar[playerid])
  985.         {
  986.             format(gstring, sizeof(gstring), "\n{FFFFFF}» SemParar: {32CD32}Possui");
  987.             strcat(stg, gstring);
  988.         }
  989.         if(!SemParar[playerid])
  990.         {
  991.             format(gstring, sizeof(gstring), "\n{FFFFFF}» SemParar: {FF0000}Não Possui");
  992.             strcat(stg, gstring);
  993.         }
  994.         format(gstring, sizeof(gstring), "\n{FFFFFF}» Creditos: {32CD32}%d", PlayerLeo[playerid][Creditos]);
  995.         strcat(stg, gstring);
  996.         format(gstring, sizeof(gstring), "\n{FFFFFF}» Sementes: {32CD32}%d", PlayerLeo[playerid][Sementes]);
  997.         strcat(stg, gstring);
  998.         format(gstring, sizeof(gstring), "{FFA500}Identidade de{FFFFFF}: %s", GetPlayerNome(playerid));
  999.         strcat(oi, gstring);
  1000.  
  1001.         ShowPlayerDialog(playerid, DIALOG_IDENTIDADE, DIALOG_STYLE_MSGBOX, oi, stg, "Fechar", "");
  1002. }
  1003.  
  1004. CMD:adminslevel(playerid, params[])
  1005. {
  1006.     if(PlayerLeo[playerid][Admin] < 4) {
  1007.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando invalido");
  1008.         return 1;
  1009.     }
  1010.     ShowPlayerDialog(playerid, ADMIN_LEVEL, DIALOG_STYLE_TABLIST, "Leveis Admin", "Level 1\tAjudante\nLevel 2\tModerador\nLevel 3\tAjudante-Adm\nLevel 4\tAdministrador", "Sair", "");
  1011.     return 1;
  1012. }
  1013.  
  1014. CMD:cnn(playerid, params[])
  1015. {
  1016.     if(PlayerLeo[playerid][Admin] < 1)
  1017.     {
  1018.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando inválido");
  1019.         return 1;
  1020.     }
  1021.     new texto[128], str[128];
  1022.     if(sscanf(params, "s[24]", texto))
  1023.     {
  1024.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso correto: /Cnn [Texto]");
  1025.         return 1;
  1026.     }
  1027.     else {
  1028.         format(str, sizeof(str), "~p~] ~w~%s ~p~]", texto);
  1029.         GameTextForPlayer(playerid, str, 5000, 3);
  1030.         return 1;
  1031.     }
  1032. }
  1033.  
  1034. CMD:carregar(playerid, params[])
  1035. {
  1036.     if(PlayerLeo[playerid][Profissao] != PILOTO)
  1037.     {
  1038.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Voce não e um piloto!");
  1039.         return 1;
  1040.     }
  1041.     if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 593)
  1042.     {
  1043.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não esta em um avião.");
  1044.         return 1;
  1045.     }
  1046.     if(!IsPlayerInPlace(playerid, 1820.931, -2635.032, 1918.360, -2612.415))
  1047.     {
  1048.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não esta no local de carregamento.");
  1049.         return 1;
  1050.     }
  1051.     if(Carregado[playerid] == 1)
  1052.     {
  1053.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já esta carregado.");
  1054.         return 1;
  1055.     }
  1056.     CCP[playerid] = 1;
  1057.     Carregado[playerid] = 1;
  1058.     Trabalhando[playerid] = 1;
  1059.     SetPlayerRaceCheckpoint(playerid, 0, 1322.6554, 1354.3180, 10.8203, 306.5969,2519.2402,16.6951, 3.0); //aero lv
  1060.     SendClientMessage(playerid, -1, "| AEROPORTO | Você pegou 3 pacotes entregue-os no {FF0000}checkpoint {FFFFFF}marcado em seu mapa");
  1061.     return 1;
  1062. }
  1063.  
  1064. CMD:venderpassagem(playerid, params[])
  1065. {
  1066.     if(PlayerLeo[playerid][Profissao] != MOTORISTA_ONIBUS)
  1067.     {
  1068.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não é um Motorista de Ônibus.");
  1069.         return 1;
  1070.     }
  1071.     new id, valor, str[250];
  1072.     new Float:Pos[3];
  1073.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  1074.     if(sscanf(params, "ui", id, valor)) //id = outro player
  1075.     {
  1076.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Uso correto: /VenderPassagem [ID] [Preço]");
  1077.         return 1;
  1078.     }
  1079.     if(id == playerid) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não pode vender para si mesmo!");
  1080.     if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) inválido(a)");
  1081.     if(valor < 1 || valor > 100)
  1082.     {
  1083.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Valor por passagem de R$1 á R$100");
  1084.         return 1;
  1085.     }
  1086.     if(PassagemJa[playerid] == 1)
  1087.     {
  1088.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você ja fez uma oferta! Aguarde.");
  1089.         return 1;
  1090.     }
  1091.     if(GetPlayerMoney(id) < valor)
  1092.     {
  1093.         SendClientMessage(playerid, COR_ERRO, "| ERRO | O(A) Jogador(a) não tem dinheiro suficiente para comprar passagem");
  1094.         return 1;
  1095.     }
  1096.     if(!IsPlayerInRangeOfPoint(id, 7.0, Pos[0], Pos[1], Pos[2]))
  1097.     {
  1098.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Jogador(a) muito longe.");
  1099.         return 1;
  1100.     }
  1101.     else {
  1102.         format(str, sizeof(str), "| PASSAGEM | Você ofereceu uma passagem para %s no valor de R$%d", GetPlayerNome(id), valor);
  1103.         SendClientMessage(playerid, COR_MOTORISTABUS, str);
  1104.         format(str, sizeof(str), "| PASSAGEM | O(A) Motorista de Ônibus %s esta te oferecendo uma passagem por R$%d. (/pAceitar | /pRecusar).", GetPlayerNome(playerid), valor);
  1105.         SendClientMessage(id, COR_MOTORISTABUS, str);
  1106.         PassagemJa[playerid] = 1;
  1107.         PassagemValor[id] = valor;
  1108.         PassagemPID[id] = playerid;
  1109.         PassagemID[id] = playerid;
  1110.         PassagemOferecido[playerid] = 1;
  1111.         PassagemRecebido[id] = 1;
  1112.         PassagemTimer[id] = SetTimerEx("MsgPassagem", 4000, false, "d", id);
  1113.         return 1;
  1114.     }
  1115.  
  1116. }
  1117.  
  1118. CMD:paceitar(playerid, params[])
  1119. {
  1120.     if(PassagemRecebido[playerid] == 0)
  1121.     {
  1122.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não recebeu nenhuma oferta de passagem.");
  1123.         return 1;
  1124.     }
  1125.     SendClientFormat(PassagemID[playerid], COR_MOTORISTABUS, "| PASSAGEM | %s aceitou sua oferta, passagem vendida com sucesso!", GetPlayerNome(playerid));
  1126.     SendClientFormat(playerid, COR_MOTORISTABUS, "| PASSAGEM | Você aceitou a passagem, oferta feita por %s.", GetPlayerNome(PassagemID[playerid]));
  1127.     GivePlayerMoney(playerid, -PassagemValor[playerid]);
  1128.     GivePlayerMoney(PassagemPID[playerid],  PassagemValor[playerid]);
  1129.     PassagemOferecido[PassagemID[playerid]] = 0;
  1130.     PassagemJa[playerid] = 0;
  1131.     PassagemRecebido[playerid] = 0;
  1132.     PassagemID[playerid] = 0;
  1133.     PassagemValor[playerid] = 0;
  1134.     return 1;
  1135. }
  1136.  
  1137. CMD:precusar(playerid, params[])
  1138. {
  1139.     if(PassagemRecebido[playerid] == 0)
  1140.     {
  1141.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não recebeu nenhuma oferta de passagem.");
  1142.         return 1;
  1143.     }
  1144.     SendClientFormat(PassagemID[playerid], COR_MOTORISTABUS, "| PASSAGEM | %s recusou sua oferta, a passagem não foi vendida, sua venda não obteve sucesso!", GetPlayerNome(playerid));
  1145.     SendClientFormat(playerid, COR_MOTORISTABUS, "| PASSAGEM | Você recusou a passagem, oferta feita por %s, você não comprou a passagem.", GetPlayerNome(PassagemID[playerid]));
  1146.     PassagemOferecido[PassagemID[playerid]] = 0;
  1147.     PassagemRecebido[playerid] = 0;
  1148.     PassagemJa[playerid] = 0;
  1149.     PassagemValor[playerid] = 0;
  1150.     PassagemID[playerid] = -1;
  1151.     return 1;
  1152. }
  1153.  
  1154. CMD:iniciarrota(playerid, params[])
  1155. {
  1156.     if(PlayerLeo[playerid][Profissao] != MOTORISTA_ONIBUS)
  1157.     {
  1158.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não é um Motorista de Ônibus.");
  1159.         return 1;
  1160.     }
  1161.     if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 437)
  1162.     {
  1163.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não está em um Ônibus.");
  1164.         return 1;
  1165.     }
  1166.     if(!IsPlayerInPlace(playerid, 2802.457, 1257.640, 2833.595, 1377.551))
  1167.     {
  1168.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não esta na rodoviária.");
  1169.         return 1;
  1170.     }
  1171.     if(EmRota[playerid] == 1)
  1172.     {
  1173.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você ja iniciou uma rota.");
  1174.         return 1;
  1175.     }
  1176.     ShowPlayerDialog(playerid, DIALOG_ROTAONIBUS, DIALOG_STYLE_LIST, "Rotas Disponiveis", "San Fierro", "Iniciar", "Cancelar");
  1177.     return 1;
  1178. }
  1179.  
  1180. CMD:profs(playerid, params[])
  1181. {
  1182.     ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  1183.     return 1;
  1184. }
  1185.  
  1186. CMD:carregarm(playerid, params[])
  1187. {
  1188.     if(PlayerLeo[playerid][Profissao] != MOTORISTA_CARROFORTE)
  1189.     {
  1190.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não é um Motorista de Carro Forte!");
  1191.         return 1;
  1192.     }
  1193.     if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 428)
  1194.     {
  1195.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não está em um Carro Forte!");
  1196.         return 1;
  1197.     }
  1198.     if(EmRota[playerid] == 1)
  1199.     {
  1200.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já está em uma rota.");
  1201.         return 1;
  1202.     }
  1203.     ShowPlayerDialog(playerid, DIALOG_ROTACARRO, DIALOG_STYLE_TABLIST_HEADERS, "Rotas Disponives",
  1204.     "Local:\tLucro(R$):\n\
  1205.     Angel Pine\tR$900", "Iniciar", "Cancelar");
  1206.     return 1;
  1207. }
  1208.  
  1209. CMD:minhassementes(playerid, params[])
  1210. {
  1211.     new string[72];
  1212.     format(string, sizeof(string), "\n{FFFFFF}» Você tem uma total de {1E90FF}%d{FFFFFF} sementes.\n\n", PlayerLeo[playerid][Sementes]);
  1213.     ShowPlayerDialog(playerid, DIALOG_SEMENTES, DIALOG_STYLE_MSGBOX, "{FF0000}# {FFFFFF}Sementes", string, "Sair", "");
  1214.     return 1;
  1215. }
  1216.  
  1217. CMD:comprarsementes(playerid, params[])
  1218. {
  1219.     ShowPlayerDialog(playerid, DIALOG_SEMENTE, DIALOG_STYLE_TABLIST_HEADERS, "Sementes",
  1220.     "Quantidade\tPreço (R$)\n\
  1221.     10 Sementes\tR$3000\n20 Sementes\tR$5000\n30 Sementes\tR$8000", "Comprar", "Cancelar");
  1222.     return 1;
  1223. }
  1224.  
  1225. CMD:colher(playerid, params[])
  1226. {
  1227.     if(IsPlayerInAnyVehicle(playerid)) {
  1228.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Não pode colher dentro de um veiculo.");
  1229.         return 1;
  1230.     }
  1231.     if(PlayerLeo[playerid][Profissao] != FAZENDEIRO) {
  1232.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não é um fazendeiro.");
  1233.         return 1;
  1234.     }
  1235.     if(Colher[playerid] == 1) {
  1236.         SendClientMessage(playerid, COR_ERRO, "| ERRO | A sua maconha ainda não esta pronta para colher");
  1237.         return 1;
  1238.     }
  1239.     if(Colhido[playerid] == 1) {
  1240.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já colheu ou não plantou nada!");
  1241.         return 1;
  1242.     }
  1243.     for(new i = 0; i < sizeof(PlantacaoF); i ++) {
  1244.         if(IsPlayerInRangeOfPoint(playerid, 0.6, PlantacaoF[i][posX], PlantacaoF[i][posY], PlantacaoF[i][posZ]))
  1245.         {
  1246.             new string[128];
  1247.             new gramas = random(300);
  1248.             new grana = random(400 - 200) + 500;
  1249.             GivePlayerMoney(playerid, grana);
  1250.             DestroyObject(Maconha);
  1251.             Colhido[playerid] = 1;
  1252.             Plantando[playerid] = 0;
  1253.             format(string, sizeof(string), "| INFO | Você colheu {FF0000}%d gramas{FFFFFF} de maconha, e recebeu {228B22}R$%d{FFFFFF}.", gramas, grana);
  1254.             SendClientMessage(playerid, -1, string);
  1255.             return i;
  1256.         }
  1257.     }
  1258.     return -1;
  1259. }
  1260.  
  1261. CMD:plantarmaconha(playerid, params[])
  1262. {
  1263.     if(IsPlayerInAnyVehicle(playerid)) {
  1264.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Não pode plantar dentro de um veiculo.");
  1265.         return 1;
  1266.     }
  1267.     if(PlayerLeo[playerid][Profissao] != FAZENDEIRO) {
  1268.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não é um fazendeiro");
  1269.         return 1;
  1270.     }
  1271.     if(PlayerLeo[playerid][Sementes] < 2) {
  1272.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem sementes o suficiente para plantar maconha (2 Sementes necessárias)");
  1273.         return 1;
  1274.     }
  1275.     if(Plantando[playerid] == 1) {
  1276.         SendClientMessage(playerid, COR_ERRO, "| ERRO | Já começou a plantar espere até crescer para plantar novamente.");
  1277.         return 1;
  1278.     }
  1279.     for(new i = 0; i < sizeof(PlantacaoF); i ++) {
  1280.         if(IsPlayerInRangeOfPoint(playerid, 0.6, PlantacaoF[i][posX], PlantacaoF[i][posY], PlantacaoF[i][posZ]))
  1281.         {
  1282.             SendClientMessage(playerid, -1, "| INFO | Você começou a plantar maconha, espere até crescer e colha.");
  1283.             ApplyAnimation(playerid,"BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 70000, 1);
  1284.             ApplyAnimation(playerid,"BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 70000, 1);
  1285.             ApplyAnimation(playerid,"BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 70000, 1);
  1286.             PlayerLeo[playerid][Sementes] -= 2;
  1287.             Plantando[playerid] = 1;
  1288.             Colher[playerid] = 1;
  1289.             Colhido[playerid] = 0;
  1290.             SetTimerEx("Plantar1", 70000, false, "i", playerid);
  1291.             return i;
  1292.         }
  1293.     }
  1294.     return -1;
  1295. }
  1296.  
  1297.  
  1298. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1299. {
  1300.     return 1;
  1301. }
  1302.  
  1303. public OnPlayerExitVehicle(playerid, vehicleid)
  1304. {
  1305.     return 1;
  1306. }
  1307.  
  1308. public OnPlayerStateChange(playerid, newstate, oldstate)
  1309. {
  1310.     if(newstate == PLAYER_STATE_DRIVER)
  1311.     {
  1312.         new
  1313.             veiculo = GetPlayerVehicleID(playerid)
  1314.         ;
  1315.         if(veiculo == PAviao[0] || veiculo == PAviao[1] || veiculo == PAviao[2] || veiculo == PAviao[3] || veiculo == PAviao[4] || veiculo == PAviao[5] || veiculo == PAviao[6])
  1316.             {
  1317.                 if(PlayerLeo[playerid][Profissao] != PILOTO) {
  1318.                 RemovePlayerFromVehicle(playerid);
  1319.                 SendClientMessage(playerid, COR_ERRO, "| ERRO | Veículo reservado para Pilotos.");
  1320.                 return 1;
  1321.             }
  1322.         }
  1323.         if(veiculo == MOnibus[0] || veiculo == MOnibus[1] || veiculo == MOnibus[2] || veiculo == MOnibus[3] || veiculo == MOnibus[4] || veiculo == MOnibus[5] || veiculo == MOnibus[6])
  1324.             {
  1325.                 if(PlayerLeo[playerid][Profissao] != MOTORISTA_ONIBUS) {
  1326.                 RemovePlayerFromVehicle(playerid);
  1327.                 SendClientMessage(playerid, COR_ERRO, "| ERRO | Veículo reservado para Motorista de Ônibus.");
  1328.                 return 1;
  1329.             }
  1330.         }
  1331.         if(veiculo == CarroForte[0] || veiculo == CarroForte[1] || veiculo == CarroForte[2] || veiculo == CarroForte[3] || veiculo == CarroForte[4] || veiculo == CarroForte[5])
  1332.         {
  1333.             if(PlayerLeo[playerid][Profissao] != MOTORISTA_CARROFORTE) {
  1334.                 RemovePlayerFromVehicle(playerid);
  1335.                 SendClientMessage(playerid, COR_ERRO, "| ERRO | Veículo reservado para Pilotos.");
  1336.                 return 1;
  1337.             }
  1338.         }
  1339.     }
  1340.     return 1;
  1341. }
  1342.  
  1343. public OnPlayerEnterCheckpoint(playerid)
  1344. {
  1345.     if(CCO[playerid] == 1)
  1346.     {
  1347.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1348.         TogglePlayerControllable(playerid, 0);
  1349.         GameTextForPlayer(playerid, "~w~~h~INICIANDO ~b~~h~ROTA~w~...", 5000, 4);
  1350.         DisablePlayerCheckpoint(playerid);
  1351.         CCO[playerid] = 2;
  1352.         SetPlayerRaceCheckpoint(playerid, 0, 2074.7566, 1467.4360, 10.6719, 2145.1140, 1841.6689, 10.6719, 3.0);
  1353.         return 1;
  1354.     }
  1355.     if(CheckCF[playerid] == 1)
  1356.     {
  1357.         SetTimerEx("Carregando", 3000, false, "i", playerid);
  1358.         TogglePlayerControllable(playerid, 0);
  1359.         GameTextForPlayer(playerid, "~w~~h~CARREGANDO ~g~~h~MALOTES...", 3000, 4);
  1360.         DisablePlayerCheckpoint(playerid);
  1361.         CheckCF[playerid] = 2;
  1362.         SetPlayerCheckpoint(playerid, -1556.9434, -2739.6458, 48.5459, 5.0);
  1363.         return 1;
  1364.     }
  1365.     if(CheckCF[playerid] == 2)
  1366.     {
  1367.         SendClientMessage(playerid, COR_BRANCO, "| BANCO | Você abasteceu o caixa em {1E90FF}Angel Pine{FFFFFF} e recebeu {32CD32}R$900");
  1368.         GivePlayerMoney(playerid, 900);
  1369.         EmRota[playerid] = 0;
  1370.         DisablePlayerCheckpoint(playerid);
  1371.         return 1;
  1372.     }
  1373.     return 1;
  1374. }
  1375.  
  1376. public OnPlayerLeaveCheckpoint(playerid)
  1377. {
  1378.     return 1;
  1379. }
  1380.  
  1381. public OnPlayerEnterRaceCheckpoint(playerid)
  1382. {
  1383.     if(CCP[playerid] == 1)
  1384.     {
  1385.         SetTimerEx("DescarregarA", 5000, false, "i", playerid);
  1386.         TogglePlayerControllable(playerid, 0);
  1387.         GameTextForPlayer(playerid, "DESCARREGANDO...", 5000, 4);
  1388.         DisablePlayerRaceCheckpoint(playerid);
  1389.         CCP[playerid] = 2;
  1390.         SetPlayerRaceCheckpoint(playerid, 0, 306.5969,2519.2402,16.6951, -1191.6188,-162.3909,14.1484, 3.0); //aeroab
  1391.         return 1;
  1392.     }
  1393.     if(CCP[playerid] == 2)
  1394.     {
  1395.         SetTimerEx("DescarregarA", 5000, false, "i", playerid);
  1396.         TogglePlayerControllable(playerid, 0);
  1397.         GameTextForPlayer(playerid, "DESCARREGANDO...", 5000, 4);
  1398.         DisablePlayerRaceCheckpoint(playerid);
  1399.         CCP[playerid] = 3;
  1400.         SetPlayerRaceCheckpoint(playerid, 1, -1191.6188,-162.3909,14.1484, -1191.6188,-162.3909,14.1484, 3.0); //aerosf
  1401.         return 1;
  1402.     }
  1403.     if(CCP[playerid] == 3)
  1404.     {
  1405.         SetTimerEx("DescarregouT", 5000, false, "i", playerid);
  1406.         TogglePlayerControllable(playerid, 0);
  1407.         GameTextForPlayer(playerid, "DESCARREGANDO...", 5000, 4);
  1408.         DisablePlayerRaceCheckpoint(playerid);
  1409.         return 1;
  1410.     }
  1411.     if(CCO[playerid] == 2)
  1412.     {
  1413.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1414.         TogglePlayerControllable(playerid, 0);
  1415.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1416.         DisablePlayerRaceCheckpoint(playerid);
  1417.         CCO[playerid] = 3;
  1418.         SetPlayerRaceCheckpoint(playerid, 0, 2145.1140, 1841.6689, 10.6719, 2230.9080, 2401.1260, 10.6719, 3.0);
  1419.         return 1;
  1420.     }
  1421.     if(CCO[playerid] == 3)
  1422.     {
  1423.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1424.         TogglePlayerControllable(playerid, 0);
  1425.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1426.         DisablePlayerRaceCheckpoint(playerid);
  1427.         CCO[playerid] = 4;
  1428.         SetPlayerRaceCheckpoint(playerid, 0, 2230.9080, 2401.1260, 10.6719, 1924.0610, 2315.3696, 10.6719, 3.0);
  1429.         return 1;
  1430.     }
  1431.     if(CCO[playerid] == 4)
  1432.     {
  1433.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1434.         TogglePlayerControllable(playerid, 0);
  1435.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1436.         DisablePlayerRaceCheckpoint(playerid);
  1437.         CCO[playerid] = 5;
  1438.         SetPlayerRaceCheckpoint(playerid, 0, 1924.0610, 2315.3696, 10.6719, 1564.5828, 2201.2500, 10.6719, 3.0);
  1439.         return 1;
  1440.     }
  1441.     if(CCO[playerid] == 5)
  1442.     {
  1443.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1444.         TogglePlayerControllable(playerid, 0);
  1445.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1446.         DisablePlayerRaceCheckpoint(playerid);
  1447.         CCO[playerid] = 6;
  1448.         SetPlayerRaceCheckpoint(playerid, 0, 1564.5828, 2201.2500, 10.6719, 1503.4354, 2056.4260, 10.6719, 3.0);
  1449.         return 1;
  1450.     }
  1451.     if(CCO[playerid] == 6)
  1452.     {
  1453.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1454.         TogglePlayerControllable(playerid, 0);
  1455.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1456.         DisablePlayerRaceCheckpoint(playerid);
  1457.         CCO[playerid] = 7;
  1458.         SetPlayerRaceCheckpoint(playerid, 0, 1503.4354, 2056.4260, 10.6719, 1336.3447,2055.9392,10.6719, 3.0);
  1459.         return 1;
  1460.     }
  1461.     if(CCO[playerid] == 7)
  1462.     {
  1463.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1464.         TogglePlayerControllable(playerid, 0);
  1465.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1466.         DisablePlayerRaceCheckpoint(playerid);
  1467.         CCO[playerid] = 8;
  1468.         SetPlayerRaceCheckpoint(playerid, 0, 1336.3447, 2055.9392, 10.6719, 652.4479, 1724.1727, 6.9922, 3.0);
  1469.         return 1;
  1470.     }
  1471.     if(CCO[playerid] == 8)
  1472.     {
  1473.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1474.         TogglePlayerControllable(playerid, 0);
  1475.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1476.         DisablePlayerRaceCheckpoint(playerid);
  1477.         CCO[playerid] = 9;
  1478.         SetPlayerRaceCheckpoint(playerid, 0, 652.4479, 1724.1727, 6.9922, 345.8485, 1412.4386, 6.6120, 3.0);
  1479.         return 1;
  1480.     }
  1481.     if(CCO[playerid] == 9)
  1482.     {
  1483.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1484.         TogglePlayerControllable(playerid, 0);
  1485.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1486.         DisablePlayerRaceCheckpoint(playerid);
  1487.         CCO[playerid] = 10;
  1488.         SetPlayerRaceCheckpoint(playerid, 0, 345.8485, 1412.4386, 6.6120, -67.2117, 1202.1240, 19.5938, 3.0);
  1489.         return 1;
  1490.     }
  1491.     if(CCO[playerid] == 10)
  1492.     {
  1493.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1494.         TogglePlayerControllable(playerid, 0);
  1495.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1496.         DisablePlayerRaceCheckpoint(playerid);
  1497.         CCO[playerid] = 11;
  1498.         SetPlayerRaceCheckpoint(playerid, 0, -67.2117, 1202.1240, 19.5938, -198.4940, 1006.8690, 19.5794, 3.0);
  1499.         return 1;
  1500.     }
  1501.     if(CCO[playerid] == 11)
  1502.     {
  1503.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1504.         TogglePlayerControllable(playerid, 0);
  1505.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1506.         DisablePlayerRaceCheckpoint(playerid);
  1507.         CCO[playerid] = 12;
  1508.         SetPlayerRaceCheckpoint(playerid, 0, -198.4940, 1006.8690, 19.5794, -1894.4221,583.9077,34.9078, 3.0);
  1509.         return 1;
  1510.     }
  1511.     if(CCO[playerid] == 12)
  1512.     {
  1513.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1514.         TogglePlayerControllable(playerid, 0);
  1515.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1516.         DisablePlayerRaceCheckpoint(playerid);
  1517.         CCO[playerid] = 13;
  1518.         SetPlayerRaceCheckpoint(playerid, 0, -1894.4221, 583.9077, 34.9078, -2224.1926, 569.7197, 35.0156, 3.0);
  1519.         return 1;
  1520.     }
  1521.     if(CCO[playerid] == 13)
  1522.     {
  1523.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1524.         TogglePlayerControllable(playerid, 0);
  1525.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1526.         DisablePlayerRaceCheckpoint(playerid);
  1527.         CCO[playerid] = 14;
  1528.         SetPlayerRaceCheckpoint(playerid, 0, -2224.1926, 569.7197, 35.0156, -2149.1113, 255.8757, 35.1719, 3.0);
  1529.         return 1;
  1530.     }
  1531.     if(CCO[playerid] == 14)
  1532.     {
  1533.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1534.         TogglePlayerControllable(playerid, 0);
  1535.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1536.         DisablePlayerRaceCheckpoint(playerid);
  1537.         CCO[playerid] = 15;
  1538.         SetPlayerRaceCheckpoint(playerid, 0, -2149.1113, 255.8757, 35.1719, -2025.3326, -72.8854, 35.1719, 3.0);
  1539.         return 1;
  1540.     }
  1541.     if(CCO[playerid] == 15)
  1542.     {
  1543.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1544.         TogglePlayerControllable(playerid, 0);
  1545.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1546.         DisablePlayerRaceCheckpoint(playerid);
  1547.         CCO[playerid] = 16;
  1548.         SetPlayerRaceCheckpoint(playerid, 0, -2025.3326, -72.8854, 35.1719, -1989.9607, 150.7433, 27.5391, 3.0);
  1549.         return 1;
  1550.     }
  1551.     if(CCO[playerid] == 16)
  1552.     {
  1553.         SetTimerEx("PassageirosE", 5000, false, "i", playerid);
  1554.         TogglePlayerControllable(playerid, 0);
  1555.         GameTextForPlayer(playerid, "~w~~h~EMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1556.         DisablePlayerRaceCheckpoint(playerid);
  1557.         CCO[playerid] = 17;
  1558.         SetPlayerRaceCheckpoint(playerid, 1, -1989.9607, 150.7433, 27.5391, -1989.9607, 150.7433, 27.5391, 3.0);
  1559.         return 1;
  1560.     }
  1561.     if(CCO[playerid] == 17)
  1562.     {
  1563.         SetTimerEx("PassageirosD", 5000, false, "i", playerid);
  1564.         TogglePlayerControllable(playerid, 0);
  1565.         GameTextForPlayer(playerid, "~w~~h~DESEMBARCANDO ~b~~h~PASSAGEIROS~w~...", 5000, 4);
  1566.         DisablePlayerRaceCheckpoint(playerid);
  1567.         return 1;
  1568.     }
  1569.     return 1;
  1570. }
  1571.  
  1572. public OnPlayerLeaveRaceCheckpoint(playerid)
  1573. {
  1574.     return 1;
  1575. }
  1576.  
  1577. public OnRconCommand(cmd[])
  1578. {
  1579.     return 1;
  1580. }
  1581.  
  1582. public OnPlayerRequestSpawn(playerid)
  1583. {
  1584.     return 1;
  1585. }
  1586.  
  1587. public OnObjectMoved(objectid)
  1588. {
  1589.     return 1;
  1590. }
  1591.  
  1592. public OnPlayerObjectMoved(playerid, objectid)
  1593. {
  1594.     return 1;
  1595. }
  1596.  
  1597. public OnPlayerPickUpPickup(playerid, pickupid)
  1598. {
  1599.     if(pickupid == PickupLeo[PickUpAGENCIAEMPREGOSENTRADA]) {
  1600.         SendClientMessage(playerid, -1, "| INFO | Para entrar na Agência de Empregos digite '{b6b6b6}/Entrar{FFFFFF}' ou pressione a tecla '{b6b6b6}F{FFFFFF}'");
  1601.     }
  1602.     else if(pickupid == PickupLeo[PickUpAGENCIAEMPREGOSSAIDA]) {
  1603.         SendClientMessage(playerid, -1, "| INFO | Para sair da Agência de Empregos digite '{b6b6b6}/Sair{FFFFFF}' ou pressione a tecla '{b6b6b6}F{FFFFFF}'");
  1604.     }
  1605.     return 1;
  1606. }
  1607.  
  1608. public OnVehicleMod(playerid, vehicleid, componentid)
  1609. {
  1610.     return 1;
  1611. }
  1612.  
  1613. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1614. {
  1615.     return 1;
  1616. }
  1617.  
  1618. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1619. {
  1620.     return 1;
  1621. }
  1622.  
  1623. public OnPlayerSelectedMenuRow(playerid, row)
  1624. {
  1625.     return 1;
  1626. }
  1627.  
  1628. public OnPlayerExitedMenu(playerid)
  1629. {
  1630.     return 1;
  1631. }
  1632.  
  1633. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1634. {
  1635.     return 1;
  1636. }
  1637.  
  1638. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1639. {
  1640.     return 1;
  1641. }
  1642.  
  1643. public OnRconLoginAttempt(ip[], password[], success)
  1644. {
  1645.     return 1;
  1646. }
  1647.  
  1648. public OnPlayerUpdate(playerid)
  1649. {
  1650.     return 1;
  1651. }
  1652.  
  1653. public OnPlayerStreamIn(playerid, forplayerid)
  1654. {
  1655.     return 1;
  1656. }
  1657.  
  1658. public OnPlayerStreamOut(playerid, forplayerid)
  1659. {
  1660.     return 1;
  1661. }
  1662.  
  1663. public OnVehicleStreamIn(vehicleid, forplayerid)
  1664. {
  1665.     return 1;
  1666. }
  1667.  
  1668. public OnVehicleStreamOut(vehicleid, forplayerid)
  1669. {
  1670.     return 1;
  1671. }
  1672.  
  1673. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1674. {
  1675.     switch(dialogid) {
  1676.         case DIALOG_LOGIN: {
  1677.             if(response) {
  1678.                 if(!strval(inputtext)) {
  1679.                     new string[500];
  1680.                     SendClientMessage(playerid, -1, "[ ERRO ] {FF0000}Você não digitou sua senha para entrar na sua Contas");
  1681.                     format(string, sizeof(string), "{FFFFFF}Seja Bem Vindo novamente ao servidor!\n\nNick:{32CD32} %s{FFFFFF}\n\nNível:{FF0000} %d{FFFFFF}\n\nRegistrado: {00FF00}Sim\n\n{FFFFFF}Digite sua senha para efetuar o login!", GetPlayerNome(playerid), DOF2_GetInt(Contas(playerid), "Level"));
  1682.                     ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "BVR - LOGIN", string , "Logar", "Recuperar");
  1683.                 } else {
  1684.                     PlayerLeo[playerid][Senha] = DOF2_GetInt(Contas(playerid), "Senha");
  1685.                     if(strval(inputtext) == PlayerLeo[playerid][Senha]) {
  1686.                         CarregarConta(playerid);
  1687.                         GivePlayerMoney(playerid, PlayerLeo[playerid][Dinheiro]);
  1688.                         SendClientMessage(playerid, -1, "{FFFFFF}• {FFBC59}» Login efetuado com sucesso, tenha um bom jogo!");
  1689.                         SpawnPlayer(playerid);
  1690.                         return 1;
  1691.                     } else {
  1692.                         PlayerLeo[playerid][pSenhaInvalida]++;
  1693.                         if(PlayerLeo[playerid][pSenhaInvalida] == 3) return Kick(playerid);
  1694.                         new string[500];
  1695.                         format(string, sizeof(string), "[ ERRO ] {FF0000}Senha Inválida! Tentativas {FF0000}[{FFFFFF}%d{FF0000}/{FFFFFF}3{FF0000}]", PlayerLeo[playerid][pSenhaInvalida]);
  1696.                         SendClientMessage(playerid, -1, string);
  1697.                         format(string, sizeof(string), "{FFFFFF}Seja Bem Vindo novamente ao servidor!\n\nNick:{32CD32} %s{FFFFFF}\n\nNível:{FF0000} %d{FFFFFF}\n\nRegistrado: {00FF00}Sim\n\n{FFFFFF}Digite sua senha para efetuar o login!", GetPlayerNome(playerid), DOF2_GetInt(Contas(playerid), "Level"));
  1698.                         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "BVR - LOGIN", string , "Logar", "Recuperar");
  1699.                     }
  1700.                 }
  1701.             } else {
  1702.  
  1703.             }
  1704.             return 1;
  1705.         }
  1706.         case DIALOG_REGISTRO: {
  1707.             if(response) {
  1708.                 if(!strlen(inputtext)) {
  1709.                     new string[500];
  1710.                     SendClientMessage(playerid, -1, "[ ERRO ] {FF0000}Você nao digitou uma senha para registrar sua Conta");
  1711.                     format(string, sizeof(string), "{FFFFFF}Seja Bem Vindo ao servidor!\n\nNick:{32CD32} %s{FFFFFF}\n\nNível:{FF0000} N/A{FFFFFF}\n\nRegistrado: {FF0000}Não\n\n*Digite uma senha para efetuar o registro!*", GetPlayerNome(playerid));
  1712.                     ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "BVR - REGISTRO", string , "Registrar", "Sair");
  1713.                 } else {
  1714.                     DOF2_CreateFile(Contas(playerid));
  1715.                     PlayerLeo[playerid][Senha] = strval(inputtext);
  1716.                     DOF2_SetInt(Contas(playerid), "Dinheiro", 5000);
  1717.                     DOF2_SetInt(Contas(playerid), "Level", 0);
  1718.                     PlayerLeo[playerid][Profissao] = DESEMPREGADO;
  1719.                     PlayerLeo[playerid][Admin] = 0;
  1720.                     PlayerLeo[playerid][Celular] = 0;
  1721.                     PlayerLeo[playerid][Creditos] = 0;
  1722.                     GivePlayerMoney(playerid, 5000);
  1723.                     SetPlayerScore(playerid, 1);
  1724.                     SalvarContas(playerid);
  1725.                     PlayerLeo[playerid][RegistroNaoConcluido] = true;
  1726.                     return 1;
  1727.                 }
  1728.             } else {
  1729.                 Kick(playerid);
  1730.             }
  1731.             return 1;
  1732.         }
  1733.     }
  1734.     if(dialogid == DIALOG_AGENCIA) {
  1735.         if(response) {
  1736.             switch(listitem) {
  1737.                 case 0: {
  1738.                     new string[1300];
  1739.                     strcat(string, "{FFFFFF}Profissão\t{ff4503}Level\t{1a8622}Salario{FFFFFF}\n");
  1740.                     strcat(string, "Desempregado\t{ff4503}0\t{1a8622}$220{FFFFFF}\n");
  1741.                     strcat(string, "Caçador\t{ff4503}0\t{1a8622}$600{FFFFFF}\n");
  1742.                     strcat(string, "Pescador\t{ff4503}5\t{1a8622}$600{FFFFFF}\n");
  1743.                     strcat(string, "Gari\t{ff4503}6\t{1a8622}$600{FFFFFF}\n");
  1744.                     strcat(string, "Mecânico\t{ff4503}7\t{1a8622}$700{FFFFFF}\n");
  1745.                     strcat(string, "Paraquedista\t{ff4503}8\t{1a8622}$750{FFFFFF}\n");
  1746.                     strcat(string, "Pizza Boy\t{ff4503}10\t{1a8622}$750{FFFFFF}\n");
  1747.                     strcat(string, "Correios\t{ff4503}15\t{1a8622}$750{FFFFFF}\n");
  1748.                     strcat(string, "Paramedico\t{ff4503}20\t{1a8622}$800{FFFFFF}\n");
  1749.                     strcat(string, "Dnit\t{ff4503}23\t{1a8622}$820{FFFFFF}\n");
  1750.                     strcat(string, "Frentista\t{ff4503}25\t{1a8622}$850{FFFFFF}\n");
  1751.                     strcat(string, "Fotografo\t{ff4503}30\t{1a8622}$870{FFFFFF}\n");
  1752.                     strcat(string, "Instrutor de Direção\t{ff4503}40\t{1a8622}$900{FFFFFF}\n");
  1753.                     strcat(string, "Bombeiro\t{ff4503}45\t{1a8622}$910{FFFFFF}\n");
  1754.                     strcat(string, "Padre\t{ff4503}45\t{1a8622}$920{FFFFFF}\n");
  1755.                     strcat(string, "Vendedor de HotDog\t{ff4503}46\t{1a8622}$920{FFFFFF}\n");
  1756.                     strcat(string, "Sorvetero\t{ff4503}47\t{1a8622}$930{FFFFFF}\n");
  1757.                     strcat(string, "Barman\t{ff4503}47\t{1a8622}$940{FFFFFF}\n");
  1758.                     strcat(string, "Jornalista\t{ff4503}50\t{1a8622}$950{FFFFFF}\n");
  1759.                     strcat(string, "Vendedor de Skin\t{ff4503}55\t{1a8622}$980{FFFFFF}\n");
  1760.                     strcat(string, "Meteorologista\t{ff4503}60\t{1a8622}$1000{FFFFFF}\n");
  1761.                     strcat(string, "Advogado\t{ff4503}75\t{1a8622}$1500{FFFFFF}\n");
  1762.                     strcat(string, "Bancario\t{ff4503}80\t{1a8622}$1700{FFFFFF}\n");
  1763.                     strcat(string, "Corretor de Imoveis\t{ff4503}150\t{1a8622}$1000 ");
  1764.                     ShowPlayerDialog(playerid, DIALOG_HONES, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Profissões Honestas", string,"Selecionar", "Voltar");
  1765.                 }
  1766.                 case 1:{
  1767.                     new string[750];
  1768.                     strcat(string, "{FFFFFF}Profissão\t{ff4503}Level\t{1a8622}Salario{FFFFFF}\n");
  1769.                     strcat(string, "Petroleiro\t{ff4503}0\t{1a8622}$800{FFFFFF}\n");
  1770.                     strcat(string, "Transportador\t{ff4503}5\t{1a8622}$820{FFFFFF}\n");
  1771.                     strcat(string, "Minerador\t{ff4503}10\t{1a8622}$850{FFFFFF}\n");
  1772.                     strcat(string, "Piloto\t{ff4503}15\t{1a8622}$880{FFFFFF}\n");
  1773.                     strcat(string, "Carregadores\t{ff4503}20\t{1a8622}$900{FFFFFF}\n");
  1774.                     strcat(string, "Maquinista\t{ff4503}25\t{1a8622}$950{FFFFFF}\n");
  1775.                     strcat(string, "Carregador de Concreto\t{ff4503}40\t{1a8622}$1000{FFFFFF}\n");
  1776.                     strcat(string, "Motorista de Carro Forte\t{ff4503}85\t{1a8622}$1000{FFFFFF}\n");
  1777.                     strcat(string, "Motorista de Onibus\t{ff4503}20\t{1a8622}$800{FFFFFF}\n");
  1778.                     strcat(string, "Taxista\t{ff4503}25\t{1a8622}$850{FFFFFF}\n");
  1779.                     strcat(string, "Moto Taxi\t{ff4503}25\t{1a8622}$850{FFFFFF}\n");
  1780.                     strcat(string, "Taxi Aereo\t{ff4503}30\t{1a8622}$900{FFFFFF}\n");
  1781.                     strcat(string, "Motorista Particular\t{ff4503}33\t{1a8622}$900");
  1782.                     ShowPlayerDialog(playerid, DIALOG_TRANSPORTES, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Profissões Transportes", string,"Selecionar", "Voltar");
  1783.                 }
  1784.                 case 2:{
  1785.                     new string[180];
  1786.                     strcat(string, "{FFFFFF}Profissão\t{ff4503}Level\t{1a8622}Salario{FFFFFF}\n");
  1787.                     strcat(string, "Corregedoria\t{ff4503}900\t{1a8622}$5000{FFFFFF}\n");
  1788.                     strcat(string, "Aposentado\t{ff4503}1500\t{1a8622}$10000");
  1789.                     ShowPlayerDialog(playerid, DIALOG_GOVERNO, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Profissões Governo", string,"Selecionar", "Voltar");
  1790.                 }
  1791.                 case 3:{
  1792.                     new string[500];
  1793.                     strcat(string, "{FFFFFF}Profissão\t{ff4503}Level\t{1a8622}Salario{FFFFFF}\n");
  1794.                     strcat(string, "Policia Militar\t{ff4503}80\t{1a8622}$1000{FFFFFF}\n");
  1795.                     strcat(string, "Ibama\t{ff4503}100\t{1a8622}$1100{FFFFFF}\n");
  1796.                     strcat(string, "Policia Federal\t{ff4503}130\t{1a8622}$1250{FFFFFF}\n");
  1797.                     strcat(string, "Delegado\t{ff4503}150\t{1a8622}$1500{FFFFFF}\n");
  1798.                     strcat(string, "FBI\t{ff4503}200\t{1a8622}$1800{FFFFFF}\n");
  1799.                     strcat(string, "CIA\t{ff4503}230\t{1a8622}$2150{FFFFFF}\n");
  1800.                     strcat(string, "S.W.A.T\t{ff4503}250\t{1a8622}$2500{FFFFFF}\n");
  1801.                     strcat(string, "Narcoticos\t{ff4503}300\t{1a8622}$3000{FFFFFF}\n");
  1802.                     strcat(string, "Interpol\t{ff4503}450\t{1a8622}$3500");
  1803.                     ShowPlayerDialog(playerid, DIALOG_POLICIA, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Profissões Policia", string,"Selecionar", "Voltar");
  1804.                 }
  1805.                 case 4:{
  1806.                     new string[180];
  1807.                     strcat(string, "{FFFFFF}Profissão\t{ff4503}Level\t{1a8622}Salario{FFFFFF}\n");
  1808.                     strcat(string, "Marinha\t{ff4503}800\t{1a8622}$6000{FFFFFF}\n");
  1809.                     strcat(string, "Exercito\t{ff4503}1000\t{1a8622}$7500{FFFFFF}\n");
  1810.                     strcat(string, "Aeronautica\t{ff4503}1100\t{1a8622}$8000");
  1811.                     ShowPlayerDialog(playerid, DIALOG_FARMADAS, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Profissões Forças Armadas", string,"Selecionar", "Voltar");
  1812.                 }
  1813.                 case 5:{
  1814.                     new string[800];
  1815.                     strcat(string, "{FFFFFF}Profissão\t{ff4503}Level\t{1a8622}Salario{FFFFFF}\n");
  1816.                     strcat(string, "Fazendeiro\t{ff4503}10\t{1a8622}$600{FFFFFF}\n");
  1817.                     strcat(string, "Transportador de Drogas\t{ff4503}15\t{1a8622}$600{FFFFFF}\n");
  1818.                     strcat(string, "Vendedor de Drogas\t{ff4503}20\t{1a8622}$700{FFFFFF}\n");
  1819.                     strcat(string, "Traficante de Armas\t{ff4503}40\t{1a8622}$800{FFFFFF}\n");
  1820.                     strcat(string, "Sequestrador\t{ff4503}65\t{1a8622}$800{FFFFFF}\n");
  1821.                     strcat(string, "Assaltante\t{ff4503}80\t{1a8622}$900{FFFFFF}\n");
  1822.                     strcat(string, "Assassino\t{ff4503}150\t{1a8622}$1000{FFFFFF}\n");
  1823.                     strcat(string, "Petroleiro Clandestino\t{ff4503}250\t{1a8622}$1500{FFFFFF}\n");
  1824.                     strcat(string, "Chefao da Mafia\t{ff4503}400\t{1a8622}$2000{FFFFFF}\n");
  1825.                     strcat(string, "Terrorista\t{ff4503}800\t{1a8622}$5000");
  1826.                     ShowPlayerDialog(playerid, DIALOG_MAFIA, DIALOG_STYLE_TABLIST_HEADERS, "Profissões Máfia", string, "Selecionar", "Voltar");
  1827.                 }
  1828.             }
  1829.             return 1;
  1830.         }
  1831.     }
  1832.     if(dialogid == DIALOG_HONES) {
  1833.         if(response) {
  1834.             switch(listitem) {
  1835.                 case 0: {
  1836.                     if(PlayerLeo[playerid][Profissao] == DESEMPREGADO)
  1837.                     {
  1838.                         SendClientMessage(playerid, -1, "| ERRO | Você já é um Desempregado!");
  1839.                         return 1;
  1840.                     }
  1841.                     if(GetPlayerScore(playerid) >= 0) {
  1842.                         SendClientMessage(playerid, -1, "| INFO | Parabéns agora você é um desempregado!");
  1843.                         PlayerLeo[playerid][Profissao] = DESEMPREGADO;
  1844.                         SetPlayerColor(playerid, COR_DESEMPREGADO);
  1845.                     }
  1846.                     else {
  1847.                         SendClientMessage(playerid, -1, "Você não tem nivel suficiente para esta profissão");
  1848.                     }
  1849.                     return 1;
  1850.                 }
  1851.                 case 1: {
  1852.                     //Caçador
  1853.                 }
  1854.                 case 2: {
  1855.                     //Pescador
  1856.                 }
  1857.                 case 3: {
  1858.                     //Gari
  1859.                 }
  1860.                 case 4: {
  1861.                     //Mecanico
  1862.                 }
  1863.                 case 5: {
  1864.                     //Paraquedista
  1865.                 }
  1866.                 case 6: {
  1867.                     //PizzaBoy
  1868.                 }
  1869.                 case 7: {
  1870.                     //Correios
  1871.                 }
  1872.                 case 8: {
  1873.                     //Paramedicos
  1874.                 }
  1875.                 case 9: {
  1876.                     //Dnit
  1877.                 }
  1878.                 case 10: {
  1879.                     //Frentista
  1880.                 }
  1881.                 case 11: {
  1882.                     //Fotografo
  1883.                 }
  1884.                 case 12: {
  1885.                     //InstrutorDirecao
  1886.                 }
  1887.                 case 13: {
  1888.                     //Bombeiro
  1889.                 }
  1890.                 case 14: {
  1891.                     ////Padre
  1892.                 }
  1893.                 case 15: {
  1894.                     //Vendedor de hotdog
  1895.                 }
  1896.                 case 16: {
  1897.                     //sorveiteiro
  1898.                 }
  1899.                 case 17: {
  1900.                     //Barman
  1901.                 }
  1902.                 case 18: {
  1903.                     //JORNAL
  1904.                 }
  1905.                 case 19: {
  1906.                     //Vendedor de Skin
  1907.                 }
  1908.                 case 20: {
  1909.                     //Metereologista
  1910.                 }
  1911.                 case 21: {
  1912.                     //Advogado
  1913.                 }
  1914.                 case 22: {
  1915.                     //Bancario
  1916.                 }
  1917.                 case 23:{
  1918.                     //Corretor de Imoevis
  1919.                 }
  1920.             }
  1921.         }
  1922.         else {
  1923.             ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  1924.         }
  1925.         return 1;
  1926.     }
  1927.  
  1928.     if(dialogid == DIALOG_TRANSPORTES) {
  1929.         if(response) {
  1930.             switch(listitem) {
  1931.                 case 0: { //Petroleiro
  1932.                 }
  1933.                 case 1: { //Transportador
  1934.                 }
  1935.                 case 2: { //Minerador
  1936.                 }
  1937.                 case 3:
  1938.                 {
  1939.                     if(PlayerLeo[playerid][Profissao] == PILOTO)
  1940.                     {
  1941.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já é um piloto!");
  1942.                         return 1;
  1943.                     }
  1944.                     if(GetPlayerScore(playerid) >= 15)
  1945.                     {
  1946.                         SendClientMessage(playerid, COR_PILOTO, "| PILOTO | Parabéns agora você é um Piloto");
  1947.                         PlayerLeo[playerid][Profissao] = PILOTO;
  1948.                         SetPlayerColor(playerid, COR_PILOTO);
  1949.                     }
  1950.                     else {
  1951.                         SendClientMessage(playerid, COR_ERRO, "Você não tem o level suficiente para esta profissão!");
  1952.                     }
  1953.                     return 1;
  1954.                 }
  1955.                 case 4: { //Carregadores
  1956.                 }
  1957.                 case 5: { //Maquinista
  1958.                 }
  1959.                 case 6: { //Carregador de Concreto
  1960.                 }
  1961.                 case 7: { //Motorista de Carro Forte
  1962.                     if(PlayerLeo[playerid][Profissao] == MOTORISTA_CARROFORTE)
  1963.                     {
  1964.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | VocÊ já é um Motorista de Carro Forte!");
  1965.                         return 1;
  1966.                     }
  1967.                     if(GetPlayerScore(playerid) >= 85)
  1968.                     {
  1969.                         SendClientMessage(playerid, COR_CARROFORTE, "| AGENCIA | Você foi aceito em seu emprego (Motorista de Carro Forte)");
  1970.                         PlayerLeo[playerid][Profissao] = MOTORISTA_CARROFORTE;
  1971.                         SetPlayerColor(playerid, COR_CARROFORTE);
  1972.                     }
  1973.                     else {
  1974.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem o level suficiente para essa profissão!");
  1975.                     }
  1976.                     return 1;
  1977.                 }
  1978.                 case 8: {
  1979.                     if(PlayerLeo[playerid][Profissao] == MOTORISTA_ONIBUS)
  1980.                     {
  1981.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já é um Motorista de Ônibus!");
  1982.                         return 1;
  1983.                     }
  1984.                     if(GetPlayerScore(playerid) >= 20)
  1985.                     {
  1986.                         SendClientMessage(playerid, COR_MOTORISTABUS, "| AGENCIA | Parabéns agora você é um Motorista de Ônibus");
  1987.                         PlayerLeo[playerid][Profissao] = MOTORISTA_ONIBUS;
  1988.                         SetPlayerColor(playerid, COR_MOTORISTABUS);
  1989.                     }
  1990.                     else {
  1991.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem o level suficiente para essa profissão!");
  1992.                     }
  1993.                     return 1;
  1994.                 }
  1995.                 case 9: { //Taxista
  1996.                 }
  1997.                 case 10: { //Moto Taxi
  1998.                 }
  1999.                 case 11: { //Taxi Aereo
  2000.                 }
  2001.                 case 12: { //Motorista Particular
  2002.                 }
  2003.             }
  2004.         }
  2005.         else {
  2006.             ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  2007.         }
  2008.         return 1;
  2009.     }
  2010.  
  2011.     if(dialogid == DIALOG_GOVERNO) {
  2012.         if(response) {
  2013.             switch(listitem) {
  2014.                 case 0: { //Corregedoria
  2015.                 }
  2016.                 case 1: { //Aposentado
  2017.                 }
  2018.             }
  2019.         }
  2020.         else {
  2021.              ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  2022.         }
  2023.         return 1;
  2024.     }
  2025.  
  2026.     if(dialogid == DIALOG_POLICIA) {
  2027.         if(response) {
  2028.             switch(listitem) {
  2029.                 case 0: { //Policia Militar
  2030.                 }
  2031.                 case 1: { //Ibama
  2032.                 }
  2033.                 case 2: { //Policia Federal
  2034.                 }
  2035.                 case 3: { //Delegado
  2036.                 }
  2037.                 case 4: { //FBI
  2038.                 }
  2039.                 case 5: { //CIA
  2040.                 }
  2041.                 case 6: { //S.W.A.T
  2042.                 }
  2043.                 case 7: { //Narcoticos
  2044.                 }
  2045.                 case 8: { //Interpol
  2046.                 }
  2047.             }
  2048.         }
  2049.         else {
  2050.              ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  2051.         }
  2052.         return 1;
  2053.     }
  2054.  
  2055.     if(dialogid == DIALOG_FARMADAS) {
  2056.         if(response) {
  2057.             switch(listitem) {
  2058.                 case 0: { //Marinha
  2059.                 }
  2060.                 case 1: { //Exercito
  2061.                 }
  2062.                 case 2: { //Aeronautica
  2063.                 }
  2064.             }
  2065.         }
  2066.         else {
  2067.              ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  2068.         }
  2069.         return 1;
  2070.     }
  2071.  
  2072.     if(dialogid == DIALOG_MAFIA) {
  2073.         if(response) {
  2074.             switch(listitem) {
  2075.                 case 0: {
  2076.                     if(PlayerLeo[playerid][Profissao] == FAZENDEIRO) {
  2077.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já é um fazendeiro.");
  2078.                         return 1;
  2079.                     }
  2080.                     if(GetPlayerScore(playerid) >= 10) {
  2081.                         SendClientMessage(playerid, COR_FAZENDEIRO, "| MAFIA | Você se tornou um fazendeiro.");
  2082.                         PlayerLeo[playerid][Profissao] = FAZENDEIRO;
  2083.                         SetPlayerColor(playerid, COR_FAZENDEIRO);
  2084.                         return 1;
  2085.                     } else {
  2086.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem o level necessário para esta profissão.");
  2087.                     }
  2088.                 }
  2089.                 case 1: { //Transportador de Drogas
  2090.                 }
  2091.                 case 2: { //Vendedor de Drogas
  2092.                 }
  2093.                 case 3: { //Traficante de Armas
  2094.                 }
  2095.                 case 4: { //Sequestrador
  2096.                 }
  2097.                 case 5: { //Assaltante
  2098.                 }
  2099.                 case 6: { //Assassino
  2100.                 }
  2101.                 case 7: { //Petroleiro Clandestino
  2102.                 }
  2103.                 case 8: { //Chefao da Mafia
  2104.                 }
  2105.                 case 9: { //Terrorista
  2106.                 }
  2107.             }
  2108.         }
  2109.         else {
  2110.              ShowPlayerDialog(playerid, DIALOG_AGENCIA, DIALOG_STYLE_LIST, "{FF0000}Profissões", "{FFFFFF}Classe » {38b170}Honestas\n{FFFFFF}Classe » {8bcffa}Transporte\n{FFFFFF}Classe » {847c7f}Governo\n{FFFFFF}Classe » {218ffd}Policia\n{FFFFFF}Classe » {211b88}Forças Armadas\n{FFFFFF}Classe » {840000}Mafia\n", "Selecionar", "Sair");
  2111.         }
  2112.         return 1;
  2113.         }
  2114.     if(dialogid == DIALOG_ROTAONIBUS) {
  2115.         if(response) {
  2116.             switch(listitem) {
  2117.                 case 0: {
  2118.                     SetPlayerCheckpoint(playerid, 2806.0938, 1313.2496, 10.7500, 5.0);
  2119.                     CCO[playerid] = 1;
  2120.                     Trabalhando[playerid] = 1;
  2121.                     EmRota[playerid] = 1;
  2122.                     return 1;
  2123.                 }
  2124.             }
  2125.         }
  2126.     }
  2127.     if(dialogid == DIALOG_ROTACARRO) {
  2128.         if(response) {
  2129.             switch(listitem) {
  2130.                 case 0: {
  2131.                     SetPlayerCheckpoint(playerid, 611.7098, -1295.8733, 15.1473, 5.0);
  2132.                     CheckCF[playerid] = 1;
  2133.                     EmRota[playerid] = 1;
  2134.                     return 1;
  2135.                 }
  2136.             }
  2137.         }
  2138.     }
  2139.     if(dialogid == DIALOG_CONCE) {
  2140.         if(response) {
  2141.             switch(listitem) {
  2142.                 case 0: {
  2143.                     for(new i = 0; i < sizeof(VeiculosT); i ++)
  2144.                     {
  2145.                         if(GetPlayerMoney(playerid) < VeiculosT[i][Preco]) {
  2146.                             SendClientMessage(playerid, -1, "Você não tem dinheiro suficiente!");
  2147.                             return 1;
  2148.                         }
  2149.                         CreateVehicle(VeiculosT[i][VeiculosID], SPAWN_X, SPAWN_Y, SPAWN_Z, ANGULO, 1, 2, 0);
  2150.                         GivePlayerMoney(playerid, -VeiculosT[i][Preco]);
  2151.                         break;
  2152.                     }
  2153.                     return 1;
  2154.                 }
  2155.                 case 1: {
  2156.                     for(new i = 1; i < sizeof(VeiculosT); i ++)
  2157.                     {
  2158.                         CreateVehicle(VeiculosT[i][VeiculosID], SPAWN_X, SPAWN_Y, SPAWN_Z, ANGULO, 1, 2, 0);
  2159.                         break;
  2160.                     }
  2161.                     return 1;
  2162.                 }
  2163.                 case 2: {
  2164.                     for(new i = 2; i < sizeof(VeiculosT); i ++)
  2165.                     {
  2166.                         CreateVehicle(VeiculosT[i][VeiculosID], SPAWN_X, SPAWN_Y, SPAWN_Z, ANGULO, 1, 2, 0);
  2167.                         break;
  2168.                     }
  2169.                     return 1;
  2170.                 }
  2171.                 case 3: {
  2172.                     for(new i = 3; i < sizeof(VeiculosT); i ++)
  2173.                     {
  2174.                         CreateVehicle(VeiculosT[i][VeiculosID], SPAWN_X, SPAWN_Y, SPAWN_Z, ANGULO, 1, 2, 0);
  2175.                         break;
  2176.                     }
  2177.                     return 1;
  2178.                 }
  2179.                 case 4: {
  2180.                     for(new i = 4; i < sizeof(VeiculosT); i ++)
  2181.                     {
  2182.                         CreateVehicle(VeiculosT[i][VeiculosID], SPAWN_X, SPAWN_Y, SPAWN_Z, ANGULO, 1, 2, 0);
  2183.                         break;
  2184.                     }
  2185.                     return 1;
  2186.                 }
  2187.                 case 5: {
  2188.                     for(new i = 5; i < sizeof(VeiculosT); i ++)
  2189.                     {
  2190.                         CreateVehicle(VeiculosT[i][VeiculosID], SPAWN_X, SPAWN_Y, SPAWN_Z, ANGULO, 1, 2, 0);
  2191.                         break;
  2192.                     }
  2193.                     return 1;
  2194.                 }
  2195.             }
  2196.         }
  2197.     }
  2198.     if(dialogid == DIALOG_SEMENTE) {
  2199.         if(response) {
  2200.             switch(listitem) {
  2201.                 case 0: {
  2202.                     if(GetPlayerMoney(playerid) < 3000) {
  2203.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$3000 para comprar sementes");
  2204.                         return 1;
  2205.                     }
  2206.                     if(PlayerLeo[playerid][Sementes] >= 60) {
  2207.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Limite máximo de sementes atingido.");
  2208.                         return 1;
  2209.                     }
  2210.                     SendClientMessage(playerid, -1, "| INFO | Você comprou {7CFC00}10 sementes{FFFFFF} no valor de {228B22}R$3000{FFFFFF}.");
  2211.                     PlayerLeo[playerid][Sementes] += 10;
  2212.                     GivePlayerMoney(playerid, -3000);
  2213.                     return 1;
  2214.                 }
  2215.                 case 1: {
  2216.                     if(GetPlayerMoney(playerid) < 5000) {
  2217.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$5000 para comprar sementes");
  2218.                         return 1;
  2219.                     }
  2220.                     if(PlayerLeo[playerid][Sementes] >= 60) {
  2221.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Limite máximo de sementes atingido.");
  2222.                         return 1;
  2223.                     }
  2224.                     SendClientMessage(playerid, -1, "| INFO | Você comprou {7CFC00}20 sementes{FFFFFF} no valor de {228B22}R$5000{FFFFFF}.");
  2225.                     PlayerLeo[playerid][Sementes] += 20;
  2226.                     GivePlayerMoney(playerid, -5000);
  2227.                     return 1;
  2228.                 }
  2229.                 case 2: {
  2230.                     if(GetPlayerMoney(playerid) < 8000) {
  2231.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$8000 para comprar sementes");
  2232.                         return 1;
  2233.                     }
  2234.                     if(PlayerLeo[playerid][Sementes] >= 60) {
  2235.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Limite máximo de sementes atingido.");
  2236.                         return 1;
  2237.                     }
  2238.                     SendClientMessage(playerid, -1, "| INFO | Você comprou {7CFC00}30 sementes {FFFFFF}no valor de {228B22}R$8000{FFFFFF}.");
  2239.                     PlayerLeo[playerid][Sementes] += 30;
  2240.                     GivePlayerMoney(playerid, -8000);
  2241.                     return 1;
  2242.                 }
  2243.             }
  2244.         }
  2245.     }
  2246.     if(dialogid == DIALOG_HOSPITAL) {
  2247.         if(response) {
  2248.             switch(listitem) {
  2249.                 case 0: {
  2250.                     if(GetPlayerMoney(playerid) < 5000) {
  2251.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$5000.");
  2252.                         return 1;
  2253.                     }
  2254.                     if(PlayerLeo[playerid][PlanoMedico] == 1) {
  2255.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já tem plano médico.");
  2256.                         return 1;
  2257.                     }
  2258.                     SendClientMessage(playerid, -1, "| HOSPITAL | Você adquiriu {1E90FF}Kit-Médico{FFFFFF}.");
  2259.                     PlayerLeo[playerid][PlanoMedico] = 1;
  2260.                     GivePlayerMoney(playerid, -5000);
  2261.                     return 1;
  2262.                 }
  2263.             }
  2264.         }
  2265.     }
  2266.     if(dialogid == DIALOG_UTILITARIOS) {
  2267.         if(response) {
  2268.             switch(listitem) {
  2269.                 case 0: {
  2270.                     if(GetPlayerMoney(playerid) < 3000) {
  2271.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$3000.");
  2272.                         return 1;
  2273.                     }
  2274.                     if(PlayerLeo[playerid][Celular] == 1) {
  2275.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você já tem um celular.");
  2276.                         return 1;
  2277.                     }
  2278.                     SendClientMessage(playerid, -1, "| UTILITARIOS | Você adquiriu um celular. Para mais informações digite /Ajuda.");
  2279.                     PlayerLeo[playerid][Celular] = 1;
  2280.                     GivePlayerMoney(playerid, -3000);
  2281.                     return 1;
  2282.                 }
  2283.                 case 1: {
  2284.                     if(GetPlayerMoney(playerid) < 300) {
  2285.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem créditos para mandar mensagem, compre na Loja de Utilitarios!");
  2286.                         return 1;
  2287.                     }
  2288.                     if(PlayerLeo[playerid][Creditos] == 200) {
  2289.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Limite de créditos atingido!");
  2290.                         return 1;
  2291.                     }
  2292.                     SendClientMessage(playerid, -1, "| UTILITARIOS | Você adquiriu 50 de créditos, para mais informações /Ajuda.");
  2293.                     PlayerLeo[playerid][Creditos] += 50;
  2294.                     GivePlayerMoney(playerid, -300);
  2295.                     return 1;
  2296.                 }
  2297.             }
  2298.         }
  2299.     }
  2300.     if(dialogid == DIALOG_SEMPARAR) {
  2301.         if(response) {
  2302.             switch(listitem) {
  2303.                 case 0: {
  2304.                     if(GetPlayerMoney(playerid) < 900) {
  2305.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$900");
  2306.                         return 1;
  2307.                     }
  2308.                     SendClientMessage(playerid, COR_VERDE, "| SEM-PARAR | Você comprou 10 passagens para o SEM PARAR!");
  2309.                     SemParar[playerid] += 10;
  2310.                     GivePlayerMoney(playerid, -900);
  2311.                     return 1;
  2312.                 }
  2313.                 case 1: {
  2314.                     if(GetPlayerMoney(playerid) < 1700) {
  2315.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$1700");
  2316.                         return 1;
  2317.                     }
  2318.                     SendClientMessage(playerid, COR_VERDE, "| SEM-PARAR | Você comprou 20 passagens para o SEM PARAR!");
  2319.                     SemParar[playerid] += 20;
  2320.                     GivePlayerMoney(playerid, -1700);
  2321.                     return 1;
  2322.                 }
  2323.                 case 2: {
  2324.                     if(GetPlayerMoney(playerid) < 3200) {
  2325.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$3200");
  2326.                         return 1;
  2327.                     }
  2328.                     SendClientMessage(playerid, COR_VERDE, "| SEM-PARAR | Você comprou 30 passagens para o SEM PARAR!");
  2329.                     SemParar[playerid] += 30;
  2330.                     GivePlayerMoney(playerid, -3200);
  2331.                     return 1;
  2332.                 }
  2333.                 case 3: {
  2334.                     if(GetPlayerMoney(playerid) < 6200) {
  2335.                         SendClientMessage(playerid, COR_ERRO, "| ERRO | Você não tem R$6200");
  2336.                         return 1;
  2337.                     }
  2338.                     SendClientMessage(playerid, COR_VERDE, "| SEM-PARAR | Você comprou 40 passagens para o SEM PARAR!");
  2339.                     SemParar[playerid] += 40;
  2340.                     GivePlayerMoney(playerid, -6200);
  2341.                     return 1;
  2342.                 }
  2343.             }
  2344.         }
  2345.     }
  2346.     return 1;
  2347. }
  2348. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  2349. {
  2350.     return 1;
  2351. }
  2352.  
  2353. public Sumiu(playerid)
  2354. {
  2355.     foreach(Player, i)
  2356.     {
  2357.         TextDrawHideForPlayer(playerid, Aviso[i]);
  2358.     }
  2359.     return 1;
  2360. }
  2361.  
  2362. public Plantar1(playerid)
  2363. {
  2364.     new Float:Gz[3];
  2365.     GetPlayerPos(playerid, Gz[0], Gz[1], Gz[2]);
  2366.     Maconha = CreateObject(3409, Gz[0], Gz[1] , Gz[2]-1.8, 0, 0, 0);
  2367.     Colher[playerid] = 0;
  2368.     SendClientMessage(playerid, 0xFFFFFFFF, "| INFO | {FF0000}Maconha{FFFFFF} pronta para ser colhida.");
  2369.     return 1;
  2370. }
  2371.  
  2372. forward Carregando(playerid);
  2373. public Carregando(playerid)
  2374. {
  2375.     TogglePlayerControllable(playerid, 1);
  2376.     SendClientMessage(playerid, 0xFFFFFFFF, "| INFO | Malotes carregados, siga o {FF0000}checkpoint{FFFFFF} marcado em seu mapa!");
  2377.     GameTextForPlayer(playerid, "~w~~h~LIBERADO", 3000, 4);
  2378.     return 1;
  2379. }
  2380.  
  2381. public PassageirosE(playerid)
  2382. {
  2383.     TogglePlayerControllable(playerid, 1);
  2384.     SendClientMessage(playerid, 0xFFFFFFFF, "| INFO | Passageiros embarcados, siga o próximo {FF0000}checkpoint{FFFFFF}!");
  2385.     GameTextForPlayer(playerid, "~w~~h~LIBERADO", 4000, 4);
  2386.     return 1;
  2387. }
  2388. public PassageirosD(playerid)
  2389. {
  2390.     TogglePlayerControllable(playerid, 1);
  2391.     new Frase[128];
  2392.     new Grana = random(6000 - 4000)+ 4000;
  2393.     GivePlayerMoney(playerid, Grana);
  2394.     EmRota[playerid] = 0;
  2395.     format(Frase,sizeof(Frase), "| RODOVIARIA | Você completou a rota {1E90FF}LAS VENTURAS - SAN FIERRO{FFFFFF}, e recebeu [{228B22}R$%d{FFFFFF}]", Grana);
  2396.     SendClientMessage(playerid, -1 ,Frase);
  2397.     return 1;
  2398. }
  2399. public DescarregarA(playerid)
  2400. {
  2401.     TogglePlayerControllable(playerid, 1);
  2402.     SendClientMessage(playerid, 0xFFFFFFFF, "| AEROPORTO | Você descarregou mercadorias, siga o próximo {FF0000}checkpoint{FFFFFF}!");
  2403.     return 1;
  2404. }
  2405. public DescarregouT(playerid)
  2406. {
  2407.     TogglePlayerControllable(playerid, 1);
  2408.     new Frase[128];
  2409.     new Grana = random(4000 - 3000)+ 3000;
  2410.     GivePlayerMoney(playerid, Grana);
  2411.     Carregado[playerid] = 0;
  2412.     format(Frase,sizeof(Frase), "| AEROPORTO | Você descarregou todas as mercadorias, e recebeu [{228B22}R$%d{FFFFFF}]", Grana);
  2413.     SendClientMessage(playerid, -1 ,Frase);
  2414.     return 1;
  2415. }
  2416.  
  2417. forward CorrigirSementes(playerid);
  2418. public CorrigirSementes(playerid)
  2419. {
  2420.     if(PlayerLeo[playerid][Sementes] >= 60)
  2421.     {
  2422.         PlayerLeo[playerid][Sementes] = 60;
  2423.         return 1;
  2424.     }
  2425.     return 1;
  2426. }
  2427.  
  2428. forward CheckSemParar();
  2429. public CheckSemParar()
  2430. {
  2431.     for(new i; i != GetMaxPlayers(); i++) {
  2432.         if(IsPlayerConnected(i)) {
  2433.             if(IsPlayerInAnyVehicle(i)) {
  2434.                 if(IsPlayerInRangeOfPoint(i, 6.5, -1125.2976,-2863.8716,67.7188) && PassouPedagio[i] == false) {
  2435.                     if(SemParar[i]) {
  2436.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2437.                             PassouPedagio[i] = true;
  2438.                             SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2439.                             SetTimerEx("FecharCancelaP", 3000, false, "i", i);
  2440.                             SendClientMessage(i, COR_VERDE, "| SEM-PARAR | Você possui Sem Parar e foi feita uma cobrança automática!");
  2441.                             SemParar[i] --;
  2442.                         }
  2443.                         MovePlayerObject(i, CancelaP[i][0], -1120.59277, -2860.23462, 67.43290, 0.0001, 0.0000, 0.0000, 272.3800);
  2444.                         return 1;
  2445.                     }
  2446.                     if(!SemParar[i] && GetPlayerMoney(i) >= 100) {
  2447.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2448.                             PassouPedagio[i] = true;
  2449.                             SendClientMessage(i, COR_VERDE, "| PEDAGIO | Você não pussui SEM PARAR e precisará parar na cabine!");
  2450.                             TogglePlayerControllable(i, false);
  2451.                             GivePlayerMoney(i, -100);
  2452.                             SetTimerEx("MoveCancela1", 3000, false, "i", i);
  2453.                             break;
  2454.                         }
  2455.                     }
  2456.                     else {
  2457.                         PassouPedagio[i] = true;
  2458.                         SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2459.                         SendClientMessage(i, COR_ERRO,"| ERRO | Você não possui R$100 reais para o pedágio!");
  2460.                         break;
  2461.                     }
  2462.                 } else if(IsPlayerInRangeOfPoint(i, 6.5, -1114.5270,-2851.4023,67.7188) && PassouPedagio[i] == false) {
  2463.                     if(SemParar[i]) {
  2464.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2465.                             PassouPedagio[i] = true;
  2466.                             SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2467.                             SetTimerEx("FecharCancelaP", 3000, false, "i", i);
  2468.                             SendClientMessage(i, COR_VERDE, "| SEM-PARAR | Você possui Sem Parar e foi feita uma cobrança automática!");
  2469.                             SemParar[i] --;
  2470.                         }
  2471.                         MovePlayerObject(i, CancelaP[i][1], -1121.28052, -2855.66870, 67.43290, 0.0001, 0.0000, 0.0000, 92.1800);
  2472.                         return 1;
  2473.                     } else if(!SemParar[i] && GetPlayerMoney(i) >= 100) {
  2474.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2475.                             PassouPedagio[i] = true;
  2476.                             SendClientMessage(i, COR_VERDE, "| PEDAGIO | Você não pussui SEM PARAR e precisará parar na cabine!");
  2477.                             TogglePlayerControllable(i, false);
  2478.                             GivePlayerMoney(i, -100);
  2479.                             SetTimerEx("MoveCancela2", 3000, false, "i", i);
  2480.                             break;
  2481.                         }
  2482.                     }
  2483.                     else
  2484.                     {
  2485.                         PassouPedagio[i] = true;
  2486.                         SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2487.                         SendClientMessage(i, COR_ERRO, "Você não possui R$100 reais para o pedágio!");
  2488.                         break;
  2489.                     }
  2490.                 }
  2491.                 if(IsPlayerInRangeOfPoint(i, 6.5, 1743.8019, 522.3286, 27.8644) && PassouPedagio[i] == false) {
  2492.                     if(SemParar[i]) {
  2493.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2494.                             PassouPedagio[i] = true;
  2495.                             SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2496.                             SetTimerEx("FecharCancelaP", 3000, false, "i", i);
  2497.                             SendClientMessage(i, COR_VERDE, "| SEM-PARAR | Você possui Sem Parar e foi feita uma cobrança automática!");
  2498.                             SemParar[i] --;
  2499.                         }
  2500.                         MovePlayerObject(i, CancelaP[i][3], 1743.69641, 532.61810, 27.08570, 0.0001, 0.0000, 0.0000, -21.5200);
  2501.                         return 1;
  2502.                     }
  2503.                     if(!SemParar[i] && GetPlayerMoney(i) >= 100) {
  2504.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2505.                             PassouPedagio[i] = true;
  2506.                             SendClientMessage(i, COR_VERDE, "| PEDAGIO | Você não pussui SEM PARAR e precisará parar na cabine!");
  2507.                             TogglePlayerControllable(i, false);
  2508.                             GivePlayerMoney(i, -100);
  2509.                             SetTimerEx("MoveCancela4", 3000, false, "i", i);
  2510.                             break;
  2511.                         }
  2512.                     }
  2513.                     else
  2514.                     {
  2515.                         PassouPedagio[i] = true;
  2516.                         SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2517.                         SendClientMessage(i, COR_ERRO, "Você não possui R$100 reais para o pedágio!");
  2518.                         break;
  2519.                     }
  2520.                 } else if(IsPlayerInRangeOfPoint(i, 6.5, 1753.6305, 520.3472, 27.7972) && PassouPedagio[i] == false) {
  2521.                     if(SemParar[i]) {
  2522.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2523.                             PassouPedagio[i] = true;
  2524.                             SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2525.                             SetTimerEx("FecharCancelaP", 3000, false, "i", i);
  2526.                             SendClientMessage(i, COR_VERDE, "| SEM-PARAR | Você possui Sem Parar e foi feita uma cobrança automática!");
  2527.                             SemParar[i] --;
  2528.                         }
  2529.                         MovePlayerObject(i, CancelaP[i][2], 1752.64233, 529.21753, 27.08570, 0.0001, 0.0000, 0.0000, -21.5200);
  2530.                         return 1;
  2531.                     } else if(!SemParar[i] && GetPlayerMoney(i) >= 100) {
  2532.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2533.                             PassouPedagio[i] = true;
  2534.                             SendClientMessage(i, COR_VERDE, "| PEDAGIO | Você não pussui SEM PARAR e precisará parar na cabine!");
  2535.                             TogglePlayerControllable(i, false);
  2536.                             GivePlayerMoney(i, -100);
  2537.                             SetTimerEx("MoveCancela3", 3000, false, "i", i);
  2538.                             break;
  2539.                         }
  2540.                     }
  2541.                     else
  2542.                     {
  2543.                         PassouPedagio[i] = true;
  2544.                         SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2545.                         SendClientMessage(i, COR_ERRO, "Você não possui R$100 reais para o pedágio!");
  2546.                         break;
  2547.                     }
  2548.                 }
  2549.                 if(IsPlayerInRangeOfPoint(i, 6.5, 1737.3971, 530.7954, 27.5291) && PassouPedagio[i] == false) {
  2550.                     if(SemParar[i]) {
  2551.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2552.                             PassouPedagio[i] = true;
  2553.                             SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2554.                             SetTimerEx("FecharCancelaP", 3000, false, "i", i);
  2555.                             SendClientMessage(i, COR_VERDE, "| SEM-PARAR | Você possui Sem Parar e foi feita uma cobrança automática!");
  2556.                             SemParar[i] --;
  2557.                         }
  2558.                         MovePlayerObject(i, CancelaP[i][4], 1738.31946, 523.43921, 27.62790, 0.0001, 0.0000, 0.0000, 162.1799);
  2559.                         return 1;
  2560.                     } else if(!SemParar[i] && GetPlayerMoney(i) >= 100) {
  2561.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2562.                             PassouPedagio[i] = true;
  2563.                             SendClientMessage(i, COR_VERDE, "| PEDAGIO | Você não pussui SEM PARAR e precisará parar na cabine!");
  2564.                             TogglePlayerControllable(i, false);
  2565.                             GivePlayerMoney(i, -100);
  2566.                             SetTimerEx("MoveCancela5", 3000, false, "i", i);
  2567.                             break;
  2568.                         }
  2569.                     }
  2570.                     else
  2571.                     {
  2572.                         PassouPedagio[i] = true;
  2573.                         SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2574.                         SendClientMessage(i, COR_ERRO, "Você não possui R$100 reais para o pedágio!");
  2575.                         break;
  2576.                     }
  2577.                 } else if(IsPlayerInRangeOfPoint(i, 6.5, 1729.5702,535.3495,27.4266) && PassouPedagio[i] == false) {
  2578.                     if(SemParar[i]) {
  2579.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2580.                             PassouPedagio[i] = true;
  2581.                             SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2582.                             SetTimerEx("FecharCancelaP", 3000, false, "i", i);
  2583.                             SendClientMessage(i, COR_VERDE, "| SEM-PARAR | Você possui Sem Parar e foi feita uma cobrança automática!");
  2584.                             SemParar[i] --;
  2585.                         }
  2586.                         MovePlayerObject(i, CancelaP[i][5], 1729.92896, 526.36902, 27.62790, 0.0001, 0.0000, 0.0000, 162.1799);
  2587.                         return 1;
  2588.                     } else if(!SemParar[i] && GetPlayerMoney(i) >= 100) {
  2589.                         if(GetPlayerState(i) == PLAYER_STATE_DRIVER) {
  2590.                             PassouPedagio[i] = true;
  2591.                             SendClientMessage(i, COR_VERDE, "| PEDAGIO | Você não pussui SEM PARAR e precisará parar na cabine!");
  2592.                             TogglePlayerControllable(i, false);
  2593.                             GivePlayerMoney(i, -100);
  2594.                             SetTimerEx("MoveCancela6", 3000, false, "i", i);
  2595.                             break;
  2596.                         }
  2597.                     }
  2598.                     else
  2599.                     {
  2600.                         PassouPedagio[i] = true;
  2601.                         SetTimerEx("PassouPedagioP", 3000, false, "i", i);
  2602.                         SendClientMessage(i, COR_ERRO, "Você não possui R$100 reais para o pedágio!");
  2603.                         break;
  2604.                     }
  2605.                 }
  2606.             }
  2607.         }
  2608.     }
  2609.     return 1;
  2610. }
  2611.  
  2612. forward MoveCancela1(playerid);
  2613. public MoveCancela1(playerid)
  2614. {
  2615.     MovePlayerObject(playerid, CancelaP[playerid][0], -1120.59277, -2860.23462, 67.43290, 0.0001, 0.0000, 0.0000, 272.3800);
  2616.     TogglePlayerControllable(playerid, true);
  2617.     SetTimerEx("FecharCancelaP", 3000, false, "i", playerid);
  2618.     SetTimerEx("PassouPedagioP", 4000, false, "i", playerid);
  2619.     return 1;
  2620. }
  2621.  
  2622. forward MoveCancela2(playerid);
  2623. public MoveCancela2(playerid)
  2624. {
  2625.     MovePlayerObject(playerid, CancelaP[playerid][1], -1121.28052, -2855.66870, 67.43290, 0.0001, 0.0000, 0.0000, 92.1800);
  2626.     TogglePlayerControllable(playerid, true);
  2627.     SetTimerEx("FecharCancelaP", 3000, false, "i", playerid);
  2628.     SetTimerEx("PassouPedagioP", 4000, false, "i", playerid);
  2629.     return 1;
  2630. }
  2631.  
  2632. forward MoveCancela3(playerid);
  2633. public MoveCancela3(playerid)
  2634. {
  2635.     MovePlayerObject(playerid, CancelaP[playerid][2], 1752.64233, 529.21753, 27.08570+0.0001, 0.0001, 0.0000, 0.0000, -21.5200);
  2636.     TogglePlayerControllable(playerid, true);
  2637.     SetTimerEx("FecharCancelaP", 3000, false, "i", playerid);
  2638.     SetTimerEx("PassouPedagioP", 4000, false, "i", playerid);
  2639.     return 1;
  2640. }
  2641.  
  2642. forward MoveCancela4(playerid);
  2643. public MoveCancela4(playerid)
  2644. {
  2645.     MovePlayerObject(playerid, CancelaP[playerid][3], 1743.69641, 532.61810, 27.08570+0.0001, 0.0001, 0.0000, 0.0000, -21.5200);
  2646.     TogglePlayerControllable(playerid, true);
  2647.     SetTimerEx("FecharCancelaP", 3000, false, "i", playerid);
  2648.     SetTimerEx("PassouPedagioP", 4000, false, "i", playerid);
  2649.     return 1;
  2650. }
  2651.  
  2652. forward MoveCancela5(playerid);
  2653. public MoveCancela5(playerid)
  2654. {
  2655.     MovePlayerObject(playerid, CancelaP[playerid][4], 1738.31946, 523.43921, 27.62790+0.0001, 0.0001, 0.0000, 0.0000, 162.1799);
  2656.     TogglePlayerControllable(playerid, true);
  2657.     SetTimerEx("FecharCancelaP", 3000, false, "i", playerid);
  2658.     SetTimerEx("PassouPedagioP", 4000, false, "i", playerid);
  2659.     return 1;
  2660. }
  2661.  
  2662. forward MoveCancela6(playerid);
  2663. public MoveCancela6(playerid)
  2664. {
  2665.     MovePlayerObject(playerid, CancelaP[playerid][5], 1729.92896, 526.36902, 27.62790+0.0001, 0.0001, 0.0000, 0.0000, 162.1799);
  2666.     TogglePlayerControllable(playerid, true);
  2667.     SetTimerEx("FecharCancelaP", 3000, false, "i", playerid);
  2668.     SetTimerEx("PassouPedagioP", 4000, false, "i", playerid);
  2669.     return 1;
  2670. }
  2671.  
  2672. forward PassouPedagioP(playerid);
  2673. public PassouPedagioP(playerid)
  2674. {
  2675.     PassouPedagio[playerid] = false;
  2676.     return 1;
  2677. }
  2678.  
  2679. forward FecharCancelaP(playerid);
  2680. public FecharCancelaP(playerid)
  2681. {
  2682.     MovePlayerObject(playerid, CancelaP[playerid][0], -1120.59277, -2860.23462, 67.43290, 0.0001, 0.0000, 90.0000, 272.3800);
  2683.     MovePlayerObject(playerid, CancelaP[playerid][1], -1121.28052, -2855.66870, 67.43290, 0.0001, 0.0000, 90.0000, 92.1800);
  2684.     MovePlayerObject(playerid, CancelaP[playerid][2], 1752.64233, 529.21753, 27.08570, 0.0001, 0.0000, 90.0000, -21.5200);
  2685.     MovePlayerObject(playerid, CancelaP[playerid][3], 1743.69641, 532.61810, 27.08570, 0.0001, 0.0000, 90.0000, -21.5200);
  2686.     MovePlayerObject(playerid, CancelaP[playerid][4], 1738.31946, 523.43921, 27.62790, 0.0001, 0.0000, 90.0000, 162.1799);
  2687.     MovePlayerObject(playerid, CancelaP[playerid][5], 1729.92896, 526.36902, 27.62790, 0.0001, 0.0000, 90.0000, 162.1799);
  2688.     return 1;
  2689. }
  2690.  
  2691.  
  2692. forward MsgPassagem(playerid);
  2693. public MsgPassagem(playerid)
  2694. {
  2695.     if(PassagemMensagem[playerid] >= 5)
  2696.     {
  2697.         KillTimer(PassagemTimer[playerid]); KillTimer(PassagemTimer[PassagemID[playerid]]);
  2698.         SendClientFormat(playerid, COR_ERRO, "| PASSAGEM | Você demorou muito para responder %s e a oferta da passagem foi cancelada!", GetPlayerNome(PassagemID[playerid]));
  2699.         SendClientFormat(PassagemID[playerid], COR_ERRO, "| PASSAGEM | %s demorou para responder e sua oferta foi cancelada.", GetPlayerNome(playerid));
  2700.         PassagemOferecido[PassagemID[playerid]] = 0;
  2701.         PassagemRecebido[playerid] = 0;
  2702.         PassagemMensagem[playerid] = 0;
  2703.         PassagemValor[playerid] = 0;
  2704.         PassagemJa[playerid] = 0;
  2705.         PassagemID[playerid] = -1;
  2706.         return 1;
  2707.     }
  2708.     if(PassagemMensagem[playerid] < 5)
  2709.     {
  2710.         SendClientFormat(playerid, COR_MOTORISTABUS, "| PASSAGEM | O(A) Motorista de Ônibus %s esta te oferecendo uma passagem por R$%d. (/pAceitar | /pRecusar).", GetPlayerNome(PassagemID[playerid]), PassagemValor[playerid]);
  2711.         SendClientFormat(PassagemID[playerid], COR_MOTORISTABUS, "Aguardando a reposta de %s... [Oferta de Passagem]", GetPlayerNome(playerid));
  2712.         PassagemMensagem[playerid] ++;  PassagemTimer[playerid] = SetTimerEx("MsgPassagem", 4000, false, "d", playerid);
  2713.         return 1;
  2714.     }
  2715.     return 1;
  2716.  
  2717. }
  2718.  
  2719. forward MutadoTimer(playerid);
  2720. public MutadoTimer(playerid)
  2721. {
  2722.     SendClientMessage(playerid, 0xFF0000FF, "| INFO | Você foi descalado não quebre as regras novamente!");
  2723.     Calado[playerid] = 0;
  2724.     return 1;
  2725. }
  2726.  
  2727. public Horas(playerid) {
  2728.     new Str[128], str2[128], ano, mes, dia, horas, minutos, segundos;
  2729.     getdate(ano, mes, dia);
  2730.     gettime(horas, minutos, segundos);
  2731.     new mess[12];
  2732.     if(mes == 1) { mess = "1";}
  2733.     else if(mes == 2) { mess = "2";}
  2734.     else if(mes == 3) { mess = "3";}
  2735.     else if(mes == 4) { mess = "4";}
  2736.     else if(mes == 5) { mess = "5";}
  2737.     else if(mes == 6) { mess = "6";}
  2738.     else if(mes == 7) { mess = "7";}
  2739.     else if(mes == 8) { mess = "8";}
  2740.     else if(mes == 9) { mess = "9";}
  2741.     else if(mes == 10) { mess = "10";}
  2742.     else if(mes == 11) { mess = "11";}
  2743.     else if(mes == 12) { mess = "12";}
  2744.     format(Str, sizeof(Str), "%02d/%02d/%02d", dia, mes, ano);
  2745.     TextDrawSetString(Text:Textdraw0, Str);
  2746.     format(str2, sizeof(str2), "%02d:%02d:%02d", horas, minutos, segundos);
  2747.     TextDrawSetString(Text:Textdraw1, str2);
  2748. }
  2749.  
  2750. stock ComandosProf(playerid) {
  2751.     new stg[1500], gstring[500];
  2752.  
  2753.     if(PlayerLeo[playerid][Profissao] == PILOTO) {
  2754.         format(gstring, sizeof(gstring), "\n\t\t{FFFFFF}Comandos da Profissão: {6495ED}Piloto\n");
  2755.         strcat(stg, gstring);
  2756.         format(gstring, sizeof(gstring), "\n\n{6495ED}/Carregar {FFFFFF}- Inicia o trabalho, carregando o avião.");
  2757.         strcat(stg, gstring);
  2758.         format(gstring, sizeof(gstring), "\n\n{1E90FF}/CP [Texto]{FFFFFF} - Chat Profissão - Falar com todos os jogadores da profissão atual.");
  2759.         strcat(stg, gstring);
  2760.         ShowPlayerDialog(playerid, DIALOG_PROFISSOES, DIALOG_STYLE_MSGBOX, "{FFFFFF}Comandos de Profissão", stg, "Fechar", "");
  2761.     }
  2762.     else if(PlayerLeo[playerid][Profissao] == MOTORISTA_ONIBUS) {
  2763.         format(gstring, sizeof(gstring), "\n\t\t{FFFFFF}Comandos da Profissão: {009ACD}Motorista de Ônibus\n");
  2764.         strcat(stg, gstring);
  2765.         format(gstring, sizeof(gstring), "\n\n{009ACD}/VenderPassagem {FFFFFF}- Poderá vender passagens.");
  2766.         strcat(stg, gstring);
  2767.         format(gstring, sizeof(gstring), "\n\n{009ACD}/IniciarRota {FFFFFF}- Inicia a rota escolhida.");
  2768.         strcat(stg, gstring);
  2769.         format(gstring, sizeof(gstring), "\n\n{1E90FF}/CP [Texto]{FFFFFF} - Chat Profissão - Falar com todos os jogadores da profissão atual.");
  2770.         strcat(stg, gstring);
  2771.     }
  2772.     else if(PlayerLeo[playerid][Profissao] == FAZENDEIRO)   {
  2773.         format(gstring, sizeof(gstring), "\n\t\t{FFFFFF}Comandos da Profissão: {EE0000}Fazendeiro\n");
  2774.         strcat(stg, gstring);
  2775.         format(gstring, sizeof(gstring), "\n\n{EE0000}/PlantarMaconha {FFFFFF}- Inicia a plantação da erva.");
  2776.         strcat(stg, gstring);
  2777.         format(gstring, sizeof(gstring), "\n\n{EE0000}/Colher {FFFFFF}- Quando pronto para colher a erva.");
  2778.         strcat(stg, gstring);
  2779.         format(gstring, sizeof(gstring), "\n\n{EE0000}/ComprarSementes {FFFFFF}- Para comprar sementes no beco.");
  2780.         strcat(stg, gstring);
  2781.         format(gstring, sizeof(gstring), "\n\n{EE0000}/MinhasSementes {FFFFFF}- Lhe mostra a quantidade de sementes ainda restante.");
  2782.         strcat(stg, gstring);
  2783.         format(gstring, sizeof(gstring), "\n\n{1E90FF}/CP [Texto]{FFFFFF} - Chat Profissão - Falar com todos os jogadores da profissão atual.");
  2784.         strcat(stg, gstring);
  2785.     }
  2786.     format(gstring, sizeof(gstring), "\n\n\n\t\t{FFFFFF}Todos direitos reservados a {32CD32}LB.Games");
  2787.     strcat(stg, gstring);
  2788.     ShowPlayerDialog(playerid, DIALOG_PROFISSOES, DIALOG_STYLE_MSGBOX, "{FFFFFF}Comandos de Profissão", stg, "Fechar", "");
  2789.     return 1;
  2790. }
  2791.  
  2792. stock Contas(playerid) {
  2793.     new file[128];
  2794.     format(file, sizeof(file), PASTA_CONTAS, GetPlayerNome(playerid));
  2795.     return file;
  2796. }
  2797.  
  2798. stock Conce(playerid) {
  2799.     new file[128];
  2800.     for(new i; i < sizeof(VeiculosT); i ++)
  2801.     {
  2802.         format(file, sizeof(file), PASTA_CARROS, GetVehicleModel(i));
  2803.     }
  2804.     return file;
  2805. }
  2806.  
  2807.  
  2808. stock GetPlayerNome(playerid) {
  2809.     new aname[MAX_PLAYER_NAME];
  2810.     GetPlayerName(playerid, aname, sizeof(aname));
  2811.     return aname;
  2812. }
  2813.  
  2814. stock SalvarCarros(playerid)
  2815. {
  2816.     new Float:P[4];
  2817.     if(!DOF2_FileExists(Conce(playerid))) DOF2_CreateFile(Conce(playerid));
  2818.     else
  2819.     {
  2820.         for(new idx; idx < sizeof(VeiculosT); idx ++)
  2821.         {
  2822.             GetVehiclePos(idx, P[0], P[1], P[2]);
  2823.             GetVehicleZAngle(idx, P[3]);
  2824.             DOF2_SetFloat(Conce(playerid), "PosX", P[0]);
  2825.             DOF2_SetFloat(Conce(playerid), "PosY", P[1]);
  2826.             DOF2_SetFloat(Conce(playerid), "PosZ", P[2]);
  2827.             DOF2_SetFloat(Conce(playerid), "Angulo", P[3]);
  2828.             DOF2_SetInt(Conce(playerid), "Modelo", VeiculosT[idx][VeiculosID]);
  2829.             DOF2_SetInt(Conce(playerid), "CarroNome", VeiculosT[idx][VeiculoNome]);
  2830.             DOF2_SetInt(Conce(playerid), "Preco", VeiculosT[idx][Preco]);
  2831.         }
  2832.     }
  2833.     return 1;
  2834. }
  2835.  
  2836. stock SalvarContas(playerid)
  2837. {
  2838.     if(!DOF2_FileExists(Contas(playerid))) DOF2_CreateFile(Contas(playerid));
  2839.     else
  2840.     {
  2841.         new Float:Pos[4];
  2842.         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  2843.         GetPlayerFacingAngle(playerid, Pos[3]);
  2844.         DOF2_SetFloat(Contas(playerid), "UltimaPosX", Pos[0]);
  2845.         DOF2_SetFloat(Contas(playerid), "UltimaPosY", Pos[1]);
  2846.         DOF2_SetFloat(Contas(playerid), "UltimaPosZ", Pos[2]);
  2847.         DOF2_SetFloat(Contas(playerid), "UltimaPosA", Pos[3]);
  2848.         PlayerLeo[playerid][Dinheiro] = GetPlayerMoney(playerid);
  2849.         DOF2_SetInt(Contas(playerid), "Senha", PlayerLeo[playerid][Senha]);
  2850.         DOF2_SetInt(Contas(playerid), "Matou", PlayerLeo[playerid][Matou]);
  2851.         DOF2_SetInt(Contas(playerid), "Morreu", PlayerLeo[playerid][Morreu]);
  2852.         DOF2_SetInt(Contas(playerid), "Dinheiro", GetPlayerMoney(playerid));
  2853.         DOF2_SetInt(Contas(playerid), "Profissao", PlayerLeo[playerid][Profissao]);
  2854.         PlayerLeo[playerid][Level] = GetPlayerScore(playerid);
  2855.         DOF2_SetInt(Contas(playerid), "Sementes", PlayerLeo[playerid][Sementes]);
  2856.         DOF2_SetInt(Contas(playerid), "PlanoMedico", PlayerLeo[playerid][PlanoMedico]);
  2857.         DOF2_SetInt(Contas(playerid), "Celular", PlayerLeo[playerid][Celular]);
  2858.         DOF2_SetInt(Contas(playerid), "Creditos", PlayerLeo[playerid][Creditos]);
  2859.         DOF2_SetInt(Contas(playerid), "Admin", PlayerLeo[playerid][Admin]);
  2860.         DOF2_SetInt(Contas(playerid), "SemParar", SemParar[playerid]);
  2861.         DOF2_SaveFile();
  2862.     }
  2863.     return 1;
  2864. }
  2865.  
  2866. stock CarregarConta(playerid)
  2867. {
  2868.     SemParar[playerid] = DOF2_GetInt(Contas(playerid), "SemParar");
  2869.     PlayerLeo[playerid][Level] = DOF2_GetInt(Contas(playerid), "Level");
  2870.     PlayerLeo[playerid][Dinheiro] = DOF2_GetInt(Contas(playerid), "Dinheiro");
  2871.     PlayerLeo[playerid][Matou] = DOF2_GetInt(Contas(playerid), "Matou");
  2872.     PlayerLeo[playerid][Morreu] = DOF2_GetInt(Contas(playerid), "Morreu");
  2873.     PlayerLeo[playerid][Profissao] = DOF2_GetInt(Contas(playerid), "Profissao");
  2874.     PlayerLeo[playerid][Sementes] = DOF2_GetInt(Contas(playerid), "Sementes");
  2875.     PlayerLeo[playerid][PlanoMedico] = DOF2_GetInt(Contas(playerid), "PlanoMedico");
  2876.     PlayerLeo[playerid][Celular] = DOF2_GetInt(Contas(playerid), "Celular");
  2877.     PlayerLeo[playerid][Creditos] = DOF2_GetInt(Contas(playerid), "Creditos");
  2878.     PlayerLeo[playerid][Admin] = DOF2_GetInt(Contas(playerid), "Admin");
  2879.  
  2880.     SetPlayerScore(playerid, PlayerLeo[playerid][Level]);
  2881.     GivePlayerMoney(playerid, PlayerLeo[playerid][Dinheiro]);
  2882.     return 1;
  2883. }
  2884.  
  2885. stock LimparChat(playerid, linhas)
  2886. {
  2887.     for(new i; i < linhas; i++)
  2888.     {
  2889.         SendClientMessage(playerid, 0xFFFFFFAA, "  ");
  2890.     }
  2891.     return 1;
  2892. }
  2893.  
  2894. stock CorProfissao(playerid) {
  2895.     if(PlayerLeo[playerid][Profissao] == DESEMPREGADO)
  2896.         SetPlayerColor(playerid, COR_DESEMPREGADO);
  2897.     else if(PlayerLeo[playerid][Profissao] == MOTORISTA_ONIBUS)
  2898.         SetPlayerColor(playerid, COR_MOTORISTABUS)
  2899.     else if(PlayerLeo[playerid][Profissao] == PILOTO)
  2900.         SetPlayerColor(playerid, COR_PILOTO)
  2901.     else if(PlayerLeo[playerid][Profissao] == FAZENDEIRO)
  2902.         SetPlayerColor(playerid, COR_FAZENDEIRO)
  2903.     else if(PlayerLeo[playerid][Profissao] == MOTORISTA_CARROFORTE)
  2904.         SetPlayerColor(playerid, COR_CARROFORTE)
  2905.     return CorProfissao;
  2906. }
  2907.  
  2908. stock AdminLevel(playerid)
  2909. {
  2910.     new name[32];
  2911.     if(PlayerLeo[playerid][Admin] == 1) format(name, sizeof(name), "Ajudante");
  2912.     else if(PlayerLeo[playerid][Admin] == 2) format(name, sizeof(name), "Moderador");
  2913.     else if(PlayerLeo[playerid][Admin] == 3) format(name, sizeof(name), "Ajudante-Adm");
  2914.     else if(PlayerLeo[playerid][Admin] == 4) format(name, sizeof(name), "Administrador");
  2915.     else if(PlayerLeo[playerid][Admin] == 5) format(name, sizeof(name), "Staff");
  2916.     return name;
  2917. }
  2918.  
  2919.  
  2920. stock ReturnVehicleID(vName[])
  2921. {
  2922.     for(new x; x != 211; x++) if(strfind(vNames[x], vName, true) != -1) return x + 400;
  2923.     return INVALID_VEHICLE_ID;
  2924. }
  2925.  
  2926. stock IsPlayerInPlace(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax)
  2927. {
  2928.     new
  2929.         RetValue = 0,
  2930.         Float:aX,
  2931.         Float:aY,
  2932.         Float:aZ
  2933.     ;
  2934.     GetPlayerPos(playerid, aX, aY, aZ);
  2935.     if(aX >= XMin && aY >= YMin && aX < XMax && aY < YMax)
  2936.     {
  2937.         RetValue = 1;
  2938.     }
  2939.     return RetValue;
  2940. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement