Advertisement
Guest User

RolePlay

a guest
Sep 24th, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 303.11 KB | None | 0 0
  1. /*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  2. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  3. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  4. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  5.                            FortCarson - RolePlay
  6. |----------------------------------------------------------------------------|
  7. |  IDEALIZADOR(ES): Rodney_Francalim                                         |
  8. |  APOIO(S):        Evolution SA:MP                                          |
  9. |                                                                            |
  10. |  CRÉDITOS:        Rodney_Francalim - Base do GM e maioria dos sistemas     |
  11. |                   Monster          - Sistema de registro/login             |
  12. |                   Chainksain_666   - Relógio                               |
  13. |                   Ricardo Brasil   - Alguns comandos do AD:RP              |
  14. |                                                                            |
  15. |=============================== IMPORTANTE =================================|
  16. |  NÃO RETIRE/EDITE OS CRÉDITOS DO GAMEMODE, OU PEDOBEAR LHE FARÁ UM VISITA  |
  17. |----------------------------------------------------------------------------|
  18. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  19. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  20. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
  21. *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*/
  22.  
  23. //==================== [ Includes ] =====================
  24. #include <a_samp>
  25. //#include <dudb>
  26. #include <utils>
  27. #include <streamer>
  28.  
  29. //#pragma tabsize 0
  30. #pragma unused ret_memcpy
  31. #pragma dynamic 5220
  32.  
  33. //////////////////////////////[ EQUIPE/CRIADOR ]////////////////////////////////
  34. #define SCRIPT_EQUIPE           "Evolution SA:MP"   // PODERÁ SER ALTERADO     /
  35. #define SCRIPT_CRIADOR          "Rodney Francalim"  // NÃO PODERÁ SER ALTERADO /
  36. ////////////////////////////////////////////////////////////////////////////////
  37.  
  38. #define ADMIN_OLHANDO_PLAYER 1
  39. #define PAROU_DE_OLHAR_PLAYER 0
  40.  
  41. /////////////////////////
  42.  
  43. #define SCM SendClientMessage
  44.  
  45. /////////////////////////
  46.  
  47. #define CHECK_CHEGOU 12
  48.  
  49. #define MAX_ZONE_NAME 28
  50.  
  51. //======== [ hexadecimáis do SendClientMessage ] ========
  52. //{90EE90}"SERVER"
  53. ////{D2D2FF}"Texto padrão"
  54. //{A9C4E4}"Texto padrão"
  55. //{FFFF00}"INFO"
  56. //{00FA9A}"JOGADOR"
  57. //{FF0000}"ERRO"
  58. //{33CCFF}"ADMIN"
  59. //{4169E1}"Números"
  60.  
  61. //============== [ Cores do Servidor ] ==================
  62. //--------------------- 3D Label ------------------------
  63. #define COR_TEXTO3D 0xF68E00F6
  64. //#define COR_TEXTO3D 0x800000FF
  65. //-------------------------------------------------------
  66. #define COR_ADMINCHAT 0xCDCD9CAA
  67. #define COR_CINZA 0xAFAFAFAA
  68. #define COR_VERDE 0x33AA33AA
  69. #define COR_VERMELHA 0xAA3333AA
  70. #define COR_AMARELA 0xFFFF00AA
  71. #define COR_BRANCA 0xFFFFFFAA
  72. //#define COR_INFO 0xD2D2FFFF
  73. #define COR_INFO 0xA9C4E4AA
  74. #define COR_AZULCLARO 0x33CCFFAA
  75. #define COR_VERMELHOCLARO 0xFF6347AA
  76. #define COR_OOC 0xE0FFFFAA
  77. #define COR_CHATOOC 0x939393AA
  78. #define COLOR_FADE1 0xE6E6E6E6
  79. #define COLOR_FADE2 0xC8C8C8C8
  80. #define COLOR_FADE3 0xAAAAAAAA
  81. #define COLOR_FADE4 0x8C8C8C8C
  82. #define COLOR_FADE5 0x6E6E6E6E
  83. #define COR_PURPLE 0xC2A2DAAA
  84. #define COR_IDENTIDADE 0x4F754AFF
  85. #define COR_NIDENTIDADE 0xA3A3A3FF
  86.  
  87. //=================== [ Dialog ] ========================
  88. // dialogid usados: 1 ~ 8, 10 ~ 19
  89. #define GPS 10
  90. #define COMPRAR247PALOMINO 11
  91. // [ dialogid ~ RD:CP ]
  92. #define BATERCARTAO 12
  93. #define BATERCARTAO1 13
  94. #define BATERCARTAO2 14
  95. #define EQUIPAR 15
  96. #define EQUIPAR1 16
  97. #define EQUIPAR2 17
  98. #define EQUIPAR3 18
  99. #define EQUIPAR4 19
  100. #define AJUDA 20
  101. #define DOCUMENTOS 21
  102. #define KICK 22
  103. #define BAN 23
  104. #define OBTERDOC 24
  105.  
  106. // [ Carros configs. ]
  107. #define TEMPORESPAWN 5 // por minuto
  108. #define NDECARROS 1    // SE POR MAIS CARROS ADICIONA OS VALORES AQUI
  109.  
  110.  
  111. // [ TEXTO3D NO ADMIN EM MODO DE TRABALHO ]
  112. new Text3D:Texto3DAdmin[MAX_PLAYERS];
  113.  
  114. // [ Saude/Colete de adm ]
  115. new Float:saudedeademir;
  116. new Float:coletedeademir;
  117.  
  118. // [ produção ]
  119. new TempoProd;
  120. forward Producao();
  121.  
  122. // [ server ligado/desligado ]
  123. new v[6];
  124.  
  125. // [ PROIBIDO DE USAR CMD ]
  126. new SemCMD[MAX_PLAYERS];
  127.  
  128. // [ carro ]
  129. new engine,lights,alarm,doors,bonnet,boot,objective;
  130. new Tanque[MAX_VEHICLES];
  131. new Abastecendo[MAX_PLAYERS];
  132. #define PRECGAS 3 // PREÇO DO LITRO DE GASOLINA EM US$
  133. #define MaxGas 100
  134. #define TempGGas 30000
  135. new TimerObterGas;
  136. forward ObterGas();
  137. forward GastarGas();
  138. new SemGas[MAX_VEHICLES];
  139. forward EUmPostoDeGas(playerid);
  140.  
  141. // [ ANTIFLOOD ]
  142. new ANTIFLOOD[MAX_PLAYERS];
  143. new ANTIFLOODTIMER[MAX_PLAYERS];
  144. //============== [ NOME DO SERVIDOR ] ===================
  145. new contagem = 0;
  146. new ServidorNome[3][128] = {
  147. "[ALFA] FortCarson:RolePlay",
  148. "[ALFA] Fort Carson",
  149. "[ALFA] alfaroleplay.forumeiros.com"
  150. };
  151.  
  152. // [ InfoServer ]
  153. new TotalDeRegistrados = 0;
  154.  
  155. // [ chat global ]
  156. new SemOOC = 0;
  157. //====================[outros]===========================
  158. new Espiando[MAX_PLAYERS];
  159. new Espiado[MAX_PLAYERS];
  160. new gPlayerLogged[MAX_PLAYERS];
  161. new GpsCheckPoint[MAX_PLAYERS];
  162. new spawnado[MAX_PLAYERS],VelocidadeLigada[MAX_PLAYERS];
  163. new VendoTutTemp[MAX_PLAYERS] = 0;
  164. new Marcha[MAX_PLAYERS];
  165. //==============================================================================
  166. // [ RELÓGIO/DATA ] ============================================================
  167. static i_ServerSeconds;
  168. static i_ServerMinutes;
  169. static i_ServerHours;
  170. static i_ServerDays;
  171. static i_ServerMonths;
  172. static i_ServerYears;
  173. forward ProcessGameTime(playerid);
  174. forward RelogioDoServerEmIC();
  175. new DiaDaSemana = 0;
  176. //==============================================================================
  177.  
  178.  
  179. // [ PAYDAY ]
  180. forward PayDay();
  181.  
  182. //==============================================================================
  183. // [ TEXTDRAWS ] ===============================================================
  184. // relógio OOC
  185. new Text:Textdraw0; //Horas
  186. new Text:Textdraw1; //Minutos
  187. new Text:Textdraw2; //Segundos
  188. new Text:Textdraw3; //Dia
  189. new Text:Textdraw4; //Mês
  190. new Text:Textdraw5; //Ano
  191. // relógio IC
  192. new Text:Textdraw6; //Horas(Minutos)
  193. new Text:Textdraw7; //Minutos(Segundos)
  194. new Text:Textdraw8; //DiaDaSemana
  195. new HorasIC = 0;
  196. new MinutosIC = 0;
  197. //velocimetro
  198. new Text:Textdraw9;
  199. new Text:Textdraw10;
  200. new Text:Textdraw11;
  201. new Text:Textdraw12;
  202. new Text:Textdraw13;
  203. new Text:Textdraw14;
  204. new Text:Textdraw15;
  205. new Text:Textdraw16;
  206. new Text:Textdraw17;
  207. new Text:Textdraw18;
  208. new Text:Textdraw19;
  209. new Text:Textdraw20;
  210. new Text:Textdraw21;
  211. new Text:Textdraw22;
  212. new Text:Textdraw23;
  213. new Text:Textdraw24;
  214. new Text:Textdraw25;
  215. new Text:Textdraw26;
  216. new Text:Textdraw27;
  217. new Text:Textdraw28;
  218. new Text:Textdraw29;
  219. new Text:Textdraw30;
  220. new Text:Textdraw31;
  221. new Text:Textdraw32;
  222. new Text:Textdraw33;
  223. //==============================================================================
  224.  
  225. // variação na conta
  226. forward ActionLog(string[]);
  227. forward BanLog(string[]);
  228. forward KickLog(string[]);
  229. forward VKLog(string[]);
  230. forward DeleteLog(string[]);
  231. forward EditarStats(string[]);
  232. forward AdminLog(string[]);
  233. forward Banido(playerid, motivo[], admin[]);
  234.  
  235. //================== [ Stock de nome ] ==================
  236. stock NomeDoJogador(playerid)
  237. {
  238.     new Nome[MAX_PLAYER_NAME];
  239.     GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
  240.     return Nome;
  241. }
  242.  
  243. // [ janela fechada ]
  244. new JanelaAberta[MAX_PLAYERS];
  245.  
  246. // [ chat real ]
  247. new chatreal = 1;
  248.  
  249. //==================== [ Atuaalizar GM ] ================
  250. forward GameModeExitFunc();
  251.  
  252. //================= [ alfaInfo ] ======================
  253. // [ status em geral ]
  254. enum pInfo
  255. {
  256.     pTituloE,
  257.     pTempoPD,
  258.     pCartTrab,
  259.     pSemOOC,
  260.     pTrabalhando,
  261.     pRegistroGeral,
  262.     pNRegistro,
  263.     pRelogio,
  264.     pGPS,
  265.     pAgenda,
  266.     pCNumero,
  267.     pFerido,
  268.     pAnoNascimento,
  269.     pMesNascimento,
  270.     pDiaNascimento,
  271.     pCongelado,
  272.     pCalado,
  273.     pATrabalhando,
  274.     pLider,
  275.     pCargo,
  276.     pLogou,
  277.     pOrigem,
  278.     pIdade,
  279.     pSexo,
  280.     pTut,
  281.     pLugar,
  282.     pReg,
  283.     pSenha,
  284.     pMoney,
  285.     pLevel,
  286.     pSkin,
  287.     pMortes,
  288.     pKills,
  289.     pAdmin,
  290.     pLogado,
  291.     pORG,
  292.     pEXP,
  293.     pBanco,
  294.     pEmprego,
  295.     pBanido,
  296. };
  297.  
  298. new PlayerInfo[MAX_PLAYERS][pInfo];
  299. new vehName[][] =
  300. {
  301.     "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
  302.     "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
  303.     "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
  304.     "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
  305.     "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
  306.     "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
  307.     "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
  308.     "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
  309.     "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
  310.     "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
  311.     "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
  312.     "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
  313.     "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
  314.     "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
  315.     "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",
  316.     "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
  317.     "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
  318.     "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
  319.     "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
  320.     "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
  321.     "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
  322.     "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
  323.     "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
  324.     "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
  325.     "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
  326.     "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
  327.     "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
  328.     "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
  329.     "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
  330.     "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
  331.     "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
  332.     "Tiller", "Utility Trailer"
  333. };
  334. #define MAX_STRING 255
  335. #define MAX_ZONE_NAME 28
  336.  
  337. enum SAZONE_MAIN {
  338.         SAZONE_NAME[28],
  339.         Float:SAZONE_AREA[6]
  340. };
  341. static const gSAZones[][SAZONE_MAIN] = {
  342.     //  NOMES /LOCALIZAR            AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
  343. { "'The Big Ear'",                {-410.00,  1403.30,    -3.00,  -137.90,  1681.20,   200.00}},
  344. { "Aldea Malvada",               {-1372.10,  2498.50,     0.00, -1277.50,  2615.30,   200.00}},
  345. { "Angel Pine",                  {-2324.90, -2584.20,    -6.10, -1964.20, -2212.10,   200.00}},
  346. { "Arco del Oeste",               {-901.10,  2221.80,     0.00,  -592.00,  2571.90,   200.00}},
  347. { "Avispa Country Club",         {-2646.40,  -355.40,     0.00, -2270.00,  -222.50,   200.00}},
  348. { "Avispa Country Club",         {-2831.80,  -430.20,    -6.10, -2646.40,  -222.50,   200.00}},
  349. { "Avispa Country Club",         {-2361.50,  -417.10,     0.00, -2270.00,  -355.40,   200.00}},
  350. { "Avispa Country Club",         {-2667.80,  -302.10,   -28.80, -2646.40,  -262.30,    71.10}},
  351. { "Avispa Country Club",         {-2470.00,  -355.40,     0.00, -2270.00,  -318.40,    46.10}},
  352. { "Avispa Country Club",         {-2550.00,  -355.40,     0.00, -2470.00,  -318.40,    39.70}},
  353. { "Back o Beyond",               {-1166.90, -2641.10,     0.00,  -321.70, -1856.00,   200.00}},
  354. { "Battery Point",               {-2741.00,  1268.40,    -4.50, -2533.00,  1490.40,   200.00}},
  355. { "Bayside",                     {-2741.00,  2175.10,     0.00, -2353.10,  2722.70,   200.00}},
  356. { "Bayside Marina",              {-2353.10,  2275.70,     0.00, -2153.10,  2475.70,   200.00}},
  357. { "Beacon Hill",                  {-399.60, -1075.50,    -1.40,  -319.00,  -977.50,   198.50}},
  358. { "Blackfield",                    {964.30,  1203.20,   -89.00,  1197.30,  1403.20,   110.90}},
  359. { "Blackfield",                   {964.30,  1403.20,   -89.00,  1197.30,  1726.20,   110.90}},
  360. { "Blackfield Chapel",            {1375.60,   596.30,   -89.00,  1558.00,   823.20,   110.90}},
  361. { "Blackfield Chapel",            {1325.60,   596.30,   -89.00,  1375.60,   795.00,   110.90}},
  362. { "Blackfield Intersection",      {1197.30,  1044.60,   -89.00,  1277.00,  1163.30,   110.90}},
  363. { "Blackfield Intersection",      {1166.50,   795.00,   -89.00,  1375.60,  1044.60,   110.90}},
  364. { "Blackfield Intersection",      {1277.00,  1044.60,   -89.00,  1315.30,  1087.60,   110.90}},
  365. { "Blackfield Intersection",      {1375.60,   823.20,   -89.00,  1457.30,   919.40,   110.90}},
  366. { "Blueberry",                     {104.50,  -220.10,     2.30,   349.60,   152.20,   200.00}},
  367. { "Blueberry",                      {19.60,  -404.10,     3.80,   349.60,  -220.10,   200.00}},
  368. { "Blueberry Acres",              {-319.60,  -220.10,     0.00,   104.50,   293.30,   200.00}},
  369. { "Caligula's Palace",            {2087.30,  1543.20,   -89.00,  2437.30,  1703.20,   110.90}},
  370. { "Caligula's Palace",            {2137.40,  1703.20,   -89.00,  2437.30,  1783.20,   110.90}},
  371. { "Calton Heights",              {-2274.10,   744.10,    -6.10, -1982.30,  1358.90,   200.00}},
  372. { "Chinatown",                   {-2274.10,   578.30,    -7.60, -2078.60,   744.10,   200.00}},
  373. { "City Hall",                   {-2867.80,   277.40,    -9.10, -2593.40,   458.40,   200.00}},
  374. { "Come-A-Lot",                   {2087.30,   943.20,   -89.00,  2623.10,  1203.20,   110.90}},
  375. { "Commerce",                     {1323.90, -1842.20,   -89.00,  1701.90, -1722.20,   110.90}},
  376. { "Commerce",                     {1323.90, -1722.20,   -89.00,  1440.90, -1577.50,   110.90}},
  377. { "Commerce",                     {1370.80, -1577.50,   -89.00,  1463.90, -1384.90,   110.90}},
  378. { "Commerce",                     {1463.90, -1577.50,   -89.00,  1667.90, -1430.80,   110.90}},
  379. { "Commerce",                     {1583.50, -1722.20,   -89.00,  1758.90, -1577.50,   110.90}},
  380. { "Commerce",                     {1667.90, -1577.50,   -89.00,  1812.60, -1430.80,   110.90}},
  381. { "Conference Center",            {1046.10, -1804.20,   -89.00,  1323.90, -1722.20,   110.90}},
  382. { "Conference Center",            {1073.20, -1842.20,   -89.00,  1323.90, -1804.20,   110.90}},
  383. { "Cranberry Station",           {-2007.80,    56.30,     0.00, -1922.00,   224.70,   100.00}},
  384. { "Creek",                        {2749.90,  1937.20,   -89.00,  2921.60,  2669.70,   110.90}},
  385. { "Dillimore",                     {580.70,  -674.80,    -9.50,   861.00,  -404.70,   200.00}},
  386. { "Doherty",                     {-2270.00,  -324.10,    -0.00, -1794.90,  -222.50,   200.00}},
  387. { "Doherty",                     {-2173.00,  -222.50,    -0.00, -1794.90,   265.20,   200.00}},
  388. { "Downtown",                    {-1982.30,   744.10,    -6.10, -1871.70,  1274.20,   200.00}},
  389. { "Downtown",                    {-1871.70,  1176.40,    -4.50, -1620.30,  1274.20,   200.00}},
  390. { "Downtown",                    {-1700.00,   744.20,    -6.10, -1580.00,  1176.50,   200.00}},
  391. { "Downtown",                    {-1580.00,   744.20,    -6.10, -1499.80,  1025.90,   200.00}},
  392. { "Downtown",                    {-2078.60,   578.30,    -7.60, -1499.80,   744.20,   200.00}},
  393. { "Downtown",                    {-1993.20,   265.20,    -9.10, -1794.90,   578.30,   200.00}},
  394. { "Downtown Los Santos",          {1463.90, -1430.80,   -89.00,  1724.70, -1290.80,   110.90}},
  395. { "Downtown Los Santos",          {1724.70, -1430.80,   -89.00,  1812.60, -1250.90,   110.90}},
  396. { "Downtown Los Santos",          {1463.90, -1290.80,   -89.00,  1724.70, -1150.80,   110.90}},
  397. { "Downtown Los Santos",          {1370.80, -1384.90,   -89.00,  1463.90, -1170.80,   110.90}},
  398. { "Downtown Los Santos",          {1724.70, -1250.90,   -89.00,  1812.60, -1150.80,   110.90}},
  399. { "Downtown Los Santos",          {1370.80, -1170.80,   -89.00,  1463.90, -1130.80,   110.90}},
  400. { "Downtown Los Santos",          {1378.30, -1130.80,   -89.00,  1463.90, -1026.30,   110.90}},
  401. { "Downtown Los Santos",          {1391.00, -1026.30,   -89.00,  1463.90,  -926.90,   110.90}},
  402. { "Downtown Los Santos",          {1507.50, -1385.20,   110.90,  1582.50, -1325.30,   335.90}},
  403. { "East Beach",                   {2632.80, -1852.80,   -89.00,  2959.30, -1668.10,   110.90}},
  404. { "East Beach",                   {2632.80, -1668.10,   -89.00,  2747.70, -1393.40,   110.90}},
  405. { "East Beach",                   {2747.70, -1668.10,   -89.00,  2959.30, -1498.60,   110.90}},
  406. { "East Beach",                   {2747.70, -1498.60,   -89.00,  2959.30, -1120.00,   110.90}},
  407. { "East Los Santos",              {2421.00, -1628.50,   -89.00,  2632.80, -1454.30,   110.90}},
  408. { "East Los Santos",              {2222.50, -1628.50,   -89.00,  2421.00, -1494.00,   110.90}},
  409. { "East Los Santos",              {2266.20, -1494.00,   -89.00,  2381.60, -1372.00,   110.90}},
  410. { "East Los Santos",              {2381.60, -1494.00,   -89.00,  2421.00, -1454.30,   110.90}},
  411. { "East Los Santos",              {2281.40, -1372.00,   -89.00,  2381.60, -1135.00,   110.90}},
  412. { "East Los Santos",              {2381.60, -1454.30,   -89.00,  2462.10, -1135.00,   110.90}},
  413. { "East Los Santos",              {2462.10, -1454.30,   -89.00,  2581.70, -1135.00,   110.90}},
  414. { "Easter Basin",                {-1794.90,   249.90,    -9.10, -1242.90,   578.30,   200.00}},
  415. { "Easter Basin",                {-1794.90,   -50.00,    -0.00, -1499.80,   249.90,   200.00}},
  416. { "Easter Bay Airport",          {-1499.80,   -50.00,    -0.00, -1242.90,   249.90,   200.00}},
  417. { "Easter Bay Airport",          {-1794.90,  -730.10,    -3.00, -1213.90,   -50.00,   200.00}},
  418. { "Easter Bay Airport",          {-1213.90,  -730.10,     0.00, -1132.80,   -50.00,   200.00}},
  419. { "Easter Bay Airport",          {-1242.90,   -50.00,     0.00, -1213.90,   578.30,   200.00}},
  420. { "Easter Bay Airport",          {-1213.90,   -50.00,    -4.50,  -947.90,   578.30,   200.00}},
  421. { "Easter Bay Airport",          {-1315.40,  -405.30,    15.40, -1264.40,  -209.50,    25.40}},
  422. { "Easter Bay Airport",          {-1354.30,  -287.30,    15.40, -1315.40,  -209.50,    25.40}},
  423. { "Easter Bay Airport",          {-1490.30,  -209.50,    15.40, -1264.40,  -148.30,    25.40}},
  424. { "Easter Bay Chemicals",        {-1132.80,  -768.00,     0.00,  -956.40,  -578.10,   200.00}},
  425. { "Easter Bay Chemicals",        {-1132.80,  -787.30,     0.00,  -956.40,  -768.00,   200.00}},
  426. { "El Castillo del Diablo",       {-464.50,  2217.60,     0.00,  -208.50,  2580.30,   200.00}},
  427. { "El Castillo del Diablo",       {-208.50,  2123.00,    -7.60,   114.00,  2337.10,   200.00}},
  428. { "El Castillo del Diablo",       {-208.50,  2337.10,     0.00,     8.40,  2487.10,   200.00}},
  429. { "El Corona",                    {1812.60, -2179.20,   -89.00,  1970.60, -1852.80,   110.90}},
  430. { "El Corona",                    {1692.60, -2179.20,   -89.00,  1812.60, -1842.20,   110.90}},
  431. { "El Quebrados",                {-1645.20,  2498.50,     0.00, -1372.10,  2777.80,   200.00}},
  432. { "Esplanade East",              {-1620.30,  1176.50,    -4.50, -1580.00,  1274.20,   200.00}},
  433. { "Esplanade East",              {-1580.00,  1025.90,    -6.10, -1499.80,  1274.20,   200.00}},
  434. { "Esplanade East",              {-1499.80,   578.30,   -79.60, -1339.80,  1274.20,    20.30}},
  435. { "Esplanade North",             {-2533.00,  1358.90,    -4.50, -1996.60,  1501.20,   200.00}},
  436. { "Esplanade North",             {-1996.60,  1358.90,    -4.50, -1524.20,  1592.50,   200.00}},
  437. { "Esplanade North",             {-1982.30,  1274.20,    -4.50, -1524.20,  1358.90,   200.00}},
  438. { "Fallen Tree",                  {-792.20,  -698.50,    -5.30,  -452.40,  -380.00,   200.00}},
  439. { "Fallow Bridge",                 {434.30,   366.50,     0.00,   603.00,   555.60,   200.00}},
  440. { "Fern Ridge",                    {508.10,  -139.20,     0.00,  1306.60,   119.50,   200.00}},
  441. { "Financial",                   {-1871.70,   744.10,    -6.10, -1701.30,  1176.40,   300.00}},
  442. { "Fisher's Lagoon",              {1916.90,  -233.30,  -100.00,  2131.70,    13.80,   200.00}},
  443. { "Flint Intersection",           {-187.70, -1596.70,   -89.00,    17.00, -1276.60,   110.90}},
  444. { "Flint Range",                  {-594.10, -1648.50,     0.00,  -187.70, -1276.60,   200.00}},
  445. { "Fort Carson",                  {-376.20,   826.30,    -3.00,   123.70,  1220.40,   200.00}},
  446. { "Foster Valley",               {-2270.00,  -430.20,    -0.00, -2178.60,  -324.10,   200.00}},
  447. { "Foster Valley",               {-2178.60,  -599.80,    -0.00, -1794.90,  -324.10,   200.00}},
  448. { "Foster Valley",               {-2178.60, -1115.50,     0.00, -1794.90,  -599.80,   200.00}},
  449. { "Foster Valley",               {-2178.60, -1250.90,     0.00, -1794.90, -1115.50,   200.00}},
  450. { "Frederick Bridge",             {2759.20,   296.50,     0.00,  2774.20,   594.70,   200.00}},
  451. { "Gant Bridge",                 {-2741.40,  1659.60,    -6.10, -2616.40,  2175.10,   200.00}},
  452. { "Gant Bridge",                 {-2741.00,  1490.40,    -6.10, -2616.40,  1659.60,   200.00}},
  453. { "Ganton",                       {2222.50, -1852.80,   -89.00,  2632.80, -1722.30,   110.90}},
  454. { "Ganton",                       {2222.50, -1722.30,   -89.00,  2632.80, -1628.50,   110.90}},
  455. { "Garcia",                      {-2411.20,  -222.50,    -0.00, -2173.00,   265.20,   200.00}},
  456. { "Garcia",                      {-2395.10,  -222.50,    -5.30, -2354.00,  -204.70,   200.00}},
  457. { "Garver Bridge",               {-1339.80,   828.10,   -89.00, -1213.90,  1057.00,   110.90}},
  458. { "Garver Bridge",               {-1213.90,   950.00,   -89.00, -1087.90,  1178.90,   110.90}},
  459. { "Garver Bridge",               {-1499.80,   696.40,  -179.60, -1339.80,   925.30,    20.30}},
  460. { "Glen Park",                    {1812.60, -1449.60,   -89.00,  1996.90, -1350.70,   110.90}},
  461. { "Glen Park",                    {1812.60, -1100.80,   -89.00,  1994.30,  -973.30,   110.90}},
  462. { "Glen Park",                    {1812.60, -1350.70,   -89.00,  2056.80, -1100.80,   110.90}},
  463. { "Green Palms",                   {176.50,  1305.40,    -3.00,   338.60,  1520.70,   200.00}},
  464. { "Greenglass College",            {964.30,  1044.60,   -89.00,  1197.30,  1203.20,   110.90}},
  465. { "Greenglass College",            {964.30,   930.80,   -89.00,  1166.50,  1044.60,   110.90}},
  466. { "Hampton Barns",                 {603.00,   264.30,     0.00,   761.90,   366.50,   200.00}},
  467. { "Hankypanky Point",             {2576.90,    62.10,     0.00,  2759.20,   385.50,   200.00}},
  468. { "Harry Gold Parkway",           {1777.30,   863.20,   -89.00,  1817.30,  2342.80,   110.90}},
  469. { "Hashbury",                    {-2593.40,  -222.50,    -0.00, -2411.20,    54.70,   200.00}},
  470. { "Hilltop Farm",                  {967.30,  -450.30,    -3.00,  1176.70,  -217.90,   200.00}},
  471. { "Hunter Quarry",                 {337.20,   710.80,  -115.20,   860.50,  1031.70,   203.70}},
  472. { "Idlewood",                     {1812.60, -1852.80,   -89.00,  1971.60, -1742.30,   110.90}},
  473. { "Idlewood",                     {1812.60, -1742.30,   -89.00,  1951.60, -1602.30,   110.90}},
  474. { "Idlewood",                     {1951.60, -1742.30,   -89.00,  2124.60, -1602.30,   110.90}},
  475. { "Idlewood",                     {1812.60, -1602.30,   -89.00,  2124.60, -1449.60,   110.90}},
  476. { "Idlewood",                     {2124.60, -1742.30,   -89.00,  2222.50, -1494.00,   110.90}},
  477. { "Idlewood",                     {1971.60, -1852.80,   -89.00,  2222.50, -1742.30,   110.90}},
  478. { "Jefferson",                    {1996.90, -1449.60,   -89.00,  2056.80, -1350.70,   110.90}},
  479. { "Jefferson",                    {2124.60, -1494.00,   -89.00,  2266.20, -1449.60,   110.90}},
  480. { "Jefferson",                    {2056.80, -1372.00,   -89.00,  2281.40, -1210.70,   110.90}},
  481. { "Jefferson",                    {2056.80, -1210.70,   -89.00,  2185.30, -1126.30,   110.90}},
  482. { "Jefferson",                    {2185.30, -1210.70,   -89.00,  2281.40, -1154.50,   110.90}},
  483. { "Jefferson",                    {2056.80, -1449.60,   -89.00,  2266.20, -1372.00,   110.90}},
  484. { "Julius Thruway East",          {2623.10,   943.20,   -89.00,  2749.90,  1055.90,   110.90}},
  485. { "Julius Thruway East",          {2685.10,  1055.90,   -89.00,  2749.90,  2626.50,   110.90}},
  486. { "Julius Thruway East",          {2536.40,  2442.50,   -89.00,  2685.10,  2542.50,   110.90}},
  487. { "Julius Thruway East",          {2625.10,  2202.70,   -89.00,  2685.10,  2442.50,   110.90}},
  488. { "Julius Thruway North",         {2498.20,  2542.50,   -89.00,  2685.10,  2626.50,   110.90}},
  489. { "Julius Thruway North",         {2237.40,  2542.50,   -89.00,  2498.20,  2663.10,   110.90}},
  490. { "Julius Thruway North",         {2121.40,  2508.20,   -89.00,  2237.40,  2663.10,   110.90}},
  491. { "Julius Thruway North",         {1938.80,  2508.20,   -89.00,  2121.40,  2624.20,   110.90}},
  492. { "Julius Thruway North",         {1534.50,  2433.20,   -89.00,  1848.40,  2583.20,   110.90}},
  493. { "Julius Thruway North",         {1848.40,  2478.40,   -89.00,  1938.80,  2553.40,   110.90}},
  494. { "Julius Thruway North",         {1704.50,  2342.80,   -89.00,  1848.40,  2433.20,   110.90}},
  495. { "Julius Thruway North",         {1377.30,  2433.20,   -89.00,  1534.50,  2507.20,   110.90}},
  496. { "Julius Thruway South",         {1457.30,   823.20,   -89.00,  2377.30,   863.20,   110.90}},
  497. { "Julius Thruway South",         {2377.30,   788.80,   -89.00,  2537.30,   897.90,   110.90}},
  498. { "Julius Thruway West",          {1197.30,  1163.30,   -89.00,  1236.60,  2243.20,   110.90}},
  499. { "Julius Thruway West",          {1236.60,  2142.80,   -89.00,  1297.40,  2243.20,   110.90}},
  500. { "Juniper Hill",                {-2533.00,   578.30,    -7.60, -2274.10,   968.30,   200.00}},
  501. { "Juniper Hollow",              {-2533.00,   968.30,    -6.10, -2274.10,  1358.90,   200.00}},
  502. { "K.A.C.C. Military Fuels",      {2498.20,  2626.50,   -89.00,  2749.90,  2861.50,   110.90}},
  503. { "Kincaid Bridge",              {-1339.80,   599.20,   -89.00, -1213.90,   828.10,   110.90}},
  504. { "Kincaid Bridge",              {-1213.90,   721.10,   -89.00, -1087.90,   950.00,   110.90}},
  505. { "Kincaid Bridge",              {-1087.90,   855.30,   -89.00,  -961.90,   986.20,   110.90}},
  506. { "King's",                      {-2329.30,   458.40,    -7.60, -1993.20,   578.30,   200.00}},
  507. { "King's",                      {-2411.20,   265.20,    -9.10, -1993.20,   373.50,   200.00}},
  508. { "King's",                      {-2253.50,   373.50,    -9.10, -1993.20,   458.40,   200.00}},
  509. { "LVA Freight Depot",            {1457.30,   863.20,   -89.00,  1777.40,  1143.20,   110.90}},
  510. { "LVA Freight Depot",            {1375.60,   919.40,   -89.00,  1457.30,  1203.20,   110.90}},
  511. { "LVA Freight Depot",            {1277.00,  1087.60,   -89.00,  1375.60,  1203.20,   110.90}},
  512. { "LVA Freight Depot",            {1315.30,  1044.60,   -89.00,  1375.60,  1087.60,   110.90}},
  513. { "LVA Freight Depot",            {1236.60,  1163.40,   -89.00,  1277.00,  1203.20,   110.90}},
  514. { "Las Barrancas",                {-926.10,  1398.70,    -3.00,  -719.20,  1634.60,   200.00}},
  515. { "Las Brujas",                   {-365.10,  2123.00,    -3.00,  -208.50,  2217.60,   200.00}},
  516. { "Las Colinas",                  {1994.30, -1100.80,   -89.00,  2056.80,  -920.80,   110.90}},
  517. { "Las Colinas",                  {2056.80, -1126.30,   -89.00,  2126.80,  -920.80,   110.90}},
  518. { "Las Colinas",                  {2185.30, -1154.50,   -89.00,  2281.40,  -934.40,   110.90}},
  519. { "Las Colinas",                  {2126.80, -1126.30,   -89.00,  2185.30,  -934.40,   110.90}},
  520. { "Las Colinas",                  {2747.70, -1120.00,   -89.00,  2959.30,  -945.00,   110.90}},
  521. { "Las Colinas",                  {2632.70, -1135.00,   -89.00,  2747.70,  -945.00,   110.90}},
  522. { "Las Colinas",                  {2281.40, -1135.00,   -89.00,  2632.70,  -945.00,   110.90}},
  523. { "Las Payasadas",                {-354.30,  2580.30,     2.00,  -133.60,  2816.80,   200.00}},
  524. { "Las Venturas Airport",         {1236.60,  1203.20,   -89.00,  1457.30,  1883.10,   110.90}},
  525. { "Las Venturas Airport",         {1457.30,  1203.20,   -89.00,  1777.30,  1883.10,   110.90}},
  526. { "Las Venturas Airport",         {1457.30,  1143.20,   -89.00,  1777.40,  1203.20,   110.90}},
  527. { "Las Venturas Airport",         {1515.80,  1586.40,   -12.50,  1729.90,  1714.50,    87.50}},
  528. { "Last Dime Motel",              {1823.00,   596.30,   -89.00,  1997.20,   823.20,   110.90}},
  529. { "Leafy Hollow",                {-1166.90, -1856.00,     0.00,  -815.60, -1602.00,   200.00}},
  530. { "Lil' Probe Inn",                {-90.20,  1286.80,    -3.00,   153.80,  1554.10,   200.00}},
  531. { "Linden Side",                  {2749.90,   943.20,   -89.00,  2923.30,  1198.90,   110.90}},
  532. { "Linden Station",               {2749.90,  1198.90,   -89.00,  2923.30,  1548.90,   110.90}},
  533. { "Linden Station",               {2811.20,  1229.50,   -39.50,  2861.20,  1407.50,    60.40}},
  534. { "Little Mexico",                {1701.90, -1842.20,   -89.00,  1812.60, -1722.20,   110.90}},
  535. { "Little Mexico",                {1758.90, -1722.20,   -89.00,  1812.60, -1577.50,   110.90}},
  536. { "Los Flores",                   {2581.70, -1454.30,   -89.00,  2632.80, -1393.40,   110.90}},
  537. { "Los Flores",                   {2581.70, -1393.40,   -89.00,  2747.70, -1135.00,   110.90}},
  538. { "Los Santos International",     {1249.60, -2394.30,   -89.00,  1852.00, -2179.20,   110.90}},
  539. { "Los Santos International",     {1852.00, -2394.30,   -89.00,  2089.00, -2179.20,   110.90}},
  540. { "Los Santos International",     {1382.70, -2730.80,   -89.00,  2201.80, -2394.30,   110.90}},
  541. { "Los Santos International",     {1974.60, -2394.30,   -39.00,  2089.00, -2256.50,    60.90}},
  542. { "Los Santos International",     {1400.90, -2669.20,   -39.00,  2189.80, -2597.20,    60.90}},
  543. { "Los Santos International",     {2051.60, -2597.20,   -39.00,  2152.40, -2394.30,    60.90}},
  544. { "Marina",                        {647.70, -1804.20,   -89.00,   851.40, -1577.50,   110.90}},
  545. { "Marina",                        {647.70, -1577.50,   -89.00,   807.90, -1416.20,   110.90}},
  546. { "Marina",                        {807.90, -1577.50,   -89.00,   926.90, -1416.20,   110.90}},
  547. { "Market",                        {787.40, -1416.20,   -89.00,  1072.60, -1310.20,   110.90}},
  548. { "Market",                        {952.60, -1310.20,   -89.00,  1072.60, -1130.80,   110.90}},
  549. { "Market",                       {1072.60, -1416.20,   -89.00,  1370.80, -1130.80,   110.90}},
  550. { "Market",                        {926.90, -1577.50,   -89.00,  1370.80, -1416.20,   110.90}},
  551. { "Market Station",                {787.40, -1410.90,   -34.10,   866.00, -1310.20,    65.80}},
  552. { "Martin Bridge",                {-222.10,   293.30,     0.00,  -122.10,   476.40,   200.00}},
  553. { "Missionary Hill",             {-2994.40,  -811.20,     0.00, -2178.60,  -430.20,   200.00}},
  554. { "Montgomery",                   {1119.50,   119.50,    -3.00,  1451.40,   493.30,   200.00}},
  555. { "Montgomery",                   {1451.40,   347.40,    -6.10,  1582.40,   420.80,   200.00}},
  556. { "Montgomery Intersection",      {1546.60,   208.10,     0.00,  1745.80,   347.40,   200.00}},
  557. { "Montgomery Intersection",      {1582.40,   347.40,     0.00,  1664.60,   401.70,   200.00}},
  558. { "Mulholland",                   {1414.00,  -768.00,   -89.00,  1667.60,  -452.40,   110.90}},
  559. { "Mulholland",                   {1281.10,  -452.40,   -89.00,  1641.10,  -290.90,   110.90}},
  560. { "Mulholland",                   {1269.10,  -768.00,   -89.00,  1414.00,  -452.40,   110.90}},
  561. { "Mulholland",                   {1357.00,  -926.90,   -89.00,  1463.90,  -768.00,   110.90}},
  562. { "Mulholland",                   {1318.10,  -910.10,   -89.00,  1357.00,  -768.00,   110.90}},
  563. { "Mulholland",                   {1169.10,  -910.10,   -89.00,  1318.10,  -768.00,   110.90}},
  564. { "Mulholland",                    {768.60,  -954.60,   -89.00,   952.60,  -860.60,   110.90}},
  565. { "Mulholland",                    {687.80,  -860.60,   -89.00,   911.80,  -768.00,   110.90}},
  566. { "Mulholland",                    {737.50,  -768.00,   -89.00,  1142.20,  -674.80,   110.90}},
  567. { "Mulholland",                   {1096.40,  -910.10,   -89.00,  1169.10,  -768.00,   110.90}},
  568. { "Mulholland",                    {952.60,  -937.10,   -89.00,  1096.40,  -860.60,   110.90}},
  569. { "Mulholland",                    {911.80,  -860.60,   -89.00,  1096.40,  -768.00,   110.90}},
  570. { "Mulholland",                    {861.00,  -674.80,   -89.00,  1156.50,  -600.80,   110.90}},
  571. { "Mulholland Intersection",      {1463.90, -1150.80,   -89.00,  1812.60,  -768.00,   110.90}},
  572. { "North Rock",                   {2285.30,  -768.00,     0.00,  2770.50,  -269.70,   200.00}},
  573. { "Ocean Docks",                  {2373.70, -2697.00,   -89.00,  2809.20, -2330.40,   110.90}},
  574. { "Ocean Docks",                  {2201.80, -2418.30,   -89.00,  2324.00, -2095.00,   110.90}},
  575. { "Ocean Docks",                  {2324.00, -2302.30,   -89.00,  2703.50, -2145.10,   110.90}},
  576. { "Ocean Docks",                  {2089.00, -2394.30,   -89.00,  2201.80, -2235.80,   110.90}},
  577. { "Ocean Docks",                  {2201.80, -2730.80,   -89.00,  2324.00, -2418.30,   110.90}},
  578. { "Ocean Docks",                  {2703.50, -2302.30,   -89.00,  2959.30, -2126.90,   110.90}},
  579. { "Ocean Docks",                  {2324.00, -2145.10,   -89.00,  2703.50, -2059.20,   110.90}},
  580. { "Ocean Flats",                 {-2994.40,   277.40,    -9.10, -2867.80,   458.40,   200.00}},
  581. { "Ocean Flats",                 {-2994.40,  -222.50,    -0.00, -2593.40,   277.40,   200.00}},
  582. { "Ocean Flats",                 {-2994.40,  -430.20,    -0.00, -2831.80,  -222.50,   200.00}},
  583. { "Octane Springs",                {338.60,  1228.50,     0.00,   664.30,  1655.00,   200.00}},
  584. { "Old Venturas Strip",           {2162.30,  2012.10,   -89.00,  2685.10,  2202.70,   110.90}},
  585. { "Palisades",                   {-2994.40,   458.40,    -6.10, -2741.00,  1339.60,   200.00}},
  586. { "Palomino Creek",               {2160.20,  -149.00,     0.00,  2576.90,   228.30,   200.00}},
  587. { "Paradiso",                   {-2741.00,   793.40,    -6.10, -2533.00,  1268.40,   200.00}},
  588. { "Pershing Square",              {1440.90, -1722.20,   -89.00,  1583.50, -1577.50,   110.90}},
  589. { "Pilgrim",                      {2437.30,  1383.20,   -89.00,  2624.40,  1783.20,   110.90}},
  590. { "Pilgrim",                      {2624.40,  1383.20,   -89.00,  2685.10,  1783.20,   110.90}},
  591. { "Pilson Intersection",          {1098.30,  2243.20,   -89.00,  1377.30,  2507.20,   110.90}},
  592. { "Pirates in Men's Pants",       {1817.30,  1469.20,   -89.00,  2027.40,  1703.20,   110.90}},
  593. { "Playa del Seville",            {2703.50, -2126.90,   -89.00,  2959.30, -1852.80,   110.90}},
  594. { "Prickle Pine",                 {1534.50,  2583.20,   -89.00,  1848.40,  2863.20,   110.90}},
  595. { "Prickle Pine",                 {1117.40,  2507.20,   -89.00,  1534.50,  2723.20,   110.90}},
  596. { "Prickle Pine",                 {1848.40,  2553.40,   -89.00,  1938.80,  2863.20,   110.90}},
  597. { "Prickle Pine",                 {1938.80,  2624.20,   -89.00,  2121.40,  2861.50,   110.90}},
  598. { "Queens",                      {-2533.00,   458.40,     0.00, -2329.30,   578.30,   200.00}},
  599. { "Queens",                      {-2593.40,    54.70,     0.00, -2411.20,   458.40,   200.00}},
  600. { "Queens",                      {-2411.20,   373.50,     0.00, -2253.50,   458.40,   200.00}},
  601. { "Randolph Industrial Estate",   {1558.00,   596.30,   -89.00,  1823.00,   823.20,   110.90}},
  602. { "Redsands East",                {1817.30,  2011.80,   -89.00,  2106.70,  2202.70,   110.90}},
  603. { "Redsands East",                {1817.30,  2202.70,   -89.00,  2011.90,  2342.80,   110.90}},
  604. { "Redsands East",                {1848.40,  2342.80,   -89.00,  2011.90,  2478.40,   110.90}},
  605. { "Redsands West",                {1236.60,  1883.10,   -89.00,  1777.30,  2142.80,   110.90}},
  606. { "Redsands West",                {1297.40,  2142.80,   -89.00,  1777.30,  2243.20,   110.90}},
  607. { "Redsands West",                {1377.30,  2243.20,   -89.00,  1704.50,  2433.20,   110.90}},
  608. { "Redsands West",                {1704.50,  2243.20,   -89.00,  1777.30,  2342.80,   110.90}},
  609. { "Regular Tom",                  {-405.70,  1712.80,    -3.00,  -276.70,  1892.70,   200.00}},
  610. { "Richman",                       {647.50, -1118.20,   -89.00,   787.40,  -954.60,   110.90}},
  611. { "Richman",                       {647.50,  -954.60,   -89.00,   768.60,  -860.60,   110.90}},
  612. { "Richman",                       {225.10, -1369.60,   -89.00,   334.50, -1292.00,   110.90}},
  613. { "Richman",                       {225.10, -1292.00,   -89.00,   466.20, -1235.00,   110.90}},
  614. { "Richman",                        {72.60, -1404.90,   -89.00,   225.10, -1235.00,   110.90}},
  615. { "Richman",                        {72.60, -1235.00,   -89.00,   321.30, -1008.10,   110.90}},
  616. { "Richman",                       {321.30, -1235.00,   -89.00,   647.50, -1044.00,   110.90}},
  617. { "Richman",                       {321.30, -1044.00,   -89.00,   647.50,  -860.60,   110.90}},
  618. { "Richman",                       {321.30,  -860.60,   -89.00,   687.80,  -768.00,   110.90}},
  619. { "Richman",                       {321.30,  -768.00,   -89.00,   700.70,  -674.80,   110.90}},
  620. { "Robada Intersection",         {-1119.00,  1178.90,   -89.00,  -862.00,  1351.40,   110.90}},
  621. { "Roca Escalante",               {2237.40,  2202.70,   -89.00,  2536.40,  2542.50,   110.90}},
  622. { "Roca Escalante",               {2536.40,  2202.70,   -89.00,  2625.10,  2442.50,   110.90}},
  623. { "Rockshore East",               {2537.30,   676.50,   -89.00,  2902.30,   943.20,   110.90}},
  624. { "Rockshore West",               {1997.20,   596.30,   -89.00,  2377.30,   823.20,   110.90}},
  625. { "Rockshore West",               {2377.30,   596.30,   -89.00,  2537.30,   788.80,   110.90}},
  626. { "Rodeo",                          {72.60, -1684.60,   -89.00,   225.10, -1544.10,   110.90}},
  627. { "Rodeo",                          {72.60, -1544.10,   -89.00,   225.10, -1404.90,   110.90}},
  628. { "Rodeo",                         {225.10, -1684.60,   -89.00,   312.80, -1501.90,   110.90}},
  629. { "Rodeo",                         {225.10, -1501.90,   -89.00,   334.50, -1369.60,   110.90}},
  630. { "Rodeo",                         {334.50, -1501.90,   -89.00,   422.60, -1406.00,   110.90}},
  631. { "Rodeo",                         {312.80, -1684.60,   -89.00,   422.60, -1501.90,   110.90}},
  632. { "Rodeo",                         {422.60, -1684.60,   -89.00,   558.00, -1570.20,   110.90}},
  633. { "Rodeo",                         {558.00, -1684.60,   -89.00,   647.50, -1384.90,   110.90}},
  634. { "Rodeo",                         {466.20, -1570.20,   -89.00,   558.00, -1385.00,   110.90}},
  635. { "Rodeo",                         {422.60, -1570.20,   -89.00,   466.20, -1406.00,   110.90}},
  636. { "Rodeo",                         {466.20, -1385.00,   -89.00,   647.50, -1235.00,   110.90}},
  637. { "Rodeo",                         {334.50, -1406.00,   -89.00,   466.20, -1292.00,   110.90}},
  638. { "Royal Casino",                 {2087.30,  1383.20,   -89.00,  2437.30,  1543.20,   110.90}},
  639. { "San Andreas Sound",            {2450.30,   385.50,  -100.00,  2759.20,   562.30,   200.00}},
  640. { "Santa Flora",                 {-2741.00,   458.40,    -7.60, -2533.00,   793.40,   200.00}},
  641. { "Santa Maria Beach",             {342.60, -2173.20,   -89.00,   647.70, -1684.60,   110.90}},
  642. { "Santa Maria Beach",              {72.60, -2173.20,   -89.00,   342.60, -1684.60,   110.90}},
  643. { "Shady Cabin",                 {-1632.80, -2263.40,    -3.00, -1601.30, -2231.70,   200.00}},
  644. { "Shady Creeks",                {-1820.60, -2643.60,    -8.00, -1226.70, -1771.60,   200.00}},
  645. { "Shady Creeks",                {-2030.10, -2174.80,    -6.10, -1820.60, -1771.60,   200.00}},
  646. { "Sobell Rail Yards",            {2749.90,  1548.90,   -89.00,  2923.30,  1937.20,   110.90}},
  647. { "Spinybed",                     {2121.40,  2663.10,   -89.00,  2498.20,  2861.50,   110.90}},
  648. { "Starfish Casino",              {2437.30,  1783.20,   -89.00,  2685.10,  2012.10,   110.90}},
  649. { "Starfish Casino",              {2437.30,  1858.10,   -39.00,  2495.00,  1970.80,    60.90}},
  650. { "Starfish Casino",              {2162.30,  1883.20,   -89.00,  2437.30,  2012.10,   110.90}},
  651. { "Temple",                       {1252.30, -1130.80,   -89.00,  1378.30, -1026.30,   110.90}},
  652. { "Temple",                       {1252.30, -1026.30,   -89.00,  1391.00,  -926.90,   110.90}},
  653. { "Temple",                       {1252.30,  -926.90,   -89.00,  1357.00,  -910.10,   110.90}},
  654. { "Temple",                        {952.60, -1130.80,   -89.00,  1096.40,  -937.10,   110.90}},
  655. { "Temple",                       {1096.40, -1130.80,   -89.00,  1252.30, -1026.30,   110.90}},
  656. { "Temple",                       {1096.40, -1026.30,   -89.00,  1252.30,  -910.10,   110.90}},
  657. { "The Camel's Toe",              {2087.30,  1203.20,   -89.00,  2640.40,  1383.20,   110.90}},
  658. { "The Clown's Pocket",           {2162.30,  1783.20,   -89.00,  2437.30,  1883.20,   110.90}},
  659. { "The Emerald Isle",             {2011.90,  2202.70,   -89.00,  2237.40,  2508.20,   110.90}},
  660. { "The Farm",                    {-1209.60, -1317.10,   114.90,  -908.10,  -787.30,   251.90}},
  661. { "The Four Dragons Casino",      {1817.30,   863.20,   -89.00,  2027.30,  1083.20,   110.90}},
  662. { "The High Roller",              {1817.30,  1283.20,   -89.00,  2027.30,  1469.20,   110.90}},
  663. { "The Mako Span",                {1664.60,   401.70,     0.00,  1785.10,   567.20,   200.00}},
  664. { "The Panopticon",               {-947.90,  -304.30,    -1.10,  -319.60,   327.00,   200.00}},
  665. { "The Pink Swan",                {1817.30,  1083.20,   -89.00,  2027.30,  1283.20,   110.90}},
  666. { "The Sherman Dam",              {-968.70,  1929.40,    -3.00,  -481.10,  2155.20,   200.00}},
  667. { "The Strip",                    {2027.40,   863.20,   -89.00,  2087.30,  1703.20,   110.90}},
  668. { "The Strip",                    {2106.70,  1863.20,   -89.00,  2162.30,  2202.70,   110.90}},
  669. { "The Strip",                    {2027.40,  1783.20,   -89.00,  2162.30,  1863.20,   110.90}},
  670. { "The Strip",                    {2027.40,  1703.20,   -89.00,  2137.40,  1783.20,   110.90}},
  671. { "The Visage",                   {1817.30,  1863.20,   -89.00,  2106.70,  2011.80,   110.90}},
  672. { "The Visage",                   {1817.30,  1703.20,   -89.00,  2027.40,  1863.20,   110.90}},
  673. { "Unity Station",                {1692.60, -1971.80,   -20.40,  1812.60, -1932.80,    79.50}},
  674. { "Valle Ocultado",               {-936.60,  2611.40,     2.00,  -715.90,  2847.90,   200.00}},
  675. { "Verdant Bluffs",                {930.20, -2488.40,   -89.00,  1249.60, -2006.70,   110.90}},
  676. { "Verdant Bluffs",               {1073.20, -2006.70,   -89.00,  1249.60, -1842.20,   110.90}},
  677. { "Verdant Bluffs",               {1249.60, -2179.20,   -89.00,  1692.60, -1842.20,   110.90}},
  678. { "Verdant Meadows",                {37.00,  2337.10,    -3.00,   435.90,  2677.90,   200.00}},
  679. { "Verona Beach",                  {647.70, -2173.20,   -89.00,   930.20, -1804.20,   110.90}},
  680. { "Verona Beach",                  {930.20, -2006.70,   -89.00,  1073.20, -1804.20,   110.90}},
  681. { "Verona Beach",                  {851.40, -1804.20,   -89.00,  1046.10, -1577.50,   110.90}},
  682. { "Verona Beach",                 {1161.50, -1722.20,   -89.00,  1323.90, -1577.50,   110.90}},
  683. { "Verona Beach",                 {1046.10, -1722.20,   -89.00,  1161.50, -1577.50,   110.90}},
  684. { "Vinewood",                      {787.40, -1310.20,   -89.00,   952.60, -1130.80,   110.90}},
  685. { "Vinewood",                      {787.40, -1130.80,   -89.00,   952.60,  -954.60,   110.90}},
  686. { "Vinewood",                      {647.50, -1227.20,   -89.00,   787.40, -1118.20,   110.90}},
  687. { "Vinewood",                      {647.70, -1416.20,   -89.00,   787.40, -1227.20,   110.90}},
  688. { "Whitewood Estates",             {883.30,  1726.20,   -89.00,  1098.30,  2507.20,   110.90}},
  689. { "Whitewood Estates",            {1098.30,  1726.20,   -89.00,  1197.30,  2243.20,   110.90}},
  690. { "Willowfield",                  {1970.60, -2179.20,   -89.00,  2089.00, -1852.80,   110.90}},
  691. { "Willowfield",                  {2089.00, -2235.80,   -89.00,  2201.80, -1989.90,   110.90}},
  692. { "Willowfield",                  {2089.00, -1989.90,   -89.00,  2324.00, -1852.80,   110.90}},
  693. { "Willowfield",                  {2201.80, -2095.00,   -89.00,  2324.00, -1989.90,   110.90}},
  694. { "Willowfield",                  {2541.70, -1941.40,   -89.00,  2703.50, -1852.80,   110.90}},
  695. { "Willowfield",                  {2324.00, -2059.20,   -89.00,  2541.70, -1852.80,   110.90}},
  696. { "Willowfield",                  {2541.70, -2059.20,   -89.00,  2703.50, -1941.40,   110.90}},
  697. { "Yellow Bell Station",          {1377.40,  2600.40,   -21.90,  1492.40,  2687.30,    78.00}},
  698. // Main Zones
  699. { "Los Santos",                     {44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00}},
  700. { "Las Venturas",                  {869.40,   596.30,  -242.90,  2997.00,  2993.80,   900.00}},
  701. { "Bone County",                 {-480.50,   596.30,  -242.90,   869.40,  2993.80,   900.00}},
  702. { "Tierra Robada",              {-2997.40,  1659.60,  -242.90,  -480.50,  2993.80,   900.00}},
  703. { "Tierra Robada",               {-1213.90,   596.30,  -242.90,  -480.50,  1659.60,   900.00}},
  704. { "San Fierro",                  {-2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00}},
  705. { "Red County",                  {-1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00}},
  706. { "Flint County",                {-1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00}},
  707. { "Whetstone",                   {-2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00}}
  708. };
  709. //================ [ TEXTDRAW DE ENTRADA ] ==============
  710.  
  711. // [ Desativas radar ]
  712. //new radardesativado;
  713.  
  714. //============ [ Sistema de login/registro ] ============
  715. new TempoTuto[MAX_PLAYERS];
  716. new VerTuto[MAX_PLAYERS];
  717. new MostrarIconesMapa[MAX_PLAYERS];
  718. new gPlayerConta[MAX_PLAYERS];
  719. forward RegistrarJogador(playerid, senha[]);
  720. forward CarregarJogador(playerid, senha[]);
  721. forward AtualizarJogador(playerid);
  722. new Digitou[MAX_PLAYERS][64];
  723. new anonormal, mesnormal, dianormal;
  724.  
  725. //================= [ SpawnarJogador ] ==================
  726. forward SpawnarJogador(playerid);
  727. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  728. forward ShowStats(playerid,targetid);
  729.  
  730. // [ Proximidade ]
  731. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  732. forward ProxDetectorS(Float:radi, playerid, targetid);
  733. new BigEar[MAX_PLAYERS];
  734.  
  735. //=================== [ infoserver ] ====================
  736. new Online;
  737. new AdminsOnline;
  738.  
  739. // [ Criou veículo ]
  740. new CriouVeiculo[MAX_PLAYERS] = 0;
  741. new veiculonovo;
  742.  
  743. // [ Celular ]
  744. new CelularOcupado[MAX_PLAYERS];
  745. new CelularLigado[MAX_PLAYERS];
  746.  
  747. //======================= [ AFK ] =======================
  748. new AFK[MAX_PLAYERS] = 0;
  749.  
  750. //================= [ Nome Server ] =====================
  751. forward NomeServer();
  752.  
  753. // [ atualizações constantes no server ]
  754. new atualizacoesgeraisdoserver;
  755. forward atualizarserver();
  756. //============== [ prompt de comando ] ==================
  757. main()
  758. {
  759.         print("[====================================]");
  760.         print("[         Alfa - Fort Carson         ]");
  761.         print("[           ~  RolePlay  ~           ]");
  762.         print("[_________ [San Andreas:MP]__________]");
  763.         print("[====================================]");
  764. }
  765.  
  766. //========== [ OnPlayerConnect ] ==================
  767. public OnPlayerConnect(playerid)
  768. {
  769.     //new string[128];
  770.     DisableInteriorEnterExits();
  771.     UsePlayerPedAnims();
  772.     SetPlayerVirtualWorld(playerid,playerid+1);
  773.     SetPlayerColor(playerid,COR_CINZA);
  774.     Online++;
  775.     //=========== [ Sistema de registro ] ===============
  776.     Abastecendo[playerid] = 0;
  777.     SemCMD[playerid] = 0;
  778.     TempoTuto[playerid] = 0;
  779.     Marcha[playerid] = 0;
  780.     CelularOcupado[playerid] = 255;
  781.     JanelaAberta[playerid] = 0;
  782.     CelularLigado[playerid] = 0;
  783.     MostrarIconesMapa[playerid] = 0;
  784.     SetPlayerHealth(playerid, 100);
  785.     PlayerInfo[playerid][pTituloE] = 0;
  786.     PlayerInfo[playerid][pTempoPD] = 0;
  787.     PlayerInfo[playerid][pCartTrab] = 0;
  788.     PlayerInfo[playerid][pSemOOC] = 0;
  789.     PlayerInfo[playerid][pTrabalhando] = 0;
  790.     PlayerInfo[playerid][pRegistroGeral] = 0;
  791.     PlayerInfo[playerid][pNRegistro] = 0;
  792.     PlayerInfo[playerid][pRelogio] = 0;
  793.     PlayerInfo[playerid][pGPS] = 0;
  794.     PlayerInfo[playerid][pAgenda] = 0;
  795.     PlayerInfo[playerid][pCNumero] = 0;
  796.     PlayerInfo[playerid][pDiaNascimento] = 0;
  797.     PlayerInfo[playerid][pMesNascimento] = 0;
  798.     PlayerInfo[playerid][pFerido] = 0;
  799.     PlayerInfo[playerid][pDiaNascimento] = 0;
  800.     PlayerInfo[playerid][pCongelado] = 0;
  801.     PlayerInfo[playerid][pCalado] = 0;
  802.     PlayerInfo[playerid][pATrabalhando] = 0;
  803.     PlayerInfo[playerid][pLider] = 0;
  804.     PlayerInfo[playerid][pCargo] = 0;
  805.     PlayerInfo[playerid][pLogou] = 0;
  806.     PlayerInfo[playerid][pOrigem] = 0;
  807.     PlayerInfo[playerid][pIdade] = 0;
  808.     PlayerInfo[playerid][pSexo] = 0;
  809.     PlayerInfo[playerid][pTut] = 0;
  810.     PlayerInfo[playerid][pLugar] = 0;
  811.     PlayerInfo[playerid][pLevel] = 0;
  812.     PlayerInfo[playerid][pMoney] = 0;
  813.     PlayerInfo[playerid][pMortes] = 0;
  814.     PlayerInfo[playerid][pKills] = 0;
  815.     PlayerInfo[playerid][pSkin] = 1;
  816.     PlayerInfo[playerid][pAdmin] = 0;
  817.     PlayerInfo[playerid][pLogado] = 0;
  818.     PlayerInfo[playerid][pORG] = 0;
  819.     PlayerInfo[playerid][pEmprego] = 0;
  820.     PlayerInfo[playerid][pBanido] = 0;
  821.     PlayerInfo[playerid][pEXP] = 0;
  822.     PlayerInfo[playerid][pBanco] = 0;
  823.     gPlayerConta[playerid] = 0;
  824.     gPlayerLogged[playerid] = 0;
  825.     new string2[64];
  826.     format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
  827.     SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Aguarde alguns segundos...");
  828.     LimparChat(playerid, 125);
  829.  
  830.     // [ textdraws ]
  831.     TextDrawShowForPlayer(playerid, Textdraw0); //Horas
  832.     TextDrawShowForPlayer(playerid, Textdraw1); //Minutos
  833.     TextDrawShowForPlayer(playerid, Textdraw2); //Segundos
  834.     TextDrawShowForPlayer(playerid, Textdraw3); //Dia
  835.     TextDrawShowForPlayer(playerid, Textdraw4); //Mes
  836.     TextDrawShowForPlayer(playerid, Textdraw5); //Ano
  837.     TextDrawShowForPlayer(playerid, Textdraw6); //Horas(min)
  838.     TextDrawShowForPlayer(playerid, Textdraw7); //Minutos(seg)
  839.     TextDrawShowForPlayer(playerid, Textdraw8); //DiaDaSemana
  840.  
  841.     // [ ícones ]
  842.     SetPlayerMapIcon(playerid, 0, -207.6064, 1119.2050, 20.4297, 48, 0xE6E6E6E6); // Prefeitura ~ Fort Carson
  843.     SetPlayerMapIcon(playerid, 1, -179.6620,1133.3715,19.7422, 52, 0xE6E6E6E60);  // Banco ~ Fort Carson
  844.     /*SetPlayerMapIcon(playerid, 2, 627.7889,  -571.8434, 17.5394, 30, 0xE6E6E6E6); // Departamento de Polícia ~ Dillimore
  845.     SetPlayerMapIcon(playerid, 3, 2302.7932, -16.2295,  27.4844, 52, 0xE6E6E6E6); // Banco ~ Palomino Creek
  846.     SetPlayerMapIcon(playerid, 4, -207.8791, 1119.089,  21.4297, 45, 0xE6E6E6E6); // Loja de roupas ~ ???
  847.     SetPlayerMapIcon(playerid, 5, 2256.7087, -44.5215,  26.8834, 56, 0xE6E6E6E6); // Igreja ~ Palomino Creek
  848.     SetPlayerMapIcon(playerid, 6, 2318.8008, -88.6682,  26.4844, 17, 0xE6E6E6E6); // 24/7 ~ Palomino Creek
  849.     SetPlayerMapIcon(playerid, 7, 701.9257,  -494.3564, 16.3359, 17, 0xE6E6E6E6); // 24/7 ~ Dillimore
  850.     SetPlayerMapIcon(playerid, 8, 2104.3079, 41.3257,   26.3359, 34, 0xE6E6E6E6); // Placa de velocidade ~ Palomino Creek
  851.     SetPlayerMapIcon(playerid, 9, 2353.4829, -92.0126,  26.5072, 55, 0xE6E6E6E6); // AutoEscola ~ Palomino Creek*/
  852.     // [ total de icones no server = 1 ] // sempre adicionar mais ícones quando colocá-los
  853.     return 1;
  854. }
  855.  
  856. //================== [ OnPlayerSpawn ] ==================
  857. public OnPlayerSpawn(playerid)
  858. {
  859.     SpawnarJogador(playerid);
  860.     return 1;
  861. }
  862.  
  863. //=============== [ SpawnarJogador ] ====================
  864. public SpawnarJogador(playerid)
  865. {
  866.     if(IsPlayerConnected(playerid))
  867.     {
  868.         if(PlayerInfo[playerid][pATrabalhando] == 1)
  869.         {
  870.             Delete3DTextLabel(Texto3DAdmin[playerid]);
  871.             Texto3DAdmin[playerid] = Create3DTextLabel("Admin: Duvidas? Ajuda?", COR_TEXTO3D,0,0,0,50,-1,1);
  872.             Attach3DTextLabelToPlayer(Texto3DAdmin[playerid], playerid, 0,0,0);
  873.         }
  874.         if(PlayerInfo[playerid][pLogou] == 0)
  875.         {
  876.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Para jogar é preciso estar logado.");
  877.             Kick(playerid);
  878.             return 1;
  879.         }
  880.         SetPlayerColor(playerid,COR_BRANCA);
  881.         //GangZoneShowForPlayer(playerid, radardesativado, 0x000000FF);
  882.         SetPlayerVirtualWorld(playerid,0);
  883.         PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
  884.         if(PlayerInfo[playerid][pLogou] == 0) { Kick(playerid); SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Para jogar é preciso estar logado."); return 1; }
  885.         if(PlayerInfo[playerid][pRelogio] == 1)
  886.         {
  887.         //MOSTRAR RELÓGIOIC
  888.         }
  889.         if(PlayerInfo[playerid][pReg] == 0 && PlayerInfo[playerid][pTut] == 0 && VerTuto[playerid] == 0 && TempoTuto[playerid] == 0)
  890.         {
  891.             SetPlayerPos(playerid, -210.7981,1131.9382,12.2688);
  892.             SetPlayerCameraPos(playerid, -211.5025,1128.8004,13.4459);
  893.             SetPlayerCameraLookAt(playerid, -211.5025,1128.8004,13.4458);
  894.             TogglePlayerControllable(playerid, 0);
  895.             SCM(playerid, COR_INFO, "{90EE90}ALFA{A9C4E4}: Bem-vindo ao FortCarson:RolePlay - Por favor, responda as informações pra seguir.");
  896.             ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{90EE90}FortCarson:RolePlay ~ {FFFFFF}Qual o seu sexo? (IC)", "{6495ED}Masculino\n{FF00FF}Feminino", "Ok", "");
  897.         }
  898.         else if(PlayerInfo[playerid][pReg] == 1 && PlayerInfo[playerid][pTut] == 1)
  899.         {
  900.             if(PlayerInfo[playerid][pLider] == 0 && PlayerInfo[playerid][pORG] == 0)
  901.             {
  902.                 if(PlayerInfo[playerid][pAdmin] != 0)
  903.                 {
  904.                     AdminsOnline++;
  905.                 }
  906.                 if(PlayerInfo[playerid][pOrigem] == 1)
  907.                 {
  908.                     SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  909.                     SetPlayerPos(playerid, -177.1503,1111.4773,19.7422);
  910.                     TogglePlayerControllable(playerid, 1);
  911.                     SetPlayerInterior(playerid,0);
  912.                     SetPlayerHealth(playerid, 70.0);
  913.                     SetPlayerFacingAngle(playerid, 135);
  914.                     SetCameraBehindPlayer(playerid);
  915.                     return 1;
  916.                 }
  917.                 else if(PlayerInfo[playerid][pOrigem] == 2)
  918.                 {
  919.                     SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  920.                     SetPlayerPos(playerid, 171.5337,1252.4419,25.3);
  921.                     TogglePlayerControllable(playerid, 1);
  922.                     SetPlayerInterior(playerid,0);
  923.                     SetPlayerHealth(playerid, 70.0);
  924.                     SetPlayerFacingAngle(playerid, 343);
  925.                     SetCameraBehindPlayer(playerid);
  926.                     return 1;
  927.                 }
  928.                 else if(PlayerInfo[playerid][pOrigem] == 3)
  929.                 {
  930.                     SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  931.                     SetPlayerPos(playerid, -410.5126,1160.3617,2.3388);
  932.                     TogglePlayerControllable(playerid, 1);
  933.                     SetPlayerInterior(playerid,0);
  934.                     SetPlayerHealth(playerid, 70.0);
  935.                     SetCameraBehindPlayer(playerid);
  936.                     return 1;
  937.                 }
  938.             }
  939.             else if(PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pORG] == 1)
  940.             {
  941.                 SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  942.                 SetPlayerPos(playerid, 196.8041,171.1494,1003.0234);
  943.                 TogglePlayerControllable(playerid, 1);
  944.                 SetPlayerFacingAngle(playerid, 180);
  945.                 SetPlayerInterior(playerid, 3);
  946.                 PlayerInfo[playerid][pLugar] = 111;
  947.                 SetPlayerHealth(playerid, 70.0);
  948.                 SetCameraBehindPlayer(playerid);
  949.                 return 1;
  950.             }
  951.         }
  952.     }
  953.     return 1;
  954. }
  955.  
  956. public OnVehicleSpawn(vehicleid)
  957. {
  958.     new placa[10];
  959.     GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  960.     SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
  961.     format(placa, sizeof placa, "FC-%d", vehicleid + 1000);
  962.     SetVehicleNumberPlate(vehicleid, placa);
  963.     SetVehicleHealth(vehicleid, 1000);
  964.     return 1;
  965. }
  966.  
  967. //=============== [ OnPlayerDisconnect ] ================
  968. public OnPlayerDisconnect(playerid, reason)
  969. {
  970.     new string[128];
  971.     PlayerInfo[playerid][pLogado] = 0;
  972.     Delete3DTextLabel(Texto3DAdmin[playerid]);
  973.     Online --;
  974.     if(VerTuto[playerid] != 0 || TempoTuto[playerid] != 0)
  975.     {
  976.         format(string, sizeof(string), "Contas/%s.ini", NomeDoJogador(playerid));
  977.         dini_Remove(string);
  978.         return 1;
  979.     }
  980.     if(CriouVeiculo[playerid] == 1)
  981.     {
  982.         DestroyVehicle(veiculonovo);
  983.     }
  984.     switch(reason)
  985.     {
  986.         case 0: format(string, sizeof(string), "{90EE90}(!) {A9C4E4}: [{FF0000}-{A9C4E4}] O %s %s saiu do server por erro de conexão ou crash. [%d/%d]", NivelDeAdm(playerid), NomeDoJogador(playerid),Online,GetMaxPlayers());
  987.         case 1: format(string, sizeof(string), "{90EE90}(!) {A9C4E4}: [{FF0000}-{A9C4E4}] O %s %s saiu por vontade propria. [%d/%d]", NivelDeAdm(playerid), NomeDoJogador(playerid),Online,GetMaxPlayers());
  988.         case 2: format(string, sizeof(string), "{90EE90}(!) {A9C4E4}: [{FF0000}-{A9C4E4}] O %s %s Saiu do servidor kickado ou banido. [%d/%d]", NivelDeAdm(playerid), NomeDoJogador(playerid),Online,GetMaxPlayers());
  989.     }
  990.     MensagemAdmin(COR_INFO, string, 1);
  991.     AtualizarJogador(playerid);
  992.     TextDrawHideForPlayer(playerid, Textdraw0); //Horas
  993.     TextDrawHideForPlayer(playerid, Textdraw1); //Minutos
  994.     TextDrawHideForPlayer(playerid, Textdraw2); //Segundos
  995.     TextDrawHideForPlayer(playerid, Textdraw3); //Dia
  996.     TextDrawHideForPlayer(playerid, Textdraw4); //Mes
  997.     TextDrawHideForPlayer(playerid, Textdraw5); //Ano
  998.     TextDrawHideForPlayer(playerid, Textdraw6); //Horas(min)
  999.     TextDrawHideForPlayer(playerid, Textdraw7); //Minutos(seg)
  1000.     TextDrawHideForPlayer(playerid, Textdraw8); //DiaDaSemana
  1001.     return 1;
  1002. }
  1003.  
  1004. //===============[ OnPlayerRequestClass ] ===============
  1005. public OnPlayerRequestClass(playerid,classid)
  1006. {
  1007.     new arquivodini[128];
  1008.     format(arquivodini, 64, "Contas/%s.ini", NomeDoJogador(playerid));
  1009.     SetPlayerCameraPos(playerid, -303.5813,1051.5614,79.0741);
  1010.     SetPlayerCameraLookAt(playerid, -164.1154,1101.6588,19.5938);
  1011.     SetPlayerPos(playerid, -304.0317,1051.3651,20.8353);
  1012.     if(dini_Exists(arquivodini))
  1013.     {
  1014.         TogglePlayerControllable(playerid, 0);
  1015.         SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Seu nick está registrado, logue.");
  1016.         ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Digite sua senha para logar-se", "Logar", "");
  1017.     }
  1018.     else
  1019.     {
  1020.         TogglePlayerControllable(playerid, 0);
  1021.         SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você não está registrado. Registre-se para jogar");
  1022.         ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Crie sua senha para registrar-se", "Registrar", "");
  1023.     }
  1024.     return 1;
  1025. }
  1026.  
  1027. //================= [ OnGameModeInit ] ==================
  1028. public OnGameModeInit()
  1029. {
  1030.     new str[128];
  1031.     getdate(v[0], v[1], v[2]);
  1032.     gettime(v[3], v[4], v[5]);
  1033.     print("\n---------------------------------------------------------");
  1034.     printf("Servidor ligado: [%02d/%02d/%d %02d:%02d:%02d]", v[2], v[1], v[0], v[3], v[4], v[5]);
  1035.     print("---------------------------------------------------------\n");
  1036.     SetGameModeText("Alfa ~ FortCarson:RolePlay ~ BR");
  1037.     SetTimer("NomeServer",1000,1);
  1038.     /*SetTimer("AtualizarVelocimetro",1, 1);
  1039.     TempoProd = SetTimer("Producao", 240000, 1);
  1040.     SetTimer("ObterGas", 1000, 1);
  1041.     TimerObterGas = SetTimer("GastarGas", TempGGas, 1);
  1042.     atualizacoesgeraisdoserver = SetTimer("atualizarserver", 1000,1);*/
  1043.     SendRconCommand("mapname Fort Carson");
  1044.  
  1045.     // [ textdraws ]
  1046.     // relógio OOC
  1047.     Textdraw0 = TextDrawCreate(498.000000, 1.000000, " ");
  1048.     TextDrawBackgroundColor(Textdraw0, 255);
  1049.     TextDrawFont(Textdraw0, 1);
  1050.     TextDrawLetterSize(Textdraw0, 0.300000, 1.199998);
  1051.     TextDrawColor(Textdraw0, -1);
  1052.     TextDrawSetOutline(Textdraw0, 0);
  1053.     TextDrawSetProportional(Textdraw0, 1);
  1054.     TextDrawSetShadow(Textdraw0, 0);
  1055.  
  1056.     Textdraw1 = TextDrawCreate(509.000000, 1.000000, " ");
  1057.     TextDrawBackgroundColor(Textdraw1, 255);
  1058.     TextDrawFont(Textdraw1, 1);
  1059.     TextDrawLetterSize(Textdraw1, 0.300000, 1.200000);
  1060.     TextDrawColor(Textdraw1, -1);
  1061.     TextDrawSetOutline(Textdraw1, 0);
  1062.     TextDrawSetProportional(Textdraw1, 1);
  1063.     TextDrawSetShadow(Textdraw1, 0);
  1064.  
  1065.     Textdraw2 = TextDrawCreate(525.000000, 1.000000, " ");
  1066.     TextDrawBackgroundColor(Textdraw2, 255);
  1067.     TextDrawFont(Textdraw2, 1);
  1068.     TextDrawLetterSize(Textdraw2, 0.300000, 1.200000);
  1069.     TextDrawColor(Textdraw2, -1);
  1070.     TextDrawSetOutline(Textdraw2, 0);
  1071.     TextDrawSetProportional(Textdraw2, 1);
  1072.     TextDrawSetShadow(Textdraw2, 0);
  1073.  
  1074.     Textdraw3 = TextDrawCreate(552.000000, 1.000000, " ");
  1075.     TextDrawBackgroundColor(Textdraw3, 255);
  1076.     TextDrawFont(Textdraw3, 1);
  1077.     TextDrawLetterSize(Textdraw3, 0.300000, 1.200000);
  1078.     TextDrawColor(Textdraw3, -1);
  1079.     TextDrawSetOutline(Textdraw3, 0);
  1080.     TextDrawSetProportional(Textdraw3, 1);
  1081.     TextDrawSetShadow(Textdraw3, 0);
  1082.  
  1083.     Textdraw4 = TextDrawCreate(565.000000, 1.000000, " ");
  1084.     TextDrawBackgroundColor(Textdraw4, 255);
  1085.     TextDrawFont(Textdraw4, 1);
  1086.     TextDrawLetterSize(Textdraw4, 0.300000, 1.200000);
  1087.     TextDrawColor(Textdraw4, -1);
  1088.     TextDrawSetOutline(Textdraw4, 0);
  1089.     TextDrawSetProportional(Textdraw4, 1);
  1090.     TextDrawSetShadow(Textdraw4, 0);
  1091.  
  1092.     Textdraw5 = TextDrawCreate(580.000000, 1.000000, " ");
  1093.     TextDrawBackgroundColor(Textdraw5, 255);
  1094.     TextDrawFont(Textdraw5, 1);
  1095.     TextDrawLetterSize(Textdraw5, 0.300000, 1.200000);
  1096.     TextDrawColor(Textdraw5, -1);
  1097.     TextDrawSetOutline(Textdraw5, 0);
  1098.     TextDrawSetProportional(Textdraw5, 1);
  1099.     TextDrawSetShadow(Textdraw5, 0);
  1100.  
  1101.     //relógioIC
  1102.     Textdraw6 = TextDrawCreate(499.000000, 14.000000, " ");
  1103.     TextDrawBackgroundColor(Textdraw6, 255);
  1104.     TextDrawFont(Textdraw6, 3);
  1105.     TextDrawLetterSize(Textdraw6, 0.289999, 1.000000);
  1106.     TextDrawColor(Textdraw6, -1446714113);
  1107.     TextDrawSetOutline(Textdraw6, 1);
  1108.     TextDrawSetProportional(Textdraw6, 1);
  1109.  
  1110.     Textdraw7 = TextDrawCreate(510.000000, 14.000000, " ");
  1111.     TextDrawBackgroundColor(Textdraw7, 255);
  1112.     TextDrawFont(Textdraw7, 3);
  1113.     TextDrawLetterSize(Textdraw7, 0.289999, 1.000000);
  1114.     TextDrawColor(Textdraw7, -1446714113);
  1115.     TextDrawSetOutline(Textdraw7, 1);
  1116.     TextDrawSetProportional(Textdraw7, 1);
  1117.  
  1118.     Textdraw8 = TextDrawCreate(534.000000, 14.000000, "SEGUNDA-FEIRA");
  1119.     TextDrawBackgroundColor(Textdraw8, 255);
  1120.     TextDrawFont(Textdraw8, 3);
  1121.     TextDrawLetterSize(Textdraw8, 0.289999, 1.000000);
  1122.     TextDrawColor(Textdraw8, -1446714113);
  1123.     TextDrawSetOutline(Textdraw8, 1);
  1124.     TextDrawSetProportional(Textdraw8, 1);
  1125.  
  1126.     //Velocímetro
  1127.     Textdraw9 = TextDrawCreate(498.000000, 351.000000, "~n~");
  1128.     TextDrawBackgroundColor(Textdraw9, 255);
  1129.     TextDrawFont(Textdraw9, 1);
  1130.     TextDrawLetterSize(Textdraw9, 1.279999, 10.100014);
  1131.     TextDrawColor(Textdraw9, -1);
  1132.     TextDrawSetOutline(Textdraw9, 0);
  1133.     TextDrawSetProportional(Textdraw9, 1);
  1134.     TextDrawSetShadow(Textdraw9, 0);
  1135.     TextDrawUseBox(Textdraw9, 1);
  1136.     TextDrawBoxColor(Textdraw9, 100);
  1137.     TextDrawTextSize(Textdraw9, 632.000000, 30.000000);
  1138.  
  1139.     Textdraw10 = TextDrawCreate(502.000000, 356.000000, "~n~");
  1140.     TextDrawBackgroundColor(Textdraw10, 255);
  1141.     TextDrawFont(Textdraw10, 1);
  1142.     TextDrawLetterSize(Textdraw10, 0.500000, 9.000000);
  1143.     TextDrawColor(Textdraw10, -1);
  1144.     TextDrawSetOutline(Textdraw10, 0);
  1145.     TextDrawSetProportional(Textdraw10, 1);
  1146.     TextDrawSetShadow(Textdraw10, 1);
  1147.     TextDrawUseBox(Textdraw10, 1);
  1148.     TextDrawBoxColor(Textdraw10, 51350);
  1149.     TextDrawTextSize(Textdraw10, 628.000000, 0.000000);
  1150.  
  1151.     Textdraw11 = TextDrawCreate(501.000000, 354.000000, " "); // nome do carro
  1152.     TextDrawBackgroundColor(Textdraw11, 255);
  1153.     TextDrawFont(Textdraw11, 2);
  1154.     TextDrawLetterSize(Textdraw11, 0.370000, 1.600000);
  1155.     TextDrawColor(Textdraw11, -1);
  1156.     TextDrawSetOutline(Textdraw11, 1);
  1157.     TextDrawSetProportional(Textdraw11, 1);
  1158.  
  1159.     Textdraw12 = TextDrawCreate(500.000000, 384.000000, " "); // qtdd de velocidade
  1160.     TextDrawBackgroundColor(Textdraw12, -1);
  1161.     TextDrawFont(Textdraw12, 1);
  1162.     TextDrawLetterSize(Textdraw12, 0.289999, 1.299999);
  1163.     TextDrawColor(Textdraw12, 255);
  1164.     TextDrawSetOutline(Textdraw12, 0);
  1165.     TextDrawSetProportional(Textdraw12, 1);
  1166.     TextDrawSetShadow(Textdraw12, 0);
  1167.  
  1168.     Textdraw13 = TextDrawCreate(500.000000, 374.000000, " "); // velocidade
  1169.     TextDrawBackgroundColor(Textdraw13, -1);
  1170.     TextDrawFont(Textdraw13, 1);
  1171.     TextDrawLetterSize(Textdraw13, 0.289999, 1.100000);
  1172.     TextDrawColor(Textdraw13, -1);
  1173.     TextDrawSetOutline(Textdraw13, 0);
  1174.     TextDrawSetProportional(Textdraw13, 1);
  1175.     TextDrawSetShadow(Textdraw13, 0);
  1176.  
  1177.     Textdraw14 = TextDrawCreate(500.000000, 396.000000, " "); // tanque
  1178.     TextDrawBackgroundColor(Textdraw14, -1);
  1179.     TextDrawFont(Textdraw14, 1);
  1180.     TextDrawLetterSize(Textdraw14, 0.289999, 1.100000);
  1181.     TextDrawColor(Textdraw14, -1);
  1182.     TextDrawSetOutline(Textdraw14, 0);
  1183.     TextDrawSetProportional(Textdraw14, 1);
  1184.     TextDrawSetShadow(Textdraw14, 0);
  1185.  
  1186.     Textdraw15 = TextDrawCreate(500.000000, 406.000000, " "); // qtdd de gasosa
  1187.     TextDrawBackgroundColor(Textdraw15, -1);
  1188.     TextDrawFont(Textdraw15, 1);
  1189.     TextDrawLetterSize(Textdraw15, 0.289999, 1.299999);
  1190.     TextDrawColor(Textdraw15, 255);
  1191.     TextDrawSetOutline(Textdraw15, 0);
  1192.     TextDrawSetProportional(Textdraw15, 1);
  1193.     TextDrawSetShadow(Textdraw15, 0);
  1194.  
  1195.     Textdraw16 = TextDrawCreate(500.000000, 418.000000, " "); // estado
  1196.     TextDrawBackgroundColor(Textdraw16, -1);
  1197.     TextDrawFont(Textdraw16, 1);
  1198.     TextDrawLetterSize(Textdraw16, 0.289999, 1.100000);
  1199.     TextDrawColor(Textdraw16, -1);
  1200.     TextDrawSetOutline(Textdraw16, 0);
  1201.     TextDrawSetProportional(Textdraw16, 1);
  1202.     TextDrawSetShadow(Textdraw16, 0);
  1203.  
  1204.     Textdraw17 = TextDrawCreate(520.000000, 385.000000, " "); //km/h
  1205.     TextDrawBackgroundColor(Textdraw17, -1);
  1206.     TextDrawFont(Textdraw17, 1);
  1207.     TextDrawLetterSize(Textdraw17, 0.289999, 1.100000);
  1208.     TextDrawColor(Textdraw17, -1);
  1209.     TextDrawSetOutline(Textdraw17, 0);
  1210.     TextDrawSetProportional(Textdraw17, 1);
  1211.     TextDrawSetShadow(Textdraw17, 0);
  1212.  
  1213.     Textdraw18 = TextDrawCreate(504.000000, 373.000000, "________");
  1214.     TextDrawBackgroundColor(Textdraw18, 255);
  1215.     TextDrawFont(Textdraw18, 2);
  1216.     TextDrawLetterSize(Textdraw18, 0.370000, -0.399998);
  1217.     TextDrawColor(Textdraw18, -1);
  1218.     TextDrawSetOutline(Textdraw18, 1);
  1219.     TextDrawSetProportional(Textdraw18, 1);
  1220.     TextDrawUseBox(Textdraw18, 1);
  1221.     TextDrawBoxColor(Textdraw18, 255);
  1222.     TextDrawTextSize(Textdraw18, 626.000000, 0.000000);
  1223.  
  1224.     Textdraw19 = TextDrawCreate(520.000000, 407.000000, " "); // litros
  1225.     TextDrawBackgroundColor(Textdraw19, -1);
  1226.     TextDrawFont(Textdraw19, 1);
  1227.     TextDrawLetterSize(Textdraw19, 0.289999, 1.100000);
  1228.     TextDrawColor(Textdraw19, -1);
  1229.     TextDrawSetOutline(Textdraw19, 0);
  1230.     TextDrawSetProportional(Textdraw19, 1);
  1231.     TextDrawSetShadow(Textdraw19, 0);
  1232.  
  1233.     Textdraw20 = TextDrawCreate(500.000000, 428.000000, " "); // funcionando
  1234.     TextDrawBackgroundColor(Textdraw20, -1);
  1235.     TextDrawFont(Textdraw20, 1);
  1236.     TextDrawLetterSize(Textdraw20, 0.289999, 1.299999);
  1237.     TextDrawColor(Textdraw20, 255);
  1238.     TextDrawSetOutline(Textdraw20, 0);
  1239.     TextDrawSetProportional(Textdraw20, 1);
  1240.     TextDrawSetShadow(Textdraw20, 0);
  1241.  
  1242.     Textdraw21 = TextDrawCreate(569.000000, 377.000000, "~n~");
  1243.     TextDrawBackgroundColor(Textdraw21, 255);
  1244.     TextDrawFont(Textdraw21, 1);
  1245.     TextDrawLetterSize(Textdraw21, 0.500000, 6.499998);
  1246.     TextDrawColor(Textdraw21, -1);
  1247.     TextDrawSetOutline(Textdraw21, 0);
  1248.     TextDrawSetProportional(Textdraw21, 1);
  1249.     TextDrawSetShadow(Textdraw21, 1);
  1250.     TextDrawUseBox(Textdraw21, 1);
  1251.     TextDrawBoxColor(Textdraw21, 255);
  1252.     TextDrawTextSize(Textdraw21, 561.000000, 0.000000);
  1253.  
  1254.     Textdraw22 = TextDrawCreate(567.000000, 374.000000, " "); // marcha
  1255.     TextDrawBackgroundColor(Textdraw22, -1);
  1256.     TextDrawFont(Textdraw22, 1);
  1257.     TextDrawLetterSize(Textdraw22, 0.289999, 1.100000);
  1258.     TextDrawColor(Textdraw22, -1);
  1259.     TextDrawSetOutline(Textdraw22, 0);
  1260.     TextDrawSetProportional(Textdraw22, 1);
  1261.     TextDrawSetShadow(Textdraw22, 0);
  1262.  
  1263.     Textdraw23 = TextDrawCreate(567.000000, 384.000000, " "); // marcha ré
  1264.     TextDrawBackgroundColor(Textdraw23, -1);
  1265.     TextDrawFont(Textdraw23, 1);
  1266.     TextDrawLetterSize(Textdraw23, 0.289999, 1.299999);
  1267.     TextDrawColor(Textdraw23, 255);
  1268.     TextDrawSetOutline(Textdraw23, 0);
  1269.     TextDrawSetProportional(Textdraw23, 1);
  1270.     TextDrawSetShadow(Textdraw23, 0);
  1271.  
  1272.     Textdraw24 = TextDrawCreate(574.000000, 384.000000, " "); // marcha nula
  1273.     TextDrawBackgroundColor(Textdraw24, -1);
  1274.     TextDrawFont(Textdraw24, 1);
  1275.     TextDrawLetterSize(Textdraw24, 0.289999, 1.299999);
  1276.     TextDrawColor(Textdraw24, 255);
  1277.     TextDrawSetOutline(Textdraw24, 0);
  1278.     TextDrawSetProportional(Textdraw24, 1);
  1279.     TextDrawSetShadow(Textdraw24, 0);
  1280.  
  1281.     Textdraw25 = TextDrawCreate(582.000000, 384.000000, " "); // marcha 1
  1282.     TextDrawBackgroundColor(Textdraw25, -1);
  1283.     TextDrawFont(Textdraw25, 1);
  1284.     TextDrawLetterSize(Textdraw25, 0.289999, 1.299999);
  1285.     TextDrawColor(Textdraw25, 255);
  1286.     TextDrawSetOutline(Textdraw25, 0);
  1287.     TextDrawSetProportional(Textdraw25, 1);
  1288.     TextDrawSetShadow(Textdraw25, 0);
  1289.  
  1290.     Textdraw26 = TextDrawCreate(588.000000, 384.000000, " "); // ... 2
  1291.     TextDrawBackgroundColor(Textdraw26, -1);
  1292.     TextDrawFont(Textdraw26, 1);
  1293.     TextDrawLetterSize(Textdraw26, 0.289999, 1.299999);
  1294.     TextDrawColor(Textdraw26, 255);
  1295.     TextDrawSetOutline(Textdraw26, 0);
  1296.     TextDrawSetProportional(Textdraw26, 1);
  1297.     TextDrawSetShadow(Textdraw26, 0);
  1298.  
  1299.     Textdraw27 = TextDrawCreate(595.000000, 384.000000, " "); // ... 3
  1300.     TextDrawBackgroundColor(Textdraw27, -1);
  1301.     TextDrawFont(Textdraw27, 1);
  1302.     TextDrawLetterSize(Textdraw27, 0.289999, 1.299999);
  1303.     TextDrawColor(Textdraw27, 255);
  1304.     TextDrawSetOutline(Textdraw27, 0);
  1305.     TextDrawSetProportional(Textdraw27, 1);
  1306.     TextDrawSetShadow(Textdraw27, 0);
  1307.  
  1308.     Textdraw28 = TextDrawCreate(602.000000, 384.000000, " "); // ... 4
  1309.     TextDrawBackgroundColor(Textdraw28, -1);
  1310.     TextDrawFont(Textdraw28, 1);
  1311.     TextDrawLetterSize(Textdraw28, 0.289999, 1.299999);
  1312.     TextDrawColor(Textdraw28, 255);
  1313.     TextDrawSetOutline(Textdraw28, 0);
  1314.     TextDrawSetProportional(Textdraw28, 1);
  1315.     TextDrawSetShadow(Textdraw28, 0);
  1316.  
  1317.     Textdraw29 = TextDrawCreate(608.000000, 384.000000, " "); // marcha 5
  1318.     TextDrawBackgroundColor(Textdraw29, -1);
  1319.     TextDrawFont(Textdraw29, 1);
  1320.     TextDrawLetterSize(Textdraw29, 0.289999, 1.299999);
  1321.     TextDrawColor(Textdraw29, 255);
  1322.     TextDrawSetOutline(Textdraw29, 0);
  1323.     TextDrawSetProportional(Textdraw29, 1);
  1324.     TextDrawSetShadow(Textdraw29, 0);
  1325.  
  1326.     Textdraw30 = TextDrawCreate(567.000000, 396.000000, " "); // placa
  1327.     TextDrawBackgroundColor(Textdraw30, -1);
  1328.     TextDrawFont(Textdraw30, 1);
  1329.     TextDrawLetterSize(Textdraw30, 0.289999, 1.100000);
  1330.     TextDrawColor(Textdraw30, -1);
  1331.     TextDrawSetOutline(Textdraw30, 0);
  1332.     TextDrawSetProportional(Textdraw30, 1);
  1333.     TextDrawSetShadow(Textdraw30, 0);
  1334.  
  1335.     Textdraw31 = TextDrawCreate(567.000000, 406.000000, " "); // n da placa
  1336.     TextDrawBackgroundColor(Textdraw31, -1);
  1337.     TextDrawFont(Textdraw31, 1);
  1338.     TextDrawLetterSize(Textdraw31, 0.289999, 1.299999);
  1339.     TextDrawColor(Textdraw31, 255);
  1340.     TextDrawSetOutline(Textdraw31, 0);
  1341.     TextDrawSetProportional(Textdraw31, 1);
  1342.     TextDrawSetShadow(Textdraw31, 0);
  1343.  
  1344.     Textdraw32 = TextDrawCreate(567.000000, 418.000000, " "); // motor
  1345.     TextDrawBackgroundColor(Textdraw32, -1);
  1346.     TextDrawFont(Textdraw32, 1);
  1347.     TextDrawLetterSize(Textdraw32, 0.289999, 1.100000);
  1348.     TextDrawColor(Textdraw32, -1);
  1349.     TextDrawSetOutline(Textdraw32, 0);
  1350.     TextDrawSetProportional(Textdraw32, 1);
  1351.     TextDrawSetShadow(Textdraw32, 0);
  1352.  
  1353.     Textdraw33 = TextDrawCreate(567.000000, 428.000000, " "); // ligado/desligado
  1354.     TextDrawBackgroundColor(Textdraw33, -1);
  1355.     TextDrawFont(Textdraw33, 1);
  1356.     TextDrawLetterSize(Textdraw33, 0.289999, 1.299998);
  1357.     TextDrawColor(Textdraw33, 255);
  1358.     TextDrawSetOutline(Textdraw33, 0);
  1359.     TextDrawSetProportional(Textdraw33, 1);
  1360.     TextDrawSetShadow(Textdraw33, 0);
  1361.  
  1362.     for(new i = 0; i<MAX_PLAYERS; i++)
  1363.     {
  1364.         //ocultar textdraws
  1365.         TextDrawHideForPlayer(i, Textdraw0); //Horas
  1366.         TextDrawHideForPlayer(i, Textdraw1); //Minutos
  1367.         TextDrawHideForPlayer(i, Textdraw2); //Segundos
  1368.         TextDrawHideForPlayer(i, Textdraw3); //Dia
  1369.         TextDrawHideForPlayer(i, Textdraw4); //Mes
  1370.         TextDrawHideForPlayer(i, Textdraw5); //Ano
  1371.         TextDrawHideForPlayer(i, Textdraw6); //Horas(Minutos)
  1372.         TextDrawHideForPlayer(i, Textdraw7); //Minutos(Segundos)
  1373.         TextDrawHideForPlayer(i, Textdraw8); //DiaDaSemana
  1374.         ProcessGameTime(i);
  1375.         SetTimer("ProcessGameTime", 1000, 1);
  1376.     }
  1377.  
  1378.     SetTimer("RelogioDoServerEmIC", 1000, 1);
  1379.  
  1380.     ShowPlayerMarkers(0);
  1381.     AllowInteriorWeapons(1);
  1382.     AllowAdminTeleport(1);
  1383.     DisableInteriorEnterExits();
  1384.     UsePlayerPedAnims();
  1385.  
  1386.     // [ desativar radar ]
  1387.     //radardesativado = GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
  1388.  
  1389.     // [ objetos do server ]
  1390.  
  1391.     // [ Prefeitura - Fort Carson ] = 68 objeto(s)
  1392.     CreateDynamicObject(14597,-219.97753906,1119.30566406,13.26100922,0.00000000,0.00000000,0.00000000); //object(paperchase07) (1)
  1393.     CreateDynamicObject(14598,-210.51687622,1131.10449219,9.42149639,0.00000000,0.00000000,0.00000000); //object(paperchase_glass) (1)
  1394.     CreateDynamicObject(1532,-206.85572815,1120.27587891,11.26882172,0.00000000,0.00000000,270.00000000); //object(gen_doorext11) (1)
  1395.     CreateDynamicObject(2885,-206.60839844,1119.64941406,17.87967873,0.00000000,0.00000000,90.24719238); //object(xref_garagedoor) (1)
  1396.     CreateDynamicObject(2885,-222.09082031,1122.65722656,16.00468445,0.00000000,0.00000000,180.24169922); //object(xref_garagedoor) (2)
  1397.     CreateDynamicObject(2885,-221.94140625,1115.92871094,16.00468445,0.00000000,0.00000000,0.24169922); //object(xref_garagedoor) (3)
  1398.     CreateDynamicObject(1491,-210.88203430,1116.03723145,11.27614975,0.00000000,0.00000000,180.00000000); //object(gen_doorint01) (1)
  1399.     CreateDynamicObject(1491,-210.88516235,1122.61206055,11.27614975,0.00000000,0.00000000,179.99450684); //object(gen_doorint01) (2)
  1400.     CreateDynamicObject(14527,-228.37879944,1119.30639648,12.82624054,0.00000000,0.00000000,3.75000000); //object(fannyfan) (1)
  1401.     CreateDynamicObject(14527,-211.35800171,1119.52722168,12.82624054,0.00000000,0.00000000,3.74633789); //object(fannyfan) (2)
  1402.     CreateDynamicObject(14527,-212.87341309,1108.94482422,12.82624054,0.00000000,0.00000000,3.74633789); //object(fannyfan) (3)
  1403.     CreateDynamicObject(14527,-212.79205322,1128.97070312,12.82624054,0.00000000,0.00000000,3.74633789); //object(fannyfan) (4)
  1404.     CreateDynamicObject(2166,-210.54179382,1129.72216797,11.26882172,0.00000000,0.00000000,180.00000000); //object(med_office_desk_2) (1)
  1405.     CreateDynamicObject(2198,-212.47785950,1128.72290039,11.26882172,0.00000000,0.00000000,180.00000000); //object(med_office2_desk_3) (1)
  1406.     CreateDynamicObject(1811,-213.41908264,1126.86462402,11.89512634,0.00000000,0.00000000,250.00000000); //object(med_din_chair_5) (3)
  1407.     CreateDynamicObject(1811,-212.16514587,1126.53588867,11.90245438,0.00000000,0.00000000,289.99938965); //object(med_din_chair_5) (4)
  1408.     CreateDynamicObject(1663,-213.05456543,1129.79150391,11.72903633,0.00000000,0.00000000,30.00000000); //object(swivelchair_b) (1)
  1409.     CreateDynamicObject(1581,-211.43611145,1128.73413086,12.05790043,271.99993896,0.00000000,344.00000000); //object(keycard) (1)
  1410.     CreateDynamicObject(1714,-232.03752136,1120.31811523,11.27614975,0.00000000,0.00000000,80.00000000); //object(kb_swivelchair1) (1)
  1411.     CreateDynamicObject(1715,-228.24107361,1120.52343750,11.26882172,0.00000000,0.00000000,289.99511719); //object(kb_swivelchair2) (1)
  1412.     CreateDynamicObject(1715,-228.46569824,1118.58422852,11.27614975,0.00000000,0.00000000,229.99328613); //object(kb_swivelchair2) (2)
  1413.     CreateDynamicObject(2184,-229.38357544,1120.67541504,11.26882172,0.00000000,0.00000000,110.00000000); //object(med_office6_desk_2) (1)
  1414.     CreateDynamicObject(2184,-230.23339844,1118.18994141,11.26882172,0.00000000,0.00000000,66.99462891); //object(med_office6_desk_2) (2)
  1415.     CreateDynamicObject(1808,-232.61447144,1122.01660156,11.26882172,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (2)
  1416.     CreateDynamicObject(2190,-229.65469360,1121.01721191,12.04455948,0.00000000,0.00000000,270.00000000); //object(pc_1) (1)
  1417.     CreateDynamicObject(2894,-229.90962219,1119.81420898,12.04455948,0.00000000,0.00000000,240.00000000); //object(kmb_rhymesbook) (1)
  1418.     CreateDynamicObject(2773,-222.72558594,1120.13867188,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1419.     CreateDynamicObject(2773,-222.69270325,1118.40649414,11.77448750,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (2)
  1420.     CreateDynamicObject(1491,-224.24575806,1118.54968262,11.27614975,0.00000000,0.00000000,89.99450684); //object(gen_doorint01) (3)
  1421.     CreateDynamicObject(1726,-220.22558594,1121.57128906,11.26882172,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (1)
  1422.     CreateDynamicObject(1808,-217.66699219,1116.33789062,11.26882172,0.00000000,0.00000000,179.99450684); //object(cj_watercooler2) (3)
  1423.     CreateDynamicObject(14455,-233.11695862,1121.47485352,13.03668118,0.00000000,0.00000000,270.00000000); //object(gs_bookcase) (1)
  1424.     CreateDynamicObject(2604,-219.62345886,1117.99853516,12.06569672,0.00000000,0.00000000,0.00000000); //object(cj_police_counter) (1)
  1425.     CreateDynamicObject(1715,-219.56564331,1116.86071777,11.26882172,0.00000000,0.00000000,159.99511719); //object(kb_swivelchair2) (1)
  1426.     CreateDynamicObject(2175,-215.71878052,1107.28222656,11.26882172,0.00000000,0.00000000,0.00000000); //object(med_office4_desk_3) (1)
  1427.     CreateDynamicObject(2173,-210.36862183,1110.49340820,11.26882172,0.00000000,0.00000000,90.00000000); //object(med_office_desk_3) (1)
  1428.     CreateDynamicObject(1671,-209.34355164,1110.85058594,11.72903633,0.00000000,0.00000000,250.00000000); //object(swivelchair_a) (1)
  1429.     CreateDynamicObject(2894,-210.35130310,1110.98278809,12.07047558,0.00000000,0.00000000,90.00000000); //object(kmb_rhymesbook) (2)
  1430.     CreateDynamicObject(1959,-215.39517212,1107.32836914,12.05893135,0.00000000,0.00000000,0.00000000); //object(shop_till) (1)
  1431.     CreateDynamicObject(2773,-213.48295593,1107.31066895,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1432.     CreateDynamicObject(2773,-212.53915405,1108.27185059,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
  1433.     CreateDynamicObject(2773,-210.66880798,1108.81408691,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
  1434.     CreateDynamicObject(2773,-212.55975342,1110.20861816,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
  1435.     CreateDynamicObject(2773,-209.73823547,1113.45202637,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1436.     CreateDynamicObject(2773,-211.66886902,1113.44641113,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1437.     CreateDynamicObject(2773,-210.67683411,1114.43273926,11.78326416,0.00000000,0.00000000,180.00000000); //object(cj_airprt_bar) (1)
  1438.     CreateDynamicObject(2773,-213.47389221,1109.23974609,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1439.     CreateDynamicObject(2773,-215.37777710,1109.23730469,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1440.     CreateDynamicObject(1722,-213.98164368,1110.02600098,11.26882172,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (1)
  1441.     CreateDynamicObject(1722,-215.21952820,1109.99487305,11.26882172,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (2)
  1442.     CreateDynamicObject(1722,-215.22650146,1111.18798828,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (3)
  1443.     CreateDynamicObject(1722,-214.01708984,1111.20373535,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (4)
  1444.     CreateDynamicObject(1722,-215.23886108,1112.38098145,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (5)
  1445.     CreateDynamicObject(1722,-214.00997925,1112.37451172,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (6)
  1446.     CreateDynamicObject(2700,-213.82290649,1115.57763672,14.83560467,0.00000000,0.00000000,270.00000000); //object(cj_sex_tv2) (1)
  1447.     CreateDynamicObject(2002,-215.64521790,1115.03979492,11.27614975,0.00000000,0.00000000,90.00000000); //object(water_coolnu) (1)
  1448.     CreateDynamicObject(1808,-208.89115906,1108.53063965,11.26882172,0.00000000,0.00000000,270.00000000); //object(cj_watercooler2) (4)
  1449.     CreateDynamicObject(2773,-209.67118835,1107.85522461,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
  1450.     CreateDynamicObject(2773,-210.65679932,1106.88659668,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
  1451.     CreateDynamicObject(1726,-215.32730103,1121.63818359,11.26882172,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (1)
  1452.     CreateDynamicObject(1726,-213.35334778,1116.91857910,11.26882172,0.00000000,0.00000000,180.00000000); //object(mrk_seating2) (1)
  1453.     CreateDynamicObject(14489,-229.61470032,1122.19079590,13.37683964,0.00000000,0.00000000,270.00000000); //object(carlspics) (1)
  1454.     CreateDynamicObject(2007,-231.84474182,1121.82739258,11.26882172,0.00000000,0.00000000,0.00000000); //object(filing_cab_nu01) (1)
  1455.     CreateDynamicObject(2818,-230.55438232,1116.42272949,14.54072857,270.00000000,180.00000000,180.00000000); //object(gb_bedrug02) (1)
  1456.     CreateDynamicObject(2828,-230.46684265,1118.79187012,12.04455948,0.00000000,0.00000000,20.00000000); //object(gb_ornament02) (1)
  1457.     CreateDynamicObject(2835,-224.80578613,1118.82824707,11.26882172,0.00000000,0.00000000,90.00000000); //object(gb_livingrug04) (1)
  1458.     CreateDynamicObject(14705,-232.67887878,1116.73620605,12.61852074,0.00000000,0.00000000,0.00000000); //object(int2vase) (1)
  1459.     CreateDynamicObject(2491,-232.45918274,1116.99523926,10.49381828,0.00000000,0.00000000,0.00000000); //object(model_stand) (1)
  1460.  
  1461.     // [ Estação - Fort Carson ] = 39 objeto(s)
  1462.     CreateDynamicObject(18284,168.70166016,1246.61010742,25.38256454,0.00000000,0.00000000,67.50000000); //object(cw_tscanopy) (1)
  1463.     CreateDynamicObject(18284,168.70117188,1246.60937500,19.60757637,0.00000000,0.00000000,67.49450684); //object(cw_tscanopy) (2)
  1464.     CreateDynamicObject(18284,165.99578857,1240.59277344,19.60756111,0.00000000,0.00000000,65.49450684); //object(cw_tscanopy) (3)
  1465.     CreateDynamicObject(18284,168.70117188,1246.60937500,18.75757027,0.00000000,0.00000000,67.49450684); //object(cw_tscanopy) (4)
  1466.     CreateDynamicObject(18284,165.99511719,1240.59277344,18.75757408,0.00000000,0.00000000,65.48950195); //object(cw_tscanopy) (5)
  1467.     CreateDynamicObject(18284,163.13735962,1234.33837891,19.60756111,0.00000000,0.00000000,65.48950195); //object(cw_tscanopy) (6)
  1468.     CreateDynamicObject(18284,163.13671875,1234.33789062,18.85757256,0.00000000,0.00000000,65.48950195); //object(cw_tscanopy) (7)
  1469.     CreateDynamicObject(14877,160.62258911,1228.23999023,20.49082375,0.00000000,0.00000000,65.50000000); //object(michelle-stairs) (1)
  1470.     CreateDynamicObject(2885,161.63755798,1230.59545898,22.13712692,90.00000000,180.00952148,335.99050903); //object(xref_garagedoor) (1)
  1471.     CreateDynamicObject(14877,158.30999756,1222.97497559,20.26582718,0.00000000,0.00000000,65.49499512); //object(michelle-stairs) (2)
  1472.     CreateDynamicObject(2885,160.56973267,1228.13940430,21.78711700,90.00000000,180.00549316,335.98937988); //object(xref_garagedoor) (2)
  1473.     CreateDynamicObject(14877,156.86141968,1219.78906250,19.91582108,0.00000000,0.00000000,65.49499512); //object(michelle-stairs) (4)
  1474.     CreateDynamicObject(2885,159.51434326,1225.81494141,21.46212196,90.00000000,180.00549316,335.98937988); //object(xref_garagedoor) (4)
  1475.     CreateDynamicObject(14877,154.87519836,1215.42333984,19.69082451,0.00000000,0.00000000,65.49499512); //object(michelle-stairs) (5)
  1476.     CreateDynamicObject(2885,154.19847107,1213.91748047,20.33711624,90.00000000,179.99450684,335.99487305); //object(xref_garagedoor) (5)
  1477.     CreateDynamicObject(2885,157.52001953,1221.49902344,20.73712540,90.00000000,179.99450684,335.99487305); //object(xref_garagedoor) (6)
  1478.     CreateDynamicObject(2885,156.85397339,1219.82653809,21.63714600,352.00000000,0.00000000,155.98937988); //object(xref_garagedoor) (12)
  1479.     CreateDynamicObject(2885,151.51019287,1207.94165039,20.53714371,359.99645996,0.00000000,155.98388672); //object(xref_garagedoor) (13)
  1480.     CreateDynamicObject(13749,159.33596802,1193.62011719,14.15132713,0.00000000,0.00000000,30.00000000); //object(cunte_curvesteps1) (1)
  1481.     CreateDynamicObject(2885,155.37817383,1216.67529297,20.33711624,90.00000000,180.00549316,335.98388672); //object(xref_garagedoor) (14)
  1482.     CreateDynamicObject(2885,157.21580505,1215.82446289,20.33711624,90.00000000,180.00549316,335.98388672); //object(xref_garagedoor) (15)
  1483.     CreateDynamicObject(2885,156.01342773,1213.07714844,20.33711624,90.00000000,180.00549316,335.98388672); //object(xref_garagedoor) (16)
  1484.     CreateDynamicObject(2885,153.36303711,1207.12231445,20.53714371,359.99450684,0.00000000,155.98388672); //object(xref_garagedoor) (17)
  1485.     CreateDynamicObject(2773,156.74366760,1205.67382812,21.06403351,0.00000000,0.00000000,66.25000000); //object(cj_airprt_bar) (1)
  1486.     CreateDynamicObject(2773,155.00161743,1206.43554688,21.06403351,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (3)
  1487.     CreateDynamicObject(2773,153.24131775,1207.21813965,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (4)
  1488.     CreateDynamicObject(2773,151.48164368,1208.00134277,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (5)
  1489.     CreateDynamicObject(2773,149.72196960,1208.78552246,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (6)
  1490.     CreateDynamicObject(2773,147.96206665,1209.56823730,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (7)
  1491.     CreateDynamicObject(1256,170.85429382,1245.72705078,23.22015762,0.00000000,0.00000000,337.50000000); //object(stonebench1) (1)
  1492.     CreateDynamicObject(1256,176.29493713,1243.50878906,23.22015762,0.00000000,0.00000000,337.49450684); //object(stonebench1) (2)
  1493.     CreateDynamicObject(1256,165.75384521,1247.79589844,23.22015762,0.00000000,0.00000000,337.49450684); //object(stonebench1) (3)
  1494.     CreateDynamicObject(1256,161.52157593,1249.78674316,23.22015762,0.00000000,0.00000000,157.49450684); //object(stonebench1) (4)
  1495.     CreateDynamicObject(1256,166.52284241,1247.50439453,23.22015762,0.00000000,0.00000000,157.49450684); //object(stonebench1) (5)
  1496.     CreateDynamicObject(1256,171.59207153,1245.45166016,23.22015762,0.00000000,0.00000000,157.49450684); //object(stonebench1) (6)
  1497.     CreateDynamicObject(14877,157.46809387,1206.95141602,18.79083824,0.00000000,0.00000000,335.49499512); //object(michelle-stairs) (10)
  1498.     CreateDynamicObject(2885,148.76269531,1214.91442871,20.53714371,359.99450684,0.00000000,66.23388672); //object(xref_garagedoor) (18)
  1499.     CreateDynamicObject(2885,160.32887268,1209.79003906,20.53714371,359.98901367,0.00000000,246.23107910); //object(xref_garagedoor) (19)
  1500.     CreateDynamicObject(18284,169.94557190,1249.44824219,19.60757637,0.00000000,0.00000000,67.49450684); //object(cw_tscanopy) (8)
  1501.  
  1502.     // [ Docas - Fort Carson ] = 1 objeto
  1503.     CreateDynamicObject(3073,-409.71902466,1155.82055664,3.17121983,7.05850220,28.23291016,206.22509766); //object(kmb_container_broke) (1)
  1504.  
  1505.     // [ PostoDeGasolina/FC ] = 3 objetos
  1506.     CreateDynamicObject(18452,-167.44091797,1228.33557129,21.69091797,0.00000000,0.00000000,359.99450684); //object(cw_tscanopy01) (2)
  1507.     CreateDynamicObject(1676,-167.17025757,1225.55798340,20.42178726,0.00000000,0.00000000,180.00000000); //object(washgaspump) (1)
  1508.     CreateDynamicObject(1676,-167.15441895,1231.11755371,20.42178726,0.00000000,0.00000000,180.00000000); //object(washgaspump) (5)
  1509.  
  1510.     // [ Banco/FC ] = 28 objetos
  1511.     CreateDynamicObject(13007,-169.55877686,1122.63757324,-13.85860348,0.00000000,0.00000000,0.00000000); //object(sw_bankbits) (1)
  1512.     CreateDynamicObject(2946,-178.23849487,1130.93273926,-15.63390923,0.00000000,0.00000000,270.00000000); //object(cr_door_03) (1)
  1513.     CreateDynamicObject(2946,-175.06437683,1130.93164062,-15.64766598,0.00000000,0.25000000,90.00000000); //object(cr_door_03) (2)
  1514.     CreateDynamicObject(2773,-174.57998657,1117.81726074,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
  1515.     CreateDynamicObject(2773,-171.83224487,1117.81872559,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (2)
  1516.     CreateDynamicObject(2773,-169.18222046,1117.84057617,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (3)
  1517.     CreateDynamicObject(2773,-166.45680237,1117.86242676,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (4)
  1518.     CreateDynamicObject(2773,-166.43067932,1122.87145996,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (6)
  1519.     CreateDynamicObject(2773,-166.42584229,1120.95556641,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (7)
  1520.     CreateDynamicObject(2773,-169.40882874,1121.90344238,-15.12306023,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (8)
  1521.     CreateDynamicObject(1892,-160.54783630,1119.30322266,-15.64766598,0.00000000,0.00000000,90.00000000); //object(security_gatsh) (1)
  1522.     CreateDynamicObject(1892,-176.12963867,1128.60852051,-15.64028835,0.00000000,0.00000000,180.00000000); //object(security_gatsh) (2)
  1523.     CreateDynamicObject(2773,-174.48625183,1128.58190918,-15.12306023,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (9)
  1524.     CreateDynamicObject(2773,-178.86152649,1128.59191895,-15.12306023,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (10)
  1525.     CreateDynamicObject(14576,-174.32218933,1116.14758301,-20.03787804,0.00000000,0.00000000,90.00000000); //object(vault_door) (1)
  1526.     CreateDynamicObject(1491,-159.56918335,1119.02844238,-15.62275314,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (1)
  1527.     CreateDynamicObject(1491,-159.56851196,1119.02783203,-13.12274933,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (2)
  1528.     CreateDynamicObject(1498,-158.52812195,1121.81921387,-19.82801056,0.00000000,0.00000000,0.00000000); //object(gen_doorext03) (1)
  1529.     CreateDynamicObject(1492,-159.62815857,1119.47827148,-19.84803009,0.00000000,0.00000000,90.00000000); //object(gen_doorint02) (1)
  1530.     CreateDynamicObject(1491,-159.63099670,1119.47558594,-15.82276154,0.00000000,90.00000000,89.99993896); //object(gen_doorint01) (3)
  1531.     CreateDynamicObject(1491,-157.01055908,1121.87268066,-15.82277298,0.00000000,90.00000000,180.00000000); //object(gen_doorint01) (4)
  1532.     CreateDynamicObject(14633,-166.35940552,1115.47033691,-19.32724380,0.00000000,0.00000000,0.00000000); //object(paperchase_bits2c) (1)
  1533.     CreateDynamicObject(14600,-166.24392700,1112.67041016,-19.39064980,0.00000000,0.00000000,266.00000000); //object(paperchase_bits2) (1)
  1534.     CreateDynamicObject(14600,-160.86161804,1112.85546875,-19.53336143,0.00000000,0.00000000,0.00000000); //object(paperchase_bits2) (3)
  1535.     CreateDynamicObject(1558,-162.79652405,1115.98632812,-20.24896812,0.00000000,0.00000000,0.00000000); //object(cj_cardbrd_pickup) (1)
  1536.     CreateDynamicObject(939,-165.97717285,1123.85693359,-18.48156166,0.00000000,0.00000000,0.00000000); //object(cj_df_unit) (1)
  1537.     CreateDynamicObject(939,-168.37129211,1119.65832520,-18.48156166,0.00000000,0.00000000,40.00000000); //object(cj_df_unit) (2)
  1538.     CreateDynamicObject(2634,-182.02372742,1116.16162109,-26.53380203,0.00000000,0.00000000,270.00000000); //object(ab_vaultdoor) (1)
  1539.  
  1540.     // [ Departamento de Polícia/FC ] = 49 objetos
  1541.  
  1542.     CreateDynamicObject(1536,239.56149292,116.06816864,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (1)
  1543.     CreateDynamicObject(1536,239.51530457,119.06489563,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (2)
  1544.     CreateDynamicObject(1536,238.91680908,115.92274475,1002.21875000,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (3)
  1545.     CreateDynamicObject(1536,235.90135193,115.88132477,1002.21875000,0.00000000,0.00000000,359.99450684); //object(gen_doorext15) (4)
  1546.     CreateDynamicObject(1536,239.55473328,126.59528351,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (5)
  1547.     CreateDynamicObject(1536,239.58267212,123.59390259,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (6)
  1548.     CreateDynamicObject(1536,253.26095581,126.75399780,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (7)
  1549.     CreateDynamicObject(1536,253.29389954,123.73830414,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (8)
  1550.     CreateDynamicObject(1536,253.18676758,107.57101440,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (9)
  1551.     CreateDynamicObject(1536,253.15910339,110.57179260,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (10)
  1552.     CreateDynamicObject(1536,253.69003296,115.81721497,1002.21875000,0.00000000,0.00000000,0.00000000); //object(gen_doorext15) (11)
  1553.     CreateDynamicObject(1536,256.68923950,115.85442352,1002.21875000,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (12)
  1554.     CreateDynamicObject(970,239.68080139,112.85557556,1004.42919922,0.00000000,180.00000000,268.00000000); //object(fencesmallb) (2)
  1555.     CreateDynamicObject(970,253.15802002,117.43113708,1004.42919922,0.00000000,179.99450684,267.99499512); //object(fencesmallb) (3)
  1556.     CreateDynamicObject(1536,212.05882263,139.23364258,1001.98480225,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (13)
  1557.     CreateDynamicObject(1536,209.04597473,139.19004822,1001.98480225,0.00000000,0.00000000,359.99450684); //object(gen_doorext15) (14)
  1558.     CreateDynamicObject(1536,207.32229614,140.93591309,1001.98480225,0.00000000,0.00000000,89.99450684); //object(gen_doorext15) (15)
  1559.     CreateDynamicObject(1536,207.27909851,143.93394470,1001.98480225,0.00000000,0.00000000,269.99450684); //object(gen_doorext15) (16)
  1560.     CreateDynamicObject(1536,222.56431580,139.23464966,1001.98480225,0.00000000,0.00000000,179.99450684); //object(gen_doorext15) (17)
  1561.     CreateDynamicObject(1536,219.54986572,139.20614624,1001.98480225,0.00000000,0.00000000,359.98901367); //object(gen_doorext15) (18)
  1562.     CreateDynamicObject(2885,204.58561707,165.63418579,1008.73431396,0.00000000,0.00000000,89.99450684); //object(xref_garagedoor) (2)
  1563.     CreateDynamicObject(2885,204.60183716,173.38400269,1008.73431396,0.00000000,0.00000000,89.99450684); //object(xref_garagedoor) (3)
  1564.     CreateDynamicObject(2885,230.17866516,156.28402710,1008.73431396,0.00000000,0.00000000,179.99450684); //object(xref_garagedoor) (4)
  1565.     CreateDynamicObject(1536,225.70831299,156.07290649,1001.98480225,0.00000000,0.00000000,359.98901367); //object(gen_doorext15) (19)
  1566.     CreateDynamicObject(1536,204.32760620,168.73007202,1001.98480225,0.00000000,0.00000000,269.98901367); //object(gen_doorext15) (20)
  1567.     CreateDynamicObject(1566,228.25381470,152.81158447,1003.53881836,0.00000000,0.00000000,270.00000000); //object(cj_ws_door) (1)
  1568.     CreateDynamicObject(1566,228.24824524,149.64714050,1003.53881836,0.00000000,0.00000000,90.00000000); //object(cj_ws_door) (2)
  1569.     CreateDynamicObject(1566,265.18566895,110.34418488,1009.33569336,0.00000000,0.00000000,90.00000000); //object(cj_ws_door) (4)
  1570.     CreateDynamicObject(1566,265.20278931,113.51905060,1009.33569336,0.00000000,0.00000000,270.00000000); //object(cj_ws_door) (5)
  1571.     CreateDynamicObject(2395,264.98007202,109.47619629,1003.61718750,0.00000000,0.00000000,0.00000000); //object(cj_sports_wall) (1)
  1572.     CreateDynamicObject(2395,262.82284546,109.46604919,1003.61718750,0.00000000,0.00000000,0.00000000); //object(cj_sports_wall) (2)
  1573.     CreateDynamicObject(2395,262.29858398,107.51044464,1003.61718750,0.00000000,0.00000000,270.00000000); //object(cj_sports_wall) (3)
  1574.     CreateDynamicObject(1502,262.38397217,109.52159119,1003.61718750,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (1)
  1575.     CreateDynamicObject(1649,264.55203247,109.58245850,1005.28778076,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (1)
  1576.     CreateDynamicObject(1649,266.25213623,109.56593323,1005.28778076,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (2)
  1577.     CreateDynamicObject(2395,262.50518799,104.76976013,1003.61718750,0.00000000,0.00000000,90.00000000); //object(cj_sports_wall) (4)
  1578.     CreateDynamicObject(2604,266.34057617,110.17700958,1004.41406250,0.00000000,0.00000000,180.00000000); //object(cj_police_counter) (1)
  1579.     CreateDynamicObject(2611,268.12295532,111.15653229,1006.05084229,0.00000000,0.00000000,270.00000000); //object(police_nb1) (1)
  1580.     CreateDynamicObject(2612,263.43713379,112.31493378,1005.76562500,0.00000000,0.00000000,0.00000000); //object(police_nb2) (1)
  1581.     CreateDynamicObject(2614,246.50411987,118.27032471,1008.90069580,0.00000000,0.00000000,0.00000000); //object(cj_us_flag) (1)
  1582.     CreateDynamicObject(2885,263.68145752,121.72054291,1010.32806396,0.00000000,0.00000000,90.00000000); //object(xref_garagedoor) (5)
  1583.     CreateDynamicObject(2885,270.29031372,115.91053772,1010.32806396,0.00000000,0.00000000,180.00000000); //object(xref_garagedoor) (6)
  1584.     CreateDynamicObject(2885,271.69418335,118.12178040,1010.32806396,0.00000000,0.00000000,89.99450684); //object(xref_garagedoor) (7)
  1585.     CreateDynamicObject(1516,266.40213013,107.85986328,1003.61718750,0.00000000,0.00000000,0.00000000); //object(dyn_table_03) (1)
  1586.     CreateDynamicObject(1721,267.95776367,107.81980896,1003.61718750,0.00000000,0.00000000,90.00000000); //object(est_chair1) (1)
  1587.     CreateDynamicObject(1663,264.75106812,107.46885681,1004.07739258,0.00000000,0.00000000,90.00000000); //object(swivelchair_b) (1)
  1588.     CreateDynamicObject(1663,264.75430298,108.18643188,1004.07739258,0.00000000,0.00000000,87.99511719); //object(swivelchair_b) (2)
  1589.     CreateDynamicObject(974,243.01005554,119.68070221,1006.99645996,0.00000000,0.00000000,0.00000000); //object(tall_fence) (3)
  1590.     CreateDynamicObject(974,249.63795471,119.65837097,1006.99645996,0.00000000,0.00000000,0.00000000); //object(tall_fence) (4)
  1591.  
  1592.  
  1593.     // [ total de objetos no server = 188 ] // sempre adicionar mais objetos quando colocá-los
  1594.  
  1595.  
  1596.     // [ Pikcups ]
  1597.     CreateDynamicPickup(1239, 23, -207.6064,1119.2050,  20.4297); // Entrada Prefeitura ~ Fort Carson
  1598.     CreateDynamicPickup(1239, 23, -207.7033,1119.5430,  12.2688); // Saída Prefeitura ~ Fort Carson
  1599.     CreateDynamicPickup(1239, 23, -211.3374,1127.8392,  12.2688); // Obter documentos ~ Fort Carson
  1600.     CreateDynamicPickup(1239, 23, -179.6620,1133.3715,19.7422);   // Entrada Banco ~ Fort Carson
  1601.     CreateDynamicPickup(1239, 23, -176.4678,1129.9913,-14.6403);  // Saída Banco ~ Fort Carson
  1602.     CreateDynamicPickup(1239, 23, -217.8412,979.1472,19.5040);    // Entrada DP ~ Fort Carson
  1603.     CreateDynamicPickup(1239, 23, 246.4066,107.5535,1003.2188);   // Saída Banco ~ Fort Carson
  1604.     CreateDynamicPickup(1239, 23, -175.5683,1115.0616,-19.4555);  // Atalho Banco [ Sc ~ Cb ] ~ Fort Carson
  1605.     CreateDynamicPickup(1239, 23, 239.9455,117.7430,1003.2257);   // Entrada esquerda ~ DP ~ 1
  1606.     CreateDynamicPickup(1239, 23, 252.1524,109.1200,1003.2188);   // Entrada direita ~ DP ~ 1
  1607.     CreateDynamicPickup(1239, 23, 210.5085,140.1983,1003.0234);   // Entrada esquerda ~ DP ~ 2
  1608.     CreateDynamicPickup(1239, 23, 254.3451,109.0811,1003.2257);   // Entrada direita ~ DP ~ 2
  1609.     CreateDynamicPickup(1239, 23, 252.8684,125.3000,1003.2188);   // Entrada Bancada direita ~ 1
  1610.     CreateDynamicPickup(1239, 23, 253.6967,125.2000,1003.2188);   // Entrada Bancada direita ~ 2
  1611.     CreateDynamicPickup(1239, 23, 255.2427,115.0590,1003.2188);   // EntDirS1
  1612.     CreateDynamicPickup(1239, 23, 255.1188,116.7185,1003.2188);   // EntDirS2
  1613.     CreateDynamicPickup(1239, 23, 207.7065,142.4978,1003.0234);   // EntEsqS1
  1614.     CreateDynamicPickup(1239, 23, 237.3459,115.0957,1003.2188);   // EntEsqS2
  1615.     CreateDynamicPickup(1239, 23, 240.5758,125.1392,1003.2257);   // EntEsqB1
  1616.     CreateDynamicPickup(1239, 23, 221.0409,140.0483,1003.0234);   // EntEsqB2
  1617.     CreateDynamicPickup(1239, 23, 227.4080,151.1664,1003.0234);   // EntCorEsc1
  1618.     CreateDynamicPickup(1239, 23, 264.5517,112.0055,1008.8203);   // EntCorEsc2
  1619.     CreateDynamicPickup(1239, 23, 226.5256,155.1976,1003.0234);   // EntCorCel1
  1620.     CreateDynamicPickup(1239, 23, 203.4983,167.9230,1003.0234);   // EntCorCel2
  1621.  
  1622.     // [ total de pickups no server = 24 ] // sempre adicionar mais pickups quando colocá-los
  1623.  
  1624.     // [ Textos 3D Label ]
  1625.     Create3DTextLabel("Prefeitura de Fort Carson\nPressione 'F' para entrar.", COR_TEXTO3D, -207.6064, 1119.2050, 21.4297, 5.0, 0);
  1626.     Create3DTextLabel("[SAÍDA]\nPressione 'F' para sair.", COR_TEXTO3D, -207.7033, 1119.5430, 13.2688, 5.0, 0);
  1627.     Create3DTextLabel("Cartório da prefeitura\nPressione 'F' para tirar os documentos.", COR_TEXTO3D, -211.3374,1127.8392,12.2688, 5.0, 0);
  1628.     Create3DTextLabel("Banco de Fort Carson\nPressione 'F' para entrar.", COR_TEXTO3D, -179.6620,1133.3715,19.7422, 5.0, 0);
  1629.     Create3DTextLabel("[SAÍDA]\nPressione 'F' para sair.", COR_TEXTO3D, -176.4678,1129.9913,-14.6403, 5.0, 0);
  1630.     Create3DTextLabel("Departamento de Polícia de Fort Carson\nPressione 'F' para entrar.", COR_TEXTO3D, -217.8412,979.1472,19.5040, 5.0, 0);
  1631.     Create3DTextLabel("[SAÍDA]\nPressione 'F' para sair.", COR_TEXTO3D, 246.4066,107.5535,1003.2188, 5.0, 0);
  1632.     Create3DTextLabel("Bifurcação para o cofre\nPressione 'F' para pular.", COR_TEXTO3D, -175.5683,1115.0616,-19.4555, 5.0, 0);
  1633.  
  1634.     // [ CARROS ]
  1635.  
  1636.     AddStaticVehicleEx(438,-158.55610657,1084.10156250,19.94218826,14.00000000,6,1,60000*TEMPORESPAWN);     //[ 1 ] SÓ PRA TESTES
  1637.     //==============================================
  1638.     // SE POR MAIS CARROS ADICIONA OS VALORES NA DEFINE "NDECARROS"
  1639.  
  1640.     for(new car = 1; car <= MAX_VEHICLES; car++)
  1641.     {
  1642.         Tanque[car] = MaxGas;
  1643.         GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
  1644.         SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
  1645.         SemGas[car] = 0;
  1646.     }
  1647.  
  1648.     format(str, sizeof(str), "Configs/NumeroDeRegistrados.ini");
  1649.     if(dini_Exists(str))
  1650.     {
  1651.         TotalDeRegistrados = dini_Int(str, "Registrados");
  1652.         return 1;
  1653.     }
  1654.     else
  1655.     {
  1656.         dini_Create(str);
  1657.         dini_IntSet(str,"Registrados", 0);
  1658.     }
  1659.  
  1660.     return 1;
  1661. }
  1662.  
  1663. public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
  1664. {
  1665.     if(newkeys == KEY_SECONDARY_ATTACK)
  1666.     {
  1667.         OnPlayerCommandText(playerid,"/entrar");
  1668.         OnPlayerCommandText(playerid,"/sair");
  1669.         OnPlayerCommandText(playerid, "/sairdoveiculokrlarromvadodemerdaqq");
  1670.         if(PlayerToPoint(1.0, playerid, -212.7301,1109.2706,12.2688))
  1671.         {
  1672.             OnPlayerCommandText(playerid,"/obterinformaçõesporratioeusoufodaemqq");
  1673.         }
  1674.         if(PlayerToPoint(1.0, playerid, -211.3374,1127.8392,12.2688))
  1675.         {
  1676.             OnPlayerCommandText(playerid,"/obterdocumentoskrlmonsterviadodokctqq");
  1677.         }
  1678.         /*if(PlayerToPoint(1.0, playerid, -211.3374,1127.8392,12.2688)) // REDEFINIR
  1679.         {
  1680.             OnPlayerCommandText(playerid,"/comprar");
  1681.         }*/
  1682.         if(PlayerToPoint(1.0, playerid, 568.5528,-587.1313,6.0749)) // REDEFINIR
  1683.         {
  1684.             OnPlayerCommandText(playerid,"/equipar");
  1685.         }
  1686.         if(PlayerToPoint(1.0, playerid, 596.4583,-557.9193,6.0387)) // REDEFINIR
  1687.         {
  1688.             OnPlayerCommandText(playerid,"/batercartao");
  1689.         }
  1690.         if(PlayerToPoint(1.0, playerid, 2278.2593,-80.7719,1.3218)) // REDEFINIR
  1691.         {
  1692.             OnPlayerCommandText(playerid, "/empregos");
  1693.         }
  1694.     }
  1695.     return 1;
  1696. }
  1697.  
  1698. public OnPlayerStateChange(playerid, newstate, oldstate)
  1699. {
  1700.     if(PlayerInfo[playerid][pATrabalhando] == 1)
  1701.     {
  1702.         TogglePlayerControllable(playerid, 1);
  1703.         Delete3DTextLabel(Texto3DAdmin[playerid]);
  1704.         Texto3DAdmin[playerid] = Create3DTextLabel("Admin: Em que posso serví-lo?",0xFF000099,0,0,0,50,-1,1);
  1705.         Attach3DTextLabelToPlayer(Texto3DAdmin[playerid], playerid, 0,0,0);
  1706.     }
  1707.     if(newstate == PLAYER_STATE_ONFOOT)
  1708.     {
  1709.         TogglePlayerControllable(playerid, 1);
  1710.         if(CriouVeiculo[playerid] == 1)
  1711.         {
  1712.             CriouVeiculo[playerid] = 0;
  1713.         }
  1714.     }
  1715.     if(newstate == PLAYER_STATE_PASSENGER)
  1716.     {
  1717.     }
  1718.     if(newstate == PLAYER_STATE_DRIVER)
  1719.     {
  1720.     }
  1721.     return 1;
  1722. }
  1723.  
  1724.  
  1725. // [ Atualizações constantes ]
  1726. public atualizarserver()
  1727. {
  1728.     new gasstring[128];
  1729.     new nomedokr[128];
  1730.     for(new i = 0; i < MAX_PLAYERS; i++)
  1731.     {
  1732.         if(GetPlayerSpeed(i, true) >= 350)
  1733.         {
  1734.             format(gasstring, sizeof(gasstring), "{FF0000}LOG{A9C4E4}: {FF0000}O jogador %s(%d) está correndo à %dkm/h, use /espiar nele pode SpeedHack.",NomeDoJogador(i),i,GetPlayerSpeed(i, true));
  1735.             MensagemAdmin(COR_INFO,gasstring,1);
  1736.             printf("%s", gasstring);
  1737.         }
  1738.         MostrarAdmin(i);
  1739.         if(VerTuto[i] == 1)
  1740.         {
  1741.             if(TempoTuto[i] >= 1)
  1742.             {
  1743.                 TogglePlayerControllable(i, 0);
  1744.                 TempoTuto[i] += 1;
  1745.                 if(TempoTuto[i] == 3)
  1746.                 {
  1747.                     LimparChat(i, 125);
  1748.                     SCM(i, COR_INFO, "{33CCFF}:: Introdução ::");
  1749.                     SCM(i, COR_INFO, "Este tutorial irá falar sobre as principais regras do nosso servidor, preste atenção, pois será muito útil.");
  1750.                     SCM(i, COR_INFO, "Todos os novos jogadores precisam e devem saber o que pode e o que não se pode fazer.");
  1751.                 }
  1752.                 else if(TempoTuto[i] == 18)
  1753.                 {
  1754.                     LimparChat(i, 125);
  1755.                     SCM(i, COR_INFO, "{33CCFF}:: Tópicos ::");
  1756.                     SCM(i, COR_INFO, "- In Character(IC)");
  1757.                     SCM(i, COR_INFO, "- Out of Character(OOC)");
  1758.                     SCM(i, COR_INFO, "- Metagame(MG)");
  1759.                     SCM(i, COR_INFO, "- Powergame(PG)");
  1760.                     SCM(i, COR_INFO, "- Kills(RK, CK)/Anti-RPs(BH, NJ)");
  1761.                     SCM(i, COR_INFO, "- Como pedir ajuda");
  1762.                     SCM(i, COR_INFO, "- Considerações finais");
  1763.                 }
  1764.                 else if(TempoTuto[i] == 28)
  1765.                 {
  1766.                     LimparChat(i, 125);
  1767.                     SCM(i, COR_INFO, "{33CCFF}:: In Character(IC) ::");
  1768.                     SCM(i, COR_INFO, "O {FFFFFF}in character{A9C4E4} é o canal no qual você interpreta o seu {FF5555}PERSONAGEM{A9C4E4}.");
  1769.                     SCM(i, COR_INFO, "Neste canal você não pode usar abreviações digitais, exemplos: blz, vc, lol, wtf. E assim por diante.");
  1770.                     SCM(i, COR_INFO, "Você deve interpretar seu personagem de forma mais real possível, inclusive evitando erros gramaticáis.");
  1771.                     SCM(i, COR_INFO, "Exemplos:");
  1772.                     format(nomedokr, sizeof(nomedokr), "{FFFFFF}%s diz: Senhor, você poderia me ajudar em uma coisa?", NomeDoJogador(i));
  1773.                     SCM(i, COR_INFO, nomedokr);
  1774.                     format(nomedokr, sizeof(nomedokr), "{FFFFFF}%s diz: Policial, o senhor precisa me ajudar, eu fui assaltado.", NomeDoJogador(i));
  1775.                     SCM(i, COR_INFO, nomedokr);
  1776.                     SCM(i, COR_INFO, "Se você seguir os exemplos acima, você já estará apto a usar o {FFFFFF}In Character{A9C4E4} de forma clara.");
  1777.                 }
  1778.                 else if(TempoTuto[i] == 63)
  1779.                 {
  1780.                     LimparChat(i, 125);
  1781.                     SCM(i, COR_INFO, "{33CCFF}:: Out of Character(OOC) ::");
  1782.                     SCM(i, COR_INFO, "Já no {939393}Out of Character{A9C4E4} é diferente, é um canal que você interpreta {FF5555}A SI MESMO{A9C4E4}.");
  1783.                     SCM(i, COR_INFO, "Neste canal você pode usar abreviações digitais, pedir ajuda com algum comando ou anim, enfim...Fora do seu personagem.");
  1784.                     SCM(i, COR_INFO, "Você não pode mentir, ou xingar algum player ou administrador, caso isso ocorra, poderá resultar em banimento.");
  1785.                     SCM(i, COR_INFO, "Exemplos:");
  1786.                     format(nomedokr, sizeof(nomedokr),"{939393}(( %s diz: ei kr, tu pode me ajudar? sab ql o cmd pra sentar? :x ))", NomeDoJogador(i));
  1787.                     SCM(i, COR_INFO, nomedokr);
  1788.                     format(nomedokr, sizeof(nomedokr),"{939393}(( %s diz: af mãn, n sei ond eu pego emprego? sabe onde tem? DD: ))", NomeDoJogador(i));
  1789.                     SCM(i, COR_INFO, nomedokr);
  1790.                 }
  1791.                 else if(TempoTuto[i] == 88)
  1792.                 {
  1793.                     LimparChat(i, 125);
  1794.                     SCM(i, COR_INFO, "{33CCFF}:: Metagame(MG) ::");
  1795.                     SCM(i, COR_INFO, "Metagame é quando acontece do jogador usar informações {939393}OOC{A9C4E4} em {FFFFFF}IC{A9C4E4}.");
  1796.                     SCM(i, COR_INFO, "Um exemplo clássico, é o jogador ver o nome de um outro jogador sobre sua cabeça e chegar conversando com ele");
  1797.                     SCM(i, COR_INFO, "falando o nome dele como se já se conhecessem. O que não é correto, pois, na vida real, as pessoas não possuem nomes");
  1798.                     SCM(i, COR_INFO, "sobre a cabeça. Portanto, chegue em {FFFFFF}IC{A9C4E4} perguntando o nome dela.");
  1799.                     SCM(i, COR_INFO, "Existem muitos exemplos de Metagame, mas lembre-se, metagame é usar informações {939393}OOC{A9C4E4} em {FFFFFF}IC{A9C4E4}.");
  1800.                     SCM(i, COR_INFO, "Evite isso.");
  1801.                     LimparChat(i, 2);
  1802.                 }
  1803.                 else if(TempoTuto[i] == 113)
  1804.                 {
  1805.                     LimparChat(i, 125);
  1806.                     SCM(i, COR_INFO, "{33CCFF}:: Powergame(PG) ::");
  1807.                     SCM(i, COR_INFO, "Power game é fazer algo totalmente além da realidade, ou uma ação que não dê chances de defesa à outro jogador.");
  1808.                     SCM(i, COR_INFO, "E essas coisas são comuns, quando um novato aprende ele acaba cometendo esses atos. Veremos agora exemplos de Powergame.");
  1809.                     SCM(i, COR_INFO, "Exemplos: {888888}(( Usando /eu ))");
  1810.                     format(nomedokr, sizeof(nomedokr), "{C2A2DA}* %s dá um soco em Renan_Ítalo e ele evapora.", NomeDoJogador(i));
  1811.                     SCM(i, COR_INFO, nomedokr);
  1812.                     format(nomedokr, sizeof(nomedokr), "{C2A2DA}* %s abre os braços, começa a girar e perfura o solo.", NomeDoJogador(i));
  1813.                     SCM(i, COR_INFO, nomedokr);
  1814.                     SCM(i, COR_INFO, "Essas duas últimas situações, são dois exemplos de Powergame. Um não dá chances de defesa à outro jogador");
  1815.                     SCM(i, COR_INFO, "já o outro, é algo que foge da nossa realidade. Agora vamos ver um exemplo de non-Powergame.");
  1816.                     SCM(i, COR_INFO, "Exemplo: {888888}(( Usando /eu ))");
  1817.                     format(nomedokr, sizeof(nomedokr), "{C2A2DA}* %s leva sua mão até o peito de Renan_Ítalo, e começa a socá-lo.");
  1818.                     SCM(i, COR_INFO, nomedokr);
  1819.                 }
  1820.                 else if(TempoTuto[i] == 138)
  1821.                 {
  1822.                     LimparChat(i, 125);
  1823.                     SCM(i, COR_INFO, "{33CCFF}:: Kills(RevengeKill, CharacterKill)/Anti-RPs(BunnyHop, NinjaJack) ::");
  1824.                     SCM(i, COR_INFO, "Kills:");
  1825.                     SCM(i, COR_INFO, "Revenge Kill: Ocorre quando um jogador X é morto por um jogador Y, e o jogador X volta ao local do crime e mata o jogador Y.");
  1826.                     SCM(i, COR_INFO, "Não faça isso, pois quando você morre você esquece os últimos acontecimentos em {FFFFFF}IC{A9C4E4}.");
  1827.                     SCM(i, COR_INFO, "Character Kill: Ocorre quando um jogador é assassinado por motivos {FFFFFF}IC{A9C4E4}, e caso a solicitação seja feita");
  1828.                     SCM(i, COR_INFO, "e aprovada a conta do jogador será bloqueada, ou seja, a conta deixará de existir.");
  1829.                     SCM(i, COR_INFO, "BunnyHop: Ocorre quando um jogador corre pulando para chegar mais rápido ao seu destino, e você não faz isso na vida real.");
  1830.                     SCM(i, COR_INFO, "NinjaJack: Ocorre quando um jogador simplesmente entra em um veículo que não é dele sem usar o /eu.");
  1831.                     LimparChat(i, 2);
  1832.                 }
  1833.                 else if(TempoTuto[i] == 153)
  1834.                 {
  1835.                     LimparChat(i, 125);
  1836.                     SCM(i, COR_INFO, "{33CCFF}:: Solicitando ajuda ::");
  1837.                     SCM(i, COR_INFO, "Para solicitar ajuda é fácil, basta digitar /ajuda e clicar em ''Solicitar administrador''");
  1838.                     SCM(i, COR_INFO, "Caso nenhum administrador lhe envie uma MP, ou vá até você, aguarde, pois eles devem estar ocupados.");
  1839.                     SCM(i, COR_INFO, "Se ocorrer FLOOD na solicitação, o jogador será severamente punido, qualquer tentativa de FLOOD, o jogador");
  1840.                     SCM(i, COR_INFO, "será punido. Outra, caso um administrador esteja jogando, não envie uma MP para ele, pedindo ajuda, caso ele");
  1841.                     SCM(i, COR_INFO, "quiser, poderá te punir.");
  1842.                     LimparChat(i, 4);
  1843.                 }
  1844.                 else if(TempoTuto[i] == 178)
  1845.                 {
  1846.                     LimparChat(i, 125);
  1847.                     SCM(i, COR_INFO, "{33CCFF}:: Considerações finais ::");
  1848.                     format(nomedokr,sizeof(nomedokr), "A equipe %s te deseja um bom jogo, e esperamos que fique de fato em nosso servidor", SCRIPT_EQUIPE);
  1849.                     SCM(i, COR_INFO, nomedokr);
  1850.                     LimparChat(i, 3);
  1851.                     format(nomedokr, sizeof(nomedokr), "          {FFFFFF}Copyright {880000}FortCarson RolePlay{FFFFFF}: {33CCFF}%s", SCRIPT_CRIADOR);
  1852.                     SCM(i, COR_INFO, nomedokr);
  1853.                 }
  1854.                 else if(TempoTuto[i] == 193)
  1855.                 {
  1856.                     if(VendoTutTemp[i] == 1)
  1857.                     {
  1858.                         VerTuto[i] = 0;
  1859.                         TempoTuto[i] = 0;
  1860.                         SetPlayerVirtualWorld(i,0);
  1861.                         LimparChat(i, 125);
  1862.                         PlayerInfo[i][pReg] = 1;
  1863.                         PlayerInfo[i][pTut] = 1;
  1864.                         SemCMD[i] = 0;
  1865.                         TogglePlayerControllable(i, 1);
  1866.                         SetCameraBehindPlayer(i);
  1867.                         SetPlayerPos(i, -212.7301,1109.2706,12.2688);
  1868.                         AtualizarJogador(i);
  1869.                     }
  1870.                     else
  1871.                     {
  1872.                         VerTuto[i] = 0;
  1873.                         TempoTuto[i] = 0;
  1874.                         SetPlayerVirtualWorld(i,0);
  1875.                         LimparChat(i, 125);
  1876.                         PlayerInfo[i][pReg] = 1;
  1877.                         PlayerInfo[i][pTut] = 1;
  1878.                         SemCMD[i] = 0;
  1879.                         TogglePlayerControllable(i, 1);
  1880.                         SpawnPlayer(i);
  1881.                         SpawnarJogador(i);
  1882.                         AtualizarJogador(i);
  1883.                         SCM(i, COR_INFO, "Bem-vindo(a) ao FortCarson:RolePlay");
  1884.                         SCM(i, COR_INFO, "================================================================================");
  1885.                         format(nomedokr, sizeof(nomedokr), "Dono: {33CCFF}%s", SCRIPT_CRIADOR);
  1886.                         SCM(i, COR_INFO, nomedokr);
  1887.                         SCM(i, COR_INFO, "Gênero: {FFFFFF}RolePlay");
  1888.                         SCM(i, COR_INFO, "Fundação: {4169E1}21/10/2011");
  1889.                         SCM(i, COR_INFO, "IP: {4169E1}Em breve");
  1890.                         SCM(i, COR_INFO, "TeamSpeak: {4169E1}64.31.29.69{A9C4E4}:{4169E1}9987");
  1891.                         SCM(i, COR_INFO, "================================================================================");
  1892.                     }
  1893.                 }
  1894.              }
  1895.         }
  1896.     }
  1897.     return 1;
  1898. }
  1899.  
  1900.  
  1901. //================ [ OnDialogResponse ] =================
  1902. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1903. {
  1904.     new string[128];
  1905.     TogglePlayerControllable(playerid, 1);
  1906.     new armabranca, municao, armasecundaria, municao1, armaprimaria, armaprimaria1, armaprimaria2, armaprimaria3, municao2, municao21, municao22, municao23, armaulti1, municao31, armaulti2, municao32, armaulti3, municao33;
  1907.     if(dialogid == 1)
  1908.     {
  1909.         if(response)
  1910.         {
  1911.             strmid(Digitou[playerid], inputtext, 0, strlen(inputtext), 255);
  1912.             if(!strcmp(Digitou[playerid], "Nada", true))
  1913.             {
  1914.                 ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Tens que digitar uma senha", "Logar", "");
  1915.             }
  1916.             else
  1917.             {
  1918.                 new tmppass[64];
  1919.                 strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  1920.                 CarregarJogador(playerid, tmppass);
  1921.             }
  1922.         }
  1923.         else
  1924.         {
  1925.             SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você foi kickado do servidor, motivo: Recusou logar.");
  1926.             format(string, sizeof(string), "{33CCFF}(!) {A9C4E4}: O jogador %s foi kickado do servidor por não ter logado.", NomeDoJogador(playerid));
  1927.             MensagemAdmin(COR_INFO, string, 1);
  1928.             Kick(playerid);
  1929.             AtualizarJogador(playerid);
  1930.         }
  1931.     }
  1932.     if(dialogid == 2)
  1933.     {
  1934.         if(response == 1)
  1935.         {
  1936.             if(strlen(inputtext) < 3)
  1937.             {
  1938.                 ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FF0000}Sua senha deve contar mais de 3 caractéres.", "Registrar", "");
  1939.                 return 1;
  1940.             }
  1941.             if(strlen(inputtext) > 20)
  1942.             {
  1943.                 ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FF0000}Sua senha deve contar menos de 20 caractéres.", "Registrar", "");
  1944.                 return 1;
  1945.             }
  1946.             RegistrarJogador(playerid, inputtext);
  1947.         }
  1948.         else
  1949.         {
  1950.             Kick(playerid);
  1951.             AtualizarJogador(playerid);
  1952.         }
  1953.     }
  1954.     if(dialogid == 3)
  1955.     {
  1956.         if(response == 0)
  1957.         {
  1958.             ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{90EE90}FortCarson:RolePlay ~ {FFFFFF}Por favor, escolha seu sexo. (IC)", "{6495ED}Masculino\n{FF00FF}Feminino", "Ok", "");
  1959.             return 1;
  1960.         }
  1961.         if(response >= 1)
  1962.         {
  1963.             if(listitem == 0)
  1964.             {
  1965.                 SetPlayerSkin(playerid, 26);
  1966.                 PlayerInfo[playerid][pSkin] = 26;
  1967.                 PlayerInfo[playerid][pSexo] = 1;
  1968.                 AtualizarJogador(playerid);
  1969.                 ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}Ok, você é homem.", "{FFFFFF}Qual o dia do seu nascimento? (IC)", "Ok", "Voltar");
  1970.             }
  1971.             if(listitem == 1)
  1972.             {
  1973.                 SetPlayerSkin(playerid, 41);
  1974.                 PlayerInfo[playerid][pSkin] = 41;
  1975.                 PlayerInfo[playerid][pSexo] = 2;
  1976.                 AtualizarJogador(playerid);
  1977.                 ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}Ok, você é mulher.", "{FFFFFF}Qual o dia do seu nascimento? (IC)", "Ok", "Voltar");
  1978.             }
  1979.         }
  1980.     }
  1981.     if(dialogid == 4)
  1982.     {
  1983.         if(response == 0)
  1984.         {
  1985.             ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{90EE90}FortCarson:RolePlay ~ {FFFFFF}Por favor, escolha seu sexo. (IC)", "{6495ED}Masculino\n{FF00FF}Feminino", "Ok", "");
  1986.             return 1;
  1987.         }
  1988.         if(response == 1)
  1989.         {
  1990.             if(!EUmNumero(inputtext))
  1991.             {
  1992.                 ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o dia do seu nascimento? (IC)\n\n{FF0000}Somente números, por favor.", "Ok", "Voltar");
  1993.                 return 1;
  1994.             }
  1995.             if(strval(inputtext) > 0 && strval(inputtext) < 32 && strlen(inputtext) > 0)
  1996.             {
  1997.                 PlayerInfo[playerid][pDiaNascimento] = strval(inputtext);
  1998.                 AtualizarJogador(playerid);
  1999.                 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mês do seu nascimento? (IC)", "Ok", "Voltar");
  2000.             }
  2001.             else if(strval(inputtext) < 1 || strval(inputtext) > 31)
  2002.             {
  2003.                 ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o dia do seu nascimento? (IC)\n\n{FF0000}Este dia não existe.", "Ok", "Voltar");
  2004.                 return 1;
  2005.             }
  2006.         }
  2007.     }
  2008.     if(dialogid == 5)
  2009.     {
  2010.         if(response == 0)
  2011.         {
  2012.             ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o dia do seu nascimento? (IC)", "Ok", "Voltar");
  2013.             return 1;
  2014.         }
  2015.         if(response == 1)
  2016.         {
  2017.             if(!EUmNumero(inputtext))
  2018.             {
  2019.                 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mês do seu nascimento? (IC)\n\n{FF0000}Somente números, por favor.", "Ok", "Voltar");
  2020.                 return 1;
  2021.             }
  2022.             if(strval(inputtext) > 0 && strval(inputtext) < 13 && strlen(inputtext) > 0)
  2023.             {
  2024.                 PlayerInfo[playerid][pMesNascimento] = strval(inputtext);
  2025.                 AtualizarJogador(playerid);
  2026.                 ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)", "Ok", "Voltar");
  2027.             }
  2028.             else if(strval(inputtext) < 0 || strval(inputtext) > 12)
  2029.             {
  2030.                 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mês do seu nascimento? (IC)\n\n{FF0000}Este mês não existe.", "Ok", "Voltar");
  2031.                 return 1;
  2032.             }
  2033.         }
  2034.     }
  2035.     if(dialogid == 6)
  2036.     {
  2037.         if(response == 0)
  2038.         {
  2039.             ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mes do seu nascimento? (IC)", "Ok", "Voltar");
  2040.             return 1;
  2041.         }
  2042.         if(response == 1)
  2043.         {
  2044.             if(!EUmNumero(inputtext))
  2045.             {
  2046.                 ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)\n\n{FF0000}Somente números, por favor.", "Ok", "");
  2047.                 return 1;
  2048.             }
  2049.             if(strval(inputtext) > 1913 && strval(inputtext) < 1974 && strlen(inputtext) > 0)
  2050.             {
  2051.                 PlayerInfo[playerid][pAnoNascimento] = strval(inputtext);
  2052.                 getdate(anonormal, mesnormal, dianormal);
  2053.                 new checaridadedomanolo = anonormal - PlayerInfo[playerid][pAnoNascimento];
  2054.                 if(PlayerInfo[playerid][pMesNascimento] > mesnormal)
  2055.                 {
  2056.                     checaridadedomanolo -= 1;
  2057.                 }
  2058.                 else if(PlayerInfo[playerid][pMesNascimento] == mesnormal && PlayerInfo[playerid][pDiaNascimento] > dianormal)
  2059.                 {
  2060.                     checaridadedomanolo -= 1;
  2061.                 }
  2062.                 PlayerInfo[playerid][pIdade] = checaridadedomanolo - 19;
  2063.                 AtualizarJogador(playerid);
  2064.                 format(string, sizeof(string), "Ok, você tem %d anos ~ \n\n{FFFFFF}Como você veio para Fort Carson? (IC)", PlayerInfo[playerid][pIdade]);
  2065.                 ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, string, "Nativo [ Fort Carson ]\nLegalmente [ Red County ]\nIlegalmente [ Liberty City ]", "Ok", "");
  2066.             }
  2067.             else if(strval(inputtext) < 1913 || strval(inputtext) > 1974)
  2068.             {
  2069.                 ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)\n\n{FF0000}Escolha um ano de nascimento entre: 1913 - 1974", "Ok", "Voltar");
  2070.                 return 1;
  2071.             }
  2072.         }
  2073.     }
  2074.     if(dialogid == 7)
  2075.     {
  2076.         if(response == 0)
  2077.         {
  2078.             ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)", "Ok", "Voltar");
  2079.             return 1;
  2080.         }
  2081.         if(response >= 1)
  2082.         {
  2083.  
  2084.             SetPlayerCameraPos(playerid, -303.5813,1051.5614,79.0741);
  2085.             SetPlayerCameraLookAt(playerid, -164.1154,1101.6588,19.5938);
  2086.             SetPlayerPos(playerid, -304.0317,1051.3651,20.8353);
  2087.             if(listitem == 0)
  2088.             {
  2089.                 PlayerInfo[playerid][pOrigem] = 1;
  2090.                 if(PlayerInfo[playerid][pSexo] == 1)
  2091.                 {
  2092.                     SetPlayerSkin(playerid, 161);
  2093.                     PlayerInfo[playerid][pSkin] = 161;
  2094.                 }
  2095.                 else if(PlayerInfo[playerid][pSexo] == 2)
  2096.                 {
  2097.                     SetPlayerSkin(playerid, 131);
  2098.                     PlayerInfo[playerid][pSkin] = 131;
  2099.                 }
  2100.                 ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Você é natural de {FF0000}Fort Carson{FFFFFF}, tens certeza de que quer ser nativo?", "Sim", "Não");
  2101.             }
  2102.             if(listitem == 1)
  2103.             {
  2104.                 PlayerInfo[playerid][pOrigem] = 2;
  2105.                 if(PlayerInfo[playerid][pSexo] == 1)
  2106.                 {
  2107.                     SetPlayerSkin(playerid, 26);
  2108.                     PlayerInfo[playerid][pSkin] = 26;
  2109.                 }
  2110.                 else if(PlayerInfo[playerid][pSexo] == 2)
  2111.                 {
  2112.                     SetPlayerSkin(playerid, 41);
  2113.                     PlayerInfo[playerid][pSkin] = 41;
  2114.                 }
  2115.                 ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Você iniciará na {FF0000}estação{FFFFFF}, tens certeza de que quer vir legalmente?", "Sim", "Não");
  2116.             }
  2117.             if(listitem == 2)
  2118.             {
  2119.                 PlayerInfo[playerid][pOrigem] = 3;
  2120.                 if(PlayerInfo[playerid][pSexo] == 1)
  2121.                 {
  2122.                     SetPlayerSkin(playerid, 184);
  2123.                     PlayerInfo[playerid][pSkin] = 184;
  2124.                 }
  2125.                 else if(PlayerInfo[playerid][pSexo] == 2)
  2126.                 {
  2127.                     SetPlayerSkin(playerid, 157);
  2128.                     PlayerInfo[playerid][pSkin] = 157;
  2129.                 }
  2130.                 ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{90EE90}FortCarson:RolePlay", "Você iniciará nas {FF0000}docas{A9C4E4}, tens certeza de que quer vir ilegamente?", "Sim", "Não");
  2131.             }
  2132.         }
  2133.     }
  2134.     if(dialogid == 8)
  2135.     {
  2136.         if(response)
  2137.         {
  2138.             ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, "Tens experiência em servidores de RP?", "Seja sincero", "sim", "não");
  2139.         }
  2140.         else
  2141.         {
  2142.             ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Como você veio para Fort Carson? (IC)", "Nativo [ Fort Carson ]\nLegalmente [ Red County ]\nIlegalmente [ Liberty City ]", "Ok", "Voltar");
  2143.             return 1;
  2144.         }
  2145.     }
  2146.     if(dialogid == 9)
  2147.     {
  2148.         if(response)
  2149.         {
  2150.             LimparChat(playerid, 125);
  2151.             PlayerInfo[playerid][pReg] = 1;
  2152.             PlayerInfo[playerid][pTut] = 1;
  2153.             TempoTuto[playerid] = 0;
  2154.             VerTuto[playerid] = 0;
  2155.             SpawnPlayer(playerid);
  2156.             SpawnarJogador(playerid);
  2157.             AtualizarJogador(playerid);
  2158.         }
  2159.         else
  2160.         {
  2161.             LimparChat(playerid, 125);
  2162.             PlayerInfo[playerid][pCalado] = 1;
  2163.             SemCMD[playerid] = 1;
  2164.             TempoTuto[playerid] = 1;
  2165.             VerTuto[playerid] = 1;
  2166.             SpawnarJogador(playerid);
  2167.             AtualizarJogador(playerid);
  2168.             SetPlayerPos(playerid, -210.7981,1131.9382,12.2688);
  2169.             SetPlayerCameraPos(playerid, -211.5025,1128.8004,13.4459);
  2170.             SetPlayerCameraLookAt(playerid, -211.5025,1128.8004,13.4458);
  2171.             return 1;
  2172.         }
  2173.     }
  2174.     if(dialogid == GPS)
  2175.     {
  2176.         if(response)
  2177.         {
  2178.             format(string, sizeof(string), "* %s, com seu GPS, ajusta-o para determinada posição.", NomeDoJogador(playerid));
  2179.             ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2180.             if(listitem == 0)
  2181.             {
  2182.                 SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Prefeitura de Fort Carson marcada no mapa.");
  2183.                 SetPlayerCheckpoint(playerid, -207.6064,1119.2050,20.4297,8.0);//Prefeitura ~ FortCarson
  2184.                 GpsCheckPoint[playerid] = CHECK_CHEGOU;
  2185.             }
  2186.             else if(listitem == 1) // SEMPRE POR ESSE POR ÚLTIMO, INCLUSIVE NO VALOR.
  2187.             {
  2188.                 SCM(playerid, COR_INFO, "{FFFF00}(!) {D2D2FF}: GPS desativado.");
  2189.                 DisablePlayerCheckpoint(playerid);  //GPS DESSLIGADO
  2190.             }
  2191.         }
  2192.     }
  2193.     if(dialogid == COMPRAR247PALOMINO)
  2194.     {
  2195.         if(response)
  2196.         {
  2197.             if(listitem == 0)
  2198.             {
  2199.                 if(PlayerInfo[playerid][pCNumero] == 0)
  2200.                 {
  2201.                     if(PlayerInfo[playerid][pMoney] < 400) return SCM(playerid, COR_INFO,"      {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
  2202.                     PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2203.                     new numerodotelrandomico = 30000000 + random(8999999);
  2204.                     PlayerInfo[playerid][pCNumero] = numerodotelrandomico;
  2205.                     format(string, sizeof(string), "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir um celular, número: %d. | valor: US$ 399,90", numerodotelrandomico);
  2206.                     GivePlayerMoney(playerid, -400);
  2207.                     PlayerInfo[playerid][pMoney] -= 400;
  2208.                     SCM(playerid, COR_INFO, string);
  2209.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /ligar [NÚMERO]");
  2210.                     AtualizarJogador(playerid);
  2211.                     return 1;
  2212.                 }
  2213.                 else
  2214.                 {
  2215.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tem um celular, caso queira mudar o número digite, /ligar 850");
  2216.                     return 1;
  2217.                 }
  2218.             }
  2219.             if(listitem == 1)
  2220.             {
  2221.                 if(PlayerInfo[playerid][pAgenda] == 0)
  2222.                 {
  2223.                     if(PlayerInfo[playerid][pMoney] < 30) return SCM(playerid, COR_INFO,"      {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
  2224.                     SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir uma agenda telefônica. | valor: US$ 29,90");
  2225.                     PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2226.                     PlayerInfo[playerid][pMoney] -= 30;
  2227.                     GivePlayerMoney(playerid, -30);
  2228.                     PlayerInfo[playerid][pAgenda] = 1;
  2229.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /telefone [ID]");
  2230.                     AtualizarJogador(playerid);
  2231.                 }
  2232.                 else
  2233.                 {
  2234.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tem uma agenda telefônica.");
  2235.                     return 1;
  2236.                 }
  2237.             }
  2238.             if(listitem == 2)
  2239.             {
  2240.                 if(PlayerInfo[playerid][pGPS] == 0)
  2241.                 {
  2242.                     if(PlayerInfo[playerid][pMoney] < 800) return SCM(playerid, COR_INFO,"      {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
  2243.                     SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir um GPS. | valor US$ 799,90");
  2244.                     SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Lembre-se, você só conseguirá usá-lo dentro de um veículo.");
  2245.                     PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2246.                     PlayerInfo[playerid][pMoney] -= 800;
  2247.                     GivePlayerMoney(playerid, -800);
  2248.                     PlayerInfo[playerid][pGPS] = 1;
  2249.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /gps");
  2250.                     AtualizarJogador(playerid);
  2251.                     return 1;
  2252.                 }
  2253.                 else
  2254.                 {
  2255.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tem um GPS.");
  2256.                     return 1;
  2257.                 }
  2258.             }
  2259.             if(listitem == 3)
  2260.             {
  2261.                 if(PlayerInfo[playerid][pRelogio] == 0)
  2262.                 {
  2263.                     if(PlayerInfo[playerid][pMoney] < 60) return SCM(playerid, COR_INFO,"      {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
  2264.                     SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir um relógio. | valor US$ 59,90");
  2265.                     PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2266.                     PlayerInfo[playerid][pMoney] -= 60;
  2267.                     GivePlayerMoney(playerid, -60);
  2268.                     PlayerInfo[playerid][pRelogio] = 1;
  2269.                     //MOSTRAR RELÓGIOIC
  2270.                     AtualizarJogador(playerid);
  2271.                     return 1;
  2272.                 }
  2273.                 else
  2274.                 {
  2275.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tem um relógio.");
  2276.                     return 1;
  2277.                 }
  2278.             }
  2279.         }
  2280.         else
  2281.         {
  2282.             return 1;
  2283.         }
  2284.     }
  2285.     // [ dialogid = RC:PD ]
  2286.     if(dialogid == BATERCARTAO)
  2287.     {
  2288.         if(response)
  2289.         {
  2290.             if(listitem == 0)
  2291.             {
  2292.                 if(PlayerInfo[playerid][pTrabalhando] == 0)
  2293.                 {
  2294.                     format(string, sizeof(string), "* O oficial %s pegou seu crachá do armário.", NomeDoJogador(playerid));
  2295.                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2296.                     GivePlayerWeapon(playerid, 24, 200);
  2297.                     GivePlayerWeapon(playerid, 3, 99999);
  2298.                     GivePlayerWeapon(playerid, 41, 2000);
  2299.                     PlayerInfo[playerid][pTrabalhando] = 1;
  2300.                 }
  2301.                 else if(PlayerInfo[playerid][pTrabalhando] == 1)
  2302.                 {
  2303.                     format(string, sizeof(string), "* O oficial %s guardou seu crachá no armário.", NomeDoJogador(playerid));
  2304.                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2305.                     ResetPlayerWeapons(playerid);
  2306.                     PlayerInfo[playerid][pTrabalhando] = 0;
  2307.                 }
  2308.             }
  2309.             if(listitem == 1)
  2310.             {
  2311.                 format(string, sizeof(string), "* O oficial %s vestiu o uniforme da S.W.A.T.", NomeDoJogador(playerid));
  2312.                 ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2313.                 SetPlayerSkin(playerid, 285);
  2314.             }
  2315.             if(listitem == 2)
  2316.             {
  2317.                 ShowPlayerDialog(playerid, BATERCARTAO1, DIALOG_STYLE_LIST, "RC:PD ~ Uniformes","Cadete\nOficial 1\nOficial 2\nSargento\nCapitão\nSub Sheriff\nSheriff", "Vestir", "Cancelar");
  2318.             }
  2319.             if(listitem == 3)
  2320.             {
  2321.                 ShowPlayerDialog(playerid, BATERCARTAO2, DIALOG_STYLE_LIST, "RC:PD ~ Disfarces","Maxicano rico\nAsiático rico\nHomem rico\nNegro rico\nMendigo\nMulher rica\nEmpresário\nEmpresária\nFazendeira\nFazendeiro\nTraficante de drogas\nGangster\nCivil", "Vestir", "Cancelar");
  2322.             }
  2323.         }
  2324.     }
  2325.     if(dialogid == BATERCARTAO1)
  2326.     {
  2327.         if(response)
  2328.         {
  2329.             if(listitem == 0) // Cadete
  2330.             {
  2331.                 SetPlayerSkin(playerid, 71);
  2332.             }
  2333.             if(listitem == 1) // Oficial 1
  2334.             {
  2335.                 SetPlayerSkin(playerid, 284);
  2336.             }
  2337.             if(listitem == 2) // Oficial 2
  2338.             {
  2339.                 SetPlayerSkin(playerid, 282);
  2340.             }
  2341.             if(listitem == 3) // Sargento
  2342.             {
  2343.                 SetPlayerSkin(playerid, 281);
  2344.             }
  2345.             if(listitem == 4) // Capitão
  2346.             {
  2347.                 SetPlayerSkin(playerid, 280);
  2348.             }
  2349.             if(listitem == 5) // Sub-Sheriff
  2350.             {
  2351.                 SetPlayerSkin(playerid, 288);
  2352.             }
  2353.             if(listitem == 6) // Sheriff
  2354.             {
  2355.                 SetPlayerSkin(playerid, 283);
  2356.             }
  2357.         }
  2358.     }
  2359.     if(dialogid == BATERCARTAO2)
  2360.     {
  2361.         if(response)
  2362.         {
  2363.             if(listitem == 0)
  2364.             {
  2365.                 SetPlayerSkin(playerid, 223);
  2366.             }
  2367.             if(listitem == 1)
  2368.             {
  2369.                 SetPlayerSkin(playerid, 120);
  2370.             }
  2371.             if(listitem == 2)
  2372.             {
  2373.                 SetPlayerSkin(playerid, 240);
  2374.             }
  2375.             if(listitem == 3)
  2376.             {
  2377.                 SetPlayerSkin(playerid, 296);
  2378.             }
  2379.             if(listitem == 4)
  2380.             {
  2381.                 SetPlayerSkin(playerid, 137);
  2382.             }
  2383.             if(listitem == 5)
  2384.             {
  2385.                 SetPlayerSkin(playerid, 214);
  2386.             }
  2387.             if(listitem == 6)
  2388.             {
  2389.                 SetPlayerSkin(playerid, 294);
  2390.             }
  2391.             if(listitem == 7)
  2392.             {
  2393.                 SetPlayerSkin(playerid, 150);
  2394.             }
  2395.             if(listitem == 8)
  2396.             {
  2397.                 SetPlayerSkin(playerid, 201);
  2398.             }
  2399.             if(listitem == 9)
  2400.             {
  2401.                 SetPlayerSkin(playerid, 162);
  2402.             }
  2403.             if(listitem == 10)
  2404.             {
  2405.                 SetPlayerSkin(playerid, 29);
  2406.             }
  2407.             if(listitem == 11)
  2408.             {
  2409.                 SetPlayerSkin(playerid, 293);
  2410.             }
  2411.             if(listitem == 12)
  2412.             {
  2413.                 SetPlayerSkin(playerid, 59);
  2414.             }
  2415.         }
  2416.     }
  2417.     if(dialogid == EQUIPAR) //Arma branca\nArma secundárias\nArma primárias\nUltilitários
  2418.     {
  2419.         if(response)
  2420.         {
  2421.             if(listitem == 0)
  2422.             {
  2423.                 ShowPlayerDialog(playerid, EQUIPAR1, DIALOG_STYLE_LIST, "Escolha sua arma branca.","{FFFFFF}Cassetete\nFaca", "Selecionar", "Cancelar");
  2424.             }
  2425.             if(listitem == 1)
  2426.             {
  2427.                 ShowPlayerDialog(playerid, EQUIPAR2, DIALOG_STYLE_LIST, "Escolha sua arma secundária.","{FFFFFF}9mm\n9mm silenciadora\nDesert eagle", "Selecionar", "Cancelar");
  2428.             }
  2429.             if(listitem == 2)
  2430.             {
  2431.                 ShowPlayerDialog(playerid, EQUIPAR3, DIALOG_STYLE_LIST, "Escolha sua arma primária.","{FFFFFF}Escopeta\nEscopeta de combate\nMp5\nM4\nSniper rifle", "Selecionar", "Cancelar");
  2432.             }
  2433.             if(listitem == 3)
  2434.             {
  2435.                 ShowPlayerDialog(playerid, EQUIPAR4, DIALOG_STYLE_LIST, "Escolha seu ultilitário.","{FFFFFF}Bomba de gás\nSpray de pimenta\nÓculos de visão noturna\nColete", "Selecionar", "Cancelar");
  2436.             }
  2437.         }
  2438.     }
  2439.     if(dialogid == EQUIPAR1)
  2440.     {
  2441.         if(response)
  2442.         {
  2443.             if(listitem == 0)
  2444.             {
  2445.                 GivePlayerWeapon(playerid, 3, 999);
  2446.             }
  2447.             if(listitem == 1)
  2448.             {
  2449.                 GivePlayerWeapon(playerid, 4, 999);
  2450.             }
  2451.         }
  2452.     }
  2453.     if(dialogid == EQUIPAR2)
  2454.     {
  2455.         if(response)
  2456.         {
  2457.             GetPlayerWeaponData(playerid, 1, armabranca, municao);
  2458.             GetPlayerWeaponData(playerid, 3, armaprimaria, municao2);
  2459.             GetPlayerWeaponData(playerid, 4, armaprimaria1, municao21);
  2460.             GetPlayerWeaponData(playerid, 5, armaprimaria2, municao22);
  2461.             GetPlayerWeaponData(playerid, 6, armaprimaria3, municao23);
  2462.             GetPlayerWeaponData(playerid, 8, armaulti1, municao31);
  2463.             GetPlayerWeaponData(playerid, 9, armaulti2, municao32);
  2464.             GetPlayerWeaponData(playerid, 11, armaulti3, municao33);
  2465.             if(listitem == 0)
  2466.             {
  2467.                 ResetPlayerWeapons(playerid);
  2468.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2469.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2470.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2471.                 GivePlayerWeapon(playerid, armaprimaria, municao2);
  2472.                 GivePlayerWeapon(playerid, armaprimaria1, municao21);
  2473.                 GivePlayerWeapon(playerid, armaprimaria2, municao22);
  2474.                 GivePlayerWeapon(playerid, armaprimaria3, municao23);
  2475.                 GivePlayerWeapon(playerid, armabranca, municao);
  2476.                 GivePlayerWeapon(playerid, 22, 500);
  2477.             }
  2478.             if(listitem == 1)
  2479.             {
  2480.                 ResetPlayerWeapons(playerid);
  2481.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2482.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2483.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2484.                 GivePlayerWeapon(playerid, armaprimaria, municao2);
  2485.                 GivePlayerWeapon(playerid, armaprimaria1, municao21);
  2486.                 GivePlayerWeapon(playerid, armaprimaria2, municao22);
  2487.                 GivePlayerWeapon(playerid, armaprimaria3, municao23);
  2488.                 GivePlayerWeapon(playerid, armabranca, municao);
  2489.                 GivePlayerWeapon(playerid, 23, 500);
  2490.             }
  2491.             if(listitem == 2)
  2492.             {
  2493.                 ResetPlayerWeapons(playerid);
  2494.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2495.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2496.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2497.                 GivePlayerWeapon(playerid, armaprimaria, municao2);
  2498.                 GivePlayerWeapon(playerid, armaprimaria1, municao21);
  2499.                 GivePlayerWeapon(playerid, armaprimaria2, municao22);
  2500.                 GivePlayerWeapon(playerid, armaprimaria3, municao23);
  2501.                 GivePlayerWeapon(playerid, armabranca, municao);
  2502.                 GivePlayerWeapon(playerid, 24, 500);
  2503.             }
  2504.         }
  2505.     }
  2506.     if(dialogid == EQUIPAR3)
  2507.     {
  2508.         if(response)
  2509.         {
  2510.             GetPlayerWeaponData(playerid, 1, armabranca, municao);
  2511.             GetPlayerWeaponData(playerid, 2, armasecundaria, municao1);
  2512.             GetPlayerWeaponData(playerid, 8, armaulti1, municao31);
  2513.             GetPlayerWeaponData(playerid, 9, armaulti2, municao32);
  2514.             GetPlayerWeaponData(playerid, 11, armaulti3, municao33);
  2515.             if(listitem == 0)
  2516.             {
  2517.                 ResetPlayerWeapons(playerid);
  2518.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2519.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2520.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2521.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2522.                 GivePlayerWeapon(playerid, armabranca, municao);
  2523.                 GivePlayerWeapon(playerid, 25, 500);
  2524.             }
  2525.             if(listitem == 1)
  2526.             {
  2527.                 ResetPlayerWeapons(playerid);
  2528.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2529.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2530.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2531.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2532.                 GivePlayerWeapon(playerid, armabranca, municao);
  2533.                 GivePlayerWeapon(playerid, 27, 500);
  2534.             }
  2535.             if(listitem == 2)
  2536.             {
  2537.                 ResetPlayerWeapons(playerid);
  2538.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2539.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2540.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2541.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2542.                 GivePlayerWeapon(playerid, armabranca, municao);
  2543.                 GivePlayerWeapon(playerid, 29, 500);
  2544.             }
  2545.             if(listitem == 3)
  2546.             {
  2547.                 ResetPlayerWeapons(playerid);
  2548.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2549.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2550.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2551.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2552.                 GivePlayerWeapon(playerid, armabranca, municao);
  2553.                 GivePlayerWeapon(playerid, 31, 500);
  2554.             }
  2555.             if(listitem == 4)
  2556.             {
  2557.                 ResetPlayerWeapons(playerid);
  2558.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2559.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2560.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2561.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2562.                 GivePlayerWeapon(playerid, armabranca, municao);
  2563.                 GivePlayerWeapon(playerid, 34, 500);
  2564.             }
  2565.         }
  2566.     }
  2567.     if(dialogid == EQUIPAR4)
  2568.     {
  2569.         if(response)
  2570.         {
  2571.             GetPlayerWeaponData(playerid, 1, armabranca, municao);
  2572.             GetPlayerWeaponData(playerid, 2, armasecundaria, municao1);
  2573.             GetPlayerWeaponData(playerid, 3, armaprimaria, municao2);
  2574.             GetPlayerWeaponData(playerid, 4, armaprimaria1, municao21);
  2575.             GetPlayerWeaponData(playerid, 5, armaprimaria2, municao22);
  2576.             GetPlayerWeaponData(playerid, 6, armaprimaria3, municao23);
  2577.             GetPlayerWeaponData(playerid, 8, armaulti1, municao31);
  2578.             GetPlayerWeaponData(playerid, 9, armaulti2, municao32);
  2579.             GetPlayerWeaponData(playerid, 11, armaulti3, municao33);
  2580.             if(listitem == 0)
  2581.             {
  2582.                 ResetPlayerWeapons(playerid);
  2583.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2584.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2585.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2586.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2587.                 GivePlayerWeapon(playerid, armaprimaria, municao2);
  2588.                 GivePlayerWeapon(playerid, armaprimaria1, municao21);
  2589.                 GivePlayerWeapon(playerid, armaprimaria2, municao22);
  2590.                 GivePlayerWeapon(playerid, armaprimaria3, municao23);
  2591.                 GivePlayerWeapon(playerid, armabranca, municao);
  2592.                 GivePlayerWeapon(playerid, 17, 500);
  2593.             }
  2594.             if(listitem == 1)
  2595.             {
  2596.                 ResetPlayerWeapons(playerid);
  2597.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2598.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2599.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2600.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2601.                 GivePlayerWeapon(playerid, armaprimaria, municao2);
  2602.                 GivePlayerWeapon(playerid, armaprimaria1, municao21);
  2603.                 GivePlayerWeapon(playerid, armaprimaria2, municao22);
  2604.                 GivePlayerWeapon(playerid, armaprimaria3, municao23);
  2605.                 GivePlayerWeapon(playerid, armabranca, municao);
  2606.                 GivePlayerWeapon(playerid, 41, 2000);
  2607.             }
  2608.             if(listitem == 2)
  2609.             {
  2610.                 ResetPlayerWeapons(playerid);
  2611.                 GivePlayerWeapon(playerid, armaulti3, municao33);
  2612.                 GivePlayerWeapon(playerid, armaulti2, municao32);
  2613.                 GivePlayerWeapon(playerid, armaulti1, municao31);
  2614.                 GivePlayerWeapon(playerid, armasecundaria, municao1);
  2615.                 GivePlayerWeapon(playerid, armaprimaria, municao2);
  2616.                 GivePlayerWeapon(playerid, armaprimaria1, municao21);
  2617.                 GivePlayerWeapon(playerid, armaprimaria2, municao22);
  2618.                 GivePlayerWeapon(playerid, armaprimaria3, municao23);
  2619.                 GivePlayerWeapon(playerid, armabranca, municao);
  2620.                 GivePlayerWeapon(playerid, 44, 500);
  2621.             }
  2622.             if(listitem == 3)
  2623.             {
  2624.                 SetPlayerArmour(playerid, 100);
  2625.             }
  2626.         }
  2627.     }
  2628.     if(dialogid == AJUDA)
  2629.     {
  2630.         if(response)
  2631.         {
  2632.             if(listitem == 0) // SOLICITAR ADMINISTRADOR
  2633.             {
  2634.                 OnPlayerCommandText(playerid, "/relatorio Oi, por favor, alguém poderia vir aqui me ajudar?");
  2635.             }
  2636.             if(listitem == 1) // AJUDA ADMINISTRADOR
  2637.             {
  2638.                 OnPlayerCommandText(playerid, "/aa");
  2639.             }
  2640.             if(listitem == 2) // AJUDA JOGADOR
  2641.             {
  2642.                 OnPlayerCommandText(playerid, "/ajudaplayer");
  2643.             }
  2644.             if(listitem == 3) // AJUDA EMPREGO (ORG/Empregos secundários)
  2645.             {
  2646.                 OnPlayerCommandText(playerid, "/ajudaemprego");
  2647.             }
  2648.             if(listitem == 4) // AJUDA LÍDER
  2649.             {
  2650.                 OnPlayerCommandText(playerid, "/ajudalider");
  2651.             }
  2652.         }
  2653.     }
  2654.     if(dialogid == DOCUMENTOS)
  2655.     {
  2656.         if(response)
  2657.         {
  2658.             if(listitem == 0)
  2659.             {
  2660.                 format(string, sizeof(string), "* %s confere seu dinheiro.", NomeDoJogador(playerid));
  2661.                 ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2662.                 SetPlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  2663.             }
  2664.             if(listitem == 1)
  2665.             {
  2666.                 format(string, sizeof(string), "* %s confere sua identidade.", NomeDoJogador(playerid));
  2667.                 ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2668.                 ShowStats(playerid,playerid);
  2669.             }
  2670.         }
  2671.     }
  2672.     if(dialogid == OBTERDOC)
  2673.     {
  2674.         if(response)       /*Título de eleitor\nCarteira de trabalho\nLicenças", "Esc*/
  2675.         {
  2676.             if(listitem == 0) // Título de eleitor
  2677.             {
  2678.                 if(PlayerInfo[playerid][pTituloE] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tirou seu título de eleitor.");
  2679.                 PlayerInfo[playerid][pTituloE] = 1;
  2680.             }
  2681.             if(listitem == 1)
  2682.             {
  2683.                 OnPlayerCommandText(playerid, "/pcarteiradtrabporramerdadpokrlsouvozaoqq");
  2684.             }
  2685.             if(listitem == 2)
  2686.             {
  2687.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {A9C4E4}: Para obter licenças de direção, vá à escola de pilotagem, e nos apresente seu resultado.");
  2688.             }
  2689.         }
  2690.     }
  2691.     return 0;
  2692. }
  2693.  
  2694. public OnPlayerEnterCheckpoint(playerid)
  2695. {
  2696.     PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  2697.     DisablePlayerCheckpoint(playerid);
  2698.     GpsCheckPoint[playerid] = CHECK_CHEGOU;
  2699.     GameTextForPlayer(playerid, "~r~Voce chegou no destino.", 5000, 1);
  2700.     return 1;
  2701. }
  2702.  
  2703. public OnPlayerEnterVehicle(playerid, vehicleid)
  2704. {
  2705.     new placa[10];
  2706.     format(placa, sizeof(placa), "~g~FC-%d", vehicleid);
  2707.     TextDrawSetString(Textdraw31, placa);
  2708.     return 1;
  2709. }
  2710.  
  2711. public OnPlayerExitVehicle(playerid, vehicleid)
  2712. {
  2713.     JanelaAberta[playerid] = 1;
  2714.     veiculonovo = GetPlayerVehicleID(playerid);
  2715.     if(CriouVeiculo[playerid] == 1)
  2716.     {
  2717.         CriouVeiculo[playerid] = 0;
  2718.         DestroyVehicle(veiculonovo);
  2719.     }
  2720.     return 1;
  2721. }
  2722.  
  2723. // [ OnPlayerText ]
  2724. public OnPlayerText(playerid, text[])
  2725. {
  2726.     new string[256];
  2727.     new tmp[256];
  2728.     new y,m,d;
  2729.     new h,mi,s;
  2730.     getdate(y,m,d);
  2731.     gettime(h,mi,s);
  2732.     if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está calado.");
  2733.     if(PlayerInfo[playerid][pReg] == 0) return 1;
  2734.     static simbolos[][]= { "(:", "[:", "{:", ":}", ":D", ":)", ":]", ";D", ": )", ";)", ";]", "( :", ";}" };
  2735.     static simbolos2[][]= { ":(", ":[", ":/", ";/", ";(", ": (", "''/", "\''", "D:", "):", ") :" };
  2736.     for(new a; a < sizeof(simbolos); ++a) {
  2737.         if((strfind(text, simbolos[a], true) != -1)) {
  2738.             format(string, sizeof(string), "* %s esboça um sorriso.", NomeDoJogador(playerid));
  2739.             ProxDetector(10.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2740.             return 0;
  2741.         }
  2742.     }
  2743.     for(new a; a < sizeof(simbolos2); ++a) {
  2744.         if((strfind(text, simbolos2[a], true) != -1)) {
  2745.             format(string, sizeof(string), "* %s faz uma cara de tristeza.", NomeDoJogador(playerid));
  2746.             ProxDetector(10.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  2747.             return 0;
  2748.         }
  2749.     }
  2750.     if(CelularOcupado[playerid] != 255)
  2751.     {
  2752.         new stringdoouvinte[128];
  2753.         new idx;
  2754.         tmp = strtok(text, idx);
  2755.         format(string, sizeof(string), "%s diz(Celular): %s", NomeDoJogador(playerid), text);
  2756.         format(stringdoouvinte, sizeof(stringdoouvinte), "{FFFF00}Celular{FFFFFF}: %s", text);
  2757.         ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2758.         if(PlayerInfo[CelularOcupado[playerid]][pLogado] == 1)
  2759.         {
  2760.             if(CelularOcupado[CelularOcupado[playerid]] == playerid)
  2761.             {
  2762.                 SCM(CelularOcupado[playerid], COR_INFO, stringdoouvinte);
  2763.             }
  2764.         }
  2765.         else
  2766.         {
  2767.             SCM(playerid, COR_INFO, "      {FF0000}ERRO: {AFAFAF}O celular foi desligado.");
  2768.         }
  2769.         return 0;
  2770.     }
  2771.     if(PlayerInfo[playerid][pAdmin] == 0) ANTIFLOOD[playerid] ++;
  2772.     if(ANTIFLOOD[playerid] >= 1)
  2773.     {
  2774.         KillTimer(ANTIFLOODTIMER[playerid]);
  2775.         ANTIFLOODTIMER[playerid] = SetTimerEx("ResetarChat",1500,false,"i",playerid);
  2776.     }
  2777.     if(ANTIFLOOD[playerid] == 10) SCM(playerid, COR_INFO,"{33CCFF}ADMIN{A9C4E4}: Pare com o FLOOD.");
  2778.     if(ANTIFLOOD[playerid] == 30)
  2779.     {
  2780.         format(string, sizeof(string), "%s (%d), foi kickado automaticamente por floodar no chat.", NomeDoJogador(playerid), playerid);
  2781.         MensagemAdmin(COR_INFO, string, 1);
  2782.         SCM(playerid, COR_INFO, "{33CCFF}ADMIN{A9C4E4}: Você foi kickado automaticamente por floodar no chat.");
  2783.         format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s foi kickado automaticamente. Motivo: Flood no chat.",d,m,y,h,mi,s,NomeDoJogador(playerid));
  2784.         KickLog(string);
  2785.         Kick(playerid);
  2786.         KillTimer(ANTIFLOODTIMER[playerid]);
  2787.     }
  2788.     if(chatreal)
  2789.     {
  2790.         if(!IsPlayerInAnyVehicle(playerid))
  2791.         {
  2792.             if(PlayerInfo[playerid][pLogado] == 0)
  2793.             {
  2794.                 return 0;
  2795.             }
  2796.             if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] >= 1 || (PlayerInfo[playerid][pAdmin] == 0))
  2797.             {
  2798.                 ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,0,0,0,1,1);
  2799.                 format(string, sizeof(string), "%s diz: %s", NomeDoJogador(playerid), text);
  2800.                 SetPlayerChatBubble(playerid, string, COR_BRANCA, 20.0, 8000);
  2801.                 ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2802.             }
  2803.             else if(PlayerInfo[playerid][pATrabalhando] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
  2804.             {
  2805.                 ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,0,0,0,1,1);
  2806.                 format(string, sizeof(string), "{33CCFF}(( administrador{A9C4E4}: {33CCFF}%s {A9C4E4}diz: {FFFFFF}%s {33CCFF}))", NomeDoJogador(playerid), text);
  2807.                 SetPlayerChatBubble(playerid, string, COR_BRANCA, 20.0, 8000);
  2808.                 ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2809.             }
  2810.         }
  2811.         else
  2812.         {
  2813.             if(PlayerInfo[playerid][pLogado] == 0)
  2814.             {
  2815.                 return 0;
  2816.             }
  2817.             else if(PlayerInfo[playerid][pATrabalhando] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
  2818.             {
  2819.                 format(string, sizeof(string), "{33CCFF}(( administrador{A9C4E4}: {33CCFF}%s {A9C4E4}diz: {FFFFFF}%s {33CCFF}))", NomeDoJogador(playerid), text);
  2820.                 SetPlayerChatBubble(playerid, string, COR_BRANCA, 20.0, 8000);
  2821.                 ProxDetector(20.0, playerid, string,COLOR_FADE5,COLOR_FADE5,COLOR_FADE5,COLOR_FADE5,COLOR_FADE5);
  2822.             }
  2823.         }
  2824.     }
  2825.     return 0;
  2826. }
  2827.  
  2828. //================= [ OnPlayerCommand ] =================
  2829. public OnPlayerCommandText(playerid, cmdtext[])
  2830. {
  2831.     new string[256], cmd[256], tmp[256], idx;
  2832.     new jogador;
  2833.     cmd = strtok(cmdtext, idx);
  2834.  
  2835. //================= [ Comandos de ajuda ] ===============
  2836.     if(SemCMD[playerid] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não pode usar nenhum comando.");
  2837.     if(strcmp(cmdtext, "/creditos", true) == 0)
  2838.     {
  2839.         SCM(playerid, COR_INFO, "{FFFF00}================================================");
  2840.         SCM(playerid, COR_INFO, "{FFFFFF}                         FortCarson RolePlay");
  2841.         SCM(playerid, COR_INFO, "{FFFFFF}         Copyright Rodney Francalim");
  2842.         SCM(playerid, COR_INFO, "Fundador: {FFFFFF}Rodney_Francalim");
  2843.         SCM(playerid, COR_INFO, "Apoio:{FFFFFF} Evolution SA:MP");
  2844.         SCM(playerid, COR_INFO, "Créditos: {FFFF00}Rodney_Francalim - Pela base do GM e a maioria dos sistemas");
  2845.         SCM(playerid, COR_INFO, "          {FFFF00}Monster          - Pelo sistema de registro/login");
  2846.         SCM(playerid, COR_INFO, "          {FFFF00}Chainksain_666   - Pelo relógio");
  2847.         SCM(playerid, COR_INFO, "          {FFFF00}Ricardo Brasil   - Por alguns comandos");
  2848.         SCM(playerid, COR_INFO, "{FFFF00}================================================");
  2849.         return 1;
  2850.     }
  2851.     if(strcmp(cmdtext, "/ajuda", true) == 0)
  2852.     {
  2853.         ShowPlayerDialog(playerid, AJUDA, DIALOG_STYLE_LIST, "Escolha o seu tipo de ajuda.", "Solicitar administrador\nAjuda administrador\nAjuda jogador\nAjuda emprego\nAjuda líder", "Escolher", "Sair");
  2854.         return 1;
  2855.     }
  2856.     // [ ADMINISTRADOR ]
  2857.     if(strcmp(cmdtext, "/ajudaadmin", true) == 0 || strcmp(cmdtext, "/aa", true) == 0)
  2858.     {
  2859.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  2860.         if(PlayerInfo[playerid][pAdmin] == 1)
  2861.         {
  2862.             SCM(playerid, COR_INFO, "");
  2863.             SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2864.             SCM(playerid, COR_INFO, "Administrador:");
  2865.             SCM(playerid, COR_INFO, "(/a)dmin /trabalhar /avisar /ir /trazer /tapa /setint");
  2866.             SCM(playerid, COR_INFO, "/matar /congelar /tempo /mudarhora /lc(/limparchat)");
  2867.             SCM(playerid, COR_INFO, "/explodir /ip /calar /dargrana /semooc /kick /blockcmd");
  2868.         }
  2869.         else if(PlayerInfo[playerid][pAdmin] == 2)
  2870.         {
  2871.             SCM(playerid, COR_INFO, "");
  2872.             SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2873.             SCM(playerid, COR_INFO, "Administrador dono:");
  2874.             SCM(playerid, COR_INFO, "(/a)dmin /trabalhar /avisar /ir /trazer /tapa /setint");
  2875.             SCM(playerid, COR_INFO, "/matar /congelar /tempo /mudarhora /lc(/limparchat)");
  2876.             SCM(playerid, COR_INFO, "/explodir /ip /calar /dargrana /semooc /kick /blockcmd");
  2877.             SCM(playerid, COR_INFO, "/espiar /sairespiar (/v)eiculo /darvida /darcolete /lider");
  2878.             SCM(playerid, COR_INFO, "/daradmin /ban");
  2879.             if(strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)
  2880.             {
  2881.                 SCM(playerid, COR_INFO, "/setpos /gmx");
  2882.             }
  2883.         }
  2884.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2885.         return 1;
  2886.     }
  2887.     // [ LÍDER ]
  2888.     if(strcmp(cmdtext, "/ajudalider", true) == 0)
  2889.     {
  2890.         if(PlayerInfo[playerid][pLider] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é líder.");
  2891.         SCM(playerid, COR_INFO, "");
  2892.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2893.         SCM(playerid, COR_INFO, "/convidar /promover /demitir");
  2894.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2895.         return 1;
  2896.     }
  2897.     // [ PLAYER ]
  2898.     if(strcmp(cmdtext, "/ajudaplayer", true) == 0)
  2899.     {
  2900.         SCM(playerid, COR_INFO, "");
  2901.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2902.         SCM(playerid, COR_INFO, "Comandos OOC:");
  2903.         SCM(playerid, COR_INFO, "/admins /b (/o)oc (/re)latorio /entrar /sair");
  2904.         SCM(playerid, COR_INFO, "Comandos IC:");
  2905.         SCM(playerid, COR_INFO, "/gps /ligar /atender /desligar /sms /agenda /comprar");
  2906.         SCM(playerid, COR_INFO, "/carteira /eu /pensar /tentar /do /carro /abastecer");
  2907.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2908.         return 1;
  2909.     }
  2910.     if(strcmp(cmdtext, "/ajudaemprego", true) == 0)
  2911.     {
  2912.         if(PlayerInfo[playerid][pORG] == 0 && PlayerInfo[playerid][pLider] == 0 && PlayerInfo[playerid][pEmprego] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não tem um trabalho.");
  2913.         SCM(playerid, COR_INFO, "");
  2914.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2915.         // Começando por ORGs
  2916.         if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
  2917.         {
  2918.             if(PlayerInfo[playerid][pCargo] >= 1)
  2919.             {
  2920.                 SCM(playerid, COR_INFO, "/ap /baterponto /equipar");
  2921.                 return 1;
  2922.             }
  2923.         }
  2924.         SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
  2925.         return 1;
  2926.     }
  2927. //================= [ Comandos de admin ] ===============
  2928.     if(strcmp(cmdtext, "/dp", true) == 0)  // TEMPORÁRIO
  2929.     {
  2930.         SetPlayerPos(playerid, -217.8412,979.1472,19.5040);
  2931.         return 1;
  2932.     }
  2933.     if(strcmp(cmdtext,"/alfa", true) == 0) // TEMPORÁRIO
  2934.     {
  2935.         PlayerInfo[playerid][pAdmin] = 2;
  2936.         AdminsOnline++;
  2937.         AtualizarJogador(playerid);
  2938.         return 1;
  2939.     }
  2940.     if(strcmp(cmdtext, "/arelogioo", true) == 0)
  2941.     {
  2942.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  2943.         TextDrawHideForPlayer(playerid, Textdraw0); //Horas
  2944.         TextDrawHideForPlayer(playerid, Textdraw1); //Minutos
  2945.         TextDrawHideForPlayer(playerid, Textdraw2); //Segundos
  2946.         TextDrawHideForPlayer(playerid, Textdraw3); //Dia
  2947.         TextDrawHideForPlayer(playerid, Textdraw4); //Mes
  2948.         TextDrawHideForPlayer(playerid, Textdraw5); //Ano
  2949.         TextDrawHideForPlayer(playerid, Textdraw6); //Horas(min)
  2950.         TextDrawHideForPlayer(playerid, Textdraw7); //Minutos(seg)
  2951.         TextDrawHideForPlayer(playerid, Textdraw8); //DiaDaSemana
  2952.         SCM(playerid, COR_INFO, "{33CCFF}(!) {A9C4E4}: Relógio removido.");
  2953.         return 1;
  2954.     }
  2955.     if(strcmp(cmdtext, "/arelogiom", true) == 0)
  2956.     {
  2957.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  2958.         TextDrawShowForPlayer(playerid, Textdraw0); //Horas
  2959.         TextDrawShowForPlayer(playerid, Textdraw1); //Minutos
  2960.         TextDrawShowForPlayer(playerid, Textdraw2); //Segundos
  2961.         TextDrawShowForPlayer(playerid, Textdraw3); //Dia
  2962.         TextDrawShowForPlayer(playerid, Textdraw4); //Mes
  2963.         TextDrawShowForPlayer(playerid, Textdraw5); //Ano
  2964.         TextDrawShowForPlayer(playerid, Textdraw6); //Horas(min)
  2965.         TextDrawShowForPlayer(playerid, Textdraw7); //Minutos(seg)
  2966.         TextDrawShowForPlayer(playerid, Textdraw8); //DiaDaSemana
  2967.         SCM(playerid, COR_INFO, "{33CCFF}(!) {A9C4E4}: Relógio adicionado.");
  2968.         return 1;
  2969.     }
  2970.     if(strcmp(cmdtext, "/trabalhar", true) ==0 || strcmp(cmd, "/jogar", true) == 0)
  2971.     {
  2972.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  2973.         if(PlayerInfo[playerid][pATrabalhando] == 0)
  2974.         {
  2975.             GetPlayerHealth(playerid, saudedeademir);
  2976.             GetPlayerArmour(playerid, coletedeademir);
  2977.             PlayerInfo[playerid][pATrabalhando] = 1;
  2978.             format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O {33CCFF}%s %s {A9C4E4}entrou no modo de trabalho.", NivelDeAdm(playerid), NomeDoJogador(playerid));
  2979.             SendClientMessageToAll(COR_INFO, string);
  2980.             SetPlayerColor(playerid,COR_AZULCLARO);
  2981.             SetPlayerHealth(playerid,9999),SetPlayerArmour(playerid,9999);
  2982.             Texto3DAdmin[playerid] = Create3DTextLabel("Admin: Dúvidas? Ajuda?", COR_TEXTO3D,0,0,0,50,-1,1);
  2983.             Attach3DTextLabelToPlayer(Texto3DAdmin[playerid], playerid, 0,0,0);
  2984.             return 1;
  2985.         }
  2986.         else if(PlayerInfo[playerid][pATrabalhando] == 1)
  2987.         {
  2988.             SetPlayerHealth(playerid, saudedeademir);
  2989.             SetPlayerArmour(playerid, coletedeademir);
  2990.             PlayerInfo[playerid][pATrabalhando] = 0;
  2991.             format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O {33CCFF}%s %s {A9C4E4}entrou no modo de jogo.", NivelDeAdm(playerid), NomeDoJogador(playerid));
  2992.             SendClientMessageToAll(COR_INFO, string);
  2993.             SetPlayerColor(playerid,COR_BRANCA);
  2994.             Delete3DTextLabel(Texto3DAdmin[playerid]);
  2995.             Create3DTextLabel("",0xFFFFFF00,0,0,0,50,-1,1);
  2996.             return 1;
  2997.         }
  2998.         return 1;
  2999.     }
  3000.     if(strcmp(cmdtext, "/semooc", true) == 0)
  3001.     {
  3002.         if(IsPlayerConnected(playerid))
  3003.         {
  3004.             if(PlayerInfo[playerid][pAdmin] >= 1 && (SemOOC == 0))
  3005.             {
  3006.                 SemOOC = 1;
  3007.                 format(string, sizeof(string), "      {33CCFF}ADMIN{A9C4E4}: Chat Global desativado pelo administrador: %s", NomeDoJogador(playerid));
  3008.                 MensagemAdmin(COR_INFO, string, 1);
  3009.             }
  3010.             else if(PlayerInfo[playerid][pAdmin] >= 2 && (SemOOC == 1))
  3011.             {
  3012.                 SemOOC = 0;
  3013.                 format(string, sizeof(string), "      {33CCFF}ADMIN{A9C4E4}: Chat Global ativado pelo administrador: %s", NomeDoJogador(playerid));
  3014.                 MensagemAdmin(COR_INFO, string, 1);
  3015.             }
  3016.             else
  3017.             {
  3018.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3019.             }
  3020.         }
  3021.         return 1;
  3022.     }
  3023.  
  3024.     // [ KICK/BAN ]
  3025.     if(strcmp(cmd, "/kick", true) == 0)
  3026.     {
  3027.         if(PlayerInfo[playerid][pLogado] == 1)
  3028.         {
  3029.             tmp = strtok(cmdtext, idx);
  3030.             if(!strlen(tmp))
  3031.             {
  3032.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /kick [ID] [MOTIVO]");
  3033.                 return 1;
  3034.             }
  3035.             new motstr[128];
  3036.             new strlog[128];
  3037.             jogador = ReturnUser(tmp);
  3038.             if (PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é um administrador.");
  3039.             if(!IsPlayerConnected(jogador)) { SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este jogador não está online"); return 1; }
  3040.             if(jogador != INVALID_PLAYER_ID)
  3041.             {
  3042.                 new length = strlen(cmdtext);
  3043.                 while ((idx < length) && (cmdtext[idx] <= ' '))
  3044.                 {
  3045.                     idx++;
  3046.                 }
  3047.                 new offset = idx;
  3048.                 new result[64];
  3049.                 while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3050.                 {
  3051.                     result[idx - offset] = cmdtext[idx];
  3052.                     idx++;
  3053.                 }
  3054.                 result[idx - offset] = EOS;
  3055.                 if(!strlen(result))
  3056.                 {
  3057.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /kick [ID] [MOTIVO]");
  3058.                     return 1;
  3059.                 }
  3060.                 getdate(v[2], v[1], v[0]);
  3061.                 gettime(v[3], v[4], v[5]);
  3062.                 format(string,sizeof(string),"{FF6347}Nome{D2D2FF}: %s \n{FF6347}Motivo{D2D2FF}: %s \n{FF6347}Kickado por{D2D2FF}: %s %s \n{FF6347}Data/Hora{D2D2FF}: %02d/%02d/%02d | %02d:%02d:%02d",NomeDoJogador(jogador), (result), NivelDeAdm(playerid), NomeDoJogador(playerid) , v[0], v[1], v[2], v[3], v[4], v[5]);
  3063.                 ShowPlayerDialog(jogador,KICK,DIALOG_STYLE_MSGBOX,"{FF0000}~ KICKADO ~",string,"Deslogar", "");
  3064.                 format(string, sizeof(string), "{FF0000}LOG{D2D2FF}: {FF6347}O %s %s foi kickado pelo %s %s.", NivelDeAdm(jogador), NomeDoJogador(jogador), NivelDeAdm(playerid), NomeDoJogador(playerid));
  3065.                 SendClientMessageToAll(COR_INFO, string);
  3066.                 format(motstr, sizeof(motstr), "{FF0000}LOG{D2D2FF}: {FF6347}Motivo: %s." , (result));
  3067.                 SendClientMessageToAll(COR_INFO, motstr);
  3068.                 LimparChat(jogador, 125);
  3069.                 Kick(jogador);
  3070.                 format(strlog, sizeof(strlog), "LOG: %s foi kickado por: %s. Motivo: %s. Horário: %02d/%02d/%02d | %02d:%02d:%02d", NomeDoJogador(jogador), NomeDoJogador(playerid), (result), v[0], v[1], v[2], v[3], v[4], v[5]);
  3071.                 KickLog(strlog);
  3072.                 return 1;
  3073.             }
  3074.         }
  3075.         else
  3076.         {
  3077.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3078.             return 1;
  3079.         }
  3080.         return 1;
  3081.     }
  3082.  
  3083.     if(strcmp(cmd, "/ban", true) == 0)
  3084.     {
  3085.         if(PlayerInfo[playerid][pLogado] == 1)
  3086.         {
  3087.             tmp = strtok(cmdtext, idx);
  3088.             if(!strlen(tmp))
  3089.             {
  3090.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /ban [ID] [MOTIVO]");
  3091.                 return 1;
  3092.             }
  3093.             new motstr[128];
  3094.             new strlog[128];
  3095.             jogador = ReturnUser(tmp);
  3096.             if (PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é um administrador dono.");
  3097.             if(!IsPlayerConnected(jogador)) { SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este jogador não está online"); return 1; }
  3098.             if(jogador != INVALID_PLAYER_ID)
  3099.             {
  3100.                 new length = strlen(cmdtext);
  3101.                 while ((idx < length) && (cmdtext[idx] <= ' '))
  3102.                 {
  3103.                     idx++;
  3104.                 }
  3105.                 new offset = idx;
  3106.                 new result[64];
  3107.                 while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3108.                 {
  3109.                     result[idx - offset] = cmdtext[idx];
  3110.                     idx++;
  3111.                 }
  3112.                 result[idx - offset] = EOS;
  3113.                 if(!strlen(result))
  3114.                 {
  3115.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /ban [ID] [MOTIVO]");
  3116.                     return 1;
  3117.                 }
  3118.                 getdate(v[2], v[1], v[0]);
  3119.                 gettime(v[3], v[4], v[5]);
  3120.                 format(string,sizeof(string),"{FF6347}Nome{D2D2FF}: %s \n{FF6347}Motivo{D2D2FF}: %s \n{FF6347}Banido por{D2D2FF}: %s %s \n{FF6347}Data/Hora{D2D2FF}: %02d/%02d/%02d | %02d:%02d:%02d\nPressione F8 e poste a SS no fórum caso queira queixar-se\n do banimento.",NomeDoJogador(jogador), (result), NivelDeAdm(playerid), NomeDoJogador(playerid) , v[0], v[1], v[2], v[3], v[4], v[5]);
  3121.                 ShowPlayerDialog(jogador,BAN,DIALOG_STYLE_MSGBOX,"{FF0000}~ BANIDO ~",string,"Deslogar", "");
  3122.                 format(string, sizeof(string), "{FF0000}LOG{D2D2FF}: {FF6347}O %s %s foi banido pelo %s %s.", NivelDeAdm(jogador), NomeDoJogador(jogador), NivelDeAdm(playerid), NomeDoJogador(playerid));
  3123.                 SendClientMessageToAll(COR_INFO, string);
  3124.                 format(motstr, sizeof(motstr), "{FF0000}LOG{D2D2FF}: {FF6347}Motivo: %s." , (result));
  3125.                 SendClientMessageToAll(COR_INFO, motstr);
  3126.                 LimparChat(jogador, 125);
  3127.                 PlayerInfo[jogador][pBanido] = 1;
  3128.                 AtualizarJogador(jogador);
  3129.                 new tmppass[128];
  3130.                 strmid(tmppass, result, 0, strlen(result), 255);
  3131.                 new adminban[128];
  3132.                 strmid(adminban, NomeDoJogador(playerid), 0, strlen(NomeDoJogador(playerid)), 255);
  3133.                 Banido(jogador, tmppass, adminban);
  3134.                 Kick(jogador);
  3135.                 format(strlog, sizeof(strlog), "LOG: %s foi banido por: %s. Motivo: %s. Horário: %02d/%02d/%02d | %02d:%02d:%02d", NomeDoJogador(jogador), NomeDoJogador(playerid), (result), v[0], v[1], v[2], v[3], v[4], v[5]);
  3136.                 BanLog(strlog);
  3137.                 return 1;
  3138.             }
  3139.         }
  3140.         else
  3141.         {
  3142.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3143.             return 1;
  3144.         }
  3145.         return 1;
  3146.     }
  3147.  
  3148.  
  3149.     // [ GMX ]
  3150.     if(strcmp(cmdtext, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
  3151.     {
  3152.         if(IsPlayerConnected(playerid))
  3153.         {
  3154.             if(PlayerInfo[playerid][pAdmin] == 2 && (strcmp(NomeDoJogador(playerid), "Rodney_Francalim", true ) == 0))
  3155.             {
  3156.                 for(new i = 0; i < MAX_PLAYERS; i++)
  3157.                 {
  3158.                     if(IsPlayerConnected(i))
  3159.                     {
  3160.                         AtualizarJogador(i);
  3161.                         LimparChat(i, 125);
  3162.                         SCM(playerid,COR_INFO,"{33CCFF}ADMIN{A9C4E4}: Por favor, não deslogue, aguarde alguns segundos até a próxima atualização...");
  3163.                         SetPlayerInterior(i, 0);
  3164.                         PlayerInfo[i][pLugar] = 0;
  3165.                         PlayerInfo[i][pLogado] = 0;
  3166.                         KillTimer(atualizacoesgeraisdoserver);
  3167.                         KillTimer(TempoProd);
  3168.                         KillTimer(TimerObterGas);
  3169.                         //OCULTAR/DESTRUIR TODAS AS TEXTDRAWS
  3170.                         TextDrawHideForPlayer(i, Textdraw0); //Horas
  3171.                         TextDrawHideForPlayer(i, Textdraw1); //Minutos
  3172.                         TextDrawHideForPlayer(i, Textdraw2); //Segundos
  3173.                         TextDrawHideForPlayer(i, Textdraw3); //Dia
  3174.                         TextDrawHideForPlayer(i, Textdraw4); //Mes
  3175.                         TextDrawHideForPlayer(i, Textdraw5); //Ano
  3176.                         TextDrawHideForPlayer(i, Textdraw6); //Horas(min)
  3177.                         TextDrawHideForPlayer(i, Textdraw7); //Minutos(seg)
  3178.                         TextDrawHideForPlayer(i, Textdraw8); //DiaDaSemana
  3179.                         TextDrawDestroy(Textdraw0);          //Horas
  3180.                         TextDrawDestroy(Textdraw1);          //Minutos
  3181.                         TextDrawDestroy(Textdraw2);          //Segundos
  3182.                         TextDrawDestroy(Textdraw3);          //Dia
  3183.                         TextDrawDestroy(Textdraw4);          //Mes
  3184.                         TextDrawDestroy(Textdraw5);          //Ano
  3185.                         TextDrawDestroy(Textdraw6);          //Horas(min)
  3186.                         TextDrawDestroy(Textdraw7);          //Minutos(seg)
  3187.                         TextDrawDestroy(Textdraw8);          //DiaDaSemana
  3188.                         getdate(v[0], v[1], v[2]);
  3189.                         gettime(v[3], v[4], v[5]);
  3190.                         print("\n---------------------------------------------------------");
  3191.                         printf("Server Desligado: [%02d/%02d/%d %02d:%02d:%02d]", v[2], v[1], v[0], v[3], v[4], v[5]);
  3192.                         print("---------------------------------------------------------\n");
  3193.                         SendRconCommand("gmx");
  3194.                     }
  3195.                 }
  3196.             }
  3197.             else
  3198.             {
  3199.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O comando: ''%s'' não existe, use: /ajuda ou contate um de nossos {33CCFF}administradores{AFAFAF}.");
  3200.                 return 1;
  3201.             }
  3202.         }
  3203.         return 1;
  3204.     }
  3205.     // [ DarAdmin ]
  3206.     if(strcmp(cmd, "/daradmin", true) == 0)
  3207.     {
  3208.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3209.         if(PlayerInfo[playerid][pAdmin] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador dono.");
  3210.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3211.         tmp = strtok(cmdtext, idx);
  3212.         if(!strlen(tmp))
  3213.         {
  3214.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /daradmin [ID] [NIVEL]");
  3215.             return 1;
  3216.         }
  3217.         new nivel;
  3218.         jogador = ReturnUser(tmp);
  3219.         tmp = strtok(cmdtext, idx);
  3220.         nivel = strval(tmp);
  3221.         if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este player não está online.");
  3222.         if(nivel < 0 || nivel > 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O valor não pode ser menor que 0 ou maior que 2.");
  3223.         if(nivel == 0)
  3224.         {
  3225.             if(PlayerInfo[jogador][pAdmin] == 0)
  3226.             {
  3227.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você só pode retirar da administração quem já é administrador.");
  3228.             }
  3229.             if(PlayerInfo[jogador][pAdmin] > 0)
  3230.             {
  3231.                 AdminsOnline--;
  3232.                 PlayerInfo[jogador][pAdmin] = nivel;
  3233.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi retirado da administração pelo adminitrador %s.", NomeDoJogador(playerid));
  3234.                 SCM(jogador, COR_INFO, string);
  3235.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você retirou o(a) jogador(a): %s da administração.", NomeDoJogador(playerid));
  3236.                 SCM(playerid, COR_INFO, string);
  3237.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, retirou o(a) jogador(a): %s da administração.", NomeDoJogador(playerid), NomeDoJogador(jogador));
  3238.                 MensagemAdmin(COR_INFO, string, 1);
  3239.             }
  3240.         }
  3241.         if(nivel == 1)
  3242.         {
  3243.             if(PlayerInfo[jogador][pAdmin] > 0)
  3244.             {
  3245.                 PlayerInfo[jogador][pAdmin] = nivel;
  3246.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
  3247.                 SCM(jogador, COR_INFO, string);
  3248.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
  3249.                 SCM(playerid, COR_INFO, string);
  3250.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
  3251.                 MensagemAdmin(COR_INFO, string, 1);
  3252.             }
  3253.             else
  3254.             {
  3255.                 AdminsOnline++;
  3256.                 PlayerInfo[jogador][pAdmin] = nivel;
  3257.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
  3258.                 SCM(jogador, COR_INFO, string);
  3259.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
  3260.                 SCM(playerid, COR_INFO, string);
  3261.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
  3262.                 MensagemAdmin(COR_INFO, string, 1);
  3263.             }
  3264.         }
  3265.         if(nivel == 2)
  3266.         {
  3267.             if(PlayerInfo[jogador][pAdmin] != 0)
  3268.             {
  3269.                 PlayerInfo[jogador][pAdmin] = nivel;
  3270.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
  3271.                 SCM(jogador, COR_INFO, string);
  3272.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
  3273.                 SCM(playerid, COR_INFO, string);
  3274.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
  3275.                 MensagemAdmin(COR_INFO, string, 1);
  3276.             }
  3277.             else
  3278.             {
  3279.                 AdminsOnline++;
  3280.                 PlayerInfo[jogador][pAdmin] = nivel;
  3281.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
  3282.                 SCM(jogador, COR_INFO, string);
  3283.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
  3284.                 SCM(playerid, COR_INFO, string);
  3285.                 format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
  3286.                 MensagemAdmin(COR_INFO, string, 1);
  3287.             }
  3288.         }
  3289.         AtualizarJogador(jogador);
  3290.         return 1;
  3291.     }
  3292.     if(strcmp(cmd, "/lider", true) == 0)
  3293.     {
  3294.         if(PlayerInfo[playerid][pLogado] == 1)
  3295.         {
  3296.             tmp = strtok(cmdtext, idx);
  3297.             if(!strlen(tmp))
  3298.             {
  3299.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /lider [ID] [ORG]");
  3300.                 return 1;
  3301.             }
  3302.             new level;
  3303.             jogador = ReturnUser(tmp);
  3304.             tmp = strtok(cmdtext, idx);
  3305.             level = strval(tmp);
  3306.             if(level > 1 || level < 0) { SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: Organizações de: 1 ~ 3"); return 1; }
  3307.             if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce não é administrador.");
  3308.             if(PlayerInfo[playerid][pAdmin] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce não é administrador dono.");
  3309.             if(PlayerInfo[playerid][pATrabalhando] < 1 && PlayerInfo[playerid][pAdmin] != 2)
  3310.             {
  3311.                 SCM(playerid, COR_INFO, "     {FF0000}(!) {AFAFAF}: Você não está trabalhando. (/trabalhar)");
  3312.                 return 1;
  3313.             }
  3314.             if(IsPlayerConnected(jogador))
  3315.             {
  3316.                 if(jogador != INVALID_PLAYER_ID)
  3317.                 {
  3318.                     if(PlayerInfo[jogador][pORG] > 0)
  3319.                     {
  3320.                         SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O jogador já é líder de alguma organização.");
  3321.                         return 1;
  3322.                     }
  3323.                     format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você virou líder pelo administrador: %s", NomeDoJogador(playerid));
  3324.                     SCM(jogador, COR_INFO, string);
  3325.                     if(level == 1) { PlayerInfo[jogador][pSkin] = 283; } // Fort Carson Police Department
  3326.                     //else if(level == 2) { PlayerInfo[jogador][pSkin] = 279; } // Corpo de Bombeiros
  3327.                     //else if(level == 3) { PlayerInfo[jogador][pSkin] = 274; } // SAMU
  3328.                     //gTeam[jogador] = 11;
  3329.                     //PlayerInfo[jogador][pTeam] = 11;
  3330.                     PlayerInfo[jogador][pLider] = level;
  3331.                     PlayerInfo[jogador][pORG] = level;
  3332.                     PlayerInfo[jogador][pCargo] = 6;
  3333.                     SetPlayerSkin(jogador, PlayerInfo[jogador][pSkin]);
  3334.                     SpawnarJogador(jogador);
  3335.                     AtualizarJogador(jogador);
  3336.                 }
  3337.             }
  3338.         }
  3339.         return 1;
  3340.     }
  3341.     if(strcmp(cmd, "/trazer", true) == 0)
  3342.     {
  3343.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3344.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3345.         tmp = strtok(cmdtext, idx);
  3346.         if(!strlen(tmp))
  3347.         {
  3348.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /trazer [ID]");
  3349.             return 1;
  3350.         }
  3351.         new carid,Float:X,Float:Y,Float:Z, VW, INT;
  3352.         jogador = ReturnUser(tmp);
  3353.         if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este jogador não está online.");
  3354.         if(jogador == playerid) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não pode trazer a si mesmo.");
  3355.         GetPlayerPos(playerid, X, Y, Z);
  3356.         SetPlayerPos(jogador, X, Y+2, Z);
  3357.         VW = GetPlayerVirtualWorld(playerid);
  3358.         SetPlayerVirtualWorld(jogador, VW);
  3359.         INT = GetPlayerInterior(playerid);
  3360.         SetPlayerInterior(jogador, INT);
  3361.         format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: %s puxou você.",NomeDoJogador(playerid));
  3362.         SCM(jogador, COR_INFO, string);
  3363.         format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: Você trouxe %s até você.",NomeDoJogador(jogador));
  3364.         SCM(playerid, COR_INFO, string);
  3365.         format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O administrador %s trouxe %s até ele.",NomeDoJogador(playerid), NomeDoJogador(jogador));
  3366.         MensagemAdmin(COR_INFO, string, 1);
  3367.         carid = GetPlayerVehicleID(jogador);
  3368.         if(carid > 0)
  3369.         {
  3370.             SetVehiclePos(carid, X, Y+2, Z);
  3371.             PutPlayerInVehicle(jogador, carid, 0);
  3372.         }
  3373.         return 1;
  3374.     }
  3375.     if(strcmp(cmd, "/ir", true) == 0)
  3376.     {
  3377.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3378.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administradoir.");
  3379.         tmp = strtok(cmdtext, idx);
  3380.         if(!strlen(tmp))
  3381.         {
  3382.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /ir [ID]");
  3383.             return 1;
  3384.         }
  3385.         new Float:X,Float:Y,Float:Z, VW, INT, carid;
  3386.         jogador = ReturnUser(tmp);
  3387.         if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este jogador não está online.");
  3388.         if(jogador == playerid) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não pode ir até si mesmo.");
  3389.         GetPlayerPos(jogador, X, Y, Z);
  3390.         SetPlayerPos(playerid, X, Y+2, Z);
  3391.         VW = GetPlayerVirtualWorld(jogador);
  3392.         SetPlayerVirtualWorld(playerid, VW);
  3393.         INT = GetPlayerInterior(jogador);
  3394.         SetPlayerInterior(playerid, INT);
  3395.         format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: %s foi até você.",NomeDoJogador(playerid));
  3396.         SCM(jogador, COR_INFO, string);
  3397.         format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: Você foi até %s.",NomeDoJogador(jogador));
  3398.         SCM(playerid, COR_INFO, string);
  3399.         format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O administrador %s foi até %s.",NomeDoJogador(playerid), NomeDoJogador(jogador));
  3400.         MensagemAdmin(COR_INFO, string, 1);
  3401.         carid = GetPlayerVehicleID(playerid);
  3402.         if(carid > 0)
  3403.         {
  3404.             SetVehiclePos(carid, X, Y+2, Z);
  3405.             PutPlayerInVehicle(playerid, carid, 0);
  3406.         }
  3407.         return 1;
  3408.     }
  3409.     if(strcmp(cmd, "/veiculo", true) == 0 || strcmp(cmd, "/v", true) == 0)
  3410.     {
  3411.         if(IsPlayerConnected(playerid))
  3412.         {
  3413.             if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não é administrador.");
  3414.             if(PlayerInfo[playerid][pAdmin] == 1) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não é administrador dono.");
  3415.             if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  3416.             {
  3417.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já está em um veículo.");
  3418.                 return 1;
  3419.             }
  3420.             tmp = strtok(cmdtext, idx);
  3421.             if(!strlen(tmp))
  3422.             {
  3423.                 SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /veiculo [ID do veículo] [COR 1] [COR 2]");
  3424.                 return 1;
  3425.             }
  3426.             new carrocriado;
  3427.             carrocriado = strval(tmp);
  3428.             if(carrocriado < 400 || carrocriado > 611)
  3429.             {
  3430.                 SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: O ID do veículo não pode ser menor que {00FFFF}400 {A9C4E4}ou maior que {00FFFF}611{A9C4E4}.");
  3431.                 return 1;
  3432.             }
  3433.             tmp = strtok(cmdtext, idx);
  3434.             if(!strlen(tmp))
  3435.             {
  3436.                 SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /veiculo [ID do veículo] [COR 1] [COR 2]");
  3437.                 return 1;
  3438.             }
  3439.             new cor1;
  3440.             cor1 = strval(tmp);
  3441.             if(cor1 < 0 || cor1 > 126) { SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: O ID da cor 1 {A9C4E4}não pode ser menor que 0 {A9C4E4}ou maior que 126{A9C4E4}."); return 1; }
  3442.             tmp = strtok(cmdtext, idx);
  3443.             if(!strlen(tmp))
  3444.             {
  3445.                 SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /veiculo [ID do veículo] [COR 1] [COR 2]");
  3446.                 return 1;
  3447.             }
  3448.             new cor2;
  3449.             cor2 = strval(tmp);
  3450.             if(cor2 < 0 || cor2 > 126) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: O ID da cor 1 não pode ser menor que 0 ou maior que 126."); return 1; }
  3451.             new Float:X,Float:Y,Float:Z;
  3452.             GetPlayerPos(playerid, X,Y,Z);
  3453.             veiculonovo = CreateVehicle(carrocriado, X,Y,Z, 0.0, cor1, cor2, 60000);
  3454.             PutPlayerInVehicle(playerid, veiculonovo, 0);
  3455.             GetVehicleParamsEx(veiculonovo,engine,lights,alarm,doors,bonnet,boot,objective);
  3456.             SetVehicleParamsEx(veiculonovo,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
  3457.             SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Veículo criado.");
  3458.             CriouVeiculo[playerid] = 1;
  3459.         }
  3460.         return 1;
  3461.     }
  3462.     if(strcmp(cmd, "/dargrana", true) == 0)
  3463.     {
  3464.         if(PlayerInfo[playerid][pLogado] == 1)
  3465.         {
  3466.             tmp = strtok(cmdtext, idx);
  3467.             if(!strlen(tmp))
  3468.             {
  3469.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /dargrana [ID] [QUANTIA]");
  3470.                 return 1;
  3471.             }
  3472.             new dinheiro;
  3473.             jogador = ReturnUser(tmp);
  3474.             tmp = strtok(cmdtext, idx);
  3475.             dinheiro = strval(tmp);
  3476.             if (PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce não é administrador");
  3477.             if(PlayerInfo[playerid][pATrabalhando] < 1 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está trabalhando. (/trabalhar)");
  3478.             if(PlayerInfo[jogador][pLogado] == 0 || jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O jogador não está logado.");
  3479.             GivePlayerMoney(jogador, dinheiro);
  3480.             PlayerInfo[playerid][pMoney] += dinheiro;
  3481.         }
  3482.         return 1;
  3483.     }
  3484.     if(strcmp(cmd,"/setpos",true)==0)
  3485.     {
  3486.         if(PlayerInfo[playerid][pAdmin] == 2 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0))
  3487.         {
  3488.             new plid,Float:setpos[3];
  3489.             tmp = strtok(cmdtext,idx);
  3490.             if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /setpos [ID] [X] [Y] [Z]");
  3491.             plid = strval(tmp);
  3492.             for(new x=0;x<3;x++)
  3493.             {
  3494.                 tmp = strtok(cmdtext,idx);
  3495.                 if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /setpos [ID] [X] [Y] [Z]");
  3496.                 setpos[x] = floatstr(tmp);
  3497.             }
  3498.             SetPlayerPos(plid,setpos[0],setpos[1],setpos[2]);
  3499.             SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Posição setada.");
  3500.         }
  3501.         else
  3502.         {
  3503.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O comando: ''%s'' não existe, use: /ajuda ou contate um de nossos {33CCFF}administradores{AFAFAF}.");
  3504.             return 1;
  3505.         }
  3506.         return 1;
  3507.     }
  3508.     if(strcmp(cmd, "/calar", true) == 0)
  3509.     {
  3510.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3511.         if(!(PlayerInfo[playerid][pAdmin] != 0)) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3512.         tmp = strtok(cmdtext, idx);
  3513.         if(!strlen(tmp))
  3514.         {
  3515.             SCM(playerid, COR_INFO, "USE: /calar [id]");
  3516.             return 1;
  3517.         }
  3518.         jogador = ReturnUser(tmp);
  3519.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
  3520.         if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este playerid não está logado");
  3521.         if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este player não está online.");
  3522.         if(PlayerInfo[playerid][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode calar um administrador dono, por isso foi calado."); PlayerInfo[jogador][pCalado] = 1; return 1; }
  3523.         if(PlayerInfo[jogador][pCalado] == 0)
  3524.         {
  3525.             PlayerInfo[jogador][pCalado] = 1;
  3526.             printf("LOG: %s calou %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
  3527.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}: {FF0000}%s foi calado por %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3528.             MensagemAdmin(COR_INFO,string,1);
  3529.         }
  3530.         else
  3531.         {
  3532.             PlayerInfo[jogador][pCalado] = 0;
  3533.             printf("LOG: %s descalou %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3534.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s descalou o jogador: %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3535.             MensagemAdmin(COR_INFO,string,1);
  3536.         }
  3537.         return 1;
  3538.     }
  3539.     if(strcmp(cmd, "/blockcmd", true) == 0)
  3540.     {
  3541.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3542.         if(!(PlayerInfo[playerid][pAdmin] != 0)) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3543.         tmp = strtok(cmdtext, idx);
  3544.         if(!strlen(tmp))
  3545.         {
  3546.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /blockcmd [ID]");
  3547.             return 1;
  3548.         }
  3549.         jogador = ReturnUser(tmp);
  3550.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
  3551.         if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este playerid não está logado");
  3552.         if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este player não está online.");
  3553.         if(PlayerInfo[jogador][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0))
  3554.         {
  3555.             SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode bloquear os comandos de um administrador dono, por isso teve seus comandos bloqueados.");
  3556.             SemCMD[playerid] = 1;
  3557.             format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O jogador %s tentou bloquear seus comandos.", NomeDoJogador(playerid));
  3558.             SCM(jogador, COR_INFO, string);
  3559.             return 1;
  3560.         }
  3561.         if(SemCMD[jogador] == 0)
  3562.         {
  3563.             SemCMD[jogador] = 1;
  3564.             printf("LOG: %s bloqueou os comandos de %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
  3565.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}: {FF0000}%s teve os comandos bloqueados por %s",NomeDoJogador(jogador),  NomeDoJogador(playerid));
  3566.             MensagemAdmin(COR_INFO,string,1);
  3567.         }
  3568.         else
  3569.         {
  3570.             SemCMD[jogador] = 0;
  3571.             printf("LOG: %s desbloqueou os comandos de %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3572.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s desbloqueou os comandos do jogador: %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3573.             MensagemAdmin(COR_INFO,string,1);
  3574.         }
  3575.         return 1;
  3576.     }
  3577.     if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
  3578.     {
  3579.         if(IsPlayerConnected(playerid))
  3580.         {
  3581.             if(PlayerInfo[playerid][pAdmin] >= 1)
  3582.             {
  3583.                 new length = strlen(cmdtext);
  3584.                 while ((idx < length) && (cmdtext[idx] <= ' '))
  3585.                 {
  3586.                     idx++;
  3587.                 }
  3588.                 new offset = idx;
  3589.                 new result[64];
  3590.                 while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3591.                 {
  3592.                     result[idx - offset] = cmdtext[idx];
  3593.                     idx++;
  3594.                 }
  3595.                 result[idx - offset] = EOS;
  3596.                 if(!strlen(result))
  3597.                 {
  3598.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: (/a)dmin [TEXTO]");
  3599.                     return 1;
  3600.                 }
  3601.                 if(PlayerInfo[playerid][pAdmin] >= 1)
  3602.                 {
  3603.                     format(string, sizeof(string), "(( %s: %s ))",NomeDoJogador(playerid),result);
  3604.                     MensagemAdmin(COR_ADMINCHAT, string, 1);
  3605.                 }
  3606.                 return 1;
  3607.             }
  3608.             else
  3609.             {
  3610.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3611.                 return 1;
  3612.             }
  3613.         }
  3614.         return 1;
  3615.     }
  3616.     if(strcmp(cmd, "/espiar", true) == 0)
  3617.     {
  3618.         if(IsPlayerConnected(playerid))
  3619.         {
  3620.             tmp = strtok(cmdtext, idx);
  3621.             if(!strlen(tmp))
  3622.             {
  3623.                 SCM(playerid, 0xBFC0C2FF, "USE: /espiar [ID/Nome]");
  3624.                 return 1;
  3625.             }
  3626.             jogador = ReturnUser(tmp);
  3627.             if (PlayerInfo[playerid][pAdmin] >=2)
  3628.             {
  3629.                 if(IsPlayerConnected(jogador))
  3630.                 {
  3631.                     if(jogador != INVALID_PLAYER_ID)
  3632.                     {
  3633.                         TogglePlayerSpectating(playerid, 1);
  3634.                         PlayerSpectatePlayer(playerid, jogador);
  3635.                         SetPlayerInterior(playerid,GetPlayerInterior(jogador));
  3636.                         Espiando[playerid] = jogador;
  3637.                         Espiado[playerid] = ADMIN_OLHANDO_PLAYER;
  3638.                     }
  3639.                 }
  3640.             }
  3641.             else
  3642.             {
  3643.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3644.                 return 1;
  3645.             }
  3646.         }
  3647.         return 1;
  3648.     }
  3649.     if(strcmp(cmd, "/sairespiar", true) == 0)
  3650.     {
  3651.         if (PlayerInfo[playerid][pAdmin] >=2)
  3652.         {
  3653.             TogglePlayerSpectating(playerid, 0);
  3654.             Espiando[playerid] = INVALID_PLAYER_ID;
  3655.             Espiado[playerid] = PAROU_DE_OLHAR_PLAYER;
  3656.             return 1;
  3657.         }
  3658.     }
  3659.     if(strcmp(cmd, "/tapa", true) == 0)
  3660.     {
  3661.         if(IsPlayerConnected(playerid))
  3662.         {
  3663.             tmp = strtok(cmdtext, idx);
  3664.             if(!strlen(tmp)){ SCM(playerid, COR_INFO, "{FFFF00}USE{AFAFAF}: /tapa [ID]"); return 1; }
  3665.             new Float:slx, Float:sly, Float:slz;
  3666.             jogador = ReturnUser(tmp);
  3667.             if (PlayerInfo[playerid][pAdmin] >=1)
  3668.             {
  3669.                 if(IsPlayerConnected(jogador))
  3670.                 {
  3671.                     if(jogador != INVALID_PLAYER_ID)
  3672.                     {
  3673.                         GetPlayerPos(jogador, slx, sly, slz);
  3674.                         SetPlayerPos(jogador, slx, sly, slz+5);
  3675.                         PlayerPlaySound(jogador, 1130, slx, sly, slz+5);
  3676.                     }
  3677.                 }
  3678.             }
  3679.             else
  3680.             {
  3681.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3682.             }
  3683.         }
  3684.         return 1;
  3685.     }
  3686.     if(strcmp(cmd, "/setint", true) == 0)
  3687.     {
  3688.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3689.         if (PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é um administrador.");
  3690.         tmp = strtok(cmdtext, idx);
  3691.         if(!strlen(tmp)) return SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /setint [ID] [INTERIOR ID]");
  3692.         jogador = ReturnUser(tmp);
  3693.         new intid;
  3694.         tmp = strtok(cmdtext, idx);
  3695.         intid = strval(tmp);
  3696.         if(IsPlayerNPC(jogador)) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não pode mudar o interior de um NPC.");
  3697.         {
  3698.             if(intid > 100) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Escolha outro interior.");
  3699.             if(jogador == playerid)
  3700.             {
  3701.                 if(intid > 100) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Escolha outro interior.");
  3702.                 SetPlayerInterior(jogador, intid);
  3703.                 format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} Você mudou o seu próprio interior para %d.", intid);
  3704.                 SendClientMessage(playerid, COR_INFO, string);
  3705.                 format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou o seu próprio interior para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), intid);
  3706.                 MensagemAdmin(COR_INFO, string, 1);
  3707.                 return 1;
  3708.             }
  3709.             if(jogador != INVALID_PLAYER_ID)
  3710.             {
  3711.                 if(GetPlayerState(jogador) == PLAYER_STATE_ONFOOT)
  3712.                 {
  3713.                     if(intid > 100) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Escolha outro interior.");
  3714.                     SetPlayerInterior(jogador, intid);
  3715.                     format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} Você mudou o interior do %s %s para %d.", NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
  3716.                     SendClientMessage(playerid, COR_INFO, string);
  3717.                     format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou seu interior para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), intid);
  3718.                     SendClientMessage(jogador, COR_INFO, string);
  3719.                     format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou o interior do %s %s para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
  3720.                     MensagemAdmin(COR_INFO, string, 1);
  3721.                 }
  3722.                 else
  3723.                 {
  3724.                     if(intid > 100) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Escolha outro interior.");
  3725.                     SetPlayerInterior(jogador, intid);
  3726.                     new vehdkr = GetPlayerVehicleID(jogador);
  3727.                     LinkVehicleToInterior(vehdkr, GetPlayerInterior(jogador));
  3728.                     format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} Você mudou o interior do %s %s para %d.", NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
  3729.                     SendClientMessage(playerid, COR_INFO, string);
  3730.                     format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou seu interior para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), intid);
  3731.                     SendClientMessage(jogador, COR_INFO, string);
  3732.                     format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou o interior do %s %s para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
  3733.                     MensagemAdmin(COR_INFO, string, 1);
  3734.                 }
  3735.                 return 1;
  3736.             }
  3737.         }
  3738.         return 1;
  3739.     }
  3740.     if(strcmp(cmd, "/darvida", true) == 0)
  3741.     {
  3742.         if(IsPlayerConnected(playerid))
  3743.         {
  3744.             tmp = strtok(cmdtext, idx);
  3745.             if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}USE{AFAFAF}: /darvida [ID] [Quantidade]");
  3746.             new plid,vida;
  3747.             plid = ReturnUser(tmp);
  3748.             tmp = strtok(cmdtext, idx);
  3749.             vida = strval(tmp);
  3750.             if (PlayerInfo[playerid][pAdmin] >=2)
  3751.             {
  3752.                 if(IsPlayerConnected(plid))
  3753.                 {
  3754.                     if(plid != INVALID_PLAYER_ID)
  3755.                     {
  3756.                         SetPlayerHealth(plid, vida);
  3757.                     }
  3758.                 }
  3759.             }
  3760.             else
  3761.             {
  3762.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3763.                 return 1;
  3764.             }
  3765.         }
  3766.         return 1;
  3767.     }
  3768.     if(strcmp(cmd, "/darcolete", true) == 0)
  3769.     {
  3770.         if(IsPlayerConnected(playerid))
  3771.         {
  3772.             tmp = strtok(cmdtext, idx);
  3773.             if(!strlen(tmp)){return SCM(playerid, COR_INFO, "{FFFF00}USE{AFAFAF}: /darcolete [ID] [Quantidade]");}
  3774.             new colete;
  3775.             jogador = ReturnUser(tmp);
  3776.             tmp = strtok(cmdtext, idx);
  3777.             colete = strval(tmp);
  3778.             if (PlayerInfo[playerid][pAdmin] >=2)
  3779.             {
  3780.                 if(IsPlayerConnected(jogador))
  3781.                 {
  3782.                     if(jogador != INVALID_PLAYER_ID)
  3783.                     {
  3784.                         SetPlayerArmour(jogador, colete);
  3785.                     }
  3786.                 }
  3787.             }
  3788.             else
  3789.             {
  3790.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3791.                 return 1;
  3792.             }
  3793.         }
  3794.         return 1;
  3795.      }
  3796.     if(strcmp(cmd,"/matar",true) == 0)
  3797.     {
  3798.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3799.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3800.         tmp = strtok(cmdtext, idx);
  3801.         if(!strlen(tmp))
  3802.         {
  3803.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /matar [ID]");
  3804.             return 1;
  3805.         }
  3806.         jogador = ReturnUser(tmp);
  3807.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
  3808.         if(IsPlayerConnected(jogador))
  3809.         {
  3810.             if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Este player não está online.");
  3811.             if(PlayerInfo[playerid][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode matar um administrador dono, por isso você foi morto."); SetPlayerHealth(playerid, 0); return 1; }
  3812.             SetPlayerHealth(jogador, 0.0);
  3813.             printf("LOG: %s matou %s",NomeDoJogador(playerid) ,NomeDoJogador(jogador));
  3814.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s ganhou uma morte de: %s",NomeDoJogador(jogador) ,NomeDoJogador(playerid));
  3815.             MensagemAdmin(COR_INFO,string,1);
  3816.         }
  3817.         return 1;
  3818.     }
  3819.     if(strcmp(cmd, "/congelar", true) == 0)
  3820.     {
  3821.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  3822.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3823.         tmp = strtok(cmdtext, idx);
  3824.         if(!strlen(tmp))
  3825.         {
  3826.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /congelar [ID]");
  3827.             return 1;
  3828.         }
  3829.         jogador = ReturnUser(tmp);
  3830.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
  3831.         if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este player não está logado");
  3832.         if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este player não está online.");
  3833.         if(PlayerInfo[playerid][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode congelar um administrador dono, por isso você foi congelado."); PlayerInfo[playerid][pCongelado] = 1; TogglePlayerControllable(playerid, 0); return 1; }
  3834.         if(PlayerInfo[jogador][pCongelado] == 0)
  3835.         {
  3836.             PlayerInfo[jogador][pCongelado] = 1;
  3837.             printf("LOG: %s congelou %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
  3838.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s foi congelado por %s",NomeDoJogador(jogador),  NomeDoJogador(playerid));
  3839.             MensagemAdmin(COR_INFO,string,1);
  3840.         }
  3841.         else
  3842.         {
  3843.             PlayerInfo[jogador][pCongelado] = 0;
  3844.             printf("LOG: %s descongelou %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3845.             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s descongelou o jogador: %s",NomeDoJogador(playerid),  NomeDoJogador(jogador));
  3846.             MensagemAdmin(COR_INFO,string,1);
  3847.         }
  3848.         return 1;
  3849.     }
  3850.     if(strcmp(cmd,"/avisar",true)==0 || strcmp(cmd, "/av", true)==0)
  3851.     {
  3852.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Logue primeiro, para poder usar o comando.");
  3853.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3854.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
  3855.         new length = strlen(cmdtext);
  3856.         while ((idx < length) && (cmdtext[idx] <= ' '))
  3857.         {
  3858.            idx++;
  3859.         }
  3860.         new offset = idx;
  3861.         new result[64];
  3862.         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3863.         {
  3864.            result[idx - offset] = cmdtext[idx];
  3865.            idx++;
  3866.         }
  3867.         result[idx - offset] = EOS;
  3868.         if(!strlen(result))
  3869.         {
  3870.             SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: (/av)isar [TEXTO]");
  3871.             return 1;
  3872.         }
  3873.         format(string, sizeof(string), "{FFFF00}ALFA{A9C4E4} %s: %s", NomeDoJogador(playerid), result);
  3874.         SendClientMessageToAll(COR_AMARELA, string);
  3875.         format( string, sizeof(string), "~w~O administrador ~b~%s~w~ mandou um aviso", NomeDoJogador(playerid));
  3876.         GameTextForAll( string, 5000, 3 );
  3877.         return 1;
  3878.     }
  3879.     if(strcmp(cmd, "/ip", true) == 0)
  3880.     {
  3881.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está autorizado à usar esse comando.");
  3882.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está em modo de trabalho. (/trabalhar)");
  3883.         tmp = strtok(cmdtext, idx);
  3884.         if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /ip [ID]");
  3885.         jogador = ReturnUser(tmp);
  3886.         if(!(IsPlayerConnected(jogador))) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Esse jogador não está online.");
  3887.         new ipe[128];
  3888.         GetPlayerIp(jogador,ipe,128);
  3889.         format(string, sizeof(string), " * ~ %s ~> IP: %d ~ * ", NomeDoJogador(jogador),ipe);
  3890.         SCM(playerid,COR_AMARELA, string);
  3891.         return 1;
  3892.     }
  3893.     if(strcmp(cmd, "/tempo", true) == 0 || strcmp(cmd, "/clima", true) == 0)
  3894.     {
  3895.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid,COR_INFO, "      {FF0000}(!) {A9C4E4}: Você não está logado");
  3896.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está autorizado à usar esse comando.");
  3897.         if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está em modo de trabalho. (/trabalhar)");
  3898.         tmp = strtok(cmdtext, idx);
  3899.         if(!strlen(tmp)) { SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /tempo [tempo id]"); return 1; }
  3900.         new clima;
  3901.         clima = strval(tmp);
  3902.         if(clima < 0||clima > 45) { SCM(playerid, COR_INFO, "   Tempo id de 0 ~ 45."); return 1; }
  3903.         SetWeather(clima);
  3904.         format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O jogador: %s setou o seu tempo para %d",NomeDoJogador(playerid) ,clima);
  3905.         MensagemAdmin(COR_INFO,string,1);
  3906.         SCM(playerid, COR_INFO, "Tempo mudado.");
  3907.         return 1;
  3908.     }
  3909.     if(strcmp(cmd, "/mudarhora", true) == 0 || strcmp(cmd, "/mh", true) == 0)
  3910.     {
  3911.         if(IsPlayerConnected(playerid))
  3912.         {
  3913.             tmp = strtok(cmdtext, idx);
  3914.             if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está autorizado à usar esse comando.");
  3915.             if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está em modo de trabalho. (/trabalhar)");
  3916.             if(!strlen(tmp))
  3917.             {
  3918.                 SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /mudarhora [hora do dia] (0-24)");
  3919.                 return 1;
  3920.             }
  3921.             new horadodia;
  3922.             horadodia = strval(tmp);
  3923.             if(horadodia < 0 || horadodia > 24) return SCM(playerid, COR_INFO, " Analfabeto, quantas horas tem um dia? 0 ~ 23");
  3924.             SetWorldTime(horadodia);
  3925.             format(string, sizeof(string), "    Hora do dia mudada para %d", horadodia);
  3926.             SCM(playerid, COR_INFO, string);
  3927.             MensagemAdmin(COR_INFO, string, 1);
  3928.         }
  3929.         return 1;
  3930.     }
  3931.     if(strcmp(cmd, "/explodir", true) == 0 || strcmp(cmd, "/fogo", true) == 0)
  3932.     {
  3933.  
  3934.         tmp = strtok(cmdtext, idx);
  3935.         jogador = strval(tmp);
  3936.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você deve estar logado.");
  3937.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3938.         if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, "Esse jogador não está online.");
  3939.         if(!strlen(tmp)) { SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /explodir [ID]"); return 1; }
  3940.         format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s foi explodido por %s",NomeDoJogador(jogador), NomeDoJogador(playerid));
  3941.         MensagemAdmin(COR_INFO,string,1);
  3942.         SetPlayerHealth(jogador, 10);
  3943.         new Float:fogox, Float:fogoy, Float:fogoz;
  3944.         GetPlayerPos(jogador,fogox, fogoy, fogoz);
  3945.         CreateExplosion(fogox, fogoy , fogoz, 7, 10);
  3946.         printf("LOG: %s explodiu %s", NomeDoJogador(playerid), NomeDoJogador(jogador));
  3947.         return 1;
  3948.     }
  3949.     if(strcmp(cmd, "/lc", true) == 0 || strcmp(cmd, "/limparchat", true) == 0)
  3950.     {
  3951.         if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é administrador.");
  3952.         for(new i = 0; i <= MAX_PLAYERS; i++)
  3953.         {
  3954.             LimparChat(i, 125);
  3955.             format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O administrador %s, limpou o chat.", NomeDoJogador(playerid));
  3956.             SCM(i, COR_AMARELA,string);
  3957.         }
  3958.         return 1;
  3959.     }
  3960.     // [ comandos de player ]
  3961.     if(strcmp(cmdtext, "/carteira", true) == 0)
  3962.     {
  3963.         if(PlayerInfo[playerid][pLogado] == 1)
  3964.         {
  3965.             format(string, sizeof(string), "* %s abre sua carteira.", NomeDoJogador(playerid));
  3966.             ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  3967.             ShowPlayerDialog(playerid, DOCUMENTOS, DIALOG_STYLE_LIST, "Carteira", "Dinheiro\nIdentidade", "Escolher", "Sair"); //Faltam: Licenças, Carteira de trabalho
  3968.         }
  3969.         else
  3970.         {
  3971.             SCM(playerid, COR_INFO, "     {FF0000}(!) {AFAFAF}: Você não está logado.");
  3972.         }
  3973.         return 1;
  3974.     }
  3975.     if(strcmp(cmdtext, "/vertuto", true) == 0)
  3976.     {
  3977.         if(!PlayerToPoint(1.0, playerid, -212.7301,1109.2706,12.2688)) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você precisa estar no ícone da primeira sala da esquerda na prefeitura.");
  3978.         if(PlayerInfo[playerid][pLevel] > 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tem bastante experiência, não precisa ver o tutorial.");
  3979.         VendoTutTemp[playerid] = 1;
  3980.         LimparChat(playerid, 125);
  3981.         PlayerInfo[playerid][pCalado] = 1;
  3982.         SemCMD[playerid] = 1;
  3983.         TempoTuto[playerid] = 1;
  3984.         VerTuto[playerid] = 1;
  3985.         SpawnarJogador(playerid);
  3986.         AtualizarJogador(playerid);
  3987.         SetPlayerPos(playerid, -210.7981,1131.9382,12.2688);
  3988.         SetPlayerCameraPos(playerid, -211.5025,1128.8004,13.4459);
  3989.         SetPlayerCameraLookAt(playerid, -211.5025,1128.8004,13.4458);
  3990.         return 1;
  3991.     }
  3992.     if(strcmp(cmdtext, "/obterdocumentoskrlmonsterviadodokctqq", true) == 0)
  3993.     {
  3994.         ShowPlayerDialog(playerid, OBTERDOC, DIALOG_STYLE_LIST, "Cartório da prefeitura", "Título de eleitor\nCarteira de trabalho\nLicenças", "Escolher", "Sair");
  3995.         return 1;
  3996.     }
  3997.     if(strcmp(cmdtext, "/entrar", true) == 0)
  3998.     {
  3999.         /*if(PlayerToPoint(1.0, playerid, 2318.8008,-88.6682,26.4844)) // entrar 24/7 ~ Palomino Creek
  4000.         {
  4001.             PlayerInfo[playerid][pLugar] = 101;
  4002.             SetPlayerPos(playerid, -25.1326,-141.0670,1003.5469);
  4003.             GameTextForPlayer(playerid, "~w~24/7 de ~b~Palomino Creek", 5000, 1);
  4004.             SetCameraBehindPlayer(playerid);
  4005.             SetPlayerInterior(playerid,16);
  4006.         }
  4007.         if(PlayerToPoint(1.0, playerid, 2256.7087,-44.5215,26.8834)) // entrar Igreja ~ Palomino Creek
  4008.         {
  4009.             PlayerInfo[playerid][pLugar] = 102;
  4010.             SetPlayerInterior(playerid, 4);
  4011.             SetPlayerPos(playerid, 2253.9031,-92.1323,-44.1302);
  4012.             GameTextForPlayer(playerid, "~w~Igreja de ~b~Palomino Creek", 5000, 1);
  4013.             SetPlayerFacingAngle(playerid, 270);
  4014.             SetCameraBehindPlayer(playerid);
  4015.         }*/
  4016.         if(PlayerToPoint(1.0, playerid, -207.6064,1119.2050,20.4297)) // entrar Prefeitura ~ Fort Carson
  4017.         {
  4018.             PlayerInfo[playerid][pLugar] = 103;
  4019.             SetPlayerInterior(playerid, 3);
  4020.             SetPlayerPos(playerid, -207.7033,1119.5430,12.2688);
  4021.             GameTextForPlayer(playerid, "~w~Prefeitura de ~b~Fort Carson", 5000, 1);
  4022.             SetPlayerFacingAngle(playerid, 90);
  4023.             SetCameraBehindPlayer(playerid);
  4024.         }
  4025.         /*if(PlayerToPoint(1.0, playerid, -207.8791,1119.0891,20.4297)) // entrar Loja de Roupas
  4026.         {
  4027.             PlayerInfo[playerid][pLugar] = 104;
  4028.             SetPlayerInterior(playerid, 15);
  4029.             SetPlayerPos(playerid, 207.7552,-110.3319,1005.1328);
  4030.             GameTextForPlayer(playerid, "~w~Loja de Roupas", 5000, 1);
  4031.             SetPlayerFacingAngle(playerid, 10.3635);
  4032.             SetCameraBehindPlayer(playerid);
  4033.         }*/
  4034.         if(PlayerToPoint(1.0, playerid, -180.0969,1132.9612,19.7422)) // entrar Banco
  4035.         {
  4036.             PlayerInfo[playerid][pLugar] = 105;
  4037.             SetPlayerInterior(playerid, 5);
  4038.             SetPlayerPos(playerid, -176.4678,1129.9913,-14.6403);
  4039.             GameTextForPlayer(playerid, "~w~Banco de ~b~ Fort Carson", 5000, 1);
  4040.             SetPlayerFacingAngle(playerid, 180);
  4041.             SetCameraBehindPlayer(playerid);
  4042.         }
  4043.         if(PlayerToPoint(1.0, playerid, -175.5683,1115.0616,-19.4555)) // bifurcação - banco
  4044.         {
  4045.             SetPlayerPos(playerid, -177.3603,1115.9154,-24.2231);
  4046.         }
  4047.         /*if(PlayerToPoint(1.0, playerid, 627.7119,-571.8057,17.5772)) // entrar Departamento de Policia
  4048.         {
  4049.             PlayerInfo[playerid][pLugar] = 110;
  4050.             SetPlayerInterior(playerid, 10);
  4051.             SetPlayerPos(playerid, 626.2711,-575.0652,6.0387);
  4052.             GameTextForPlayer(playerid, "~w~Departamento de Policia de ~b~Fort Carson", 5000, 1);
  4053.             SetPlayerFacingAngle(playerid, 0);
  4054.             SetCameraBehindPlayer(playerid);
  4055.         }
  4056.         if(PlayerToPoint(1.0, playerid, 701.9257,-494.3564,16.3359)) // entrar 24/7 ~ Dillimore
  4057.         {
  4058.             PlayerInfo[playerid][pLugar] = 107;
  4059.             SetPlayerPos(playerid, -25.1326,-141.0670,1003.5469);
  4060.             GameTextForPlayer(playerid, "~w~24/7 de ~b~Dillimore", 5000, 1);
  4061.             SetCameraBehindPlayer(playerid);
  4062.             SetPlayerInterior(playerid,16);
  4063.             SetPlayerVirtualWorld(playerid, 1);
  4064.         }*/
  4065.  
  4066.         // [ DP entradas/saídas ]
  4067.         if(PlayerToPoint(1.0, playerid, -217.8412,979.1472,19.5040)) // entrar Departamento de Policia
  4068.         {
  4069.             PlayerInfo[playerid][pLugar] = 110;
  4070.             SetPlayerInterior(playerid, 10);
  4071.             SetPlayerPos(playerid, 246.4066,107.5535,1003.2188);
  4072.             GameTextForPlayer(playerid, "~w~Departamento de Policia de ~b~Fort Carson", 5000, 1);
  4073.             SetPlayerFacingAngle(playerid, 0);
  4074.             SetCameraBehindPlayer(playerid);
  4075.         }
  4076.         //if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
  4077.         //{
  4078.         if(PlayerToPoint(1.0, playerid, 239.9455,117.7430,1003.2257)) // Entrada Esquerda - DP - 1
  4079.         {
  4080.             PlayerInfo[playerid][pLugar] = 111;
  4081.             SetPlayerInterior(playerid, 3);
  4082.             SetPlayerPos(playerid, 210.5085,140.1983,1003.0234);
  4083.             SetPlayerFacingAngle(playerid, 0);
  4084.             SetCameraBehindPlayer(playerid);
  4085.         }
  4086.         if(PlayerToPoint(1.0, playerid, 210.5085,140.1983,1003.0234)) // Entrada Esquerda - DP - 2
  4087.         {
  4088.             PlayerInfo[playerid][pLugar] = 110;
  4089.             SetPlayerInterior(playerid, 10);
  4090.             SetPlayerPos(playerid, 239.9455,117.7430,1003.2257);
  4091.             SetPlayerFacingAngle(playerid, 270);
  4092.             SetCameraBehindPlayer(playerid);
  4093.         }
  4094.         if(PlayerToPoint(1.0, playerid, 252.1524,109.1200,1003.2188)) // Entrada direita - DP - 1
  4095.         {
  4096.             SetPlayerPos(playerid, 254.3451,109.0811,1003.2257);
  4097.             SetPlayerFacingAngle(playerid, 270);
  4098.             SetCameraBehindPlayer(playerid);
  4099.         }
  4100.         if(PlayerToPoint(1.0, playerid, 254.3451,109.0811,1003.2257)) // Entrada direita - DP - 2
  4101.         {
  4102.             SetPlayerPos(playerid, 252.1524,109.1200,1003.2188);
  4103.             SetPlayerFacingAngle(playerid, 90);
  4104.             SetCameraBehindPlayer(playerid);
  4105.         }
  4106.         if(PlayerToPoint(1.0, playerid, 252.8684,125.3000,1003.2188)) // Entrada Bancada direita ~ 1
  4107.         {
  4108.             SetPlayerPos(playerid, 253.6967,125.2000,1003.2188);
  4109.             SetPlayerFacingAngle(playerid, 270);
  4110.             SetCameraBehindPlayer(playerid);
  4111.         }
  4112.         if(PlayerToPoint(1.0, playerid, 253.6967,125.2000,1003.2188)) // EntDirB2
  4113.         {
  4114.             SetPlayerPos(playerid, 252.8684,125.3000,1003.2188);
  4115.             SetPlayerFacingAngle(playerid, 90);
  4116.             SetCameraBehindPlayer(playerid);
  4117.         }
  4118.         if(PlayerToPoint(1.0, playerid, 255.2427,115.0590,1003.2188)) // EntDirS1
  4119.         {
  4120.             SetPlayerPos(playerid, 255.1188,116.7185,1003.2188);
  4121.             SetPlayerFacingAngle(playerid, 0);
  4122.             SetCameraBehindPlayer(playerid);
  4123.         }
  4124.         if(PlayerToPoint(1.0, playerid, 255.1188,116.7185,1003.2188)) // EntDirS2
  4125.         {
  4126.             SetPlayerPos(playerid, 255.2427,115.0590,1003.2188);
  4127.             SetPlayerFacingAngle(playerid, 180);
  4128.             SetCameraBehindPlayer(playerid);
  4129.         }
  4130.         if(PlayerToPoint(1.0, playerid, 207.7065,142.4978,1003.0234)) // EntEsqS1
  4131.         {
  4132.             SetPlayerPos(playerid, 237.3459,115.0957,1003.2188);
  4133.             SetPlayerFacingAngle(playerid, 180);
  4134.             SetCameraBehindPlayer(playerid);
  4135.             SetPlayerInterior(playerid, 10);
  4136.             PlayerInfo[playerid][pLugar] = 110;
  4137.         }
  4138.         if(PlayerToPoint(1.0, playerid, 237.3459,115.0957,1003.2188)) // EntEsqS2
  4139.         {
  4140.             SetPlayerPos(playerid, 207.7065,142.4978,1003.0234);
  4141.             SetPlayerFacingAngle(playerid, 270);
  4142.             SetCameraBehindPlayer(playerid);
  4143.             SetPlayerInterior(playerid, 3);
  4144.             PlayerInfo[playerid][pLugar] = 111;
  4145.         }
  4146.         if(PlayerToPoint(1.0, playerid, 240.5758,125.1392,1003.2257)) // EntEsqB1
  4147.         {
  4148.             SetPlayerPos(playerid, 221.0409,140.0483,1003.0234);
  4149.             SetPlayerFacingAngle(playerid, 0);
  4150.             SetCameraBehindPlayer(playerid);
  4151.             SetPlayerInterior(playerid, 3);
  4152.             PlayerInfo[playerid][pLugar] = 111;
  4153.         }
  4154.         if(PlayerToPoint(1.0, playerid, 221.0409,140.0483,1003.0234)) // EntEsqB2
  4155.         {
  4156.             SetPlayerPos(playerid, 240.5758,125.1392,1003.2257);
  4157.             SetPlayerFacingAngle(playerid, 270);
  4158.             SetCameraBehindPlayer(playerid);
  4159.             SetPlayerInterior(playerid, 10);
  4160.             PlayerInfo[playerid][pLugar] = 110;
  4161.         }
  4162.         if(PlayerToPoint(1.0, playerid, 227.4080,151.1664,1003.0234)) // EntCorEsc1
  4163.         {
  4164.             SetPlayerPos(playerid, 264.5517,112.0055,1008.8203);
  4165.             SetPlayerFacingAngle(playerid, 90);
  4166.             SetCameraBehindPlayer(playerid);
  4167.             SetPlayerInterior(playerid, 10);
  4168.             PlayerInfo[playerid][pLugar] = 110;
  4169.         }
  4170.         if(PlayerToPoint(1.0, playerid, 264.5517,112.0055,1008.8203)) // EntCorEsc2
  4171.         {
  4172.             SetPlayerPos(playerid, 227.4080,151.1664,1003.0234);
  4173.             SetPlayerFacingAngle(playerid, 90);
  4174.             SetCameraBehindPlayer(playerid);
  4175.             SetPlayerInterior(playerid, 3);
  4176.             PlayerInfo[playerid][pLugar] = 111;
  4177.         }
  4178.         if(PlayerToPoint(1.0, playerid, 226.5256,155.1976,1003.0234)) // EntCorCel1
  4179.         {
  4180.             SetPlayerPos(playerid, 203.4983,167.9230,1003.0234);
  4181.             SetPlayerFacingAngle(playerid, 90);
  4182.             SetCameraBehindPlayer(playerid);
  4183.         }
  4184.         if(PlayerToPoint(1.0, playerid, 203.4983,167.9230,1003.0234)) // EntCorCel2
  4185.         {
  4186.             SetPlayerPos(playerid, 226.5256,155.1976,1003.0234);
  4187.             SetPlayerFacingAngle(playerid, 180);
  4188.             SetCameraBehindPlayer(playerid);
  4189.         }
  4190.         //}
  4191.         return 1;
  4192.     }
  4193.     if(strcmp(cmdtext, "/sairdoveiculokrlarromvadodemerdaqq", true) == 0)
  4194.     {
  4195.         RemovePlayerFromVehicle(playerid);
  4196.         return 1;
  4197.     }
  4198.     if(strcmp(cmdtext, "/sair", true) == 0)
  4199.     {
  4200.         /*if(PlayerToPoint(1.0, playerid, -25.1326,-141.0670,1003.5469) && PlayerInfo[playerid][pLugar] == 101) // Sair 24/7 ~ Palomino Creek
  4201.         {
  4202.             PlayerInfo[playerid][pLugar] = 0;
  4203.             SetPlayerInterior(playerid, 0);
  4204.             SetPlayerPos(playerid, 2318.8008,-88.6682,26.4844);
  4205.             GameTextForPlayer(playerid, "~b~Palomino Creek", 5000, 1);
  4206.             SetCameraBehindPlayer(playerid);
  4207.         }
  4208.         if(PlayerToPoint(1.0, playerid, -25.1326,-141.0670,1003.5469) && PlayerInfo[playerid][pLugar] == 107) // Sair 24/7 ~ Dillimore
  4209.         {
  4210.             PlayerInfo[playerid][pLugar] = 0;
  4211.             SetPlayerInterior(playerid, 0);
  4212.             SetPlayerPos(playerid, 701.9257,-494.3564,16.3359);
  4213.             GameTextForPlayer(playerid, "~b~Dillimore", 5000, 1);
  4214.             SetCameraBehindPlayer(playerid);
  4215.         }
  4216.         if(PlayerToPoint(1.0, playerid, 2253.9031,-92.1323,-44.1302)) // sair Igreja ~ Palomino Creek
  4217.         {
  4218.             PlayerInfo[playerid][pLugar] = 0;
  4219.             SetPlayerInterior(playerid, 0);
  4220.             SetPlayerPos(playerid, 2256.7087,-44.5215,26.8834);
  4221.             GameTextForPlayer(playerid, "~b~Palomino Creek", 5000, 1);
  4222.             SetPlayerFacingAngle(playerid, 90);
  4223.             SetCameraBehindPlayer(playerid);
  4224.         }
  4225.         if(PlayerToPoint(1.0, playerid, 207.6295,-110.9538,1005.1328)) // sair Loja de Roupas ~ Palomino Creek
  4226.         {
  4227.             PlayerInfo[playerid][pLugar] = 0;
  4228.             SetPlayerInterior(playerid, 0);
  4229.             SetPlayerPos(playerid,-207.6322,1119.3148,20.4297);
  4230.             GameTextForPlayer(playerid, "~b~Palomino Creek", 5000, 1);
  4231.             SetPlayerFacingAngle(playerid, 277.3026);
  4232.             SetCameraBehindPlayer(playerid);
  4233.         }*/
  4234.         if(PlayerToPoint(1.0, playerid, -207.7033,1119.5430,12.2688)) // sair Prefeitura ~ Fort Carson
  4235.         {
  4236.             PlayerInfo[playerid][pLugar] = 0;
  4237.             SetPlayerInterior(playerid, 0);
  4238.             SetPlayerPos(playerid, -207.6064,1119.2050,20.4297);
  4239.             GameTextForPlayer(playerid, "~b~Fort Carson", 5000, 1);
  4240.             SetPlayerFacingAngle(playerid, 270);
  4241.             SetCameraBehindPlayer(playerid);
  4242.         }
  4243.         if(PlayerToPoint(1.0, playerid, -176.4678,1129.9913,-14.6403)) // sair Banco ~ Palomino Creek
  4244.         {
  4245.             PlayerInfo[playerid][pLugar] = 0;
  4246.             SetPlayerInterior(playerid, 0);
  4247.             SetPlayerPos(playerid, -180.0969,1132.9612,19.7422);
  4248.             GameTextForPlayer(playerid, "~b~Fort Carson", 5000, 1);
  4249.             SetPlayerFacingAngle(playerid, 90);
  4250.             SetCameraBehindPlayer(playerid);
  4251.         }
  4252.         if(PlayerToPoint(1.0, playerid, 246.4066,107.5535,1003.2188)) // sair Departamento de Policia
  4253.         {
  4254.             PlayerInfo[playerid][pLugar] = 0;
  4255.             SetPlayerInterior(playerid, 0);
  4256.             SetPlayerPos(playerid, -217.8412,979.1472,19.5040);
  4257.             GameTextForPlayer(playerid, "~b~Fort Carson", 5000, 1);
  4258.             SetPlayerFacingAngle(playerid, 270);
  4259.             SetCameraBehindPlayer(playerid);
  4260.         }
  4261.         return 1;
  4262.     }
  4263.     if(strcmp(cmd, "/gps", true) == 0)
  4264.     {
  4265.         if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você deve estar dentro de um veículo para poder usar um GPS");
  4266.         format(string, sizeof(string), "* %s liga seu GPS.", NomeDoJogador(playerid));
  4267.         ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4268.         ShowPlayerDialog(playerid, GPS, DIALOG_STYLE_LIST, "{33CCFF} Sistema de GPS", "Prefeitura de Palomino Creek\nDesligar GPS", "Selecionar", "Cancelar");
  4269.         return 1;
  4270.     }
  4271.     //=======================================
  4272.     // COMANDOS PARA RP
  4273.     //=======================================
  4274.     if(strcmp(cmd, "/eu", true) == 0)
  4275.     {
  4276.         if(IsPlayerConnected(playerid))
  4277.         {
  4278.             if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4279.             if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está calado.");
  4280.             new length = strlen(cmdtext);
  4281.             while ((idx < length) && (cmdtext[idx] <= ' '))
  4282.             {
  4283.                 idx++;
  4284.             }
  4285.             new offset = idx;
  4286.             new result[128];
  4287.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4288.             {
  4289.                 result[idx - offset] = cmdtext[idx];
  4290.                 idx++;
  4291.             }
  4292.             result[idx - offset] = EOS;
  4293.             if(!strlen(result))
  4294.             {
  4295.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /eu [AÇÃO]");
  4296.                 return 1;
  4297.             }
  4298.             format(string, sizeof(string), "* %s %s", NomeDoJogador(playerid), result);
  4299.             SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0,7000);
  4300.             SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0,7000);
  4301.             ProxDetector(20.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4302.             new y, m, d;
  4303.             new h,mi,s;
  4304.             getdate(y,m,d);
  4305.             gettime(h,mi,s);
  4306.             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [/EU] %s: %s",d,m,y,h,mi,s, NomeDoJogador(playerid), result);
  4307.             ActionLog(string);
  4308.         }
  4309.         return 1;
  4310.     }
  4311.     if(strcmp(cmd, "/pensar", true) == 0)
  4312.     {
  4313.         if(IsPlayerConnected(playerid))
  4314.         {
  4315.             new length = strlen(cmdtext);
  4316.             while ((idx < length) && (cmdtext[idx] <= ' '))
  4317.             {
  4318.                 idx++;
  4319.             }
  4320.             new offset = idx;
  4321.             new result[64];
  4322.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4323.             {
  4324.                 result[idx - offset] = cmdtext[idx];
  4325.                 idx++;
  4326.             }
  4327.             result[idx - offset] = EOS;
  4328.             if(!strlen(result))
  4329.             {
  4330.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /pensar [AÇÃO]");
  4331.                 return 1;
  4332.             }
  4333.             format(string, sizeof(string), "* %s está pensando: '%s'.", NomeDoJogador(playerid), result);
  4334.             ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4335.             SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0, 7000);
  4336.             printf("%s", string);
  4337.         }
  4338.         return 1;
  4339.     }
  4340.     if(strcmp(cmd, "/tentar", true) == 0)
  4341.     {
  4342.         if(IsPlayerConnected(playerid))
  4343.         {
  4344.             if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4345.             if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está calado.");
  4346.             new length = strlen(cmdtext);
  4347.             while ((idx < length) && (cmdtext[idx] <= ' '))
  4348.             {
  4349.                 idx++;
  4350.             }
  4351.             new offset = idx;
  4352.             new result[128];
  4353.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4354.             {
  4355.                 result[idx - offset] = cmdtext[idx];
  4356.                 idx++;
  4357.             }
  4358.             result[idx - offset] = EOS;
  4359.             if(!strlen(result))
  4360.             {
  4361.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE /tentar [AÇÃO]");
  4362.                 return 1;
  4363.             }
  4364.             new randa = random(3)+1;
  4365.             if(randa == 1) format(string, sizeof(string), "* %s tenta %s e consegue.", NomeDoJogador(playerid), result);
  4366.             else format(string, sizeof(string), "* %s tenta %s, mas falha.", NomeDoJogador(playerid), result);
  4367.             ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4368.             new y, m, d;
  4369.             new h,mi,s;
  4370.             getdate(y,m,d);
  4371.             gettime(h,mi,s);
  4372.             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [/tentar] %s: %s",d,m,y,h,mi,s, NomeDoJogador(playerid), result);
  4373.             ActionLog(string);
  4374.         }
  4375.         return 1;
  4376.     }
  4377.     if(strcmp(cmd, "/do", true) == 0 || strcmp(cmd, "/fazer", true) == 0)
  4378.     {
  4379.         if(IsPlayerConnected(playerid))
  4380.         {
  4381.             if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4382.             if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está calado.");
  4383.             new length = strlen(cmdtext);
  4384.             while ((idx < length) && (cmdtext[idx] <= ' '))
  4385.             {
  4386.                 idx++;
  4387.             }
  4388.             new offset = idx;
  4389.             new result[128];
  4390.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4391.             {
  4392.                 result[idx - offset] = cmdtext[idx];
  4393.                 idx++;
  4394.             }
  4395.             result[idx - offset] = EOS;
  4396.             if(!strlen(result))
  4397.             {
  4398.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /do [AÇÃO]");
  4399.                 return 1;
  4400.             }
  4401.             format(string, sizeof(string), "* %s (( %s ))", result, NomeDoJogador(playerid));
  4402.             SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0,7000);
  4403.             ProxDetector(20.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4404.             new y, m, d;
  4405.             new h,mi,s;
  4406.             getdate(y,m,d);
  4407.             gettime(h,mi,s);
  4408.             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [/DO] %s: %s",d,m,y,h,mi,s,NomeDoJogador(playerid), result);
  4409.             ActionLog(string);
  4410.         }
  4411.         return 1;
  4412.     }
  4413.     // comandos do carro
  4414.     if(!strcmp(cmd, "/carro", true))
  4415.     {
  4416.         if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em um veículo.");
  4417.         if(!(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)) return SendClientMessage(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você precisa ser o motorista.");
  4418.         tmp = strtok(cmdtext, idx);
  4419.         new carroop = strval(tmp);
  4420.         if(!strlen(tmp)||carroop < 1 || carroop > 12)
  4421.         {
  4422.             SendClientMessage(playerid, COR_INFO, "{FFFF00}:: Painel ::");
  4423.             SendClientMessage(playerid, COR_INFO, " Motor: {90EE90}LIGAR{A9C4E4} (1) {FF0000}DESLIGAR {A9C4E4}(2)");
  4424.             SendClientMessage(playerid, COR_INFO, " Capota do carro: {90EE90}ABRIR{A9C4E4} (3) {FF0000}FECHAR {A9C4E4}(4)");
  4425.             SendClientMessage(playerid, COR_INFO, " Faról/Luzes traseiras: {90EE90}LIGAR{A9C4E4} (5) {FF0000}DESLIGAR {A9C4E4}(6)");
  4426.             SendClientMessage(playerid, COR_INFO, " Alarme: {90EE90}LIGAR{A9C4E4} (7) {FF0000}DESLIGAR {A9C4E4}(8)");
  4427.             SendClientMessage(playerid, COR_INFO, " Porta-malas: {90EE90}ABRIR{A9C4E4} (9) {FF0000}FECHAR {A9C4E4}(10)");
  4428.             return 1;
  4429.         }
  4430.         switch(carroop)
  4431.         {
  4432.             case 1: OnPlayerCommandText(playerid, "/motorlsoufodapacaralho-qq");
  4433.             case 2: OnPlayerCommandText(playerid, "/motordsoufodapacaralho-qq");
  4434.             case 3: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4435.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
  4436.             case 4: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4437.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
  4438.             case 5: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4439.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
  4440.             case 6: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4441.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
  4442.             case 7: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4443.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
  4444.             case 8: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4445.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
  4446.             case 9: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4447.                     SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
  4448.             case 10: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
  4449.                      SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
  4450.         }
  4451.         return 1;
  4452.     }
  4453.     if(strcmp(cmdtext, "/motorlsoufodapacaralho-qq", true) == 0)
  4454.     {
  4455.         if(!(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)) return 1;
  4456.         new veid = GetPlayerVehicleID(playerid);
  4457.         new Float:vidadoveh;
  4458.         GetVehicleHealth(veid, vidadoveh);
  4459.         new ligoi = random(5);
  4460.         GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
  4461.         if(engine == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O motor do veículo já está ligado.");
  4462.         if(veid != INVALID_VEHICLE_ID)
  4463.         {
  4464.             if(vidadoveh >= 40)
  4465.             {
  4466.                 if(ligoi > 1)
  4467.                 {
  4468.                     format(string, sizeof(string), "* %s gira a chave do veículo e o motor liga.", NomeDoJogador(playerid));
  4469.                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4470.                     TogglePlayerControllable(playerid, 1);
  4471.                     SetVehicleEngineOn(veid);
  4472.                     GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
  4473.                     SetVehicleParamsEx(veid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
  4474.                 }
  4475.                 else if(ligoi == 1)
  4476.                 {
  4477.                     format(string, sizeof(string), "* %s gira a chave do veículo e o motor não liga.", NomeDoJogador(playerid));
  4478.                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4479.                 }
  4480.             }
  4481.             else if(vidadoveh < 40 && vidadoveh > 31)
  4482.             {
  4483.                 if(ligoi == 5)
  4484.                 {
  4485.                     format(string, sizeof(string), "* %s gira a chave do veículo e o motor liga.", NomeDoJogador(playerid));
  4486.                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4487.                     TogglePlayerControllable(playerid, 1);
  4488.                     SetVehicleEngineOn(veid);
  4489.                     GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
  4490.                     SetVehicleParamsEx(veid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
  4491.                 }
  4492.                 else
  4493.                 {
  4494.                     format(string, sizeof(string), "* %s gira a chave do veículo e o motor não liga.", NomeDoJogador(playerid));
  4495.                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4496.                 }
  4497.             }
  4498.             else if(vidadoveh <= 31)
  4499.             {
  4500.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O motor está quebrado, impossível de ligar o veículo.");
  4501.             }
  4502.             return 1;
  4503.         }
  4504.         return 1;
  4505.     }
  4506.     if(strcmp(cmdtext, "/motordsoufodapacaralho-qq", true) == 0)
  4507.     {
  4508.         if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 1;
  4509.         new veid = GetPlayerVehicleID(playerid);
  4510.         GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
  4511.         if(engine == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O motor do veículo já está desligado.");
  4512.         if(veid != INVALID_VEHICLE_ID)
  4513.         {
  4514.             format(string, sizeof(string), "* %s gira a chave do veículo e desliga o motor.", NomeDoJogador(playerid));
  4515.             ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4516.             TogglePlayerControllable(playerid, 0);
  4517.             GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
  4518.             SetVehicleParamsEx(veid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  4519.             return 1;
  4520.         }
  4521.         return 1;
  4522.     }
  4523.     if(strcmp(cmdtext, "/abastecer", true) == 0)
  4524.     {
  4525.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você precisa estar logado para usar este comando.");
  4526.         if(!EUmPostoDeGas(playerid)) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está em um posto de gasolina.");
  4527.         Abastecendo[playerid] = 1;
  4528.         return 1;
  4529.     }
  4530.     if(strcmp(cmdtext, "/admins", true) == 0)
  4531.     {
  4532.         if(AdminsOnline == 0) return SCM(playerid, COR_INFO, "{33CCFF}[FC:RP]{A9C4E4}: Nenhum administrador online.");
  4533.         SCM(playerid, COR_INFO, " * ~ {33CCFF} = Administração online = {A9C4E4} ~ *");
  4534.         for(new i = 0; i <= MAX_PLAYERS; i++)
  4535.         {
  4536.             if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
  4537.             {
  4538.                 new niveldeadmin[21];
  4539.                 if(PlayerInfo[i][pAdmin] == 1)
  4540.                 {
  4541.                    niveldeadmin = "Administrador";
  4542.                 }
  4543.                 if(PlayerInfo[i][pAdmin] == 2)
  4544.                 {
  4545.                    niveldeadmin = "Administrador dono";
  4546.                 }
  4547.                 if(AFK[playerid] == 0)
  4548.                 {
  4549.                     if(PlayerInfo[playerid][pATrabalhando] == 1)
  4550.                     {
  4551.                         format(string, sizeof(string), "{FFFF00}Nome{A9C4E4}: {33CCFF}%s {A9C4E4}[{33CCFF}%s{A9C4E4}]{A9C4E4} ~ [{FFFF00}TRABALHANDO{A9C4E4}]", NomeDoJogador(i), niveldeadmin);
  4552.                         SCM(playerid, COR_INFO, string);
  4553.                     }
  4554.                     else
  4555.                     {
  4556.                         format(string, sizeof(string), "{FFFF00}Nome{A9C4E4}: {33CCFF}%s {A9C4E4}[{33CCFF}%s{A9C4E4}]{A9C4E4} ~ [{0000FF}JOGANDO{A9C4E4}]", NomeDoJogador(i), niveldeadmin);
  4557.                         SCM(playerid, COR_INFO, string);
  4558.                     }
  4559.                 }
  4560.                 else
  4561.                 {
  4562.                     format(string, sizeof(string), "{FFFF00}Nome{A9C4E4}: {33CCFF}%s {A9C4E4}[{33CCFF}%s{A9C4E4}]{A9C4E4} ~ [{FFA500}AFK{A9C4E4}]", NomeDoJogador(i), niveldeadmin);
  4563.                     SCM(playerid, COR_INFO, string);
  4564.                 }
  4565.             }
  4566.         }
  4567.         return 1;
  4568.     }
  4569.     // * chats
  4570.     if(strcmp(cmd, "/b", true) == 0)// chat ooc
  4571.     {
  4572.         if(IsPlayerConnected(playerid))
  4573.         {
  4574.             if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4575.             if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está calado.");
  4576.             new str[160];
  4577.             new strlog[160];
  4578.             GetPlayerName(playerid, str, MAX_PLAYER_NAME);
  4579.             for (new i = 0; i < MAX_PLAYER_NAME; i++)
  4580.             if (str[i] == '_')
  4581.             str[i] = ' ';
  4582.             new length = strlen(cmdtext);
  4583.             while ((idx < length) && (cmdtext[idx] <= ' '))
  4584.             {
  4585.                 idx++;
  4586.             }
  4587.             new offset = idx;
  4588.             new result[64];
  4589.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4590.             {
  4591.                 result[idx - offset] = cmdtext[idx];
  4592.                 idx++;
  4593.             }
  4594.             result[idx - offset] = EOS;
  4595.             if(!strlen(result)) return SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /b [TEXTO OOC]");
  4596.             format(str, sizeof(str), "(( %s diz: %s ))", str, result);
  4597.             format(strlog, sizeof(strlog), "(( %s diz: %s ))", str, result);
  4598.             ProxDetector(20.0, playerid, str,COR_CHATOOC,COR_CHATOOC,COR_CHATOOC,COR_CHATOOC,COR_CHATOOC);
  4599.             printf("%s", strlog);
  4600.         }
  4601.         return 1;
  4602.     }
  4603.     if(strcmp(cmd, "/o", true) == 0) // chat global
  4604.     {
  4605.         if(IsPlayerConnected(playerid))
  4606.         {
  4607.             if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4608.             if((SemOOC == 1) && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COR_INFO, "      {33CCFF}ADMIN{AFAFAF}: O chat global foi desativado por um administrador.");
  4609.             if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está calado.");
  4610.             new str[160];
  4611.             GetPlayerName(playerid, str, MAX_PLAYER_NAME);
  4612.             for (new i = 0; i < MAX_PLAYER_NAME; i++)
  4613.             if (str[i] == '_')
  4614.             str[i] = ' ';
  4615.             new length = strlen(cmdtext);
  4616.             while ((idx < length) && (cmdtext[idx] <= ' '))
  4617.             {
  4618.                 idx++;
  4619.             }
  4620.             new offset = idx;
  4621.             new result[64];
  4622.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4623.             {
  4624.                 result[idx - offset] = cmdtext[idx];
  4625.                 idx++;
  4626.             }
  4627.             result[idx - offset] = EOS;
  4628.             if(!strlen(result)) return SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF} USE: (/o)oc [CHAT OOC]");
  4629.             format(str, sizeof(str), "(( %s: %s ))", str, result);
  4630.             ChatOOC(COR_OOC,str);
  4631.             printf("%s", str);
  4632.             //OOCLog(string[]);
  4633.         }
  4634.         return 1;
  4635.     }
  4636.     // * Carteira de trabalho
  4637.     if(strcmp(cmd, "/pcarteiradtrabporramerdadpokrlsouvozaoqq", true) == 0)
  4638.     {
  4639.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4640.         if(PlayerInfo[playerid][pCartTrab] == 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você já tem uma carteira de trabalho");
  4641.         SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você adquiriu a carteira de trabalho.");
  4642.         PlayerInfo[playerid][pCartTrab] = 1;
  4643.         AtualizarJogador(playerid);
  4644.         return 1;
  4645.     }
  4646.     // * celular
  4647.     if(strcmp(cmd, "/ligar", true) == 0)
  4648.     {
  4649.         if(IsPlayerConnected(playerid))
  4650.         {
  4651.             tmp = strtok(cmdtext, idx);
  4652.             if(!strlen(tmp))
  4653.             {
  4654.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /ligar [NÚMERO]");
  4655.                 return 1;
  4656.             }
  4657.             if(PlayerInfo[playerid][pCNumero] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce não tem um celular.");
  4658.             new numerodocelular = strval(tmp);
  4659.             if(numerodocelular == PlayerInfo[playerid][pCNumero]) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce ja está em uma ligação.");
  4660.             if(CelularOcupado[playerid] != 255) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce ja está em uma ligação.");
  4661.             for(new i = 0; i < MAX_PLAYERS; i++)
  4662.             {
  4663.                 if(IsPlayerConnected(i))
  4664.                 {
  4665.                     if(PlayerInfo[i][pCNumero] == numerodocelular && numerodocelular != 0)
  4666.                     {
  4667.                         jogador = i;
  4668.                         CelularOcupado[playerid] = jogador;
  4669.                         if(IsPlayerConnected(jogador))
  4670.                         {
  4671.                             if(jogador != INVALID_PLAYER_ID)
  4672.                             {
  4673.                                 if(CelularLigado[jogador] > 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O número que você ligou, está fora de área ou desligado.");
  4674.                                 if(CelularOcupado[jogador] == 255)
  4675.                                 {
  4676.                                     SetPlayerSpecialAction(playerid, 11);
  4677.                                     format(string, sizeof(string), "Seu celular está tocando (/at)ender Chamando: %s", NomeDoJogador(playerid));
  4678.                                     SCM(jogador, COR_INFO, string);
  4679.                                     //RingTone[jogador] = 10;
  4680.                                     format(string, sizeof(string), "* O celular de %s está tocando.", NomeDoJogador(jogador));
  4681.                                     SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Use ''T'' para falar e, posteriormente, digite /des para desligar.");
  4682.                                     ProxDetector(30.0, i, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4683.                                     format(string, sizeof(string), "* %s pega o celular.", NomeDoJogador(jogador));
  4684.                                     ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4685.                                     //CellTime[playerid] = 1;
  4686.                                     return 1;
  4687.                                 }
  4688.                             }
  4689.                         }
  4690.                     }
  4691.                 }
  4692.             }
  4693.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O número que você ligou, no momento não está recebendo ligações.");
  4694.         }
  4695.         return 1;
  4696.     }
  4697.     if(strcmp(cmd, "/atender", true) == 0 || strcmp(cmd, "/at", true) == 0)
  4698.     {
  4699.         if(PlayerInfo[playerid][pLogado] == 1)
  4700.         {
  4701.             if(CelularOcupado[playerid] != 255) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce ja está em uma ligação.");
  4702.             for(new i = 0; i < MAX_PLAYERS; i++)
  4703.             {
  4704.                 if(IsPlayerConnected(i))
  4705.                 {
  4706.                     if(CelularOcupado[i] == playerid)
  4707.                     {
  4708.                         CelularOcupado[playerid] = i;
  4709.                         SCM(i,  COR_INFO, "{FFFFOO}(!) {A9C4E4}: Chama atendida.");
  4710.                         format(string, sizeof(string), "* %s atendeu o celular.", NomeDoJogador(playerid));
  4711.                         ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4712.                         SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  4713.                         //RingTone[playerid] = 0;
  4714.                     }
  4715.  
  4716.                 }
  4717.             }
  4718.         }
  4719.         return 1;
  4720.     }
  4721.     if(strcmp(cmd, "/desligar", true) == 0 || strcmp(cmd, "/des", true) == 0)
  4722.     {
  4723.         if(PlayerInfo[playerid][pLogado] == 1)
  4724.         {
  4725.             jogador = CelularOcupado[playerid];
  4726.             if(IsPlayerConnected(jogador))
  4727.             {
  4728.                 if(jogador != INVALID_PLAYER_ID)
  4729.                 {
  4730.                     if(jogador != 255)
  4731.                     {
  4732.                         if(jogador < 255)
  4733.                         {
  4734.                             SCM(jogador,  COR_INFO, "{FFFF00}(!) {A9C4E4}: Desligou.");
  4735.                             //CellTime[jogador] = 0;
  4736.                             //CellTime[playerid] = 0;
  4737.                             SCM(playerid,  COR_INFO, "{FFFF00}(!) {A9C4E4}: Desligou.");
  4738.                             CelularOcupado[jogador] = 255;
  4739.                         }
  4740.                         CelularOcupado[playerid] = 255;
  4741.                         //CellTime[playerid] = 0;
  4742.                         SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  4743.                         //RingTone[playerid] = 0;
  4744.                         return 1;
  4745.                     }
  4746.                 }
  4747.             }
  4748.             SCM(playerid,  COR_INFO, "      {FFFF00}(!) {AFAFAF}: Você guardou o celular.");
  4749.         }
  4750.         return 1;
  4751.     }
  4752.     if(strcmp(cmd, "/sms", true) == 0)
  4753.     {
  4754.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4755.         tmp = strtok(cmdtext, idx);
  4756.         if(!strlen(tmp))
  4757.         {
  4758.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /sms [NÚMERO] [TEXTO]");
  4759.             return 1;
  4760.         }
  4761.         if(PlayerInfo[playerid][pCNumero] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce não tem um celular.");
  4762.         format(string, sizeof(string), "* %s pegou o celular.", NomeDoJogador(jogador));
  4763.         ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4764.         new numerodocelular = strval(tmp);
  4765.         new length = strlen(cmdtext);
  4766.         while ((idx < length) && (cmdtext[idx] <= ' '))
  4767.         {
  4768.             idx++;
  4769.         }
  4770.         new offset = idx;
  4771.         new result[64];
  4772.         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4773.         {
  4774.             result[idx - offset] = cmdtext[idx];
  4775.             idx++;
  4776.         }
  4777.         result[idx - offset] = EOS;
  4778.         if(!strlen(result))
  4779.         {
  4780.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /sms [NÚMERO] [TEXTO]");
  4781.             return 1;
  4782.         }
  4783.         for(new i = 0; i < MAX_PLAYERS; i++)
  4784.         {
  4785.             if(PlayerInfo[i][pLogado] == 1)
  4786.             {
  4787.                 if(PlayerInfo[i][pCNumero] == numerodocelular && numerodocelular != 0)
  4788.                 {
  4789.                     jogador = i;
  4790.                     CelularOcupado[playerid] = jogador;
  4791.                     if(IsPlayerConnected(jogador))
  4792.                     {
  4793.                         if(jogador != INVALID_PLAYER_ID)
  4794.                         {
  4795.                             if(CelularLigado[jogador] > 0)
  4796.                             {
  4797.                                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O número que você ligou no momento não está recebendo mensagens.");
  4798.                                 return 1;
  4799.                             }
  4800.                             format(string, sizeof(string), "{FFFF00}SMS{A9C4E4}: %s, enviou: %s (%d)", result, NomeDoJogador(jogador), PlayerInfo[playerid][pCNumero]);
  4801.                             SCM(jogador, COR_INFO, string);
  4802.                             SCM(playerid,  COR_INFO, string);
  4803.                             SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: SMS enviado");
  4804.                             PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  4805.                             CelularOcupado[playerid] = 255;
  4806.                             return 1;
  4807.                         }
  4808.                     }
  4809.                 }
  4810.             }
  4811.         }
  4812.         SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Falha ao encaminhar a mensagem.");
  4813.         return 1;
  4814.     }
  4815.     if(strcmp(cmd, "/agenda", true) == 0 || strcmp(cmd, "/telefone", true) == 0)
  4816.     {
  4817.         if(PlayerInfo[playerid][pLogado] == 1)
  4818.         {
  4819.             if (PlayerInfo[playerid][pAgenda] == 1)
  4820.             {
  4821.                 tmp = strtok(cmdtext, idx);
  4822.                 if(!strlen(tmp))
  4823.                 {
  4824.                     SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /agenda [ID]");
  4825.                     return 1;
  4826.                 }
  4827.                 jogador = ReturnUser(tmp);
  4828.                 if(IsPlayerConnected(jogador))
  4829.                 {
  4830.                     if(jogador != INVALID_PLAYER_ID)
  4831.                     {
  4832.                         format(string, 256, "{FFFF00}(!) {A9C4E4}: Nome: %s ~ número: {4169E1}%d{A9C4E4}.", NomeDoJogador(jogador), PlayerInfo[jogador][pCNumero]);
  4833.                         SCM(playerid, COR_INFO, string);
  4834.                         format(string, sizeof(string), "* %s confere sua lista telefônica.", NomeDoJogador(playerid));
  4835.                         ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  4836.                     }
  4837.                 }
  4838.                 else
  4839.                 {
  4840.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: O jogador não está online.");
  4841.                 }
  4842.             }
  4843.             else
  4844.             {
  4845.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não tem um lista telefônica, vá comprar em uma loja de conveniências.");
  4846.             }
  4847.         }
  4848.         return 1;
  4849.     }
  4850.     // [ relatar ]
  4851.     if(strcmp(cmd, "/relatorio", true) == 0 || strcmp(cmd, "/relato", true) == 0 || strcmp(cmd, "/duvida", true) == 0 || strcmp(cmd, "/re", true) == 0)
  4852.     {
  4853.         if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está logado.");
  4854.         new length = strlen(cmdtext);
  4855.         while ((idx < length) && (cmdtext[idx] <= ' '))
  4856.         {
  4857.             idx++;
  4858.         }
  4859.         new offset = idx;
  4860.         new result[64];
  4861.         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4862.         {
  4863.             result[idx - offset] = cmdtext[idx];
  4864.             idx++;
  4865.         }
  4866.         result[idx - offset] = EOS;
  4867.         if(!strlen(result))
  4868.         {
  4869.             SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /relatorio {A9C4E4}[TEXTO]");
  4870.             return 1;
  4871.         }
  4872.         format(string, sizeof(string), "{FFFF00}RELATÓRIO{A9C4E4}: {33CCFF}%s{A9C4E4} [%d]: {33CCFF}%s", NomeDoJogador(playerid), playerid, (result));
  4873.         MensagemAdmin(COR_INFO,string,1);
  4874.         SCM(playerid, COR_INFO,string);
  4875.         GameTextForPlayer(playerid, "~b~relatorio ~w~enviado", 5000, 3);
  4876.         for(new i; i < MAX_PLAYERS; i ++)
  4877.         {
  4878.             if(PlayerInfo[playerid][pLogado] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
  4879.             {
  4880.                 GameTextForPlayer(i, "~b~relatorio ~w~recebido", 5000, 3);
  4881.             }
  4882.         }
  4883.         return 1;
  4884.     }
  4885.     if(strcmp(cmd, "/comprar", true) == 0)
  4886.     {
  4887.         if(PlayerToPoint(1.0, playerid, -20.8855,-138.4602,1003.5469))
  4888.         {
  4889.             ShowPlayerDialog(playerid, COMPRAR247PALOMINO, DIALOG_STYLE_LIST, "{FFFF00}Lista de produtos", "{FFFFFF}Celular | {00FF00}US$ 399,90\n{FFFFFF}Agenda | {00FF00}US$ 29,90\n{FFFFFF}GPS | {00FF00}US$ 799,90\n{FFFFFF}Relógio | {00FF00}US$ 69,90", "Selecionar", "Cancelar");
  4890.         }
  4891.         else
  4892.         {
  4893.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está no caixa da loja de conveniências");
  4894.             return 1;
  4895.         }
  4896.         return 1;
  4897.     }
  4898.     // [ comandos de líder ]
  4899.     // [ Convidar ]
  4900.     if(strcmp(cmd, "/convidar", true) == 0)
  4901.     {
  4902.         if(IsPlayerConnected(playerid))
  4903.         {
  4904.             tmp = strtok(cmdtext, idx);
  4905.             if(!strlen(tmp))
  4906.             {
  4907.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: USE: /convidar [ID]");
  4908.                 return 1;
  4909.             }
  4910.             new ftext[50];
  4911.             jogador = ReturnUser(tmp);
  4912.             if (PlayerInfo[playerid][pLider] >= 1)
  4913.             {
  4914.                 if(PlayerInfo[playerid][pLogado] == 1)
  4915.                 {
  4916.                     if(PlayerInfo[jogador][pLevel] < 2) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você só pode convidar quem tiver level 2 ou mais.");
  4917.                     if(jogador != INVALID_PLAYER_ID)
  4918.                     {
  4919.                         if (PlayerInfo[jogador][pORG] == 0)
  4920.                         {
  4921.                             if(PlayerInfo[playerid][pLider] == 1) { ftext = "Fort Carson Police Department"; SetPlayerSkin(jogador, 288); }
  4922.                             //else if(PlayerInfo[playerid][pLider] == 2) { ftext = "B.O.P.E."; ChosenSkin[jogador] = 285; SetPlayerSkin(jogador, 285); }
  4923.                             //else if(PlayerInfo[playerid][pLider] == 3) { ftext = "Exército"; ChosenSkin[jogador] = 287; SetPlayerSkin(jogador, 287); }
  4924.                             else { return 1; }
  4925.                             PlayerInfo[jogador][pORG] = PlayerInfo[playerid][pLider];
  4926.                             PlayerInfo[jogador][pCargo] = 1;
  4927.                             printf("LOG: O lider: %s convidou: %s para entrar %s.", NomeDoJogador(playerid), NomeDoJogador(jogador), ftext);
  4928.                             format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você foi convidado para o(a) %s, pelo Líder %s", ftext, NomeDoJogador(playerid));
  4929.                             SCM(jogador, COR_INFO, string);
  4930.                             format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você convidou o jogador %s para o(a) %s.", NomeDoJogador(jogador),ftext);
  4931.                             SCM(playerid, COR_INFO, string);
  4932.                             format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O líder: %s convidou: %s para entrar na(o) %s.", NomeDoJogador(playerid), NomeDoJogador(jogador), ftext);
  4933.                             MensagemAdmin(COR_INFO, string, 1);
  4934.                             SetPlayerInterior(jogador,6);
  4935.                             AtualizarJogador(jogador);
  4936.                             SpawnarJogador(jogador);
  4937.                         }
  4938.                         else
  4939.                         {
  4940.                             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Este jogador já é de uma organização.");
  4941.                             return 1;
  4942.                         }
  4943.                     }
  4944.                 }
  4945.             }
  4946.             else
  4947.             {
  4948.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é líder de nenhuma organização.");
  4949.             }
  4950.         }
  4951.         return 1;
  4952.     }
  4953.     // [ promover ]
  4954.     if(strcmp(cmd, "/promover", true) == 0)
  4955.     {
  4956.         if(PlayerInfo[playerid][pLogado] == 1)
  4957.         {
  4958.             tmp = strtok(cmdtext, idx);
  4959.             if(!strlen(tmp)) return SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF} USE:  /promover [ID] [CARGO]");
  4960.             new level;
  4961.             jogador = ReturnUser(tmp);
  4962.             tmp = strtok(cmdtext, idx);
  4963.             level = strval(tmp);
  4964.             if(level > 9 || level < 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Cargos de 0 a 9.");
  4965.             if (PlayerInfo[playerid][pLider] >= 1)
  4966.             {
  4967.                 if(PlayerInfo[jogador][pLogado] == 1)
  4968.                 {
  4969.                     if(jogador != INVALID_PLAYER_ID)
  4970.                     {
  4971.                         PlayerInfo[jogador][pCargo] = level;
  4972.                         format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Voce foi promovido pelo líder %s para cargo %d da sua organização.", NomeDoJogador(playerid), level);
  4973.                         SCM(jogador, COR_INFO, string);
  4974.                         format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Voce promoveu %s ao cargo %d.", NomeDoJogador(jogador),level);
  4975.                         SCM(playerid, COR_INFO, string);
  4976.                     }
  4977.                 }
  4978.             }
  4979.             else
  4980.             {
  4981.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Voce não é líder.");
  4982.             }
  4983.         }
  4984.         return 1;
  4985.     }
  4986.     // [ Demitir ]
  4987.     if(strcmp(cmd, "/demitir", true) == 0)
  4988.     {
  4989.         if(PlayerInfo[playerid][pLogado] == 1)
  4990.         {
  4991.             tmp = strtok(cmdtext, idx);
  4992.             if(!strlen(tmp))
  4993.             {
  4994.                 SCM(playerid, COR_INFO, "      {FFFF00}(!) {AFAFAF}: /demitir [ID]");
  4995.                 return 1;
  4996.             }
  4997.             jogador = ReturnUser(tmp);
  4998.             if (PlayerInfo[playerid][pLider] >= 1)
  4999.             {
  5000.                 if(PlayerInfo[jogador][pLogado] == 1)
  5001.                 {
  5002.                     if(jogador != INVALID_PLAYER_ID)
  5003.                     {
  5004.                         if (PlayerInfo[jogador][pORG] > 0)
  5005.                         {
  5006.                             format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você foi demitido pelo líder: %s.", NomeDoJogador(playerid));
  5007.                             SCM(jogador, COR_INFO, string);
  5008.                             SCM(jogador, COR_INFO, "{FFFF00}(!) {A9C4E4}: Agora voce é um civíl.");
  5009.                             PlayerInfo[jogador][pORG] = 0;
  5010.                             PlayerInfo[jogador][pCargo] = 0;
  5011.                             SetPlayerSkin(playerid, 26);
  5012.                             PlayerInfo[playerid][pSkin] = 26;
  5013.                             SpawnarJogador(jogador);
  5014.                             format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Voce demitiu o %s.", NomeDoJogador(jogador));
  5015.                             SCM(playerid, COR_INFO, string);
  5016.                             AtualizarJogador(jogador);
  5017.                         }
  5018.                     }
  5019.                 }
  5020.             }
  5021.             else
  5022.             {
  5023.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é líder.");
  5024.             }
  5025.         }
  5026.         return 1;
  5027.     }
  5028.     // [ Comandos de policial ]
  5029.     if(strcmp(cmd, "/abrirporta", true) == 0 || strcmp(cmd, "/ap", true) == 0)
  5030.     {
  5031.         if(PlayerInfo[playerid][pORG] != 1) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é um policial.");
  5032.         return 1;
  5033.     }
  5034.     if(strcmp(cmd, "/baterponto", true) == 0)
  5035.     {
  5036.         if(IsPlayerConnected(playerid))
  5037.         {
  5038.             if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
  5039.             {
  5040.                 if (PlayerToPoint(3, playerid,596.4583,-557.9193,6.0387) && PlayerInfo[playerid][pLugar] != 255)
  5041.                 {
  5042.                     ShowPlayerDialog(playerid, BATERCARTAO, DIALOG_STYLE_LIST, "{0000FF}RC:PD","{FFFFFF}Bater cartão\nS.W.A.T.\nUniformes\nÀ paisana", "Selecionar", "Cancelar");
  5043.                 }
  5044.                 else
  5045.                 {
  5046.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está na sala de comando.");
  5047.                     return 1;
  5048.                 }
  5049.             }
  5050.             else
  5051.             {
  5052.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é policial.");
  5053.             }
  5054.         }
  5055.         return 1;
  5056.     }
  5057.     if(strcmp(cmd, "/equipar", true) == 0)
  5058.     {
  5059.         if(PlayerInfo[playerid][pLogado] == 1)
  5060.         {
  5061.             if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
  5062.             {
  5063.                 if(PlayerInfo[playerid][pTrabalhando] == 0) return SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não bateu cartão.");
  5064.                 if(PlayerToPoint(3, playerid,568.5528,-587.1313,6.0749) && PlayerInfo[playerid][pLugar] != 255)
  5065.                 {
  5066.                     ShowPlayerDialog(playerid, EQUIPAR, DIALOG_STYLE_LIST, "{0000FF}RC:PD ~ Faça suas escolhas.","{FFFFFF}Arma branca\nArma secundárias\nArma primárias\nUltilitários", "Selecionar", "Cancelar");
  5067.                 }
  5068.                 else
  5069.                 {
  5070.                     SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não está na sala de comando.");
  5071.                     return 1;
  5072.                 }
  5073.             }
  5074.             else
  5075.             {
  5076.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não é policial.");
  5077.             }
  5078.         }
  5079.         return 1;
  5080.     }
  5081.     format(string,sizeof(string),"      {FF0000}(!) {AFAFAF}: O comando: ''%s'' não existe, use: /ajuda ou contate um de nossos {33CCFF}administradores{AFAFAF}.",cmd);
  5082.     SCM(playerid,COR_INFO,string);
  5083.     return 1;
  5084. }
  5085. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  5086. {
  5087.     return 1;
  5088. }
  5089. //================== [ NomeServer ] =====================
  5090. public NomeServer()
  5091. {
  5092. contagem++;
  5093. if(contagem > 4)contagem = 0;
  5094. new string[128];
  5095. format(string, sizeof(string), "hostname %s", ServidorNome[contagem]);
  5096. SendRconCommand(string);
  5097. return 1;
  5098. }
  5099.  
  5100. //================== [ Limpar chat ] ====================
  5101. forward LimparChat(playerid, lines);
  5102. public LimparChat(playerid, lines)
  5103. {
  5104.     if (IsPlayerConnected(playerid))
  5105.     {
  5106.         for(new i=0; i<lines; i++)
  5107.         {
  5108.             SCM(playerid, COR_INFO, "");
  5109.         }
  5110.     }
  5111.     return 1;
  5112. }
  5113.  
  5114. //=============== [ Sistema de registro/login ] =================
  5115. public RegistrarJogador(playerid, senha[])
  5116. {
  5117.     if(IsPlayerConnected(playerid))
  5118.     {
  5119.         new string3[64];
  5120.         format(string3,sizeof(string3),"Contas/%s.ini",NomeDoJogador(playerid));
  5121.         dini_Create(string3);
  5122.         dini_Set(string3,"Senha",senha);
  5123.         PlayerInfo[playerid][pReg] = 0;
  5124.         dini_IntSet(string3,"Registrado", PlayerInfo[playerid][pReg]);
  5125.         dini_IntSet(string3,"NRegistro", TotalDeRegistrados);
  5126.         dini_IntSet(string3,"RegistroGeral", PlayerInfo[playerid][pRegistroGeral]);
  5127.         dini_IntSet(string3,"Level", GetPlayerScore(playerid));
  5128.         dini_IntSet(string3,"Dinheiro", PlayerInfo[playerid][pMoney]);
  5129.         dini_IntSet(string3, "Sexo",PlayerInfo[playerid][pSexo]);
  5130.         dini_IntSet(string3, "Idade",PlayerInfo[playerid][pIdade]);
  5131.         dini_IntSet(string3,"DiaDeNascimento", PlayerInfo[playerid][pDiaNascimento]);
  5132.         dini_IntSet(string3,"MesDeNascimento", PlayerInfo[playerid][pMesNascimento]);
  5133.         dini_IntSet(string3,"AnoDeNascimento", PlayerInfo[playerid][pMesNascimento]);
  5134.         dini_IntSet(string3, "Origem",PlayerInfo[playerid][pOrigem]);
  5135.         dini_IntSet(string3, "CartTrab", PlayerInfo[playerid][pCartTrab]);
  5136.         dini_IntSet(string3, "TituloE", PlayerInfo[playerid][pTituloE]);
  5137.         dini_IntSet(string3,"Admin", PlayerInfo[playerid][pAdmin]);
  5138.         dini_IntSet(string3,"Emprego", PlayerInfo[playerid][pEmprego]);
  5139.         dini_IntSet(string3,"Banido", PlayerInfo[playerid][pBanido]);
  5140.         dini_IntSet(string3,"ORG", PlayerInfo[playerid][pORG]);
  5141.         dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
  5142.         dini_IntSet(string3,"Morreu", PlayerInfo[playerid][pMortes]);
  5143.         dini_IntSet(string3,"Matou", PlayerInfo[playerid][pKills]);
  5144.         dini_IntSet(string3,"TempoPD", PlayerInfo[playerid][pTempoPD]);
  5145.         dini_IntSet(string3,"Lider", PlayerInfo[playerid][pLider]);
  5146.         dini_IntSet(string3,"Cargo", PlayerInfo[playerid][pCargo]);
  5147.         dini_IntSet(string3,"EXP", PlayerInfo[playerid][pEXP]);
  5148.         dini_IntSet(string3,"Banco", PlayerInfo[playerid][pBanco]);
  5149.         dini_IntSet(string3,"Relógio", PlayerInfo[playerid][pRelogio]);
  5150.         dini_IntSet(string3,"GPS", PlayerInfo[playerid][pGPS]);
  5151.         dini_IntSet(string3,"Agenda", PlayerInfo[playerid][pAgenda]);
  5152.         dini_IntSet(string3,"NúmeroCelular", PlayerInfo[playerid][pCNumero]);
  5153.         dini_IntSet(string3,"Tutorial", PlayerInfo[playerid][pTut]);
  5154.         new d,m,a;
  5155.         getdate(a,m,d);
  5156.         dini_IntSet(string3,"AnoRegistrado",a);
  5157.         dini_IntSet(string3,"MesRegistrado",m);
  5158.         dini_IntSet(string3,"DiaRegistrado",d);
  5159.         dini_IntSet("Configs/NumeroDeRegistrados.ini","Registrados", TotalDeRegistrados + 1);
  5160.         CarregarJogador(playerid, senha);
  5161.         LimparChat(playerid, 125);
  5162.         SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Conta criada com sucesso.");
  5163.         SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você foi logado automaticamente.");
  5164.     }
  5165.     return 1;
  5166. }
  5167. public ShowStats(playerid,targetid)
  5168. {
  5169.  
  5170.     new mostrarrg[128];
  5171.     new orgm = PlayerInfo[playerid][pOrigem];
  5172.     SCM(playerid, COR_INFO, "");
  5173.     SCM(playerid, COR_INFO, " ESTADO DE SAN ANDREAS ");
  5174.     format(mostrarrg, sizeof(mostrarrg)," Nome: {4F754A}%s{A9C4E4} . Nº Registro{A9C4E4}: {4F754A}%d",NomeDoJogador(targetid), PlayerInfo[playerid][pNRegistro]);
  5175.     SCM(playerid, COR_INFO,mostrarrg);
  5176.     format(mostrarrg, sizeof(mostrarrg)," Nascimento: {4F754A}%d/%d/%d{A9C4E4} . País: {4F754A}United States of America{A9C4E4} . Naturalidade: {4F754A}%s, SA",
  5177.     PlayerInfo[playerid][pDiaNascimento], PlayerInfo[playerid][pMesNascimento], PlayerInfo[playerid][pAnoNascimento],(orgm == 1) ? ("Fort Carson") : (orgm == 2) ? ("Red County") : (orgm == 3) ? ("Liberty City") : ("CONTA BUGADA"));
  5178.     SCM(playerid, COR_INFO,mostrarrg);
  5179.  
  5180.     new meuzovoano, meuzovomes, meuzovodia;
  5181.     new string2[64];
  5182.     format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
  5183.     if(dini_Exists(string2))
  5184.     {
  5185.         meuzovoano = dini_Int(string2,"AnoRegistrado");
  5186.         meuzovomes = dini_Int(string2,"MesRegistrado");
  5187.         meuzovodia = dini_Int(string2,"DiaRegistrado");
  5188.     }
  5189.     new nrg = 1000000000 + random(8999999999);
  5190.     PlayerInfo[playerid][pRegistroGeral] = nrg;
  5191.     format(mostrarrg,sizeof(mostrarrg)," Expedição: {4F754A}%d/%d/%d {A9C4E4}. Registro Geral: {4F754A}%d", meuzovodia, meuzovomes, meuzovoano -19, nrg);
  5192.     SCM(playerid, COR_INFO, mostrarrg);
  5193.     return 1;
  5194. }
  5195. public CarregarJogador(playerid, senha[])
  5196. {
  5197.     new string2[64];
  5198.     format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
  5199.     if(dini_Exists(string2))
  5200.     {
  5201.         if(!strcmp(dini_Get(string2, "Senha"), senha, false))
  5202.         {
  5203.             PlayerInfo[playerid][pLogado] = 1;
  5204.             PlayerInfo[playerid][pReg] = dini_Int(string2,"Registrado");
  5205.             PlayerInfo[playerid][pNRegistro] = dini_Int(string2, "NRegistro");
  5206.             PlayerInfo[playerid][pRegistroGeral] = dini_Int(string2, "RegistroGeral");
  5207.             SetPlayerScore(playerid, dini_Int(string2,"Level"));
  5208.             GivePlayerMoney(playerid, dini_Int(string2,"Dinheiro"));
  5209.             PlayerInfo[playerid][pMoney] = dini_Int(string2,"Dinheiro");
  5210.             PlayerInfo[playerid][pSexo] = dini_Int(string2,"Sexo");
  5211.             PlayerInfo[playerid][pIdade] = dini_Int(string2,"Idade");
  5212.             PlayerInfo[playerid][pDiaNascimento] = dini_Int(string2,"DiaDeNascimento");
  5213.             PlayerInfo[playerid][pMesNascimento] = dini_Int(string2,"MesDeNascimento");
  5214.             PlayerInfo[playerid][pAnoNascimento] = dini_Int(string2,"AnoDeNascimento");
  5215.             PlayerInfo[playerid][pOrigem] = dini_Int(string2,"Origem");
  5216.             PlayerInfo[playerid][pCartTrab] = dini_Int(string2, "CartTrab");
  5217.             PlayerInfo[playerid][pTituloE] = dini_Int(string2, "TituloE");
  5218.             PlayerInfo[playerid][pAdmin] = dini_Int(string2,"Admin");
  5219.             PlayerInfo[playerid][pEmprego] = dini_Int(string2,"Emprego");
  5220.             PlayerInfo[playerid][pBanido] = dini_Int(string2,"Banido");
  5221.             PlayerInfo[playerid][pORG] = dini_Int(string2,"ORG");
  5222.             PlayerInfo[playerid][pSkin] = dini_Int(string2,"Skin");
  5223.             PlayerInfo[playerid][pMortes] = dini_Int(string2,"Morreu");
  5224.             PlayerInfo[playerid][pKills] = dini_Int(string2,"Matou");
  5225.             PlayerInfo[playerid][pTempoPD] = dini_Int(string2,"TempoPD");
  5226.             PlayerInfo[playerid][pLider] = dini_Int(string2,"Lider");
  5227.             PlayerInfo[playerid][pCargo] = dini_Int(string2,"Cargo");
  5228.             PlayerInfo[playerid][pEXP] = dini_Int(string2, "EXP");
  5229.             PlayerInfo[playerid][pBanco] = dini_Int(string2, "Banco");
  5230.             PlayerInfo[playerid][pRelogio] = dini_Int(string2,"Relógio");
  5231.             PlayerInfo[playerid][pGPS] = dini_Int(string2,"GPS");
  5232.             PlayerInfo[playerid][pAgenda] = dini_Int(string2,"Agenda");
  5233.             PlayerInfo[playerid][pCNumero] = dini_Int(string2,"NúmeroCelular");
  5234.             PlayerInfo[playerid][pTut] = dini_Int(string2,"Tutorial");
  5235.             PlayerInfo[playerid][pLogou] = 1;
  5236.             if(PlayerInfo[playerid][pBanido] > 0)
  5237.             {
  5238.                 SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você está banido.");
  5239.                 Kick(playerid);
  5240.             }
  5241.             SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você logou com sucesso.");
  5242.             SpawnPlayer(playerid);
  5243.             TextDrawShowForPlayer(playerid, Textdraw0); //Horas
  5244.             TextDrawShowForPlayer(playerid, Textdraw1); //Minutos
  5245.             TextDrawShowForPlayer(playerid, Textdraw2); //Segundos
  5246.             TextDrawShowForPlayer(playerid, Textdraw3); //Dia
  5247.             TextDrawShowForPlayer(playerid, Textdraw4); //Mês
  5248.             TextDrawShowForPlayer(playerid, Textdraw5); //Ano
  5249.             TextDrawShowForPlayer(playerid, Textdraw6); //Horas(min)
  5250.             TextDrawShowForPlayer(playerid, Textdraw7); //Minutos(seg)
  5251.             TextDrawShowForPlayer(playerid, Textdraw8); //DiaDaSemana
  5252.         }
  5253.         else
  5254.         {
  5255.             ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Você digitou uma senha incorreta", "Logar", "");
  5256.             SCM(playerid, COR_INFO, "      {FF0000}(!) {AFAFAF}: Sua senha/nick não coincidem.");
  5257.             return 1;
  5258.         }
  5259.     }
  5260.     return 1;
  5261. }
  5262.  
  5263. forward AtualizarVelocimetro(playerid);
  5264. public AtualizarVelocimetro(playerid)
  5265. {
  5266.     for(new i=0; i<MAX_PLAYERS; i++)
  5267.     {
  5268.         if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
  5269.         {
  5270.             new placa[50];
  5271.             new velo[128];
  5272.             new Float:Latariadocarro;
  5273.             new keys, updown, leftright;
  5274.             GetPlayerKeys(i,keys,updown,leftright);
  5275.             new veh = GetPlayerVehicleID(i);
  5276.             GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
  5277.             GetVehicleHealth(GetPlayerVehicleID(i), Latariadocarro);
  5278.             if(VelocidadeLigada[i] == 0)
  5279.             {
  5280.                 TextDrawSetString(Textdraw13, "Velocidade:");
  5281.                 TextDrawSetString(Textdraw14, "Tanque:");
  5282.                 TextDrawSetString(Textdraw15, "0");
  5283.                 TextDrawSetString(Textdraw16, "Estado:");
  5284.                 TextDrawSetString(Textdraw17, "KM/H");
  5285.                 TextDrawSetString(Textdraw19, "%");
  5286.                 TextDrawSetString(Textdraw22, "Marcha:");
  5287.                 TextDrawSetString(Textdraw30, "Placa:");
  5288.                 TextDrawSetString(Textdraw32, "Motor:");
  5289.                 TextDrawShowForPlayer(i, Textdraw9);
  5290.                 TextDrawShowForPlayer(i, Textdraw10);
  5291.                 TextDrawShowForPlayer(i, Textdraw11);
  5292.                 TextDrawShowForPlayer(i, Textdraw12);
  5293.                 TextDrawShowForPlayer(i, Textdraw13);
  5294.                 TextDrawShowForPlayer(i, Textdraw14);
  5295.                 TextDrawShowForPlayer(i, Textdraw15);
  5296.                 TextDrawShowForPlayer(i, Textdraw16);
  5297.                 TextDrawShowForPlayer(i, Textdraw17);
  5298.                 TextDrawShowForPlayer(i, Textdraw18);
  5299.                 TextDrawShowForPlayer(i, Textdraw19);
  5300.                 TextDrawShowForPlayer(i, Textdraw20);
  5301.                 TextDrawShowForPlayer(i, Textdraw21);
  5302.                 TextDrawShowForPlayer(i, Textdraw22);
  5303.                 TextDrawShowForPlayer(i, Textdraw23);
  5304.                 TextDrawShowForPlayer(i, Textdraw24);
  5305.                 TextDrawShowForPlayer(i, Textdraw25);
  5306.                 TextDrawShowForPlayer(i, Textdraw26);
  5307.                 TextDrawShowForPlayer(i, Textdraw27);
  5308.                 TextDrawShowForPlayer(i, Textdraw28);
  5309.                 TextDrawShowForPlayer(i, Textdraw29);
  5310.                 TextDrawShowForPlayer(i, Textdraw30);
  5311.                 TextDrawShowForPlayer(i, Textdraw31);
  5312.                 TextDrawShowForPlayer(i, Textdraw32);
  5313.                 TextDrawShowForPlayer(i, Textdraw33);
  5314.                 TextDrawSetString(Textdraw12, "0");
  5315.                 format(placa, sizeof(placa), "~g~FC-%d", GetPlayerVehicleID(i) + 1000);
  5316.                 TextDrawSetString(Textdraw31, placa);
  5317.                 format(velo, sizeof(velo), "%s", vehName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
  5318.                 TextDrawSetString(Textdraw11, velo);
  5319.                 VelocidadeLigada[i] = 1;
  5320.                 Marcha[i] = 6;
  5321.             }
  5322.             if(Tanque[veh] > 50 && Abastecendo[i] == 0)
  5323.             {
  5324.                 format(velo, sizeof(velo), "~g~%d", Tanque[veh]);
  5325.                 TextDrawSetString(Textdraw15, velo);
  5326.             }
  5327.             if(Tanque[veh] > 10 && Tanque[veh] <= 50 && Abastecendo[i] == 0)
  5328.             {
  5329.                 format(velo, sizeof(velo), "~y~%d", Tanque[veh]);
  5330.                 TextDrawSetString(Textdraw15, velo);
  5331.             }
  5332.             if(Tanque[veh] > 0 && Tanque[veh] <= 10 && Abastecendo[i] == 0)
  5333.             {
  5334.                 format(velo, sizeof(velo), "~r~%d", Tanque[veh]);
  5335.                 TextDrawSetString(Textdraw15, velo);
  5336.             }
  5337.             if(Tanque[veh] == 0 && Abastecendo[i] == 0)
  5338.             {
  5339.                 TextDrawSetString(Textdraw15, "Vazio");
  5340.                 TextDrawColor(Textdraw15, 255);
  5341.                 TextDrawSetString(Textdraw19, "");
  5342.             }
  5343.             if(engine == 1 && Latariadocarro/10 > 50) { TextDrawSetString(Textdraw33, "~g~Ligado"); }
  5344.             else if(engine == 0 && Latariadocarro/10 > 50) { TextDrawSetString(Textdraw33, "~r~Desligado"); }
  5345.             if((Marcha[i] == 7 || Marcha[i] == 1) && GetPlayerSpeed(i, true) <= 0) // marcha nula // preto
  5346.             {
  5347.                 Marcha[i] = 6;
  5348.                 format(velo, sizeof(velo), "%d", GetPlayerSpeed(i, true));
  5349.                 TextDrawSetString(Textdraw12, velo);
  5350.                 TextDrawColor(Textdraw12, 255);
  5351.             }
  5352.             if((Marcha[i] == 1 || Marcha[i] == 6) && keys == KEY_JUMP && GetPlayerSpeed(i, true) != 0) // marcha ré // varia
  5353.             {
  5354.                 Marcha[i] = 7;
  5355.                 format(velo, sizeof(velo), "~g~%d", GetPlayerSpeed(i, true));
  5356.                 TextDrawSetString(Textdraw12, velo);
  5357.             }
  5358.             if((Marcha[i] == 7 || Marcha[i] == 6 || Marcha[i] == 2) && GetPlayerSpeed(i, true) > 0 && GetPlayerSpeed(i, true) <= 20) // marcha 1 // verde
  5359.             {
  5360.                 Marcha[i] = 1;
  5361.                 format(velo, sizeof(velo), "~g~%d", GetPlayerSpeed(i, true));
  5362.                 TextDrawSetString(Textdraw12, velo);
  5363.             }
  5364.             if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 20 && GetPlayerSpeed(i, true) <= 39) // marcha 2 // verde
  5365.             {
  5366.                 Marcha[i] = 2;
  5367.                 format(velo, sizeof(velo), "~g~%d", GetPlayerSpeed(i, true));
  5368.                 TextDrawSetString(Textdraw12, velo);
  5369.             }
  5370.             if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 39 && GetPlayerSpeed(i, true) <= 69) // marcha 3 // amarelo
  5371.             {
  5372.                 Marcha[i] = 3;
  5373.                 format(velo, sizeof(velo), "~y~%d", GetPlayerSpeed(i, true));
  5374.                 TextDrawSetString(Textdraw12, velo);
  5375.             }
  5376.             if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 69 && GetPlayerSpeed(i, true) <= 100) // marcha 4 // vermelho
  5377.             {
  5378.                 Marcha[i] = 4;
  5379.                 format(velo, sizeof(velo), "~r~%d", GetPlayerSpeed(i, true));
  5380.                 TextDrawSetString(Textdraw12, velo);
  5381.             }
  5382.             if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 100) // marcha 5 // vermelho
  5383.             {
  5384.                 Marcha[i] = 5;
  5385.                 format(velo, sizeof(velo), "~r~%d", GetPlayerSpeed(i, true));
  5386.                 TextDrawSetString(Textdraw12, velo);
  5387.             }
  5388.             switch(Marcha[i])
  5389.             {
  5390.                 case 1:
  5391.                 {
  5392.                     TextDrawSetString(Textdraw23, "R");
  5393.                     TextDrawColor(Textdraw23, 255);
  5394.                     TextDrawSetString(Textdraw24, "N");
  5395.                     TextDrawColor(Textdraw24, 255);
  5396.                     TextDrawSetString(Textdraw25, "~r~1");
  5397.                     TextDrawSetString(Textdraw26, "2");
  5398.                     TextDrawColor(Textdraw26, 255);
  5399.                     TextDrawSetString(Textdraw27, "3");
  5400.                     TextDrawColor(Textdraw27, 255);
  5401.                     TextDrawSetString(Textdraw28, "4");
  5402.                     TextDrawColor(Textdraw28, 255);
  5403.                     TextDrawSetString(Textdraw29, "5");
  5404.                     TextDrawColor(Textdraw29, 255);
  5405.                 }
  5406.                 case 2:
  5407.                 {
  5408.                     TextDrawSetString(Textdraw23, "R");
  5409.                     TextDrawColor(Textdraw23, 255);
  5410.                     TextDrawSetString(Textdraw24, "N");
  5411.                     TextDrawColor(Textdraw24, 255);
  5412.                     TextDrawSetString(Textdraw25, "1");
  5413.                     TextDrawColor(Textdraw25, 255);
  5414.                     TextDrawSetString(Textdraw26, "~r~2");
  5415.                     TextDrawSetString(Textdraw27, "3");
  5416.                     TextDrawColor(Textdraw27, 255);
  5417.                     TextDrawSetString(Textdraw28, "4");
  5418.                     TextDrawColor(Textdraw28, 255);
  5419.                     TextDrawSetString(Textdraw29, "5");
  5420.                     TextDrawColor(Textdraw29, 255);
  5421.                 }
  5422.                 case 3:
  5423.                 {
  5424.                     TextDrawSetString(Textdraw23, "R");
  5425.                     TextDrawColor(Textdraw23, 255);
  5426.                     TextDrawSetString(Textdraw24, "N");
  5427.                     TextDrawColor(Textdraw24, 255);
  5428.                     TextDrawSetString(Textdraw25, "1");
  5429.                     TextDrawColor(Textdraw25, 255);
  5430.                     TextDrawSetString(Textdraw26, "2");
  5431.                     TextDrawColor(Textdraw26, 255);
  5432.                     TextDrawSetString(Textdraw27, "~r~3");
  5433.                     TextDrawSetString(Textdraw28, "4");
  5434.                     TextDrawColor(Textdraw28, 255);
  5435.                     TextDrawSetString(Textdraw29, "5");
  5436.                     TextDrawColor(Textdraw29, 255);
  5437.                 }
  5438.                 case 4:
  5439.                 {
  5440.                     TextDrawSetString(Textdraw23, "R");
  5441.                     TextDrawColor(Textdraw23, 255);
  5442.                     TextDrawSetString(Textdraw24, "N");
  5443.                     TextDrawColor(Textdraw24, 255);
  5444.                     TextDrawSetString(Textdraw25, "1");
  5445.                     TextDrawColor(Textdraw25, 255);
  5446.                     TextDrawSetString(Textdraw26, "2");
  5447.                     TextDrawColor(Textdraw26, 255);
  5448.                     TextDrawSetString(Textdraw27, "3");
  5449.                     TextDrawColor(Textdraw27, 255);
  5450.                     TextDrawSetString(Textdraw28, "~r~4");
  5451.                     TextDrawSetString(Textdraw29, "5");
  5452.                     TextDrawColor(Textdraw29, 255);
  5453.                 }
  5454.                 case 5:
  5455.                 {
  5456.                     TextDrawSetString(Textdraw23, "R");
  5457.                     TextDrawColor(Textdraw23, 255);
  5458.                     TextDrawSetString(Textdraw24, "N");
  5459.                     TextDrawColor(Textdraw24, 255);
  5460.                     TextDrawSetString(Textdraw25, "1");
  5461.                     TextDrawColor(Textdraw25, 255);
  5462.                     TextDrawSetString(Textdraw26, "2");
  5463.                     TextDrawColor(Textdraw26, 255);
  5464.                     TextDrawSetString(Textdraw27, "3");
  5465.                     TextDrawColor(Textdraw27, 255);
  5466.                     TextDrawSetString(Textdraw28, "4");
  5467.                     TextDrawColor(Textdraw28, 255);
  5468.                     TextDrawSetString(Textdraw29, "~r~5");
  5469.                 }
  5470.                 case 6:
  5471.                 {
  5472.                     TextDrawSetString(Textdraw23, "R");
  5473.                     TextDrawColor(Textdraw23, 255);
  5474.                     TextDrawSetString(Textdraw24, "~r~N");
  5475.                     TextDrawSetString(Textdraw25, "1");
  5476.                     TextDrawColor(Textdraw25, 255);
  5477.                     TextDrawSetString(Textdraw26, "2");
  5478.                     TextDrawColor(Textdraw26, 255);
  5479.                     TextDrawSetString(Textdraw27, "3");
  5480.                     TextDrawColor(Textdraw27, 255);
  5481.                     TextDrawSetString(Textdraw28, "4");
  5482.                     TextDrawColor(Textdraw28, 255);
  5483.                     TextDrawSetString(Textdraw29, "5");
  5484.                     TextDrawColor(Textdraw29, 255);
  5485.                 }
  5486.                 case 7:
  5487.                 {
  5488.                     TextDrawSetString(Textdraw23, "~r~R");
  5489.                     TextDrawSetString(Textdraw24, "N");
  5490.                     TextDrawColor(Textdraw24, 255);
  5491.                     TextDrawSetString(Textdraw25, "1");
  5492.                     TextDrawColor(Textdraw25, 255);
  5493.                     TextDrawSetString(Textdraw26, "2");
  5494.                     TextDrawColor(Textdraw26, 255);
  5495.                     TextDrawSetString(Textdraw27, "3");
  5496.                     TextDrawColor(Textdraw27, 255);
  5497.                     TextDrawSetString(Textdraw28, "4");
  5498.                     TextDrawColor(Textdraw28, 255);
  5499.                     TextDrawSetString(Textdraw29, "5");
  5500.                     TextDrawColor(Textdraw29, 255);
  5501.                 }
  5502.             }
  5503.             if(Latariadocarro/10 > 70)
  5504.             {
  5505.                 TextDrawSetString(Textdraw20, "~g~Funcionando");
  5506.             }
  5507.             if(Latariadocarro/10 > 50 && Latariadocarro/10 <= 70)
  5508.             {
  5509.                 TextDrawSetString(Textdraw20, "~y~Instavel");
  5510.             }
  5511.             if(Latariadocarro/10 > 40 && Latariadocarro/10 <= 50)
  5512.             {
  5513.                 TextDrawSetString(Textdraw33, "~r~Fumacando");
  5514.                 TextDrawSetString(Textdraw20, "~r~Danificado");
  5515.             }
  5516.             if(Latariadocarro/10 <= 40 && Latariadocarro/10 >= 35)
  5517.             {
  5518.                 TextDrawSetString(Textdraw20, "~r~Critico");
  5519.                 TextDrawSetString(Textdraw33, "~r~Fumacando");
  5520.             }
  5521.             if(Latariadocarro/10 < 35)
  5522.             {
  5523.                 GameTextForPlayer(i, "~r~(!)~n~~w~Seu carro esta muito danificado para ser conduzido, chame um mecanico.", 7000, 3);
  5524.                 SetVehicleHealth(GetPlayerVehicleID(i), 31);
  5525.                 TogglePlayerControllable(i, 0);
  5526.                 TextDrawSetString(Textdraw20, "~r~Critico");
  5527.                 TextDrawSetString(Textdraw33, "~r~Quebrado");
  5528.                 Marcha[i] = 6;
  5529.                 TextDrawSetString(Textdraw12, "0");
  5530.                 TextDrawColor(Textdraw12, 255);
  5531.                 TextDrawSetString(Textdraw23, "R");
  5532.                 TextDrawColor(Textdraw23, 255);
  5533.                 TextDrawSetString(Textdraw24, "~r~N");
  5534.                 TextDrawSetString(Textdraw25, "1");
  5535.                 TextDrawColor(Textdraw25, 255);
  5536.                 TextDrawSetString(Textdraw26, "2");
  5537.                 TextDrawColor(Textdraw26, 255);
  5538.                 TextDrawSetString(Textdraw27, "3");
  5539.                 TextDrawColor(Textdraw27, 255);
  5540.                 TextDrawSetString(Textdraw28, "4");
  5541.                 TextDrawColor(Textdraw28, 255);
  5542.                 TextDrawSetString(Textdraw29, "5");
  5543.                 TextDrawColor(Textdraw29, 255);
  5544.             }
  5545.         }
  5546.         else
  5547.         {
  5548.             JanelaAberta[i] = 0;
  5549.             if(VelocidadeLigada[i] == 1)
  5550.             {
  5551.                 TextDrawHideForPlayer(i, Textdraw9);
  5552.                 TextDrawHideForPlayer(i, Textdraw10);
  5553.                 TextDrawHideForPlayer(i, Textdraw11);
  5554.                 TextDrawHideForPlayer(i, Textdraw12);
  5555.                 TextDrawHideForPlayer(i, Textdraw13);
  5556.                 TextDrawHideForPlayer(i, Textdraw14);
  5557.                 TextDrawHideForPlayer(i, Textdraw15);
  5558.                 TextDrawHideForPlayer(i, Textdraw16);
  5559.                 TextDrawHideForPlayer(i, Textdraw17);
  5560.                 TextDrawHideForPlayer(i, Textdraw18);
  5561.                 TextDrawHideForPlayer(i, Textdraw19);
  5562.                 TextDrawHideForPlayer(i, Textdraw20);
  5563.                 TextDrawHideForPlayer(i, Textdraw21);
  5564.                 TextDrawHideForPlayer(i, Textdraw22);
  5565.                 TextDrawHideForPlayer(i, Textdraw23);
  5566.                 TextDrawHideForPlayer(i, Textdraw24);
  5567.                 TextDrawHideForPlayer(i, Textdraw25);
  5568.                 TextDrawHideForPlayer(i, Textdraw26);
  5569.                 TextDrawHideForPlayer(i, Textdraw27);
  5570.                 TextDrawHideForPlayer(i, Textdraw28);
  5571.                 TextDrawHideForPlayer(i, Textdraw29);
  5572.                 TextDrawHideForPlayer(i, Textdraw30);
  5573.                 TextDrawHideForPlayer(i, Textdraw31);
  5574.                 TextDrawHideForPlayer(i, Textdraw32);
  5575.                 TextDrawHideForPlayer(i, Textdraw33);
  5576.                 VelocidadeLigada[i] = 0;
  5577.                 Marcha[i] = 0;
  5578.             }
  5579.         }
  5580.     }
  5581.     for(new i=0; i<MAX_PLAYERS; i++)
  5582.     {
  5583.         if(IsPlayerConnected(i))
  5584.         {
  5585.             if(spawnado[i] == 1)
  5586.             {
  5587.                 if(VelocidadeLigada[i] == 1)
  5588.                 {
  5589.                 }
  5590.                 if(VelocidadeLigada[i] == 0)
  5591.                 {
  5592.                 }
  5593.             }
  5594.         }
  5595.     }
  5596. }
  5597.  
  5598. public AtualizarJogador(playerid)
  5599. {
  5600.     if(IsPlayerConnected(playerid))
  5601.     {
  5602.         if(PlayerInfo[playerid][pLogado] == 1)
  5603.         {
  5604.         new string3[128];
  5605.         format(string3, sizeof(string3), "Contas/%s.ini", NomeDoJogador(playerid));
  5606.         dini_IntSet(string3,"Registrado", PlayerInfo[playerid][pReg]);
  5607.         dini_IntSet(string3,"NRegistro", PlayerInfo[playerid][pNRegistro]);
  5608.         dini_IntSet(string3,"RegistroGeral", PlayerInfo[playerid][pRegistroGeral]);
  5609.         dini_IntSet(string3,"Level", GetPlayerScore(playerid));
  5610.         dini_IntSet(string3,"Dinheiro", PlayerInfo[playerid][pMoney]);
  5611.         dini_IntSet(string3, "Sexo",PlayerInfo[playerid][pSexo]);
  5612.         dini_IntSet(string3, "Idade",PlayerInfo[playerid][pIdade]);
  5613.         dini_IntSet(string3,"DiaDeNascimento", PlayerInfo[playerid][pDiaNascimento]);
  5614.         dini_IntSet(string3,"MesDeNascimento", PlayerInfo[playerid][pMesNascimento]);
  5615.         dini_IntSet(string3,"AnoDeNascimento", PlayerInfo[playerid][pAnoNascimento]);
  5616.         dini_IntSet(string3, "Origem",PlayerInfo[playerid][pOrigem]);
  5617.         dini_IntSet(string3, "CartTrab", PlayerInfo[playerid][pCartTrab]);
  5618.         dini_IntSet(string3, "TituloE", PlayerInfo[playerid][pTituloE]);
  5619.         dini_IntSet(string3,"Admin", PlayerInfo[playerid][pAdmin]);
  5620.         dini_IntSet(string3,"Emprego", PlayerInfo[playerid][pEmprego]);
  5621.         dini_IntSet(string3,"Banido", PlayerInfo[playerid][pBanido]);
  5622.         dini_IntSet(string3,"ORG", PlayerInfo[playerid][pORG]);
  5623.         dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
  5624.         dini_IntSet(string3,"Morreu", PlayerInfo[playerid][pMortes]);
  5625.         dini_IntSet(string3,"Matou", PlayerInfo[playerid][pKills]);
  5626.         dini_IntSet(string3,"TempoPD", PlayerInfo[playerid][pTempoPD]);
  5627.         dini_IntSet(string3,"Lider", PlayerInfo[playerid][pLider]);
  5628.         dini_IntSet(string3,"Cargo", PlayerInfo[playerid][pCargo]);
  5629.         dini_IntSet(string3,"EXP", PlayerInfo[playerid][pEXP]);
  5630.         dini_IntSet(string3,"Banco", PlayerInfo[playerid][pBanco]);
  5631.         dini_IntSet(string3,"Relógio", PlayerInfo[playerid][pRelogio]);
  5632.         dini_IntSet(string3,"GPS", PlayerInfo[playerid][pGPS]);
  5633.         dini_IntSet(string3,"Agenda", PlayerInfo[playerid][pAgenda]);
  5634.         dini_IntSet(string3,"NúmeroCelular", PlayerInfo[playerid][pCNumero]);
  5635.         dini_IntSet(string3,"Tutorial", PlayerInfo[playerid][pTut]);
  5636.         }
  5637.     }
  5638.     return 1;
  5639. }
  5640.  
  5641. // [ MensagemPraAdmin ]
  5642. forward MensagemAdmin(COLOR,const string[],nivel);
  5643. public MensagemAdmin(COLOR,const string[],nivel)
  5644. {
  5645.     for(new i = 0; i < MAX_PLAYERS; i++)
  5646.     {
  5647.         if(IsPlayerConnected(i))
  5648.         {
  5649.             if (PlayerInfo[i][pAdmin] >= nivel && PlayerInfo[i][pATrabalhando] == 1 || PlayerInfo[i][pAdmin] == 2)
  5650.             {
  5651.                 SCM(i, COLOR, string);
  5652.                 printf("%s", string);
  5653.             }
  5654.         }
  5655.     }
  5656.     return 1;
  5657. }
  5658.  
  5659.  
  5660. // [ É número ]
  5661. stock EUmNumero(string[])
  5662. {
  5663.     for (new i = 0, j = strlen(string); i < j; i++)
  5664.     {
  5665.         if (string[i] > '9' || string[i] < '0') return 0;
  5666.     }
  5667.     return 1;
  5668. }
  5669.  
  5670. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  5671. {
  5672.     if(IsPlayerConnected(playerid))
  5673.     {
  5674.         new Float:oldposx, Float:oldposy, Float:oldposz;
  5675.         new Float:tempposx, Float:tempposy, Float:tempposz;
  5676.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  5677.         tempposx = (oldposx -x);
  5678.         tempposy = (oldposy -y);
  5679.         tempposz = (oldposz -z);
  5680.         //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  5681.         if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  5682.         {
  5683.             return 1;
  5684.         }
  5685.     }
  5686.     if(IsPlayerConnected(playerid))
  5687.     {
  5688.         new Float:oldposx, Float:oldposy, Float:oldposz;
  5689.         new Float:tempposx, Float:tempposy, Float:tempposz;
  5690.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  5691.         tempposx = (oldposx -x);
  5692.         tempposy = (oldposy -y);
  5693.         tempposz = (oldposz -z);
  5694.         if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  5695.         {
  5696.             return 1;
  5697.         }
  5698.     }
  5699.     return 0;
  5700. }
  5701.  
  5702. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  5703. {
  5704.     if(IsPlayerConnected(playerid))
  5705.     {
  5706.         new Float:posx, Float:posy, Float:posz;
  5707.         new Float:oldposx, Float:oldposy, Float:oldposz;
  5708.         new Float:tempposx, Float:tempposy, Float:tempposz;
  5709.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  5710.         //radi = 2.0; //Trigger Radius
  5711.         for(new i = 0; i < MAX_PLAYERS; i++)
  5712.         {
  5713.             if(IsPlayerConnected(i))
  5714.             {
  5715.                 if(!BigEar[i])
  5716.                 {
  5717.                     GetPlayerPos(i, posx, posy, posz);
  5718.                     tempposx = (oldposx -posx);
  5719.                     tempposy = (oldposy -posy);
  5720.                     tempposz = (oldposz -posz);
  5721.                     //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  5722.                     if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  5723.                     {
  5724.                         SCM(i, col1, string);
  5725.                     }
  5726.                     else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  5727.                     {
  5728.                         SCM(i, col2, string);
  5729.                     }
  5730.                     else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  5731.                     {
  5732.                         SCM(i, col3, string);
  5733.                     }
  5734.                     else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  5735.                     {
  5736.                         SCM(i, col4, string);
  5737.                     }
  5738.                     else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  5739.                     {
  5740.                         SCM(i, col5, string);
  5741.                     }
  5742.                 }
  5743.                 else
  5744.                 {
  5745.                     SCM(i, col1, string);
  5746.                 }
  5747.             }
  5748.         }
  5749.     }//not connected
  5750.     return 1;
  5751. }
  5752.  
  5753. public ProxDetectorS(Float:radi, playerid, targetid)
  5754. {
  5755.     if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
  5756.     {
  5757.         new Float:posx, Float:posy, Float:posz;
  5758.         new Float:oldposx, Float:oldposy, Float:oldposz;
  5759.         new Float:tempposx, Float:tempposy, Float:tempposz;
  5760.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  5761.         //radi = 2.0; //Trigger Radius
  5762.         GetPlayerPos(targetid, posx, posy, posz);
  5763.         tempposx = (oldposx -posx);
  5764.         tempposy = (oldposy -posy);
  5765.         tempposz = (oldposz -posz);
  5766.         //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  5767.         if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  5768.         {
  5769.             return 1;
  5770.         }
  5771.     }
  5772.     return 0;
  5773. }
  5774.  
  5775.  
  5776. stock Localizacoes(playerid)
  5777. {
  5778.     new location[MAX_ZONE_NAME];
  5779.     GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  5780.     return location;
  5781. }
  5782. stock GetPlayer2DZone(playerid, zone[], len)
  5783. {
  5784.     new Float:x, Float:y, Float:z;
  5785.     GetPlayerPos(playerid, x, y, z);
  5786.     for(new i = 0; i != sizeof(gSAZones); i++ )
  5787.     {
  5788.         if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
  5789.         {
  5790.             return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  5791.         }
  5792.     }
  5793.     return 0;
  5794. }
  5795.  
  5796. stock ReturnPlayerZone(playerid)
  5797. {
  5798.     new location[MAX_ZONE_NAME];
  5799.     GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  5800.     return location;
  5801. }
  5802.  
  5803. stock GetPlayerSpeed(playerid, bool:velo)
  5804. {
  5805.     new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
  5806.     if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
  5807.     rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
  5808.     return velo?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
  5809. }
  5810.  
  5811. stock MostrarAdmin(playerid)
  5812. {
  5813.     for(new i=0;i<=MAX_PLAYERS;i++) if(IsPlayerConnected(i))
  5814.     {
  5815.         if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pATrabalhando] == 1)
  5816.         {
  5817.             SetPlayerMarkerForPlayer(playerid,i, GetPlayerColor(i));
  5818.         }
  5819.     }
  5820.     return 1;
  5821. }
  5822.  
  5823. forward ChatOOC(cor,const string[]);
  5824. public ChatOOC(cor,const string[])
  5825. {
  5826.     for(new i = 0; i < MAX_PLAYERS; i++)
  5827.     {
  5828.         if(IsPlayerConnected(i))
  5829.         {
  5830.             if(PlayerInfo[i][pSemOOC] == 0)
  5831.             {
  5832.                 SCM(i, cor, string);
  5833.             }
  5834.         }
  5835.     }
  5836. }
  5837.  
  5838. // NivelDeAdm
  5839. stock NivelDeAdm(playerid)
  5840. {
  5841.     new niveldeadmin[21];
  5842.     if(PlayerInfo[playerid][pAdmin] == 0)
  5843.     {
  5844.         niveldeadmin = "jogador";
  5845.     }
  5846.     if(PlayerInfo[playerid][pAdmin] == 1)
  5847.     {
  5848.         niveldeadmin = "administrador";
  5849.     }
  5850.     if(PlayerInfo[playerid][pAdmin] == 2)
  5851.     {
  5852.         niveldeadmin = "administrador dono";
  5853.     }
  5854.     return niveldeadmin;
  5855. }
  5856.  
  5857. // [ ANTIFLOOD ]
  5858. forward ResetarChat(playerid);
  5859. public ResetarChat(playerid)
  5860. {
  5861.     ANTIFLOOD[playerid] = 0;
  5862.     return 0x01;
  5863. }
  5864.  
  5865. //==============================================================================
  5866. // LOGS ========================================================================
  5867. //==============================================================================
  5868. public ActionLog(string[])
  5869. {
  5870.     new entry[200];
  5871.     format(entry, sizeof(entry), "%s\n",string);
  5872.     new File:hFile;
  5873.     hFile = fopen("Logs/Acoes.log", io_append);
  5874.     fwrite(hFile, entry);
  5875.     fclose(hFile);
  5876. }
  5877.  
  5878. public AdminLog(string[])
  5879. {
  5880.     new entry[128];
  5881.     format(entry, sizeof(entry), "%s\n",string);
  5882.     new File:hFile;
  5883.     hFile = fopen("Logs/AdminLog.log", io_append);
  5884.     fwrite(hFile, entry);
  5885.     fclose(hFile);
  5886. }
  5887.  
  5888. public KickLog(string[])
  5889. {
  5890.     new entry[128];
  5891.     format(entry, sizeof(entry), "%s\n",string);
  5892.     new File:hFile;
  5893.     hFile = fopen("Logs/kick.log", io_append);
  5894.     fwrite(hFile, entry);
  5895.     fclose(hFile);
  5896. }
  5897.  
  5898. public BanLog(string[])
  5899. {
  5900.     new entry[128];
  5901.     format(entry, sizeof(entry), "%s\n",string);
  5902.     new File:hFile;
  5903.     hFile = fopen("Logs/ban.log", io_append);
  5904.     fwrite(hFile, entry);
  5905.     fclose(hFile);
  5906. }
  5907.  
  5908. public Banido(playerid, motivo[], admin[])
  5909. {
  5910.     new str[64], string[64], ip[20];
  5911.     format(str,sizeof(str),"Banidos/%s.ini",NomeDoJogador(playerid));
  5912.     dini_Create(str);
  5913.     dini_IntSet(str,"Banido", 1);
  5914.     dini_Set(str,"Motivo", motivo);
  5915.     dini_Set(str,"AdminBan", admin);
  5916.  
  5917.     GetPlayerIp(playerid, ip, sizeof(ip));
  5918.     format(string, sizeof(string), "IPs Banidos/%s.ini",ip);
  5919.     dini_Create(string);
  5920.     dini_Set(string,"Nome",NomeDoJogador(playerid));
  5921.     dini_Set(string,"Motivo", motivo);
  5922.     dini_Set(string,"AdminBan", admin);
  5923.     return 1;
  5924. }
  5925.  
  5926. public DeleteLog(string[])
  5927. {
  5928.     new entry[128];
  5929.     format(entry, sizeof(entry), "%s\n",string);
  5930.     new File:hFile;
  5931.     hFile = fopen("Logs/ContasDeletadas.log", io_append);
  5932.     fwrite(hFile, entry);
  5933.     fclose(hFile);
  5934. }
  5935.  
  5936. public Producao()
  5937. {
  5938.     for(new i = 0; i <= MAX_PLAYERS; ++i)
  5939.     {
  5940.         if(PlayerInfo[i][pLogado] == 1)
  5941.         {
  5942.             if(PlayerInfo[i][pTempoPD] < 4) { SCM(i, COR_INFO, "UHU. +1 TEMPOPÊDê"); PlayerInfo[i][pTempoPD] += 1; AtualizarJogador(i); } // A cada 4 mins ganha 1 pt de PD
  5943.         }
  5944.     }
  5945. }
  5946.  
  5947. public PayDay()
  5948. {
  5949.     for(new i = 0; i < MAX_PLAYERS; i++)
  5950.     {
  5951.         if(PlayerInfo[i][pLogado] == 1)
  5952.         {
  5953.             if(!IsPlayerNPC(i))
  5954.             {
  5955.                 if(PlayerInfo[i][pLevel] > 0)
  5956.                 {
  5957.                     //SeAlugaCasa
  5958.                     //SeAlugaCarro
  5959.                     //SeEstáPreso
  5960.                     //SeTemCasa
  5961.                     //SeTemEmpresa
  5962.                     //SeTemCarro
  5963.                     if(PlayerInfo[i][pTempoPD] > 3)
  5964.                     {
  5965.                         SCM(i, COR_INFO, "AIEW -0-QQ,, GANHO PEIDEI");
  5966.                         PlayerInfo[i][pTempoPD] = 0;
  5967.                     }
  5968.                 }
  5969.             }
  5970.         }
  5971.     }
  5972.     return 0x01;
  5973. }
  5974.  
  5975. // RELÓGIO OOC
  5976. public ProcessGameTime(playerid)
  5977. {
  5978.     new string[128];
  5979.     gettime(i_ServerHours, i_ServerMinutes, i_ServerSeconds);
  5980.     getdate(i_ServerYears, i_ServerMonths, i_ServerDays);
  5981.     format(string, sizeof string, "%02d", i_ServerHours);    // Horas
  5982.     TextDrawSetString(Textdraw0, string);
  5983.     format(string, sizeof string, ":%02d", i_ServerMinutes); // Minutos
  5984.     TextDrawSetString(Textdraw1, string);
  5985.     format(string, sizeof string, ":%02d", i_ServerSeconds); // Segundos
  5986.     TextDrawSetString(Textdraw2, string);
  5987.     format(string, sizeof string, "%02d", i_ServerDays);     // Dias
  5988.     TextDrawSetString(Textdraw3, string);
  5989.     format(string, sizeof string, "/%02d", i_ServerMonths);  // Meses
  5990.     TextDrawSetString(Textdraw4, string);
  5991.     format(string, sizeof string, "/%02d", i_ServerYears);   // Anos
  5992.     TextDrawSetString(Textdraw5, string);
  5993. }
  5994.  
  5995. //RELÓGIO IC
  5996.  
  5997. public RelogioDoServerEmIC()
  5998. {
  5999.     new str[128];
  6000.     new dds[25];
  6001.     if(MinutosIC >= 59)
  6002.     {
  6003.         if(HorasIC >= 23 && MinutosIC >= 59)
  6004.         {
  6005.             DiaDaSemana += 1;
  6006.             switch(DiaDaSemana)
  6007.             {
  6008.                 case 0: { format(str, sizeof str, "BUGOU"); format(dds, sizeof dds, "~w~BUGOU"); TextDrawSetString(Textdraw8, str); }
  6009.                 case 1: { format(str, sizeof str, "Domingo"); format(dds, sizeof dds, "~w~Domingo"); TextDrawSetString(Textdraw8, str); }
  6010.                 case 2: { format(str, sizeof str, "Segunda-feira"); format(dds, sizeof dds, "~w~Segunda-feira"); TextDrawSetString(Textdraw8, str); }
  6011.                 case 3: { format(str, sizeof str, "Terca-feira"); format(dds, sizeof dds, "~w~Terca-feira"); TextDrawSetString(Textdraw8, str); }
  6012.                 case 4: { format(str, sizeof str, "Quarta-feira"); format(dds, sizeof dds, "~w~Quarta-feira"); TextDrawSetString(Textdraw8, str); }
  6013.                 case 5: { format(str, sizeof str, "Quinta-feira"); format(dds, sizeof dds, "~w~Quinta-feira"); TextDrawSetString(Textdraw8, str); }
  6014.                 case 6: { format(str, sizeof str, "Sexta-feira"); format(dds, sizeof dds, "~w~Sexta-feira"); TextDrawSetString(Textdraw8, str); }
  6015.                 case 7: { format(str, sizeof str, "Sabado"); format(dds, sizeof dds, "~w~Sabado"); TextDrawSetString(Textdraw8, str); }
  6016.             }
  6017.             GameTextForAll(dds, 5000, 3);
  6018.             SendClientMessageToAll(COR_INFO, "{FF0000}(!){A9C4E4} Carregando PayDay...");
  6019.             SendClientMessageToAll(COR_INFO, "");
  6020.             SendClientMessageToAll(COR_INFO, "");
  6021.             PayDay();
  6022.             format(str, sizeof str, "%02d", HorasIC);
  6023.             TextDrawSetString(Textdraw6, str);
  6024.             format(str, sizeof str, ":%02d", MinutosIC);
  6025.             TextDrawSetString(Textdraw7, str);
  6026.             MinutosIC = 0;
  6027.             HorasIC = 0;
  6028.             return 1;
  6029.         }
  6030.         format(str, sizeof str, "%02d", HorasIC);
  6031.         TextDrawSetString(Textdraw6, str);
  6032.         format(str, sizeof str, ":%02d", MinutosIC);
  6033.         TextDrawSetString(Textdraw7, str);
  6034.         MinutosIC = 0;
  6035.         HorasIC += 1;
  6036.         return 1;
  6037.     }
  6038.     format(str, sizeof str, "%02d", HorasIC);     // Horas(Minutos)
  6039.     TextDrawSetString(Textdraw6, str);
  6040.     format(str, sizeof str, ":%02d", MinutosIC);  // Minutos(Segundos)
  6041.     TextDrawSetString(Textdraw7, str);
  6042.     MinutosIC += 1;
  6043.     SetWorldTime(HorasIC);
  6044.     for(new i = 0; i < MAX_PLAYERS; i++)SetPlayerTime(i, HorasIC, MinutosIC);
  6045.     return 1;
  6046. }
  6047.  
  6048. SetVehicleEngineOn(vehicleid)
  6049. {
  6050.     GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  6051.     SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
  6052. }
  6053.  
  6054. // Gasolina
  6055. public ObterGas()
  6056. {
  6057.     new str[100];
  6058.     for(new i=0; i<MAX_PLAYERS; i++)
  6059.     {
  6060.         if(PlayerInfo[i][pLogado] == 1)
  6061.         {
  6062.             new VID = GetPlayerVehicleID(i);
  6063.             if(Tanque[VID] == MaxGas)
  6064.             {
  6065.                 Abastecendo[i] = 0;
  6066.                 TextDrawSetString(Textdraw15, "");
  6067.                 TextDrawSetString(Textdraw19, "%");
  6068.             }
  6069.             if(Abastecendo[i] == 1 && EUmPostoDeGas(i))
  6070.             {
  6071.                 if(GetPlayerMoney(i) < PRECGAS) return SCM(i, COR_INFO, "      {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente para um litro."), Abastecendo[i] = 0;
  6072.                 Tanque[VID]++;
  6073.                 format(str, sizeof str, "~g~%d ~u~", Tanque[VID]);
  6074.                 TextDrawSetString(Textdraw15, str);
  6075.                 TextDrawSetString(Textdraw19, "");
  6076.                 PlayerInfo[i][pMoney] -= PRECGAS;
  6077.                 GivePlayerMoney(i, -PRECGAS);
  6078.                 AtualizarJogador(i);
  6079.             }
  6080.             if(Abastecendo[i] == 1 && !EUmPostoDeGas(i))
  6081.             {
  6082.                 Abastecendo[i] = 0;
  6083.                 TextDrawSetString(Textdraw15, "");
  6084.                 TextDrawSetString(Textdraw19, "%");
  6085.             }
  6086.         }
  6087.     }
  6088.     return 1;
  6089. }
  6090.  
  6091. public GastarGas()
  6092. {
  6093.     new str[126];
  6094.     for(new veid=0; veid<MAX_VEHICLES; veid++)
  6095.     {
  6096.        GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
  6097.        if(Tanque[veid] >= 1 && engine == 1) Tanque[veid]--;
  6098.     }
  6099.     for(new i=0; i<MAX_PLAYERS; i++)
  6100.     {
  6101.         new veu = GetPlayerVehicleID(i);
  6102.         GetVehicleParamsEx(veu,engine,lights,alarm,doors,bonnet,boot,objective);
  6103.         if(PlayerInfo[i][pLogado] == 1)
  6104.         {
  6105.             if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
  6106.             {
  6107.                 if(Tanque[veu] <= 10) PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0);
  6108.                 if(Tanque[veu] < 1 && engine == 1)
  6109.                 {
  6110.                     SetVehicleParamsEx(veu,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
  6111.                     TogglePlayerControllable(i, 0);
  6112.                     SemGas[veu] = 1;
  6113.                     PlayerPlaySound(i, 1159, 0.0, 0.0, 0.0);
  6114.                     format(str, sizeof(str), "* Veículo desligou, pois o tanque está vazio. (( %s ))", NomeDoJogador(i));
  6115.                     ProxDetector(30.0, i, str, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
  6116.                 }
  6117.             }
  6118.         }
  6119.     }
  6120.     return 1;
  6121. }
  6122.  
  6123. public EUmPostoDeGas(playerid)
  6124. {
  6125.     if(IsPlayerConnected(playerid))
  6126.     {
  6127.         if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906) || PlayerToPoint(6.0,playerid,1400.6882,-1680.5344,42.4339) || PlayerToPoint(6.0,playerid,1496.5316,-1544.0677,23.5481) || PlayerToPoint(6.0,playerid,2737.3364,-1774.2123,43.7973))
  6128.         {//LS
  6129.             return 1;
  6130.         }
  6131.         else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
  6132.         {//LS
  6133.             return 1;
  6134.         }
  6135.         else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
  6136.         {//SF
  6137.             return 1;
  6138.         }
  6139.         else if(PlayerToPoint(6.0,playerid,1380.4712,462.7467,20.1107) || PlayerToPoint(8.0,playerid,1385.0475,460.5417,20.1068))
  6140.         {//PC
  6141.             return 1;
  6142.         }
  6143.         else if(PlayerToPoint(6.0,playerid,1383.5532,457.1286,19.9561) || PlayerToPoint(8.0,playerid,1379.1952,459.1295,19.9587))
  6144.         {//PC
  6145.             return 1;
  6146.         }
  6147.         else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
  6148.         {//Between LS and SF
  6149.             return 1;
  6150.         }
  6151.         else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
  6152.         {//LV
  6153.             return 1;
  6154.         }
  6155.         else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
  6156.         {//LV
  6157.             return 1;
  6158.         }
  6159.         else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
  6160.         {//LV
  6161.             return 1;
  6162.         }
  6163.         else if(PlayerToPoint(8.0, playerid, -168.0775,1228.2975,19.7452))
  6164.         {//FC
  6165.             return 1;
  6166.         }
  6167.     }
  6168.     return 0;
  6169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement