LifeAdvanced

Euro RPG

Oct 15th, 2012
1,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 387.73 KB | None | 0 0
  1. /*
  2.  
  3.  
  4.  
  5.             //-----------------------[ Euro RPG]---------------------------//
  6.  
  7.                 Scripter : Life_Advanced.
  8.                 Agradeçimentos ao : American_Style.
  9.                 Sistema de Admin Criado por : humildadeforever( Aninha )
  10.                 Mapper : Yuri_Delta.
  11.                 Agradeçimentos a Forum Samp por Valorizar trabalho de Todos !
  12.                 Não retira os Creditos.
  13.                 Caso Faltar Créditos, irei Colocar na Forum Samp !
  14.  
  15.  
  16.             //--------------------------------------------------------------//
  17.  
  18.  
  19. */
  20.  
  21. //(=-=-=-=( Include )=-=-=-=)
  22. #include    a_samp
  23. #include    zcmd
  24. #include    dof2
  25.  
  26. //(=-=-=-=( Defines )=-=-=-=)
  27. #define USAR_SISTEMA_REGISTRO 1
  28. #define USAR_SISTEMA_VIP 1
  29. #define USAR_TEXT 0
  30. #define SPAWNAR_HQ 1
  31. #define DESTAQUE_ADMINS 1
  32. #define MAX_PING 999
  33. #define AUTO_LOGIN false
  34. #define SENHA "22297770"
  35. #define CAR_AMOUNT 100
  36.  
  37. //--------[ Nome/Modo/Mapa ]--------//
  38. #define Life_NOME               "• [BR/PT] Euro RPG [RPG v1.0] •"
  39. #define Life_MODO               "(RPG v1.0) • (Brasil) •"
  40. #define Life_MAPA               "• [Los Santos] •"
  41.  
  42. //(=-=-=-=-=( MACROS )=-=-=-=)
  43. #define MensagemFormatadaParaTodos(%0,%1,%2); format(String, sizeof(String), %1, %2);   SendClientMessageToAll(%0, String);
  44. #define MensagemFormatada(%0,%1,%2); format(String, sizeof(String), %1, %2);            SendClientMessage(playerid, %0, String);
  45. #define MsgFormat(%0,%1,%2,%3); format(String, sizeof String, %2, %3); SendClientMessage(%0, %1, String);
  46. #define SetarDado(%0,%1,%2); PlayerDados[%0][%1] = %2; SalvarDados(%0);
  47. #define GetarDado(%0,%1) PlayerDados[%0][%1]
  48. #define Loop(%0,%1) for(new %0 = 0; %0 < %1; ++%0)
  49. #define Controle TogglePlayerControllable
  50. #define sleep2(%0);  for(new _@%0; _@%0 != (%0*50000000);) (_@%0++);
  51.  
  52. //(=-=-=-=-=( Defines )=-=-=-=)
  53. #define Msg         SendClientMessage
  54. #define MsgAll      SendClientMessageToAll
  55. #define LogExistir  fexist
  56. #define BOM 127
  57. #define BemVindo 128
  58. #define TempoGas 5000
  59. #define GasMax 100
  60. #define KEY_HORN 2
  61. #define TimerGAS 15000
  62. #define Documentos 2000
  63. #define MAX_ZONE_NAME 28
  64. #define COLOR_DEPARTAMENTO 0x993333FF
  65.  
  66. //(=-=-=-=-=( Defines de Org's )=-=-=-=-=)
  67. #define Civil 0
  68. #define Ballas 1
  69. #define PoliciaM 2
  70.  
  71. //(=-=-=-=-=( CORES )=-=-=-=-=)
  72. #define VERDE                   0x21DD00FF
  73. #define VERMELHO                0xFF030FFF
  74. #define VERMELHO_ESCURO         0xE60000FF
  75. #define VERMELHO_CLARO          0xFB0000FF
  76. #define AMARELO                 0xFFFF00FF
  77. #define LARANJA                 0xF97804FF
  78. #define AZUL_CLARO              0x00C2ECFF
  79. #define ROXO                    0xB360FDFF
  80. #define BRANCO                  0xFFFFFFFF
  81. #define PRETO                   0x000000FF
  82. #define AZUL                    0x1229FAFF
  83. #define VERDE_CLARO             0x38FF06FF
  84. #define ROSA_CHOQUE             0xE100E1FF
  85. #define VERDE_ESCURO            0x008040FF
  86. #define CINZA                   0xCECECEFF
  87. #define ROSA                    0xD52DFFFF
  88. #define CINZA_ESCURO            0x626262FF
  89. #define VERDE_AGUA              0x03D687FF
  90. #define COR_RED                 0xFF0000FF
  91. #define COR_ROSA                0xE100E1FF
  92.  
  93. //-----------[ Cor's das Orgs ]---------//
  94. #define COR_BRANCO              0xFFFFFFAA
  95. #define COR_BALLAS              0x9900CCF6
  96. #define COR_PM                  0x1229FAFF
  97.  
  98. /*      DIALOGS     */
  99. #define DIALOG_REGISTRO         4672
  100. #define DIALOG_LOGIN            4673
  101. #define DIALOG_BANIDO           4674
  102. #define DIALOG_IPS              4675
  103. #define DIALOG_INFO             4676
  104. #define DIALOG_AL               4677
  105. #define Ajudando2               4692
  106. #define DIALOG_ADM              4678
  107. #define DIALOG_HELPER           4679
  108. #define DIALOG_SENHANOVA        4681
  109. #define DIALOG_FORCAR           4682
  110. #define DIALOG_AJUDAV           4683
  111. #define DIALOG_KICKAR           4684
  112. #define DIALOG_BANIR            4685
  113. #define DIALOG_ADVERTIR         4686
  114. #define DIALOG_OPCOES           4687
  115. #define DIALOG_PART             4688
  116. #define DIALOG_IPS1             4689
  117. #define DIALOG_IPS2             4690
  118. #define DIALOG_STATUS           4691
  119.  
  120. /*      FORWARDS     */
  121. forward TempoPreso(playerid);
  122. forward VerificarPreso(playerid);
  123. forward LiberarKit(playerid);
  124. forward MensagensRandom();
  125. forward FecharEnquete();
  126. forward TocarSom(playerid);
  127. forward CriarLogs();
  128. forward ImprimirInformacoes();
  129. forward VerificarPasta(pasta[]);
  130. forward VerificarArquivo(arquivo[]);
  131. forward FoderSpawn(playerid);
  132. forward DiminuirTempo();
  133. forward FecharPortao();
  134. forward EnviarMsgHack(playerid);
  135. forward Personagem(playerid,targetid);
  136. forward ActionCamera();
  137. forward IsAGasolina(playerid);
  138. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  139. forward SetPlayerCriminal(playerid,declare,reason[]);
  140. forward Novinha(playerid);
  141. forward SetOriginalColor(playerid);
  142. forward Velocimetro(playerid);
  143. forward Sequestrar();
  144. forward UsarNovamente(playerid);
  145. forward FechaPortas();
  146. forward OrgCop(playerid);
  147. main() { }
  148.  
  149. //--------------------[ Enum's ]--------------//
  150. #define MAX_ORGS 3 //Todas as orgs+1
  151. enum CofreInfo
  152. {
  153.     pDinheiro,
  154.     pEagle,
  155.     pC12,
  156. };
  157. new BancoDasOrgs[MAX_ORGS][CofreInfo];
  158. new pBancoDasOrgs[MAX_PLAYERS];
  159.  
  160. enum pInfo
  161. {
  162.     pLevel,
  163.     Respeito,
  164.     Senha,
  165.     Matou,
  166.     Morreu,
  167.     Admin,
  168.     Sexo,
  169.     Colocar,
  170.     Organizacao,
  171.     Cargo,
  172.     Advertencias,
  173.     Preso,
  174.     Grana,
  175.     Emprego,
  176.     pSkin,
  177.     Motorista,
  178.     Procurado,
  179.     bool:Helper,
  180.     bool:Congelado,
  181.     bool:Assistindo,
  182.     bool:Trabalhando,
  183.     bool:Calado,
  184.     bool:Invisivel,
  185.     bool:Logado,
  186.     bool:Vip,
  187.     bool:PegouKit,
  188.     bool:Afk,
  189.     bool:Disfarcado,
  190.     bool:Escondido,
  191.     bool:Tutorial
  192. }
  193.  
  194. enum eEnquete
  195. {
  196.     bool:Criada,
  197.     VotoSim,
  198.     VotoNao,
  199.     Titulo[128]
  200. }
  201.  
  202. /*      VARIAVEIS E ARRAYS      */
  203. new PlayerDados[MAX_PLAYERS][pInfo];
  204. new String[256];
  205. new StringContas[256];
  206. new ID;
  207. new AdminNivel[50];
  208. new AdminTrabalhando[50];
  209. new Dia, Mes, Ano, Hora, Minuto, Segundo;
  210. new CarrosCriados[100];
  211. new TodosCarros = 0;
  212. new Barris[100];
  213. new tBarris = 0;
  214. new TimerPreso;
  215. new nivel;
  216. new TimerKit;
  217. new TimerMsgs;
  218. new TimerCont;
  219. new PlayersOnline = 0;
  220. new Enquete[eEnquete];
  221. new time;
  222. new BALLAS[9];
  223. new bool:ServerTrancado;
  224. new bool:MsgHack[MAX_PLAYERS];
  225. new NomeOriginal[MAX_PLAYERS][30];
  226. new IdClicado[MAX_PLAYERS];
  227. new NomeClicado[MAX_PLAYERS][MAX_PLAYER_NAME];
  228. new Ips2[300];
  229. new Pergunta[MAX_PLAYERS][128];
  230. new Float:Pos[4];
  231. new Camera[MAX_PLAYERS] = 0;
  232. new Float:CameraX[MAX_PLAYERS] = 1460.0;
  233. new Float:CameraY[MAX_PLAYERS] = -1324.0;
  234. new Float:CameraZ[MAX_PLAYERS] = 287.2;
  235. new RegistrationStep[MAX_PLAYERS];
  236. new supercam;
  237. new
  238.     spe
  239. ;
  240. new Hacker;
  241. new MeuOvo[MAX_PLAYERS];
  242. new Gas[CAR_AMOUNT];
  243. new gstring[200];
  244. new NoFuel[MAX_PLAYERS];
  245. new checkgastimer;
  246. new CheckPoint[MAX_PLAYERS];
  247. new VariosEmpregos[MAX_PLAYERS];
  248. new Dialog[MAX_PLAYERS];
  249. new InviteOffer[MAX_PLAYERS];
  250. new ChosenSkin[MAX_PLAYERS];
  251. new SelecionarCarrinha[MAX_PLAYERS];
  252. new SelecionarChar[MAX_PLAYERS];
  253. new Level[MAX_PLAYERS];
  254. new Pagamento[MAX_PLAYERS];
  255. new Text:Speed[MAX_PLAYERS];
  256. new bool:TextShow[MAX_PLAYERS];
  257. new TempoVelo;
  258. new AssaltarNovamente[MAX_PLAYERS] = 0;
  259. new ArmadeChoque[MAX_PLAYERS];
  260. new BaterCartao[MAX_PLAYERS];
  261. new JogadorImo[MAX_PLAYERS];
  262. new JogadorImoTempo[MAX_PLAYERS];
  263. new Text:Textdraw0[MAX_PLAYERS];
  264. new Text:Textdraw2[MAX_PLAYERS];
  265. new Algemado[MAX_PLAYERS];
  266. new
  267.     door0, door1, door2, door3;
  268.  
  269. new
  270.     cell0, cell1, cell2, cell3, cell4, cell5, cell6, cell7;
  271. //---------[ Sequestrar ]---------//
  272. new Amarradoo[MAX_PLAYERS];
  273. new Sequestrado[MAX_PLAYERS];
  274. new TempoSequestrar;
  275. new psequestrar;
  276.  
  277. //--------[ Barreira Gang ]-------//
  278. new pBarreira[MAX_PLAYERS];
  279. new pBarreira2[MAX_PLAYERS];
  280. new pBarreira3[MAX_PLAYERS];
  281. new pBarreira4[MAX_PLAYERS];
  282. new pBarreira5[MAX_PLAYERS];
  283.  
  284. //---------[ Faixa ]----------//
  285. new Text:Faixa0[MAX_PLAYERS];
  286. new Text:Faixa1[MAX_PLAYERS];
  287.  
  288. //••••••••••••••••••
  289. static Ping[MAX_PLAYERS] = 0;
  290. static MaxSpeed[MAX_PLAYERS] = 80;
  291. static Flood[MAX_PLAYERS];
  292.  
  293. static WeaponsID[13] =
  294. {
  295.     918,  26,  27,
  296.     32, 35,  36,  37,
  297.     38, 39,  40,  44,
  298.     45
  299. };
  300.  
  301. #if USAR_SISTEMA_VIP == 1
  302.     new CarroDono[MAX_PLAYERS];
  303.     new Text3D:DonoCarro[MAX_PLAYERS];
  304. #endif
  305.  
  306. static Ips[36][] =
  307. {
  308.     ":7798",":7777",":7778",":7776",":7775",":7774",":7773",":7772",":7771",
  309.     ":7770",":5555",":8888",":8090",":6969",":7780",":7781",":7782",":7783",
  310.     ":7784",":7785",":7786",":7787",":7788",":7789",":7790",":7791",":7792",
  311.     ":7793",":7794",":7795",":7796",":7797",":7798",":7799",":7800", "127."
  312. };
  313.  
  314. new Mensagens[][] =
  315. {
  316.     "Você faz parte do servidor, chame seus amigos para jogarem aqui :D",
  317.     "Caso tenha dúvida chame um admin, use /relatorio",
  318.     "Use /ajuda para conhecer os comandos.",
  319.     "Se você for vip use /ajudavip para ver seus comandos.",
  320.     "para ver os admins online use /admins, /helpers para ver os Helpers."
  321. };
  322.  
  323. new Cores[][] = {
  324. "{1BE01B}",
  325. "{038003}",
  326. "{0CF50C}",
  327. "{F5180C}",
  328. "{0C8CF5}",
  329. "{0C2BF5}",
  330. "{0CBBF5}",
  331. "{F5F50C}",
  332. "{DEDE04}",
  333. "{FC9E05}",
  334. "{FFFFFF}",
  335. "{FF05F7}",
  336. "{990594}",
  337. "{9C9C9C}",
  338. "{14C9C9}",
  339. "{05E6AD}",
  340. "{E67D05}",
  341. "{6B6B6B}"
  342. };
  343.  
  344. new vehName[][] ={
  345.     "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
  346.     "Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Mr Whoopee","BF Injection",
  347.     "Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie",
  348.     "Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
  349.     "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
  350.     "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
  351.     "Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
  352.     "Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa","RC Goblin","Hotring Racer","Hotring Racer",
  353.     "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain",
  354.     "Nebula","Majestic","Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
  355.     "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover",
  356.     "Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A",
  357.     "Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight","Trailer",
  358.     "Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer","Emperor",
  359.     "Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C","Andromada","Dodo","RC Cam","Launch","Police Car","Police Car",
  360.     "Police Car","Police Ranger","Picador","S.W.A.T.","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer","Luggage Trailer",
  361.     "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  362. };
  363.  
  364. enum SAZONE_MAIN {
  365.         SAZONE_NAME[28],
  366.         Float:SAZONE_AREA[6]
  367. };
  368.  
  369. static const gSAZones[][SAZONE_MAIN] = {
  370.     //  NOMES /LOCALIZAR            AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
  371. { "'The Big Ear'",                {-410.00,  1403.30,    -3.00,  -137.90,  1681.20,   200.00}},
  372. { "Aldea Malvada",               {-1372.10,  2498.50,     0.00, -1277.50,  2615.30,   200.00}},
  373. { "Angel Pine",                  {-2324.90, -2584.20,    -6.10, -1964.20, -2212.10,   200.00}},
  374. { "Arco del Oeste",               {-901.10,  2221.80,     0.00,  -592.00,  2571.90,   200.00}},
  375. { "Avispa Country Club",         {-2646.40,  -355.40,     0.00, -2270.00,  -222.50,   200.00}},
  376. { "Avispa Country Club",         {-2831.80,  -430.20,    -6.10, -2646.40,  -222.50,   200.00}},
  377. { "Avispa Country Club",         {-2361.50,  -417.10,     0.00, -2270.00,  -355.40,   200.00}},
  378. { "Avispa Country Club",         {-2667.80,  -302.10,   -28.80, -2646.40,  -262.30,    71.10}},
  379. { "Avispa Country Club",         {-2470.00,  -355.40,     0.00, -2270.00,  -318.40,    46.10}},
  380. { "Avispa Country Club",         {-2550.00,  -355.40,     0.00, -2470.00,  -318.40,    39.70}},
  381. { "Back o Beyond",               {-1166.90, -2641.10,     0.00,  -321.70, -1856.00,   200.00}},
  382. { "Battery Point",               {-2741.00,  1268.40,    -4.50, -2533.00,  1490.40,   200.00}},
  383. { "Bayside",                     {-2741.00,  2175.10,     0.00, -2353.10,  2722.70,   200.00}},
  384. { "Bayside Marina",              {-2353.10,  2275.70,     0.00, -2153.10,  2475.70,   200.00}},
  385. { "Beacon Hill",                  {-399.60, -1075.50,    -1.40,  -319.00,  -977.50,   198.50}},
  386. { "Blackfield",                    {964.30,  1203.20,   -89.00,  1197.30,  1403.20,   110.90}},
  387. { "Blackfield",                   {964.30,  1403.20,   -89.00,  1197.30,  1726.20,   110.90}},
  388. { "Blackfield Chapel",            {1375.60,   596.30,   -89.00,  1558.00,   823.20,   110.90}},
  389. { "Blackfield Chapel",            {1325.60,   596.30,   -89.00,  1375.60,   795.00,   110.90}},
  390. { "Blackfield Intersection",      {1197.30,  1044.60,   -89.00,  1277.00,  1163.30,   110.90}},
  391. { "Blackfield Intersection",      {1166.50,   795.00,   -89.00,  1375.60,  1044.60,   110.90}},
  392. { "Blackfield Intersection",      {1277.00,  1044.60,   -89.00,  1315.30,  1087.60,   110.90}},
  393. { "Blackfield Intersection",      {1375.60,   823.20,   -89.00,  1457.30,   919.40,   110.90}},
  394. { "Blueberry",                     {104.50,  -220.10,     2.30,   349.60,   152.20,   200.00}},
  395. { "Blueberry",                      {19.60,  -404.10,     3.80,   349.60,  -220.10,   200.00}},
  396. { "Blueberry Acres",              {-319.60,  -220.10,     0.00,   104.50,   293.30,   200.00}},
  397. { "Caligula's Palace",            {2087.30,  1543.20,   -89.00,  2437.30,  1703.20,   110.90}},
  398. { "Caligula's Palace",            {2137.40,  1703.20,   -89.00,  2437.30,  1783.20,   110.90}},
  399. { "Calton Heights",              {-2274.10,   744.10,    -6.10, -1982.30,  1358.90,   200.00}},
  400. { "Chinatown",                   {-2274.10,   578.30,    -7.60, -2078.60,   744.10,   200.00}},
  401. { "City Hall",                   {-2867.80,   277.40,    -9.10, -2593.40,   458.40,   200.00}},
  402. { "Come-A-Lot",                   {2087.30,   943.20,   -89.00,  2623.10,  1203.20,   110.90}},
  403. { "Commerce",                     {1323.90, -1842.20,   -89.00,  1701.90, -1722.20,   110.90}},
  404. { "Commerce",                     {1323.90, -1722.20,   -89.00,  1440.90, -1577.50,   110.90}},
  405. { "Commerce",                     {1370.80, -1577.50,   -89.00,  1463.90, -1384.90,   110.90}},
  406. { "Commerce",                     {1463.90, -1577.50,   -89.00,  1667.90, -1430.80,   110.90}},
  407. { "Commerce",                     {1583.50, -1722.20,   -89.00,  1758.90, -1577.50,   110.90}},
  408. { "Commerce",                     {1667.90, -1577.50,   -89.00,  1812.60, -1430.80,   110.90}},
  409. { "Conference Center",            {1046.10, -1804.20,   -89.00,  1323.90, -1722.20,   110.90}},
  410. { "Conference Center",            {1073.20, -1842.20,   -89.00,  1323.90, -1804.20,   110.90}},
  411. { "Cranberry Station",           {-2007.80,    56.30,     0.00, -1922.00,   224.70,   100.00}},
  412. { "Creek",                        {2749.90,  1937.20,   -89.00,  2921.60,  2669.70,   110.90}},
  413. { "Dillimore",                     {580.70,  -674.80,    -9.50,   861.00,  -404.70,   200.00}},
  414. { "Doherty",                     {-2270.00,  -324.10,    -0.00, -1794.90,  -222.50,   200.00}},
  415. { "Doherty",                     {-2173.00,  -222.50,    -0.00, -1794.90,   265.20,   200.00}},
  416. { "Downtown",                    {-1982.30,   744.10,    -6.10, -1871.70,  1274.20,   200.00}},
  417. { "Downtown",                    {-1871.70,  1176.40,    -4.50, -1620.30,  1274.20,   200.00}},
  418. { "Downtown",                    {-1700.00,   744.20,    -6.10, -1580.00,  1176.50,   200.00}},
  419. { "Downtown",                    {-1580.00,   744.20,    -6.10, -1499.80,  1025.90,   200.00}},
  420. { "Downtown",                    {-2078.60,   578.30,    -7.60, -1499.80,   744.20,   200.00}},
  421. { "Downtown",                    {-1993.20,   265.20,    -9.10, -1794.90,   578.30,   200.00}},
  422. { "Downtown Los Santos",          {1463.90, -1430.80,   -89.00,  1724.70, -1290.80,   110.90}},
  423. { "Downtown Los Santos",          {1724.70, -1430.80,   -89.00,  1812.60, -1250.90,   110.90}},
  424. { "Downtown Los Santos",          {1463.90, -1290.80,   -89.00,  1724.70, -1150.80,   110.90}},
  425. { "Downtown Los Santos",          {1370.80, -1384.90,   -89.00,  1463.90, -1170.80,   110.90}},
  426. { "Downtown Los Santos",          {1724.70, -1250.90,   -89.00,  1812.60, -1150.80,   110.90}},
  427. { "Downtown Los Santos",          {1370.80, -1170.80,   -89.00,  1463.90, -1130.80,   110.90}},
  428. { "Downtown Los Santos",          {1378.30, -1130.80,   -89.00,  1463.90, -1026.30,   110.90}},
  429. { "Downtown Los Santos",          {1391.00, -1026.30,   -89.00,  1463.90,  -926.90,   110.90}},
  430. { "Downtown Los Santos",          {1507.50, -1385.20,   110.90,  1582.50, -1325.30,   335.90}},
  431. { "East Beach",                   {2632.80, -1852.80,   -89.00,  2959.30, -1668.10,   110.90}},
  432. { "East Beach",                   {2632.80, -1668.10,   -89.00,  2747.70, -1393.40,   110.90}},
  433. { "East Beach",                   {2747.70, -1668.10,   -89.00,  2959.30, -1498.60,   110.90}},
  434. { "East Beach",                   {2747.70, -1498.60,   -89.00,  2959.30, -1120.00,   110.90}},
  435. { "East Los Santos",              {2421.00, -1628.50,   -89.00,  2632.80, -1454.30,   110.90}},
  436. { "East Los Santos",              {2222.50, -1628.50,   -89.00,  2421.00, -1494.00,   110.90}},
  437. { "East Los Santos",              {2266.20, -1494.00,   -89.00,  2381.60, -1372.00,   110.90}},
  438. { "East Los Santos",              {2381.60, -1494.00,   -89.00,  2421.00, -1454.30,   110.90}},
  439. { "East Los Santos",              {2281.40, -1372.00,   -89.00,  2381.60, -1135.00,   110.90}},
  440. { "East Los Santos",              {2381.60, -1454.30,   -89.00,  2462.10, -1135.00,   110.90}},
  441. { "East Los Santos",              {2462.10, -1454.30,   -89.00,  2581.70, -1135.00,   110.90}},
  442. { "Easter Basin",                {-1794.90,   249.90,    -9.10, -1242.90,   578.30,   200.00}},
  443. { "Easter Basin",                {-1794.90,   -50.00,    -0.00, -1499.80,   249.90,   200.00}},
  444. { "Easter Bay Airport",          {-1499.80,   -50.00,    -0.00, -1242.90,   249.90,   200.00}},
  445. { "Easter Bay Airport",          {-1794.90,  -730.10,    -3.00, -1213.90,   -50.00,   200.00}},
  446. { "Easter Bay Airport",          {-1213.90,  -730.10,     0.00, -1132.80,   -50.00,   200.00}},
  447. { "Easter Bay Airport",          {-1242.90,   -50.00,     0.00, -1213.90,   578.30,   200.00}},
  448. { "Easter Bay Airport",          {-1213.90,   -50.00,    -4.50,  -947.90,   578.30,   200.00}},
  449. { "Easter Bay Airport",          {-1315.40,  -405.30,    15.40, -1264.40,  -209.50,    25.40}},
  450. { "Easter Bay Airport",          {-1354.30,  -287.30,    15.40, -1315.40,  -209.50,    25.40}},
  451. { "Easter Bay Airport",          {-1490.30,  -209.50,    15.40, -1264.40,  -148.30,    25.40}},
  452. { "Easter Bay Chemicals",        {-1132.80,  -768.00,     0.00,  -956.40,  -578.10,   200.00}},
  453. { "Easter Bay Chemicals",        {-1132.80,  -787.30,     0.00,  -956.40,  -768.00,   200.00}},
  454. { "El Castillo del Diablo",       {-464.50,  2217.60,     0.00,  -208.50,  2580.30,   200.00}},
  455. { "El Castillo del Diablo",       {-208.50,  2123.00,    -7.60,   114.00,  2337.10,   200.00}},
  456. { "El Castillo del Diablo",       {-208.50,  2337.10,     0.00,     8.40,  2487.10,   200.00}},
  457. { "El Corona",                    {1812.60, -2179.20,   -89.00,  1970.60, -1852.80,   110.90}},
  458. { "El Corona",                    {1692.60, -2179.20,   -89.00,  1812.60, -1842.20,   110.90}},
  459. { "El Quebrados",                {-1645.20,  2498.50,     0.00, -1372.10,  2777.80,   200.00}},
  460. { "Esplanade East",              {-1620.30,  1176.50,    -4.50, -1580.00,  1274.20,   200.00}},
  461. { "Esplanade East",              {-1580.00,  1025.90,    -6.10, -1499.80,  1274.20,   200.00}},
  462. { "Esplanade East",              {-1499.80,   578.30,   -79.60, -1339.80,  1274.20,    20.30}},
  463. { "Esplanade North",             {-2533.00,  1358.90,    -4.50, -1996.60,  1501.20,   200.00}},
  464. { "Esplanade North",             {-1996.60,  1358.90,    -4.50, -1524.20,  1592.50,   200.00}},
  465. { "Esplanade North",             {-1982.30,  1274.20,    -4.50, -1524.20,  1358.90,   200.00}},
  466. { "Fallen Tree",                  {-792.20,  -698.50,    -5.30,  -452.40,  -380.00,   200.00}},
  467. { "Fallow Bridge",                 {434.30,   366.50,     0.00,   603.00,   555.60,   200.00}},
  468. { "Fern Ridge",                    {508.10,  -139.20,     0.00,  1306.60,   119.50,   200.00}},
  469. { "Financial",                   {-1871.70,   744.10,    -6.10, -1701.30,  1176.40,   300.00}},
  470. { "Fisher's Lagoon",              {1916.90,  -233.30,  -100.00,  2131.70,    13.80,   200.00}},
  471. { "Flint Intersection",           {-187.70, -1596.70,   -89.00,    17.00, -1276.60,   110.90}},
  472. { "Flint Range",                  {-594.10, -1648.50,     0.00,  -187.70, -1276.60,   200.00}},
  473. { "Fort Carson",                  {-376.20,   826.30,    -3.00,   123.70,  1220.40,   200.00}},
  474. { "Foster Valley",               {-2270.00,  -430.20,    -0.00, -2178.60,  -324.10,   200.00}},
  475. { "Foster Valley",               {-2178.60,  -599.80,    -0.00, -1794.90,  -324.10,   200.00}},
  476. { "Foster Valley",               {-2178.60, -1115.50,     0.00, -1794.90,  -599.80,   200.00}},
  477. { "Foster Valley",               {-2178.60, -1250.90,     0.00, -1794.90, -1115.50,   200.00}},
  478. { "Frederick Bridge",             {2759.20,   296.50,     0.00,  2774.20,   594.70,   200.00}},
  479. { "Gant Bridge",                 {-2741.40,  1659.60,    -6.10, -2616.40,  2175.10,   200.00}},
  480. { "Gant Bridge",                 {-2741.00,  1490.40,    -6.10, -2616.40,  1659.60,   200.00}},
  481. { "Ganton",                       {2222.50, -1852.80,   -89.00,  2632.80, -1722.30,   110.90}},
  482. { "Ganton",                       {2222.50, -1722.30,   -89.00,  2632.80, -1628.50,   110.90}},
  483. { "Garcia",                      {-2411.20,  -222.50,    -0.00, -2173.00,   265.20,   200.00}},
  484. { "Garcia",                      {-2395.10,  -222.50,    -5.30, -2354.00,  -204.70,   200.00}},
  485. { "Garver Bridge",               {-1339.80,   828.10,   -89.00, -1213.90,  1057.00,   110.90}},
  486. { "Garver Bridge",               {-1213.90,   950.00,   -89.00, -1087.90,  1178.90,   110.90}},
  487. { "Garver Bridge",               {-1499.80,   696.40,  -179.60, -1339.80,   925.30,    20.30}},
  488. { "Glen Park",                    {1812.60, -1449.60,   -89.00,  1996.90, -1350.70,   110.90}},
  489. { "Glen Park",                    {1812.60, -1100.80,   -89.00,  1994.30,  -973.30,   110.90}},
  490. { "Glen Park",                    {1812.60, -1350.70,   -89.00,  2056.80, -1100.80,   110.90}},
  491. { "Green Palms",                   {176.50,  1305.40,    -3.00,   338.60,  1520.70,   200.00}},
  492. { "Greenglass College",            {964.30,  1044.60,   -89.00,  1197.30,  1203.20,   110.90}},
  493. { "Greenglass College",            {964.30,   930.80,   -89.00,  1166.50,  1044.60,   110.90}},
  494. { "Hampton Barns",                 {603.00,   264.30,     0.00,   761.90,   366.50,   200.00}},
  495. { "Hankypanky Point",             {2576.90,    62.10,     0.00,  2759.20,   385.50,   200.00}},
  496. { "Harry Gold Parkway",           {1777.30,   863.20,   -89.00,  1817.30,  2342.80,   110.90}},
  497. { "Hashbury",                    {-2593.40,  -222.50,    -0.00, -2411.20,    54.70,   200.00}},
  498. { "Hilltop Farm",                  {967.30,  -450.30,    -3.00,  1176.70,  -217.90,   200.00}},
  499. { "Hunter Quarry",                 {337.20,   710.80,  -115.20,   860.50,  1031.70,   203.70}},
  500. { "Idlewood",                     {1812.60, -1852.80,   -89.00,  1971.60, -1742.30,   110.90}},
  501. { "Idlewood",                     {1812.60, -1742.30,   -89.00,  1951.60, -1602.30,   110.90}},
  502. { "Idlewood",                     {1951.60, -1742.30,   -89.00,  2124.60, -1602.30,   110.90}},
  503. { "Idlewood",                     {1812.60, -1602.30,   -89.00,  2124.60, -1449.60,   110.90}},
  504. { "Idlewood",                     {2124.60, -1742.30,   -89.00,  2222.50, -1494.00,   110.90}},
  505. { "Idlewood",                     {1971.60, -1852.80,   -89.00,  2222.50, -1742.30,   110.90}},
  506. { "Jefferson",                    {1996.90, -1449.60,   -89.00,  2056.80, -1350.70,   110.90}},
  507. { "Jefferson",                    {2124.60, -1494.00,   -89.00,  2266.20, -1449.60,   110.90}},
  508. { "Jefferson",                    {2056.80, -1372.00,   -89.00,  2281.40, -1210.70,   110.90}},
  509. { "Jefferson",                    {2056.80, -1210.70,   -89.00,  2185.30, -1126.30,   110.90}},
  510. { "Jefferson",                    {2185.30, -1210.70,   -89.00,  2281.40, -1154.50,   110.90}},
  511. { "Jefferson",                    {2056.80, -1449.60,   -89.00,  2266.20, -1372.00,   110.90}},
  512. { "Julius Thruway East",          {2623.10,   943.20,   -89.00,  2749.90,  1055.90,   110.90}},
  513. { "Julius Thruway East",          {2685.10,  1055.90,   -89.00,  2749.90,  2626.50,   110.90}},
  514. { "Julius Thruway East",          {2536.40,  2442.50,   -89.00,  2685.10,  2542.50,   110.90}},
  515. { "Julius Thruway East",          {2625.10,  2202.70,   -89.00,  2685.10,  2442.50,   110.90}},
  516. { "Julius Thruway North",         {2498.20,  2542.50,   -89.00,  2685.10,  2626.50,   110.90}},
  517. { "Julius Thruway North",         {2237.40,  2542.50,   -89.00,  2498.20,  2663.10,   110.90}},
  518. { "Julius Thruway North",         {2121.40,  2508.20,   -89.00,  2237.40,  2663.10,   110.90}},
  519. { "Julius Thruway North",         {1938.80,  2508.20,   -89.00,  2121.40,  2624.20,   110.90}},
  520. { "Julius Thruway North",         {1534.50,  2433.20,   -89.00,  1848.40,  2583.20,   110.90}},
  521. { "Julius Thruway North",         {1848.40,  2478.40,   -89.00,  1938.80,  2553.40,   110.90}},
  522. { "Julius Thruway North",         {1704.50,  2342.80,   -89.00,  1848.40,  2433.20,   110.90}},
  523. { "Julius Thruway North",         {1377.30,  2433.20,   -89.00,  1534.50,  2507.20,   110.90}},
  524. { "Julius Thruway South",         {1457.30,   823.20,   -89.00,  2377.30,   863.20,   110.90}},
  525. { "Julius Thruway South",         {2377.30,   788.80,   -89.00,  2537.30,   897.90,   110.90}},
  526. { "Julius Thruway West",          {1197.30,  1163.30,   -89.00,  1236.60,  2243.20,   110.90}},
  527. { "Julius Thruway West",          {1236.60,  2142.80,   -89.00,  1297.40,  2243.20,   110.90}},
  528. { "Juniper Hill",                {-2533.00,   578.30,    -7.60, -2274.10,   968.30,   200.00}},
  529. { "Juniper Hollow",              {-2533.00,   968.30,    -6.10, -2274.10,  1358.90,   200.00}},
  530. { "K.A.C.C. Military Fuels",      {2498.20,  2626.50,   -89.00,  2749.90,  2861.50,   110.90}},
  531. { "Kincaid Bridge",              {-1339.80,   599.20,   -89.00, -1213.90,   828.10,   110.90}},
  532. { "Kincaid Bridge",              {-1213.90,   721.10,   -89.00, -1087.90,   950.00,   110.90}},
  533. { "Kincaid Bridge",              {-1087.90,   855.30,   -89.00,  -961.90,   986.20,   110.90}},
  534. { "King's",                      {-2329.30,   458.40,    -7.60, -1993.20,   578.30,   200.00}},
  535. { "King's",                      {-2411.20,   265.20,    -9.10, -1993.20,   373.50,   200.00}},
  536. { "King's",                      {-2253.50,   373.50,    -9.10, -1993.20,   458.40,   200.00}},
  537. { "LVA Freight Depot",            {1457.30,   863.20,   -89.00,  1777.40,  1143.20,   110.90}},
  538. { "LVA Freight Depot",            {1375.60,   919.40,   -89.00,  1457.30,  1203.20,   110.90}},
  539. { "LVA Freight Depot",            {1277.00,  1087.60,   -89.00,  1375.60,  1203.20,   110.90}},
  540. { "LVA Freight Depot",            {1315.30,  1044.60,   -89.00,  1375.60,  1087.60,   110.90}},
  541. { "LVA Freight Depot",            {1236.60,  1163.40,   -89.00,  1277.00,  1203.20,   110.90}},
  542. { "Las Barrancas",                {-926.10,  1398.70,    -3.00,  -719.20,  1634.60,   200.00}},
  543. { "Las Brujas",                   {-365.10,  2123.00,    -3.00,  -208.50,  2217.60,   200.00}},
  544. { "Las Colinas",                  {1994.30, -1100.80,   -89.00,  2056.80,  -920.80,   110.90}},
  545. { "Las Colinas",                  {2056.80, -1126.30,   -89.00,  2126.80,  -920.80,   110.90}},
  546. { "Las Colinas",                  {2185.30, -1154.50,   -89.00,  2281.40,  -934.40,   110.90}},
  547. { "Las Colinas",                  {2126.80, -1126.30,   -89.00,  2185.30,  -934.40,   110.90}},
  548. { "Las Colinas",                  {2747.70, -1120.00,   -89.00,  2959.30,  -945.00,   110.90}},
  549. { "Las Colinas",                  {2632.70, -1135.00,   -89.00,  2747.70,  -945.00,   110.90}},
  550. { "Las Colinas",                  {2281.40, -1135.00,   -89.00,  2632.70,  -945.00,   110.90}},
  551. { "Las Payasadas",                {-354.30,  2580.30,     2.00,  -133.60,  2816.80,   200.00}},
  552. { "Las Venturas Airport",         {1236.60,  1203.20,   -89.00,  1457.30,  1883.10,   110.90}},
  553. { "Las Venturas Airport",         {1457.30,  1203.20,   -89.00,  1777.30,  1883.10,   110.90}},
  554. { "Las Venturas Airport",         {1457.30,  1143.20,   -89.00,  1777.40,  1203.20,   110.90}},
  555. { "Las Venturas Airport",         {1515.80,  1586.40,   -12.50,  1729.90,  1714.50,    87.50}},
  556. { "Last Dime Motel",              {1823.00,   596.30,   -89.00,  1997.20,   823.20,   110.90}},
  557. { "Leafy Hollow",                {-1166.90, -1856.00,     0.00,  -815.60, -1602.00,   200.00}},
  558. { "Lil' Probe Inn",                {-90.20,  1286.80,    -3.00,   153.80,  1554.10,   200.00}},
  559. { "Linden Side",                  {2749.90,   943.20,   -89.00,  2923.30,  1198.90,   110.90}},
  560. { "Linden Station",               {2749.90,  1198.90,   -89.00,  2923.30,  1548.90,   110.90}},
  561. { "Linden Station",               {2811.20,  1229.50,   -39.50,  2861.20,  1407.50,    60.40}},
  562. { "Little Mexico",                {1701.90, -1842.20,   -89.00,  1812.60, -1722.20,   110.90}},
  563. { "Little Mexico",                {1758.90, -1722.20,   -89.00,  1812.60, -1577.50,   110.90}},
  564. { "Los Flores",                   {2581.70, -1454.30,   -89.00,  2632.80, -1393.40,   110.90}},
  565. { "Los Flores",                   {2581.70, -1393.40,   -89.00,  2747.70, -1135.00,   110.90}},
  566. { "Los Santos International",     {1249.60, -2394.30,   -89.00,  1852.00, -2179.20,   110.90}},
  567. { "Los Santos International",     {1852.00, -2394.30,   -89.00,  2089.00, -2179.20,   110.90}},
  568. { "Los Santos International",     {1382.70, -2730.80,   -89.00,  2201.80, -2394.30,   110.90}},
  569. { "Los Santos International",     {1974.60, -2394.30,   -39.00,  2089.00, -2256.50,    60.90}},
  570. { "Los Santos International",     {1400.90, -2669.20,   -39.00,  2189.80, -2597.20,    60.90}},
  571. { "Los Santos International",     {2051.60, -2597.20,   -39.00,  2152.40, -2394.30,    60.90}},
  572. { "Marina",                        {647.70, -1804.20,   -89.00,   851.40, -1577.50,   110.90}},
  573. { "Marina",                        {647.70, -1577.50,   -89.00,   807.90, -1416.20,   110.90}},
  574. { "Marina",                        {807.90, -1577.50,   -89.00,   926.90, -1416.20,   110.90}},
  575. { "Market",                        {787.40, -1416.20,   -89.00,  1072.60, -1310.20,   110.90}},
  576. { "Market",                        {952.60, -1310.20,   -89.00,  1072.60, -1130.80,   110.90}},
  577. { "Market",                       {1072.60, -1416.20,   -89.00,  1370.80, -1130.80,   110.90}},
  578. { "Market",                        {926.90, -1577.50,   -89.00,  1370.80, -1416.20,   110.90}},
  579. { "Market Station",                {787.40, -1410.90,   -34.10,   866.00, -1310.20,    65.80}},
  580. { "Martin Bridge",                {-222.10,   293.30,     0.00,  -122.10,   476.40,   200.00}},
  581. { "Missionary Hill",             {-2994.40,  -811.20,     0.00, -2178.60,  -430.20,   200.00}},
  582. { "Montgomery",                   {1119.50,   119.50,    -3.00,  1451.40,   493.30,   200.00}},
  583. { "Montgomery",                   {1451.40,   347.40,    -6.10,  1582.40,   420.80,   200.00}},
  584. { "Montgomery Intersection",      {1546.60,   208.10,     0.00,  1745.80,   347.40,   200.00}},
  585. { "Montgomery Intersection",      {1582.40,   347.40,     0.00,  1664.60,   401.70,   200.00}},
  586. { "Mulholland",                   {1414.00,  -768.00,   -89.00,  1667.60,  -452.40,   110.90}},
  587. { "Mulholland",                   {1281.10,  -452.40,   -89.00,  1641.10,  -290.90,   110.90}},
  588. { "Mulholland",                   {1269.10,  -768.00,   -89.00,  1414.00,  -452.40,   110.90}},
  589. { "Mulholland",                   {1357.00,  -926.90,   -89.00,  1463.90,  -768.00,   110.90}},
  590. { "Mulholland",                   {1318.10,  -910.10,   -89.00,  1357.00,  -768.00,   110.90}},
  591. { "Mulholland",                   {1169.10,  -910.10,   -89.00,  1318.10,  -768.00,   110.90}},
  592. { "Mulholland",                    {768.60,  -954.60,   -89.00,   952.60,  -860.60,   110.90}},
  593. { "Mulholland",                    {687.80,  -860.60,   -89.00,   911.80,  -768.00,   110.90}},
  594. { "Mulholland",                    {737.50,  -768.00,   -89.00,  1142.20,  -674.80,   110.90}},
  595. { "Mulholland",                   {1096.40,  -910.10,   -89.00,  1169.10,  -768.00,   110.90}},
  596. { "Mulholland",                    {952.60,  -937.10,   -89.00,  1096.40,  -860.60,   110.90}},
  597. { "Mulholland",                    {911.80,  -860.60,   -89.00,  1096.40,  -768.00,   110.90}},
  598. { "Mulholland",                    {861.00,  -674.80,   -89.00,  1156.50,  -600.80,   110.90}},
  599. { "Mulholland Intersection",      {1463.90, -1150.80,   -89.00,  1812.60,  -768.00,   110.90}},
  600. { "North Rock",                   {2285.30,  -768.00,     0.00,  2770.50,  -269.70,   200.00}},
  601. { "Ocean Docks",                  {2373.70, -2697.00,   -89.00,  2809.20, -2330.40,   110.90}},
  602. { "Ocean Docks",                  {2201.80, -2418.30,   -89.00,  2324.00, -2095.00,   110.90}},
  603. { "Ocean Docks",                  {2324.00, -2302.30,   -89.00,  2703.50, -2145.10,   110.90}},
  604. { "Ocean Docks",                  {2089.00, -2394.30,   -89.00,  2201.80, -2235.80,   110.90}},
  605. { "Ocean Docks",                  {2201.80, -2730.80,   -89.00,  2324.00, -2418.30,   110.90}},
  606. { "Ocean Docks",                  {2703.50, -2302.30,   -89.00,  2959.30, -2126.90,   110.90}},
  607. { "Ocean Docks",                  {2324.00, -2145.10,   -89.00,  2703.50, -2059.20,   110.90}},
  608. { "Ocean Flats",                 {-2994.40,   277.40,    -9.10, -2867.80,   458.40,   200.00}},
  609. { "Ocean Flats",                 {-2994.40,  -222.50,    -0.00, -2593.40,   277.40,   200.00}},
  610. { "Ocean Flats",                 {-2994.40,  -430.20,    -0.00, -2831.80,  -222.50,   200.00}},
  611. { "Octane Springs",                {338.60,  1228.50,     0.00,   664.30,  1655.00,   200.00}},
  612. { "Old Venturas Strip",           {2162.30,  2012.10,   -89.00,  2685.10,  2202.70,   110.90}},
  613. { "Palisades",                   {-2994.40,   458.40,    -6.10, -2741.00,  1339.60,   200.00}},
  614. { "Palomino Creek",               {2160.20,  -149.00,     0.00,  2576.90,   228.30,   200.00}},
  615. { "Paradiso",                   {-2741.00,   793.40,    -6.10, -2533.00,  1268.40,   200.00}},
  616. { "Pershing Square",              {1440.90, -1722.20,   -89.00,  1583.50, -1577.50,   110.90}},
  617. { "Pilgrim",                      {2437.30,  1383.20,   -89.00,  2624.40,  1783.20,   110.90}},
  618. { "Pilgrim",                      {2624.40,  1383.20,   -89.00,  2685.10,  1783.20,   110.90}},
  619. { "Pilson Intersection",          {1098.30,  2243.20,   -89.00,  1377.30,  2507.20,   110.90}},
  620. { "Pirates in Men's Pants",       {1817.30,  1469.20,   -89.00,  2027.40,  1703.20,   110.90}},
  621. { "Playa del Seville",            {2703.50, -2126.90,   -89.00,  2959.30, -1852.80,   110.90}},
  622. { "Prickle Pine",                 {1534.50,  2583.20,   -89.00,  1848.40,  2863.20,   110.90}},
  623. { "Prickle Pine",                 {1117.40,  2507.20,   -89.00,  1534.50,  2723.20,   110.90}},
  624. { "Prickle Pine",                 {1848.40,  2553.40,   -89.00,  1938.80,  2863.20,   110.90}},
  625. { "Prickle Pine",                 {1938.80,  2624.20,   -89.00,  2121.40,  2861.50,   110.90}},
  626. { "Queens",                      {-2533.00,   458.40,     0.00, -2329.30,   578.30,   200.00}},
  627. { "Queens",                      {-2593.40,    54.70,     0.00, -2411.20,   458.40,   200.00}},
  628. { "Queens",                      {-2411.20,   373.50,     0.00, -2253.50,   458.40,   200.00}},
  629. { "Randolph Industrial Estate",   {1558.00,   596.30,   -89.00,  1823.00,   823.20,   110.90}},
  630. { "Redsands East",                {1817.30,  2011.80,   -89.00,  2106.70,  2202.70,   110.90}},
  631. { "Redsands East",                {1817.30,  2202.70,   -89.00,  2011.90,  2342.80,   110.90}},
  632. { "Redsands East",                {1848.40,  2342.80,   -89.00,  2011.90,  2478.40,   110.90}},
  633. { "Redsands West",                {1236.60,  1883.10,   -89.00,  1777.30,  2142.80,   110.90}},
  634. { "Redsands West",                {1297.40,  2142.80,   -89.00,  1777.30,  2243.20,   110.90}},
  635. { "Redsands West",                {1377.30,  2243.20,   -89.00,  1704.50,  2433.20,   110.90}},
  636. { "Redsands West",                {1704.50,  2243.20,   -89.00,  1777.30,  2342.80,   110.90}},
  637. { "Regular Tom",                  {-405.70,  1712.80,    -3.00,  -276.70,  1892.70,   200.00}},
  638. { "Richman",                       {647.50, -1118.20,   -89.00,   787.40,  -954.60,   110.90}},
  639. { "Richman",                       {647.50,  -954.60,   -89.00,   768.60,  -860.60,   110.90}},
  640. { "Richman",                       {225.10, -1369.60,   -89.00,   334.50, -1292.00,   110.90}},
  641. { "Richman",                       {225.10, -1292.00,   -89.00,   466.20, -1235.00,   110.90}},
  642. { "Richman",                        {72.60, -1404.90,   -89.00,   225.10, -1235.00,   110.90}},
  643. { "Richman",                        {72.60, -1235.00,   -89.00,   321.30, -1008.10,   110.90}},
  644. { "Richman",                       {321.30, -1235.00,   -89.00,   647.50, -1044.00,   110.90}},
  645. { "Richman",                       {321.30, -1044.00,   -89.00,   647.50,  -860.60,   110.90}},
  646. { "Richman",                       {321.30,  -860.60,   -89.00,   687.80,  -768.00,   110.90}},
  647. { "Richman",                       {321.30,  -768.00,   -89.00,   700.70,  -674.80,   110.90}},
  648. { "Robada Intersection",         {-1119.00,  1178.90,   -89.00,  -862.00,  1351.40,   110.90}},
  649. { "Roca Escalante",               {2237.40,  2202.70,   -89.00,  2536.40,  2542.50,   110.90}},
  650. { "Roca Escalante",               {2536.40,  2202.70,   -89.00,  2625.10,  2442.50,   110.90}},
  651. { "Rockshore East",               {2537.30,   676.50,   -89.00,  2902.30,   943.20,   110.90}},
  652. { "Rockshore West",               {1997.20,   596.30,   -89.00,  2377.30,   823.20,   110.90}},
  653. { "Rockshore West",               {2377.30,   596.30,   -89.00,  2537.30,   788.80,   110.90}},
  654. { "Rodeo",                          {72.60, -1684.60,   -89.00,   225.10, -1544.10,   110.90}},
  655. { "Rodeo",                          {72.60, -1544.10,   -89.00,   225.10, -1404.90,   110.90}},
  656. { "Rodeo",                         {225.10, -1684.60,   -89.00,   312.80, -1501.90,   110.90}},
  657. { "Rodeo",                         {225.10, -1501.90,   -89.00,   334.50, -1369.60,   110.90}},
  658. { "Rodeo",                         {334.50, -1501.90,   -89.00,   422.60, -1406.00,   110.90}},
  659. { "Rodeo",                         {312.80, -1684.60,   -89.00,   422.60, -1501.90,   110.90}},
  660. { "Rodeo",                         {422.60, -1684.60,   -89.00,   558.00, -1570.20,   110.90}},
  661. { "Rodeo",                         {558.00, -1684.60,   -89.00,   647.50, -1384.90,   110.90}},
  662. { "Rodeo",                         {466.20, -1570.20,   -89.00,   558.00, -1385.00,   110.90}},
  663. { "Rodeo",                         {422.60, -1570.20,   -89.00,   466.20, -1406.00,   110.90}},
  664. { "Rodeo",                         {466.20, -1385.00,   -89.00,   647.50, -1235.00,   110.90}},
  665. { "Rodeo",                         {334.50, -1406.00,   -89.00,   466.20, -1292.00,   110.90}},
  666. { "Royal Casino",                 {2087.30,  1383.20,   -89.00,  2437.30,  1543.20,   110.90}},
  667. { "San Andreas Sound",            {2450.30,   385.50,  -100.00,  2759.20,   562.30,   200.00}},
  668. { "Santa Flora",                 {-2741.00,   458.40,    -7.60, -2533.00,   793.40,   200.00}},
  669. { "Santa Maria Beach",             {342.60, -2173.20,   -89.00,   647.70, -1684.60,   110.90}},
  670. { "Santa Maria Beach",              {72.60, -2173.20,   -89.00,   342.60, -1684.60,   110.90}},
  671. { "Shady Cabin",                 {-1632.80, -2263.40,    -3.00, -1601.30, -2231.70,   200.00}},
  672. { "Shady Creeks",                {-1820.60, -2643.60,    -8.00, -1226.70, -1771.60,   200.00}},
  673. { "Shady Creeks",                {-2030.10, -2174.80,    -6.10, -1820.60, -1771.60,   200.00}},
  674. { "Sobell Rail Yards",            {2749.90,  1548.90,   -89.00,  2923.30,  1937.20,   110.90}},
  675. { "Spinybed",                     {2121.40,  2663.10,   -89.00,  2498.20,  2861.50,   110.90}},
  676. { "Starfish Casino",              {2437.30,  1783.20,   -89.00,  2685.10,  2012.10,   110.90}},
  677. { "Starfish Casino",              {2437.30,  1858.10,   -39.00,  2495.00,  1970.80,    60.90}},
  678. { "Starfish Casino",              {2162.30,  1883.20,   -89.00,  2437.30,  2012.10,   110.90}},
  679. { "Temple",                       {1252.30, -1130.80,   -89.00,  1378.30, -1026.30,   110.90}},
  680. { "Temple",                       {1252.30, -1026.30,   -89.00,  1391.00,  -926.90,   110.90}},
  681. { "Temple",                       {1252.30,  -926.90,   -89.00,  1357.00,  -910.10,   110.90}},
  682. { "Temple",                        {952.60, -1130.80,   -89.00,  1096.40,  -937.10,   110.90}},
  683. { "Temple",                       {1096.40, -1130.80,   -89.00,  1252.30, -1026.30,   110.90}},
  684. { "Temple",                       {1096.40, -1026.30,   -89.00,  1252.30,  -910.10,   110.90}},
  685. { "The Camel's Toe",              {2087.30,  1203.20,   -89.00,  2640.40,  1383.20,   110.90}},
  686. { "The Clown's Pocket",           {2162.30,  1783.20,   -89.00,  2437.30,  1883.20,   110.90}},
  687. { "The Emerald Isle",             {2011.90,  2202.70,   -89.00,  2237.40,  2508.20,   110.90}},
  688. { "The Farm",                    {-1209.60, -1317.10,   114.90,  -908.10,  -787.30,   251.90}},
  689. { "The Four Dragons Casino",      {1817.30,   863.20,   -89.00,  2027.30,  1083.20,   110.90}},
  690. { "The High Roller",              {1817.30,  1283.20,   -89.00,  2027.30,  1469.20,   110.90}},
  691. { "The Mako Span",                {1664.60,   401.70,     0.00,  1785.10,   567.20,   200.00}},
  692. { "The Panopticon",               {-947.90,  -304.30,    -1.10,  -319.60,   327.00,   200.00}},
  693. { "The Pink Swan",                {1817.30,  1083.20,   -89.00,  2027.30,  1283.20,   110.90}},
  694. { "The Sherman Dam",              {-968.70,  1929.40,    -3.00,  -481.10,  2155.20,   200.00}},
  695. { "The Strip",                    {2027.40,   863.20,   -89.00,  2087.30,  1703.20,   110.90}},
  696. { "The Strip",                    {2106.70,  1863.20,   -89.00,  2162.30,  2202.70,   110.90}},
  697. { "The Strip",                    {2027.40,  1783.20,   -89.00,  2162.30,  1863.20,   110.90}},
  698. { "The Strip",                    {2027.40,  1703.20,   -89.00,  2137.40,  1783.20,   110.90}},
  699. { "The Visage",                   {1817.30,  1863.20,   -89.00,  2106.70,  2011.80,   110.90}},
  700. { "The Visage",                   {1817.30,  1703.20,   -89.00,  2027.40,  1863.20,   110.90}},
  701. { "Unity Station",                {1692.60, -1971.80,   -20.40,  1812.60, -1932.80,    79.50}},
  702. { "Valle Ocultado",               {-936.60,  2611.40,     2.00,  -715.90,  2847.90,   200.00}},
  703. { "Verdant Bluffs",                {930.20, -2488.40,   -89.00,  1249.60, -2006.70,   110.90}},
  704. { "Verdant Bluffs",               {1073.20, -2006.70,   -89.00,  1249.60, -1842.20,   110.90}},
  705. { "Verdant Bluffs",               {1249.60, -2179.20,   -89.00,  1692.60, -1842.20,   110.90}},
  706. { "Verdant Meadows",                {37.00,  2337.10,    -3.00,   435.90,  2677.90,   200.00}},
  707. { "Verona Beach",                  {647.70, -2173.20,   -89.00,   930.20, -1804.20,   110.90}},
  708. { "Verona Beach",                  {930.20, -2006.70,   -89.00,  1073.20, -1804.20,   110.90}},
  709. { "Verona Beach",                  {851.40, -1804.20,   -89.00,  1046.10, -1577.50,   110.90}},
  710. { "Verona Beach",                 {1161.50, -1722.20,   -89.00,  1323.90, -1577.50,   110.90}},
  711. { "Verona Beach",                 {1046.10, -1722.20,   -89.00,  1161.50, -1577.50,   110.90}},
  712. { "Vinewood",                      {787.40, -1310.20,   -89.00,   952.60, -1130.80,   110.90}},
  713. { "Vinewood",                      {787.40, -1130.80,   -89.00,   952.60,  -954.60,   110.90}},
  714. { "Vinewood",                      {647.50, -1227.20,   -89.00,   787.40, -1118.20,   110.90}},
  715. { "Vinewood",                      {647.70, -1416.20,   -89.00,   787.40, -1227.20,   110.90}},
  716. { "Whitewood Estates",             {883.30,  1726.20,   -89.00,  1098.30,  2507.20,   110.90}},
  717. { "Whitewood Estates",            {1098.30,  1726.20,   -89.00,  1197.30,  2243.20,   110.90}},
  718. { "Willowfield",                  {1970.60, -2179.20,   -89.00,  2089.00, -1852.80,   110.90}},
  719. { "Willowfield",                  {2089.00, -2235.80,   -89.00,  2201.80, -1989.90,   110.90}},
  720. { "Willowfield",                  {2089.00, -1989.90,   -89.00,  2324.00, -1852.80,   110.90}},
  721. { "Willowfield",                  {2201.80, -2095.00,   -89.00,  2324.00, -1989.90,   110.90}},
  722. { "Willowfield",                  {2541.70, -1941.40,   -89.00,  2703.50, -1852.80,   110.90}},
  723. { "Willowfield",                  {2324.00, -2059.20,   -89.00,  2541.70, -1852.80,   110.90}},
  724. { "Willowfield",                  {2541.70, -2059.20,   -89.00,  2703.50, -1941.40,   110.90}},
  725. { "Yellow Bell Station",          {1377.40,  2600.40,   -21.90,  1492.40,  2687.30,    78.00}},
  726. // Main Zones
  727. { "Los Santos",                     {44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00}},
  728. { "Las Venturas",                  {869.40,   596.30,  -242.90,  2997.00,  2993.80,   900.00}},
  729. { "Bone County",                 {-480.50,   596.30,  -242.90,   869.40,  2993.80,   900.00}},
  730. { "Tierra Robada",              {-2997.40,  1659.60,  -242.90,  -480.50,  2993.80,   900.00}},
  731. { "Tierra Robada",               {-1213.90,   596.30,  -242.90,  -480.50,  1659.60,   900.00}},
  732. { "San Fierro",                  {-2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00}},
  733. { "Red County",                  {-1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00}},
  734. { "Flint County",                {-1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00}},
  735. { "Whetstone",                   {-2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00}}
  736. };
  737.  
  738. #if USAR_TEXT == 1
  739.     new Text:Inicio[MAX_PLAYERS];
  740. #endif
  741.  
  742. public OnGameModeInit()
  743. {
  744.     DisableInteriorEnterExits();
  745.     ShowPlayerMarkers(0);
  746.     LimitGlobalChatRadius(100.0);
  747.     LoadBancoDasOrgs();
  748.     for(new c=0;c<CAR_AMOUNT;c++)
  749.     {
  750.         Gas[c] = GasMax;
  751.     }
  752.     //-------------------[ Iniciando Servidor ]-----------------//
  753.     UsePlayerPedAnims();
  754.     new scriptmodestr[128];
  755.     format(scriptmodestr, 128, "gamemodetext %s", Life_MODO);
  756.     SendRconCommand(scriptmodestr);
  757.     new scripthoststr[128];
  758.     format(scripthoststr, 128, "hostname %s", Life_NOME);
  759.     SendRconCommand(scripthoststr);
  760.     new scriptmapnstr[128];
  761.     format(scriptmapnstr, 128, "mapname %s", Life_MAPA);
  762.     SendRconCommand(scriptmapnstr);
  763.  
  764.     //-----------------[ Pickup's ]------------------//
  765.     AddStaticPickup(1241,23,1004.0070,-939.3102,42.1797);//Abastecer
  766.     AddStaticPickup(1241,23,1944.3260,-1772.9254,13.3906);//Abastecer
  767.     AddStaticPickup(1241,23,1400.6882,-1680.5344,42.4339);//Abastecer
  768.     AddStaticPickup(1241,23,1496.5316,-1544.0677,23.5481);//Abastecer
  769.     AddStaticPickup(1241,23,2737.3364,-1774.2123,43.7973);//Abastecer
  770.     AddStaticPickup(1241,23,-90.5515,-1169.4578,2.4079);//Abastecer
  771.     AddStaticPickup(1241,23,-1609.7958,-2718.2048,48.5391);//Abastecer
  772.     AddStaticPickup(1241,23,1084.6238,-1743.4821,13.5060);//Abastecer
  773.     AddStaticPickup(19130,23,1481.2853,-1773.7563,15.3478);//Prefeitura - Entrada
  774.     AddStaticPickup(19130,23,390.2158,173.8144,1008.3828);//Prefeitura - Saida
  775.     AddStaticPickup(1239,23,362.0684,173.7495,1008.3828);//Prefeitura - Empregos
  776.     AddStaticPickup(19130,23,1411.5503,-1699.5452,13.5395);//Centro de Licencas - Entrada
  777.     AddStaticPickup(19130,23,1494.3234,1303.7670,1093.2891);//Centro de Licencas - Saida
  778.     AddStaticPickup(1277,23,1490.2838,1305.7998,1093.2964);//Licenças
  779.     AddStaticPickup(19130,23,2000.0389,-1114.0559,27.1250);//Ballas - Entrada
  780.     AddStaticPickup(19130,23,318.5668,1114.5471,1083.8828);//Ballas - Saída
  781.     AddStaticPickup(1242,23,325.4386,1124.4393,1083.8828);//Cofre Ballas
  782.     AddStaticPickup(1247,23,1555.3458,-1675.6226,16.1953);//Policia Militar - Entrada
  783.     AddStaticPickup(19130,23,1474.7803,-1749.2869,3285.2859);//Policia Militar - Saída
  784.     AddStaticPickup(1242,23,1485.4672,-1767.0776,3285.2859);//BaterCartao - Policia Militar
  785.     AddStaticPickup(19130,23,1485.4020,-1760.5070,3285.2859);// Ficha - Policia Militar
  786.    
  787.     //-------------[ Os Create3DTextLabel ]-------------//
  788.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,1004.0070,-939.3102,42.1797,15,0);//Abastecer
  789.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,1944.3260,-1772.9254,13.3906,15,0);//Abastecer
  790.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,1400.6882,-1680.5344,42.4339,15,0);//Abastecer
  791.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,1496.5316,-1544.0677,23.5481,15,0);//Abastecer
  792.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,2737.3364,-1774.2123,43.7973,15,0);//Abastecer
  793.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,-90.5515,-1169.4578,2.4079,15,0);//Abastecer
  794.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,-1609.7958,-2718.2048,48.5391,15,0);//Abastecer
  795.     Create3DTextLabel("{FFFFFF}Posto de Gasolina\nAperta {00FFCC}'Caps Lock' {FFFFFF}para Abastecer",BRANCO,1084.6238,-1743.4821,13.5060,15,0);//Abastecer
  796.     Create3DTextLabel("{FFFFFF}Prefeitura de LS\nAperte {00FFFF}'F' {FFFFFF}para Entrar",BRANCO,1481.2853,-1773.7563,15.3478,20,0);//Prefeitura
  797.     Create3DTextLabel("{FFFFFF}Empregos\nAperte {00FFFF}'F' {FFFFFF}Para pegar Emprego",BRANCO,362.0684,173.7495,1008.3828,20,0);//Prefeitura - Empregos
  798.     Create3DTextLabel("{FFFFFF}Centro de Licenças\nAperte {00FFFF}'F' {FFFFFF}para Entrar",BRANCO,1411.5503,-1699.5452,13.5395,15,0);//Centro de Licencas - Entrada
  799.     Create3DTextLabel("{FFFFFF}Licenças\nAperte {00FFFF}'F' {FFFFFF}Para pegar Licenças",BRANCO,1490.2838,1305.7998,1093.2964,15,0);//Pegar Licencas
  800.     Create3DTextLabel("{FFFFFF}HQ Ballas\nAperte {00FFFF}'F' {FFFFFF}Para Entrar",BRANCO,2000.0389,-1114.0559,27.1250,15,0);//Ballas - Entrada
  801.     Create3DTextLabel("{FFFFFF}Cofre dos Ballas\nAperte {00FFFF}'F' {FFFFFF}Para Ver",BRANCO,325.4386,1124.4393,1083.8828,15,0);//Cofre dos Ballas
  802.     Create3DTextLabel("{FFFFFF}HQ Policia Militar\nAperte {00FFFF}'F' {FFFFFF}Para Entrar",BRANCO,1555.3458,-1675.6226,16.1953,15,0);//Policia Militar - Entrada
  803.     Create3DTextLabel("{FFFFFF}Bater Cartao P.M.\nAperte {00FFFF}'/batercartao' {FFFFFF}Para BaterCartao",BRANCO,1485.4672,-1767.0776,3285.2859,10,0);//Policia Militar - BaterCartao
  804.     Create3DTextLabel("{FFFFFF}• Ficha •\nEscreva {00FFFF}'/ficha' {FFFFFF}Pra ver a Ficha do Player",BRANCO,1485.4020,-1760.5070,3285.2859,10,0);//Policia Militar - Ficha
  805.    
  806.     //--------------[ Veiculos dos Ballas ]------------//
  807.     BALLAS[0] = CreateVehicle(566,1999.40002441,-1120.90002441,26.70000076,0.00000000,115,1,600000);
  808.     BALLAS[1] = CreateVehicle(487,2004.40002441,-1109.30004883,34.40000153,180.00000000,115,-1,600000);
  809.     BALLAS[2] = CreateVehicle(413,2013.00000000,-1120.09997559,26.39999962,178.00000000,115,115,600000);
  810.     BALLAS[3] = CreateVehicle(560,2004.00000000,-1121.40002441,26.50000000,0.00000000,115,1,600000);
  811.     BALLAS[4] = CreateVehicle(562,1994.19995117,-1128.30004883,25.39999962,212.00000000,115,1,600000);
  812.     BALLAS[5] = CreateVehicle(559,1990.59997559,-1128.59997559,25.50000000,212.00000000,115,1,600000);
  813.     BALLAS[6] = CreateVehicle(461,1989.50000000,-1119.00000000,26.39999962,0.00000000,115,1,600000);
  814.     BALLAS[7] = CreateVehicle(461,1988.29980469,-1118.89941406,26.39999962,0.00000000,115,1,600000);
  815.     BALLAS[8] = CreateVehicle(581,1990.80004883,-1119.00000000,26.50000000,0.00000000,115,1,600000);
  816.  
  817.     //----------[ Objecto dos Ballas ]----------//
  818.     CreateObject(10244,2009.00000000,-1114.00000000,30.10000038,0.00000000,0.00000000,90.00000000); //object(vicjump_sfe) (1)
  819.     CreateObject(1245,2010.50000000,-1121.80004883,26.79999924,0.00000000,0.00000000,270.00000000); //object(newramp) (1)
  820.    
  821.     //----------[ Nova Prefeitura ]----------//
  822.     CreateObject(10377, 1481.15, -1792.93, 30.59,   0.00, 0.00, 89.43);
  823.     CreateObject(7090, 1481.28, -1774.69, 35.03,   0.00, 8.00, 90.00);
  824.     CreateObject(712, 1465.09, -1774.37, 22.06,   0.00, 0.00, 270.00);
  825.     CreateObject(712, 1497.77, -1774.39, 22.00,   0.00, 0.00, 270.00);
  826.     CreateObject(1215, 1492.91, -1774.49, 13.82,   0.00, 0.00, 0.00);
  827.     CreateObject(1215, 1469.70, -1774.24, 13.89,   0.00, 0.00, 0.00);
  828.     CreateObject(970, 1453.10, -1742.30, 13.10,   0.00, 0.00, 0.00);
  829.     CreateObject(970, 1457.40, -1742.30, 13.10,   0.00, 0.00, 0.00);
  830.     CreateObject(970, 1461.60, -1742.30, 13.10,   0.00, 0.00, 0.00);
  831.     CreateObject(970, 1465.70, -1742.30, 13.10,   0.00, 0.00, 0.00);
  832.     CreateObject(970, 1473.40, -1742.30, 13.10,   0.00, 0.00, 0.00);
  833.     CreateObject(970, 1477.60, -1742.30, 13.10,   0.00, 0.00, 0.00);
  834.     CreateObject(970, 1487.10, -1742.30, 13.10,   0.00, 0.00, 0.00);
  835.     CreateObject(970, 1491.30, -1742.30, 13.10,   0.00, 0.00, 0.00);
  836.     CreateObject(970, 1500.50, -1742.30, 13.10,   0.00, 0.00, 0.00);
  837.     CreateObject(970, 1504.70, -1742.30, 13.10,   0.00, 0.00, 0.00);
  838.     CreateObject(970, 1508.80, -1742.30, 13.10,   0.00, 0.00, 0.00);
  839.     CreateObject(640, 1454.40, -1742.70, 13.20,   0.00, 0.00, 90.00);
  840.     CreateObject(640, 1459.70, -1742.70, 13.20,   0.00, 0.00, 90.00);
  841.     CreateObject(640, 1465.00, -1742.70, 13.20,   0.00, 0.00, 90.00);
  842.     CreateObject(640, 1474.10, -1742.70, 13.20,   0.00, 0.00, 90.00);
  843.     CreateObject(640, 1476.90, -1742.70, 13.20,   0.00, 0.00, 90.00);
  844.     CreateObject(640, 1487.80, -1742.70, 13.20,   0.00, 0.00, 90.00);
  845.     CreateObject(640, 1490.60, -1742.70, 13.20,   0.00, 0.00, 90.00);
  846.     CreateObject(640, 1501.20, -1742.70, 13.20,   0.00, 0.00, 90.00);
  847.     CreateObject(640, 1506.50, -1742.70, 13.20,   0.00, 0.00, 90.00);
  848.     CreateObject(640, 1508.10, -1742.70, 13.20,   0.00, 0.00, 90.00);
  849.     CreateObject(970, 1451.10, -1744.30, 13.10,   0.00, 0.00, 90.00);
  850.     CreateObject(970, 1510.80, -1744.40, 13.10,   0.00, 0.00, 90.00);
  851.     CreateObject(1256, 1451.50, -1744.50, 13.20,   0.00, 0.00, 180.00);
  852.     CreateObject(1256, 1510.40, -1744.50, 13.20,   0.00, 0.00, 0.00);
  853.     CreateObject(640, 1453.81, -1742.70, 13.20,   0.00, 0.00, 90.00);
  854.     CreateObject(1216, 1412.50, -1752.70, 13.20,   0.00, 0.00, 0.00);
  855.     CreateObject(1216, 1411.00, -1752.70, 13.20,   0.00, 0.00, 0.00);
  856.     CreateObject(1216, 1410.04, -1753.50, 13.20,   0.00, 0.00, 90.00);
  857.     CreateObject(1216, 1410.04, -1755.00, 13.20,   0.00, 0.00, 90.00);
  858.     CreateObject(1216, 1547.90, -1752.70, 13.20,   0.00, 0.00, 0.00);
  859.     CreateObject(1216, 1546.20, -1752.70, 13.20,   0.00, 0.00, 0.00);
  860.     CreateObject(1216, 1548.80, -1753.30, 13.20,   0.00, 0.00, 270.00);
  861.     CreateObject(1216, 1548.80, -1755.00, 13.20,   0.00, 0.00, 270.00);
  862.     CreateObject(1223, 1409.70, -1752.30, 12.00,   0.00, 0.00, 315.00);
  863.     CreateObject(1223, 1549.20, -1752.40, 12.00,   0.00, 0.00, 215.00);
  864.     CreateObject(18981, 1512.12, -1609.72, 11.87,   0.00, 90.00, 0.00);
  865.     CreateObject(18981, 1512.14, -1634.67, 11.87,   0.00, 90.00, 0.00);
  866.     CreateObject(18981, 1512.12, -1659.54, 11.87,   0.00, 90.00, 0.00);
  867.     CreateObject(18981, 1512.10, -1684.43, 11.87,   0.00, 90.00, 0.00);
  868.     CreateObject(18981, 1512.10, -1709.04, 11.87,   0.00, 90.00, 0.00);
  869.     CreateObject(18981, 1512.10, -1733.70, 11.87,   0.00, 90.00, 0.00);
  870.     CreateObject(18981, 1487.23, -1609.78, 11.87,   0.00, 90.00, 0.00);
  871.     CreateObject(18981, 1487.23, -1634.47, 11.87,   0.00, 90.00, 0.00);
  872.     CreateObject(18981, 1487.23, -1659.31, 11.87,   0.00, 90.00, 0.00);
  873.     CreateObject(18981, 1487.23, -1684.29, 11.87,   0.00, 90.00, 0.00);
  874.     CreateObject(18981, 1487.25, -1709.22, 11.87,   0.00, 90.00, 0.00);
  875.     CreateObject(18981, 1487.23, -1734.13, 11.87,   0.00, 90.00, 0.00);
  876.     CreateObject(18981, 1462.46, -1609.60, 11.87,   0.00, 90.00, 0.00);
  877.     CreateObject(18981, 1462.52, -1634.58, 11.87,   0.00, 90.00, 0.00);
  878.     CreateObject(18981, 1462.52, -1659.37, 11.87,   0.00, 90.00, 0.00);
  879.     CreateObject(18981, 1462.50, -1684.32, 11.87,   0.00, 90.00, 0.00);
  880.     CreateObject(18981, 1462.52, -1709.19, 11.87,   0.00, 90.00, 0.00);
  881.     CreateObject(18981, 1462.52, -1734.07, 11.87,   0.00, 90.00, 0.00);
  882.     CreateObject(18981, 1438.03, -1609.69, 11.87,   0.00, 90.00, 0.00);
  883.     CreateObject(18981, 1441.99, -1634.33, 11.87,   0.00, 90.00, 0.00);
  884.     CreateObject(18981, 1442.79, -1658.89, 11.87,   0.00, 90.00, 0.00);
  885.     CreateObject(18981, 1438.10, -1683.56, 11.87,   0.00, 90.00, 0.00);
  886.     CreateObject(18981, 1437.64, -1707.52, 11.87,   0.00, 90.00, 0.00);
  887.     CreateObject(18981, 1437.98, -1732.34, 11.87,   0.00, 90.00, 0.00);
  888.     CreateObject(10368, 1479.35, -1678.98, 32.87,   0.00, 0.00, -180.00);
  889.     CreateObject(655, 1520.22, -1723.10, 12.91,   0.00, 0.00, 0.00);
  890.     CreateObject(655, 1438.17, -1723.05, 12.89,   0.00, 0.00, 0.00);
  891.     CreateObject(3511, 1462.22, -1718.38, 12.77,   0.00, 0.00, 0.00);
  892.     CreateObject(3511, 1482.94, -1718.67, 13.00,   0.00, 0.00, 0.00);
  893.     CreateObject(712, 1515.45, -1699.30, 22.51,   0.00, 0.00, 0.00);
  894.     CreateObject(712, 1515.75, -1678.49, 22.44,   0.00, 0.00, 0.00);
  895.     CreateObject(3511, 1482.92, -1659.16, 12.88,   0.00, 0.00, 0.00);
  896.     CreateObject(3511, 1462.18, -1659.31, 12.80,   0.00, 0.00, 0.00);
  897.     CreateObject(712, 1443.07, -1678.55, 22.47,   0.00, 0.00, 0.00);
  898.     CreateObject(712, 1443.10, -1699.15, 22.45,   0.00, 0.00, 0.00);
  899.     CreateObject(655, 1519.89, -1634.66, 12.88,   0.00, 0.00, 0.00);
  900.     CreateObject(655, 1438.46, -1634.64, 12.84,   0.00, 0.00, 0.00);
  901.     CreateObject(16061, 1485.49, -1602.62, 12.38,   0.00, 0.00, 90.00);
  902.     CreateObject(16061, 1485.50, -1631.74, 12.36,   0.00, 0.00, 90.00);
  903.     CreateObject(6965, 1482.81, -1616.72, 15.99,   0.00, 0.00, 0.00);
  904.     CreateObject(1364, 1461.06, -1631.56, 13.14,   0.00, 0.00, 180.00);
  905.     CreateObject(1364, 1473.99, -1631.56, 13.14,   0.00, 0.00, 180.00);
  906.     CreateObject(1364, 1492.50, -1631.56, 13.14,   0.00, 0.00, 180.00);
  907.     CreateObject(1364, 1503.39, -1631.56, 13.14,   0.00, 0.00, 180.00);
  908.     CreateObject(1364, 1503.63, -1602.17, 13.14,   0.00, 0.00, 0.00);
  909.     CreateObject(1364, 1492.48, -1602.17, 13.14,   0.00, 0.00, 0.00);
  910.     CreateObject(1364, 1476.86, -1602.17, 13.14,   0.00, 0.00, 0.00);
  911.     CreateObject(1364, 1461.43, -1602.17, 13.14,   0.00, 0.00, 0.00);
  912.     CreateObject(3853, 1438.14, -1601.00, 16.17,   0.00, 0.00, 90.00);
  913.     CreateObject(3853, 1520.55, -1600.91, 16.21,   0.00, 0.00, 90.00);
  914.     CreateObject(1257, 1436.48, -1629.19, 13.59,   0.00, 0.00, 0.00);
  915.     CreateObject(1229, 1435.56, -1626.23, 13.85,   0.00, 0.00, 270.00);
  916.     CreateObject(14468, 1481.73, -1602.55, 12.61,   0.00, 0.00, 0.00);
  917.     CreateObject(14468, 1471.47, -1602.49, 12.36,   0.00, 0.00, 0.00);
  918.     CreateObject(14468, 1487.51, -1602.49, 12.36,   0.00, 0.00, 0.00);
  919.     CreateObject(14468, 1496.13, -1602.19, 12.37,   0.00, 0.00, 0.00);
  920.     CreateObject(14468, 1499.87, -1601.89, 12.37,   0.00, 0.00, 0.00);
  921.     CreateObject(14468, 1508.03, -1602.35, 12.37,   0.00, 0.00, 0.00);
  922.     CreateObject(14468, 1465.26, -1602.27, 12.37,   0.00, 0.00, 0.00);
  923.     CreateObject(14468, 1456.79, -1602.19, 12.37,   0.00, 0.00, 0.00);
  924.     CreateObject(14468, 1456.56, -1631.44, 12.37,   0.00, 0.00, 0.00);
  925.     CreateObject(14468, 1464.72, -1631.64, 12.37,   0.00, 0.00, 0.00);
  926.     CreateObject(14468, 1469.88, -1631.47, 12.37,   0.00, 0.00, 0.00);
  927.     CreateObject(14468, 1478.73, -1631.43, 12.37,   0.00, 0.00, 0.00);
  928.     CreateObject(14468, 1482.99, -1631.52, 12.37,   0.00, 0.00, 0.00);
  929.     CreateObject(14468, 1487.65, -1631.53, 12.37,   0.00, 0.00, 0.00);
  930.     CreateObject(14468, 1496.56, -1631.58, 12.37,   0.00, 0.00, 0.00);
  931.     CreateObject(14468, 1499.15, -1631.46, 12.61,   0.00, 0.00, 0.00);
  932.     CreateObject(14468, 1507.32, -1631.65, 12.37,   0.00, 0.00, 0.00);
  933.     CreateObject(8623, 1450.36, -1616.66, 12.36,   0.00, 0.00, 90.00);
  934.     CreateObject(647, 1450.48, -1619.61, 12.36,   0.00, 0.00, 0.00);
  935.     CreateObject(647, 1450.37, -1616.41, 12.67,   0.00, 0.00, 0.00);
  936.     CreateObject(647, 1450.21, -1612.75, 12.36,   0.00, 0.00, 0.00);
  937.     CreateObject(3439, 1450.09, -1610.33, 16.43,   0.00, 0.00, 0.00);
  938.     CreateObject(3439, 1450.37, -1622.71, 16.43,   0.00, 0.00, 0.00);
  939.     CreateObject(1294, 1522.71, -1640.77, 16.84,   0.00, 0.00, 180.00);
  940.     CreateObject(1294, 1522.71, -1656.79, 16.84,   0.00, 0.00, 180.00);
  941.     CreateObject(1294, 1522.71, -1674.98, 16.84,   0.00, 0.00, 180.00);
  942.     CreateObject(1294, 1522.71, -1702.54, 16.84,   0.00, 0.00, 180.00);
  943.     CreateObject(1294, 1486.39, -1725.71, 16.84,   0.00, 0.00, 90.00);
  944.     CreateObject(1294, 1458.80, -1725.71, 16.84,   0.00, 0.00, 90.00);
  945.     CreateObject(1294, 1436.15, -1702.61, 16.84,   0.00, 0.00, 0.00);
  946.     CreateObject(1294, 1436.15, -1675.37, 16.84,   0.00, 0.00, 0.00);
  947.     CreateObject(1294, 1436.15, -1656.06, 16.84,   0.00, 0.00, 0.00);
  948.     CreateObject(1294, 1436.15, -1642.41, 16.84,   0.00, 0.00, 0.00);
  949.     CreateObject(1359, 1438.28, -1633.54, 13.00,   0.00, 0.00, 0.00);
  950.     CreateObject(1359, 1520.39, -1633.62, 13.08,   0.00, 0.00, 0.00);
  951.     CreateObject(8673, 1509.88, -1599.75, 13.81,   0.00, 0.00, 0.00);
  952.     CreateObject(8673, 1489.49, -1599.75, 13.81,   0.00, 0.00, 0.00);
  953.     CreateObject(8673, 1469.06, -1599.75, 13.81,   0.00, 0.00, 0.00);
  954.     CreateObject(8673, 1448.63, -1599.75, 13.81,   0.00, 0.00, 0.00);
  955.  
  956.     //-----------------[ Novo Bar Exclusivo ]-------------//
  957.     CreateObject(18090,1568.4000244141,-1895.8000488281,15.10000038147,0,0,270);
  958.     CreateObject(2350,1570.6999511719,-1893.8000488281,12.89999961853,0,0,0);
  959.     CreateObject(2350,1569.4000244141,-1893.6999511719,12.89999961853,0,0,0);
  960.     CreateObject(2350,1568.1999511719,-1893.8000488281,12.89999961853,0,0,0);
  961.     CreateObject(2350,1566.6999511719,-1893.9000244141,12.89999961853,0,0,0);
  962.     CreateObject(2350,1565.4000244141,-1893.8000488281,12.89999961853,0,0,0);
  963.     CreateObject(2350,1564.1999511719,-1893.9000244141,12.89999961853,0,0,0);
  964.     CreateObject(2350,1571.6999511719,-1893.6999511719,12.89999961853,0,0,0);
  965.     CreateObject(2350,1572.8000488281,-1893.8000488281,12.89999961853,0,0,0);
  966.     CreateObject(2350,1573.1999511719,-1894.6999511719,12.89999961853,0,0,0);
  967.     CreateObject(2350,1573.3000488281,-1896.3000488281,12.89999961853,0,0,0);
  968.     CreateObject(2350,1573.1999511719,-1895.5,12.89999961853,0,0,0);
  969.     CreateObject(2350,1573.3000488281,-1897.0999755859,12.89999961853,0,0,0);
  970.     CreateObject(2748,1575.1999511719,-1884,13.10000038147,0,0,0);
  971.     CreateObject(2747,1575.4000244141,-1884.8000488281,13,0,0,0);
  972.     CreateObject(2748,1575.3000488281,-1885.8000488281,13.10000038147,0,0,180);
  973.     CreateObject(2748,1575.3000488281,-1887,13.10000038147,0,0,1);
  974.     CreateObject(2747,1575.1999511719,-1888,13,0,0,0);
  975.     CreateObject(2748,1575.1999511719,-1889.3000488281,13.10000038147,0,0,180);
  976.     CreateObject(2799,1574.0999755859,-1892.0999755859,13.10000038147,0,0,0);
  977.     CreateObject(2748,1560.8000488281,-1884.1999511719,13.10000038147,0,0,0);
  978.     CreateObject(2747,1560.8000488281,-1885.3000488281,13,0,0,0);
  979.     CreateObject(2748,1560.8000488281,-1886.1999511719,13.10000038147,0,0,180);
  980.     CreateObject(2748,1560.8000488281,-1887,13.10000038147,0,0,1);
  981.     CreateObject(2747,1560.5999755859,-1888,13,0,0,0);
  982.     CreateObject(2748,1560.8000488281,-1889,13.10000038147,0,0,180);
  983.     CreateObject(2799,1562,-1892,13.10000038147,0,0,0);
  984.     CreateObject(1486,1566.5,-1894.4000244141,13.699999809265,0,0,0);
  985.     CreateObject(1487,1568.3000488281,-1894.4000244141,13.800000190735,0,0,0);
  986.     CreateObject(1487,1565.3000488281,-1894.5,13.800000190735,0,0,0);
  987.     CreateObject(1487,1564.3000488281,-1894.3000488281,13.800000190735,0,0,0);
  988.     CreateObject(1488,1570.1999511719,-1896.8000488281,14.60000038147,0,0,180);
  989.     CreateObject(1487,1569.4000244141,-1894.1999511719,13.800000190735,0,0,0);
  990.     CreateObject(1487,1570.6999511719,-1894.3000488281,13.800000190735,0,0,0);
  991.     CreateObject(1487,1571.4000244141,-1894.4000244141,13.800000190735,0,0,0);
  992.     CreateObject(1487,1572.3000488281,-1894.5999755859,13.800000190735,0,0,0);
  993.     CreateObject(1487,1572.5999755859,-1895.5,13.800000190735,0,0,0);
  994.     CreateObject(1487,1572.9000244141,-1897.0999755859,13.800000190735,0,0,0);
  995.     CreateObject(1487,1573,-1896.3000488281,13.800000190735,0,0,0);
  996.     CreateObject(1488,1566.5,-1896.6999511719,14.699999809265,0,0,180);
  997.  
  998.     //-------------------[ Banco Exclusivo ]-----------------//
  999.     CreateObject(19379, 1477.89, -1019.65, 20.32,   0.00, 0.00, 90.00);
  1000.     CreateObject(19379, 1487.39, -1019.65, 20.32,   0.00, 0.00, 90.00);
  1001.     CreateObject(19379, 1487.39, -1019.65, 33.82,   0.00, 0.00, 90.00);
  1002.     CreateObject(19379, 1477.89, -1019.65, 33.82,   0.00, 0.00, 90.00);
  1003.     CreateObject(3857, 1477.08, -1019.61, 26.04,   0.00, 0.00, 45.00);
  1004.     CreateObject(3857, 1484.53, -1019.61, 26.04,   0.00, 0.00, 45.00);
  1005.     CreateObject(3857, 1491.99, -1019.61, 26.04,   0.00, 0.00, 45.00);
  1006.     CreateObject(19379, 1445.89, -1019.65, 20.32,   0.00, 0.00, 90.00);
  1007.     CreateObject(19379, 1436.39, -1019.65, 20.32,   0.00, 0.00, 90.00);
  1008.     CreateObject(19379, 1445.83, -1019.65, 33.82,   0.00, 0.00, 90.00);
  1009.     CreateObject(19379, 1436.33, -1019.65, 33.82,   0.00, 0.00, 90.00);
  1010.     CreateObject(3857, 1447.08, -1019.61, 26.04,   0.00, 0.00, 45.00);
  1011.     CreateObject(3857, 1439.66, -1019.61, 26.04,   0.00, 0.00, 45.00);
  1012.     CreateObject(3857, 1432.21, -1019.61, 26.04,   0.00, 0.00, 45.00);
  1013.     CreateObject(19443, 1474.17, -1019.66, 26.96,   0.00, 0.00, 90.00);
  1014.     CreateObject(19443, 1491.21, -1019.64, 26.96,   0.00, 0.00, 90.00);
  1015.     CreateObject(19443, 1449.75, -1019.63, 26.96,   0.00, 0.00, 90.00);
  1016.     CreateObject(19443, 1432.74, -1019.60, 26.96,   0.00, 0.00, 90.00);
  1017.     CreateObject(19379, 1468.61, -1019.58, 26.33,   0.00, 0.00, 90.00);
  1018.     CreateObject(19379, 1455.97, -1019.54, 26.33,   0.00, 0.00, 90.00);
  1019.     CreateObject(19379, 1460.54, -1019.51, 31.39,   0.00, 0.00, 90.00);
  1020.     CreateObject(1491, 1460.81, -1019.59, 23.63,   0.00, 0.00, 0.00);
  1021.     CreateObject(1491, 1463.79, -1019.58, 23.63,   0.00, 0.00, 180.00);
  1022.     CreateObject(19377, 1437.26, -1024.25, 21.91,   21.70, 90.00, 0.00);
  1023.     CreateObject(19377, 1445.83, -1024.22, 21.91,   21.70, 90.00, 0.00);
  1024.     CreateObject(19377, 1478.40, -1024.20, 21.91,   21.70, 90.00, 0.00);
  1025.     CreateObject(19377, 1488.84, -1024.22, 21.91,   21.70, 90.00, 0.00);
  1026.     CreateObject(1256, 1434.54, -1023.47, 23.50,   0.00, 0.00, 90.00);
  1027.     CreateObject(1256, 1447.73, -1023.43, 23.50,   0.00, 0.00, 90.00);
  1028.     CreateObject(1256, 1475.14, -1023.08, 23.50,   0.00, 0.00, 90.00);
  1029.     CreateObject(1256, 1490.48, -1022.61, 23.50,   0.00, 0.00, 90.00);
  1030.     CreateObject(717, 1432.10, -1023.40, 22.94,   0.00, 0.00, 0.00);
  1031.     CreateObject(717, 1450.26, -1023.18, 22.94,   0.00, 0.00, 0.00);
  1032.     CreateObject(717, 1472.66, -1022.86, 22.94,   0.00, 0.00, 0.00);
  1033.     CreateObject(717, 1492.90, -1022.85, 22.94,   0.00, 0.00, 0.00);
  1034.     CreateObject(2727, 1457.06, -1019.76, 25.95,   90.00, 0.00, 0.00);
  1035.  
  1036.     //-------------------------[ Prisão ]------------------------------//
  1037.     CreateObject(19379,1469.39941406,-1754.00000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (1)
  1038.     CreateObject(19379,1479.00000000,-1754.00000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (2)
  1039.     CreateObject(1536,1475.69995117,-1748.86303711,3284.30004883,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (1)
  1040.     CreateObject(1536,1472.69921875,-1748.89941406,3284.30004883,0.00000000,0.00000000,0.00000000); //object(gen_doorext15) (2)
  1041.     CreateObject(19450,1464.50000000,-1753.59960938,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (3)
  1042.     CreateObject(19450,1483.79980469,-1753.59960938,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1043.     CreateObject(18070,1474.19921875,-1755.89941406,3284.80004883,0.00000000,0.00000000,179.99450684); //object(gap_counter) (1)
  1044.     CreateObject(19379,1479.00000000,-1764.50000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (3)
  1045.     CreateObject(19379,1469.39941406,-1764.50000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (4)
  1046.     CreateObject(18070,1474.19995117,-1755.80004883,3287.10009766,0.00000000,179.99450684,179.99450684); //object(gap_counter) (3)
  1047.     CreateObject(19435,1477.80102539,-1756.59960938,3284.60009766,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (1)
  1048.     CreateObject(19435,1477.80078125,-1755.09960938,3284.60009766,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (3)
  1049.     CreateObject(19435,1476.13903809,-1753.40002441,3284.60009766,90.00000000,90.00000000,0.00000000); //object(cs_landbit_58_a) (4)
  1050.     CreateObject(19435,1472.69995117,-1753.40002441,3284.60009766,90.00000000,90.00000000,0.00000000); //object(cs_landbit_58_a) (5)
  1051.     CreateObject(19435,1472.26074219,-1753.40039062,3284.60009766,90.00000000,90.00000000,0.00000000); //object(cs_landbit_58_a) (6)
  1052.     CreateObject(19435,1470.59960938,-1755.09960938,3284.60009766,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (7)
  1053.     CreateObject(19435,1470.59960938,-1756.59960938,3284.60009766,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (8)
  1054.     CreateObject(19379,1479.00000000,-1754.00000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1055.     CreateObject(19379,1469.40002441,-1754.00000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (6)
  1056.     CreateObject(19435,1477.80102539,-1756.59960938,3287.30004883,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (9)
  1057.     CreateObject(19435,1477.79980469,-1755.09960938,3287.30004883,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (10)
  1058.     CreateObject(19435,1476.09960938,-1753.39941406,3287.30004883,90.00000000,90.00000000,0.00000000); //object(cs_landbit_58_a) (11)
  1059.     CreateObject(19435,1472.69921875,-1753.39941406,3287.30004883,90.00000000,90.00000000,0.00000000); //object(cs_landbit_58_a) (12)
  1060.     CreateObject(19435,1472.30004883,-1753.40100098,3287.30004883,90.00000000,90.00000000,0.00000000); //object(cs_landbit_58_a) (13)
  1061.     CreateObject(19435,1470.59960938,-1755.09960938,3287.30004883,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (14)
  1062.     CreateObject(19435,1470.60095215,-1756.59960938,3287.30004883,90.00000000,0.00000000,0.00000000); //object(cs_landbit_58_a) (15)
  1063.     CreateObject(19379,1459.79980469,-1764.50000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (7)
  1064.     CreateObject(19379,1488.59960938,-1764.50000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1065.     CreateObject(19388,1483.79980469,-1763.19921875,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw15) (1)
  1066.     CreateObject(19358,1464.50000000,-1760.00000000,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (1)
  1067.     CreateObject(19431,1465.39941406,-1758.29980469,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_landbit_48_a) (3)
  1068.     CreateObject(19388,1467.80004883,-1758.30004883,3286.00000000,0.00000000,0.00000000,270.00000000); //object(road_sfw15) (2)
  1069.     CreateObject(19358,1471.00000000,-1758.30004883,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (2)
  1070.     CreateObject(19358,1477.39941406,-1758.29980469,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (3)
  1071.     CreateObject(19388,1480.59960938,-1758.29980469,3286.00000000,0.00000000,0.00000000,270.00000000); //object(road_sfw15) (3)
  1072.     CreateObject(19358,1483.79980469,-1766.39941406,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (4)
  1073.     CreateObject(19358,1483.79980469,-1760.00000000,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (5)
  1074.     CreateObject(19388,1464.50000000,-1763.19921875,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw15) (4)
  1075.     CreateObject(19358,1464.50000000,-1766.39941406,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (6)
  1076.     CreateObject(19431,1483.00000000,-1768.00000000,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_landbit_48_a) (4)
  1077.     CreateObject(19358,1479.00000000,-1769.51562500,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1078.     CreateObject(19358,1477.39941406,-1768.00000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (8)
  1079.     CreateObject(14416,1474.09960938,-1771.00000000,3284.50000000,0.00000000,0.00000000,179.99450684); //object(carter-stairs07) (1)
  1080.     CreateObject(19450,1475.79980469,-1772.72900391,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (3)
  1081.     CreateObject(19450,1472.50000000,-1772.72851562,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (3)
  1082.     CreateObject(19379,1479.00000000,-1762.79980469,3287.70092773,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1083.     CreateObject(19379,1469.39941406,-1762.79980469,3287.70092773,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1084.     CreateObject(19379,1477.29980469,-1778.29980469,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1085.     CreateObject(19450,1467.77197266,-1773.00000000,3289.50000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1086.     CreateObject(19450,1477.30004883,-1768.00000000,3289.50000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1087.     CreateObject(19450,1480.52697754,-1773.00000000,3289.50000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1088.     CreateObject(19450,1485.30004883,-1777.90002441,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1089.     CreateObject(19450,1463.00000000,-1777.90002441,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1090.     CreateObject(19379,1480.50000000,-1777.89941406,3291.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1091.     CreateObject(19379,1470.90002441,-1777.90002441,3291.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1092.     CreateObject(19379,1461.29980469,-1777.89941406,3291.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1093.     CreateObject(19379,1470.90002441,-1767.40002441,3291.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1094.     CreateObject(19450,1472.50000000,-1768.09960938,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1095.     CreateObject(19450,1475.80004883,-1768.09997559,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1096.     CreateObject(19379,1467.69921875,-1778.29980469,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1097.     CreateObject(19379,1486.90002441,-1778.30004883,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1098.     CreateObject(19450,1467.80004883,-1782.69995117,3289.50000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1099.     CreateObject(19450,1480.50000000,-1782.69995117,3289.50000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1100.     CreateObject(19388,1474.09997559,-1782.69995117,3289.50000000,0.00000000,0.00000000,270.00000000); //object(road_sfw15) (5)
  1101.     CreateObject(19379,1474.09960938,-1788.79980469,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1102.     CreateObject(19450,1478.79980469,-1787.59960938,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1103.     CreateObject(19450,1469.39941406,-1787.59960938,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (4)
  1104.     CreateObject(19379,1474.09960938,-1788.39941406,3291.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (5)
  1105.     CreateObject(19431,1483.00000000,-1758.29980469,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_landbit_48_a) (6)
  1106.     CreateObject(19431,1474.09997559,-1786.40002441,3289.50000000,0.00000000,0.00000000,180.00000000); //object(cs_landbit_48_a) (7)
  1107.     CreateObject(19431,1474.81298828,-1785.59997559,3289.50000000,0.00000000,0.00000000,90.00000000); //object(cs_landbit_48_a) (8)
  1108.     CreateObject(19388,1477.19995117,-1785.59997559,3289.50000000,0.00000000,0.00000000,270.00000000); //object(road_sfw15) (6)
  1109.     CreateObject(19431,1474.09960938,-1791.19921875,3289.50000000,0.00000000,0.00000000,179.99450684); //object(cs_landbit_48_a) (9)
  1110.     CreateObject(19358,1474.09960938,-1788.79980469,3289.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (19)
  1111.     CreateObject(19431,1478.80004883,-1793.19995117,3289.50000000,0.00000000,0.00000000,179.99450684); //object(cs_landbit_48_a) (11)
  1112.     CreateObject(19388,1474.19921875,-1758.29980469,3286.00000000,0.00000000,0.00000000,270.00000000); //object(road_sfw15) (3)
  1113.     CreateObject(19358,1485.40002441,-1768.00000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (7)
  1114.     CreateObject(19358,1485.40002441,-1759.30004883,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (7)
  1115.     CreateObject(19358,1487.00000000,-1766.40002441,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (4)
  1116.     CreateObject(19388,1487.00000000,-1763.19995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw15) (1)
  1117.     CreateObject(19358,1487.00000000,-1760.00000000,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (5)
  1118.     CreateObject(19379,1498.19995117,-1764.50000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1119.     CreateObject(19379,1507.80004883,-1764.50000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1120.     CreateObject(19379,1488.59997559,-1754.00000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1121.     CreateObject(19379,1498.19995117,-1754.00000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1122.     CreateObject(19379,1507.80004883,-1754.00000000,3284.19995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1123.     CreateObject(19447,1487.09997559,-1756.80004883,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (1)
  1124.     CreateObject(19385,1487.09997559,-1763.19995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(sfw_boxwest02) (1)
  1125.     CreateObject(19447,1492.00000000,-1769.69921875,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok13) (2)
  1126.     CreateObject(19355,1488.79980469,-1761.50000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(cs_landbit_12) (1)
  1127.     CreateObject(19355,1488.80004883,-1764.90002441,3286.00000000,0.00000000,0.00000000,90.00000000); //object(cs_landbit_12) (2)
  1128.     CreateObject(19385,1492.00000000,-1761.50000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (2)
  1129.     CreateObject(19447,1490.39941406,-1756.59960938,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (3)
  1130.     CreateObject(19385,1495.19921875,-1761.50000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (6)
  1131.     CreateObject(19385,1498.39941406,-1761.50000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (7)
  1132.     CreateObject(19385,1501.59997559,-1761.50000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (8)
  1133.     CreateObject(19447,1493.59997559,-1756.69995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (4)
  1134.     CreateObject(19447,1496.80004883,-1756.59997559,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (5)
  1135.     CreateObject(19447,1500.09997559,-1756.59997559,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (6)
  1136.     CreateObject(19447,1503.30004883,-1756.69995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (7)
  1137.     CreateObject(19447,1503.29980469,-1766.29980469,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (8)
  1138.     CreateObject(19385,1492.00000000,-1764.90002441,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (9)
  1139.     CreateObject(19385,1495.19921875,-1764.89941406,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (10)
  1140.     CreateObject(19385,1498.40002441,-1764.90002441,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (11)
  1141.     CreateObject(19385,1501.59997559,-1764.90002441,3286.00000000,0.00000000,0.00000000,90.00000000); //object(sfw_boxwest02) (12)
  1142.     CreateObject(19447,1487.09960938,-1769.59960938,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (9)
  1143.     CreateObject(19447,1501.59997559,-1769.69995117,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok13) (10)
  1144.     CreateObject(19447,1490.40002441,-1769.80004883,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (11)
  1145.     CreateObject(19447,1493.59997559,-1769.80004883,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (12)
  1146.     CreateObject(19447,1496.79980469,-1769.79980469,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (13)
  1147.     CreateObject(19447,1500.00000000,-1769.80004883,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok13) (14)
  1148.     CreateObject(19447,1492.00000000,-1757.09997559,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok13) (15)
  1149.     CreateObject(19447,1501.59960938,-1757.09960938,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok13) (16)
  1150.     CreateObject(19379,1488.59960938,-1764.50000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1151.     CreateObject(19379,1498.19995117,-1764.50000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1152.     CreateObject(19379,1507.79980469,-1764.50000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1153.     CreateObject(19379,1507.80004883,-1754.00000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1154.     CreateObject(19379,1498.19995117,-1754.00000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1155.     CreateObject(19379,1488.59997559,-1754.00000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (8)
  1156.     CreateObject(19450,1459.59997559,-1759.19995117,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1157.     CreateObject(19450,1459.69921875,-1768.00000000,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1158.     CreateObject(19450,1454.90002441,-1763.19995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok10) (3)
  1159.     CreateObject(19379,1459.80004883,-1764.50000000,3287.69995117,0.00000000,90.00000000,90.00000000); //object(sfw_boxwest12) (7)
  1160.     CreateObject(2008,1474.69995117,-1754.30004883,3284.48999023,0.00000000,0.00000000,0.00000000); //object(officedesk1) (1)
  1161.     CreateObject(2008,1472.59997559,-1754.30004883,3284.48999023,0.00000000,0.00000000,0.00000000); //object(officedesk1) (2)
  1162.     CreateObject(2607,1471.40002441,-1755.90002441,3284.89990234,0.00000000,0.00000000,270.00000000); //object(polce_desk2) (1)
  1163.     CreateObject(2007,1486.40002441,-1759.90002441,3284.30004883,0.00000000,0.00000000,0.00000000); //object(filing_cab_nu01) (1)
  1164.     CreateObject(2007,1485.40002441,-1759.90002441,3284.30004883,0.00000000,0.00000000,0.00000000); //object(filing_cab_nu01) (2)
  1165.     CreateObject(2007,1484.39941406,-1759.89941406,3284.30004883,0.00000000,0.00000000,0.00000000); //object(filing_cab_nu01) (3)
  1166.     CreateObject(2162,1471.81005859,-1758.09997559,3284.38500977,0.00000000,0.00000000,180.00000000); //object(med_office_unit_1) (1)
  1167.     CreateObject(2606,1473.19995117,-1754.40002441,3287.00000000,6.50000000,0.00000000,0.00000000); //object(cj_police_counter2) (1)
  1168.     CreateObject(2606,1475.19995117,-1754.40002441,3287.00000000,6.49841309,0.00000000,0.00000000); //object(cj_police_counter2) (3)
  1169.     CreateObject(2162,1476.69995117,-1754.19995117,3284.38500977,0.00000000,0.00000000,312.74450684); //object(med_office_unit_1) (2)
  1170.     CreateObject(1811,1483.19995117,-1752.40002441,3284.89990234,0.00000000,0.00000000,0.00000000); //object(med_din_chair_5) (1)
  1171.     CreateObject(1811,1483.19921875,-1753.19921875,3284.89990234,0.00000000,0.00000000,0.00000000); //object(med_din_chair_5) (2)
  1172.     CreateObject(1811,1483.19995117,-1754.00000000,3284.89990234,0.00000000,0.00000000,0.00000000); //object(med_din_chair_5) (3)
  1173.     CreateObject(1811,1483.19995117,-1754.80004883,3284.89990234,0.00000000,0.00000000,0.00000000); //object(med_din_chair_5) (4)
  1174.     CreateObject(1892,1472.90002441,-1749.50000000,3284.30004883,0.00000000,0.00000000,0.00000000); //object(security_gatsh) (1)
  1175.     CreateObject(1892,1474.50000000,-1749.50000000,3284.30004883,0.00000000,0.00000000,0.00000000); //object(security_gatsh) (2)
  1176.     CreateObject(2111,1482.69995117,-1750.90002441,3284.69995117,0.00000000,0.00000000,0.00000000); //object(low_dinning_5) (1)
  1177.     CreateObject(2816,1482.59997559,-1751.19995117,3285.11010742,0.00000000,0.00000000,0.00000000); //object(gb_bedmags01) (1)
  1178.     CreateObject(14401,1453.30004883,-1747.40002441,3284.60009766,0.00000000,0.00000000,180.00000000); //object(bench1) (1)
  1179.     CreateObject(14401,1443.09960938,-1773.59960938,3284.60009766,0.00000000,0.00000000,269.99450684); //object(bench1) (2)
  1180.     CreateObject(1502,1464.43945312,-1762.41503906,3284.23999023,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (1)
  1181.     CreateObject(14782,1461.30004883,-1759.69995117,3285.30004883,0.00000000,0.00000000,0.00000000); //object(int3int_boxing30) (1)
  1182.     CreateObject(14782,1455.69995117,-1760.00000000,3285.30004883,0.00000000,0.00000000,90.00000000); //object(int3int_boxing30) (4)
  1183.     CreateObject(2846,1456.09997559,-1760.59997559,3284.30004883,0.00000000,0.00000000,0.00000000); //object(gb_bedclothes05) (1)
  1184.     CreateObject(2614,1474.15002441,-1768.12500000,3289.50000000,0.00000000,0.00000000,0.00000000); //object(cj_us_flag) (1)
  1185.     CreateObject(2007,1463.00000000,-1767.40002441,3284.30004883,0.00000000,0.00000000,180.00000000); //object(filing_cab_nu01) (3)
  1186.     CreateObject(2007,1462.00000000,-1767.40002441,3284.30004883,0.00000000,0.00000000,179.99450684); //object(filing_cab_nu01) (3)
  1187.     CreateObject(2007,1461.00000000,-1767.40002441,3284.30004883,0.00000000,0.00000000,179.99450684); //object(filing_cab_nu01) (3)
  1188.     CreateObject(2400,1464.40002441,-1764.59997559,3284.39990234,0.00000000,0.00000000,270.00000000); //object(cj_sports_wall01) (1)
  1189.     CreateObject(2689,1464.00000000,-1765.09997559,3285.69995117,0.00000000,0.00000000,270.00000000); //object(cj_hoodie_2) (1)
  1190.     CreateObject(2704,1464.09997559,-1765.69995117,3285.69995117,0.00000000,0.00000000,270.00000000); //object(cj_hoodie_3) (1)
  1191.     CreateObject(19358,1482.19995117,-1769.51599121,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1192.     CreateObject(14416,1480.59997559,-1772.80004883,3281.10009766,0.00000000,0.00000000,359.99450684); //object(carter-stairs07) (1)
  1193.     CreateObject(19358,1482.19995117,-1769.59997559,3282.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1194.     CreateObject(19358,1482.19995117,-1772.80004883,3282.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1195.     CreateObject(19358,1482.19995117,-1772.69995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1196.     CreateObject(19358,1479.00000000,-1769.59997559,3282.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1197.     CreateObject(19358,1479.00000000,-1772.80004883,3282.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1198.     CreateObject(19358,1479.00000000,-1772.69995117,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1199.     CreateObject(14416,1480.50000000,-1779.09997559,3277.60009766,0.00000000,0.00000000,359.98901367); //object(carter-stairs07) (1)
  1200.     CreateObject(19358,1482.19995117,-1776.00000000,3282.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1201.     CreateObject(19358,1479.00000000,-1776.00000000,3282.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1202.     CreateObject(19358,1482.19995117,-1775.90002441,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1203.     CreateObject(19358,1479.00000000,-1775.90002441,3286.00000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1204.     CreateObject(19358,1480.59960938,-1777.50000000,3282.50000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (7)
  1205.     CreateObject(19358,1480.59997559,-1777.50000000,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (7)
  1206.     CreateObject(19370,1480.50000000,-1769.59960938,3287.69995117,0.00000000,90.00000000,0.00000000); //object(freight_sfw15) (1)
  1207.     CreateObject(19370,1480.50000000,-1772.79980469,3287.69799805,0.00000000,90.00000000,0.00000000); //object(freight_sfw15) (2)
  1208.     CreateObject(19370,1480.59960938,-1776.00000000,3287.69799805,0.00000000,90.00000000,0.00000000); //object(freight_sfw15) (3)
  1209.     CreateObject(14416,1480.50000000,-1780.30004883,3277.60009766,0.00000000,0.00000000,359.98901367); //object(carter-stairs07) (1)
  1210.     CreateObject(1536,1479.09997559,-1777.43701172,3280.80004883,0.00000000,0.00000000,0.00000000); //object(gen_doorext15) (2)
  1211.     CreateObject(1536,1482.09997559,-1777.40002441,3280.80004883,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (2)
  1212.     CreateObject(1811,1464.00000000,-1777.80004883,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (5)
  1213.     CreateObject(1811,1464.90002441,-1777.80004883,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (6)
  1214.     CreateObject(1811,1465.80004883,-1777.80004883,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (7)
  1215.     CreateObject(1811,1466.69995117,-1777.80004883,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (9)
  1216.     CreateObject(1811,1467.59997559,-1777.80004883,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (10)
  1217.     CreateObject(1811,1467.59997559,-1776.09997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (11)
  1218.     CreateObject(1811,1466.69995117,-1776.09997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (12)
  1219.     CreateObject(1811,1465.80004883,-1776.09997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (13)
  1220.     CreateObject(1811,1464.90002441,-1776.09997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (14)
  1221.     CreateObject(1811,1464.00000000,-1776.09997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (15)
  1222.     CreateObject(1811,1467.59997559,-1774.59997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (16)
  1223.     CreateObject(1811,1466.69995117,-1774.59997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (17)
  1224.     CreateObject(1811,1465.90002441,-1774.59997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (18)
  1225.     CreateObject(1811,1465.00000000,-1774.59997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (19)
  1226.     CreateObject(1811,1464.09997559,-1774.59997559,3288.39990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (20)
  1227.     CreateObject(3077,1466.80004883,-1781.80004883,3287.80004883,0.00000000,0.00000000,0.00000000); //object(nf_blackboard) (1)
  1228.     CreateObject(14532,1464.09960938,-1781.19921875,3288.80004883,0.00000000,0.00000000,349.99694824); //object(tv_stand_driv) (1)
  1229.     CreateObject(19358,1470.50000000,-1774.69995117,3289.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1230.     CreateObject(19388,1470.50000000,-1777.90002441,3289.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw15) (1)
  1231.     CreateObject(19358,1470.50000000,-1781.09997559,3289.50000000,0.00000000,0.00000000,0.00000000); //object(road_sfw12) (7)
  1232.     CreateObject(2357,1471.59960938,-1787.69921875,3288.19995117,0.00000000,0.00000000,270.00000000); //object(dunc_dinning) (1)
  1233.     CreateObject(1714,1513.09997559,-1837.50000000,3216.69995117,0.00000000,0.00000000,0.00000000); //object(kb_swivelchair1) (1)
  1234.     CreateObject(1714,1471.59997559,-1790.69995117,3287.80004883,0.00000000,0.00000000,180.00000000); //object(kb_swivelchair1) (2)
  1235.     CreateObject(1671,1470.40002441,-1788.90002441,3288.19995117,0.00000000,0.00000000,90.00000000); //object(swivelchair_a) (1)
  1236.     CreateObject(1671,1470.40002441,-1787.69995117,3288.19995117,0.00000000,0.00000000,90.00000000); //object(swivelchair_a) (2)
  1237.     CreateObject(1671,1470.40002441,-1786.50000000,3288.19995117,0.00000000,0.00000000,90.00000000); //object(swivelchair_a) (4)
  1238.     CreateObject(1671,1472.90002441,-1788.90002441,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (5)
  1239.     CreateObject(1671,1472.90002441,-1787.69995117,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (7)
  1240.     CreateObject(1671,1472.90002441,-1786.50000000,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (9)
  1241.     CreateObject(14532,1470.09960938,-1791.59960938,3288.80004883,0.00000000,0.00000000,337.99438477); //object(tv_stand_driv) (1)
  1242.     CreateObject(1671,1475.19995117,-1790.40002441,3288.19995117,0.00000000,0.00000000,180.00000000); //object(swivelchair_a) (10)
  1243.     CreateObject(2165,1478.19995117,-1790.09997559,3287.80004883,0.00000000,0.00000000,270.00000000); //object(med_office_desk_1) (1)
  1244.     CreateObject(2166,1477.19995117,-1788.09997559,3287.80004883,0.00000000,0.00000000,270.00000000); //object(med_office_desk_2) (1)
  1245.     CreateObject(2173,1474.69995117,-1789.50000000,3287.80004883,0.00000000,0.00000000,0.00000000); //object(med_office_desk_3) (1)
  1246.     CreateObject(1671,1477.29980469,-1790.69921875,3288.19995117,0.00000000,0.00000000,90.00000000); //object(swivelchair_a) (11)
  1247.     CreateObject(1671,1475.09997559,-1788.50000000,3288.19995117,0.00000000,0.00000000,358.24450684); //object(swivelchair_a) (12)
  1248.     CreateObject(2186,1476.59997559,-1773.59997559,3287.80004883,0.00000000,0.00000000,0.00000000); //object(photocopier_1) (1)
  1249.     CreateObject(2612,1474.22302246,-1790.40002441,3289.60009766,0.00000000,0.00000000,90.00000000); //object(police_nb2) (1)
  1250.     CreateObject(2611,1474.22399902,-1787.80004883,3289.62011719,0.00000000,0.00000000,90.00000000); //object(police_nb1) (1)
  1251.     CreateObject(1502,1476.45996094,-1785.61999512,3287.73510742,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (1)
  1252.     CreateObject(2165,1479.19995117,-1775.59997559,3287.80004883,0.00000000,0.00000000,90.00000000); //object(med_office_desk_1) (2)
  1253.     CreateObject(2165,1479.30004883,-1778.50000000,3287.80004883,0.00000000,0.00000000,90.00000000); //object(med_office_desk_1) (3)
  1254.     CreateObject(2165,1479.40002441,-1781.50000000,3287.80004883,0.00000000,0.00000000,90.00000000); //object(med_office_desk_1) (4)
  1255.     CreateObject(2165,1482.30004883,-1775.59997559,3287.80004883,0.00000000,0.00000000,90.00000000); //object(med_office_desk_1) (5)
  1256.     CreateObject(2165,1482.40002441,-1778.50000000,3287.80004883,0.00000000,0.00000000,90.00000000); //object(med_office_desk_1) (6)
  1257.     CreateObject(2165,1482.50000000,-1781.50000000,3287.80004883,0.00000000,0.00000000,90.00000000); //object(med_office_desk_1) (7)
  1258.     CreateObject(1671,1483.19995117,-1775.00000000,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (13)
  1259.     CreateObject(1671,1480.19995117,-1775.00000000,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (14)
  1260.     CreateObject(1671,1483.30004883,-1778.00000000,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (15)
  1261.     CreateObject(1671,1483.50000000,-1781.00000000,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (16)
  1262.     CreateObject(1671,1480.40002441,-1781.09997559,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (17)
  1263.     CreateObject(1671,1480.19995117,-1778.00000000,3288.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (18)
  1264.     CreateObject(2186,1474.79980469,-1786.19921875,3287.80004883,0.00000000,0.00000000,0.00000000); //object(photocopier_1) (2)
  1265.     CreateObject(2007,1471.19995117,-1773.69995117,3287.80004883,0.00000000,0.00000000,90.00000000); //object(filing_cab_nu01) (3)
  1266.     CreateObject(2007,1471.19995117,-1774.69995117,3287.80004883,0.00000000,0.00000000,90.00000000); //object(filing_cab_nu01) (3)
  1267.     CreateObject(2007,1471.19995117,-1775.69995117,3287.80004883,0.00000000,0.00000000,90.00000000); //object(filing_cab_nu01) (3)
  1268.     CreateObject(2166,1471.90002441,-1779.09997559,3287.80004883,0.00000000,0.00000000,270.00000000); //object(med_office_desk_2) (2)
  1269.     CreateObject(2165,1472.90002441,-1781.09997559,3287.80004883,0.00000000,0.00000000,270.00000000); //object(med_office_desk_1) (8)
  1270.     CreateObject(1714,1471.69995117,-1781.69995117,3287.80004883,0.00000000,0.00000000,89.99450684); //object(kb_swivelchair1) (3)
  1271.     CreateObject(1800,1492.69995117,-1760.80004883,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (1)
  1272.     CreateObject(1800,1495.90002441,-1760.80004883,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (2)
  1273.     CreateObject(1800,1499.19995117,-1760.80004883,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (3)
  1274.     CreateObject(1800,1502.40002441,-1760.80004883,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (4)
  1275.     CreateObject(1800,1491.00000000,-1770.59997559,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (5)
  1276.     CreateObject(1800,1494.19995117,-1770.50000000,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (6)
  1277.     CreateObject(1800,1497.40002441,-1770.50000000,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (7)
  1278.     CreateObject(1800,1500.59997559,-1770.59997559,3284.30004883,0.00000000,0.00000000,0.00000000); //object(low_bed_1) (8)
  1279.     CreateObject(2738,1500.59997559,-1766.09997559,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (1)
  1280.     CreateObject(2738,1497.30004883,-1766.09997559,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (2)
  1281.     CreateObject(2738,1494.09997559,-1766.09997559,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (3)
  1282.     CreateObject(2738,1490.90002441,-1766.09997559,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (4)
  1283.     CreateObject(2738,1491.00000000,-1759.90002441,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (5)
  1284.     CreateObject(2738,1494.09997559,-1760.00000000,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (6)
  1285.     CreateObject(2738,1497.30004883,-1760.00000000,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (7)
  1286.     CreateObject(2738,1500.59997559,-1759.90002441,3284.89990234,0.00000000,0.00000000,90.00000000); //object(cj_toilet_bs) (8)
  1287.     CreateObject(2524,1500.69995117,-1758.59997559,3284.30004883,0.00000000,0.00000000,90.00000000); //object(cj_b_sink4) (1)
  1288.     CreateObject(2524,1497.40002441,-1758.69995117,3284.30004883,0.00000000,0.00000000,90.00000000); //object(cj_b_sink4) (2)
  1289.     CreateObject(2524,1494.19995117,-1758.80004883,3284.30004883,0.00000000,0.00000000,90.00000000); //object(cj_b_sink4) (3)
  1290.     CreateObject(2524,1491.00000000,-1758.90002441,3284.30004883,0.00000000,0.00000000,90.00000000); //object(cj_b_sink4) (4)
  1291.     CreateObject(2524,1493.00000000,-1767.59997559,3284.30004883,0.00000000,0.00000000,270.00000000); //object(cj_b_sink4) (5)
  1292.     CreateObject(2524,1496.19995117,-1767.59997559,3284.30004883,0.00000000,0.00000000,270.00000000); //object(cj_b_sink4) (6)
  1293.     CreateObject(2524,1499.40002441,-1767.59997559,3284.30004883,0.00000000,0.00000000,270.00000000); //object(cj_b_sink4) (7)
  1294.     CreateObject(2524,1502.69995117,-1767.59997559,3284.30004883,0.00000000,0.00000000,270.00000000); //object(cj_b_sink4) (8)
  1295.     CreateObject(2007,1493.00000000,-1760.59997559,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1296.     CreateObject(2007,1496.19995117,-1760.50000000,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1297.     CreateObject(2007,1499.50000000,-1760.40002441,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1298.     CreateObject(2007,1502.69995117,-1760.30004883,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1299.     CreateObject(2007,1502.69995117,-1766.30004883,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1300.     CreateObject(2007,1499.40002441,-1766.30004883,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1301.     CreateObject(2007,1496.19995117,-1766.30004883,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1302.     CreateObject(2007,1493.00000000,-1766.30004883,3284.30004883,0.00000000,0.00000000,270.00000000); //object(filing_cab_nu01) (3)
  1303.     CreateObject(19450,1467.59997559,-1768.00097656,3286.00000000,0.00000000,0.00000000,270.00000000); //object(cs_detrok10) (1)
  1304.     CreateObject(1811,1472.30004883,-1758.90002441,3284.89990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (2)
  1305.     CreateObject(1811,1471.50000000,-1758.90002441,3284.89990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (2)
  1306.     CreateObject(1811,1470.69995117,-1758.90002441,3284.89990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (2)
  1307.     CreateObject(1811,1469.90002441,-1758.90002441,3284.89990234,0.00000000,0.00000000,90.00000000); //object(med_din_chair_5) (2)
  1308.     CreateObject(18608,1473.50000000,-1763.19995117,3288.50000000,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (1)
  1309.     CreateObject(18608,1452.09997559,-1763.80004883,3288.50000000,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (2)
  1310.     CreateObject(18608,1474.80004883,-1756.40002441,3288.50000000,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (3)
  1311.     CreateObject(18608,1470.90002441,-1750.90002441,3288.50000000,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (4)
  1312.     CreateObject(18608,1474.69995117,-1777.80004883,3292.19995117,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (5)
  1313.     CreateObject(18608,1464.09997559,-1786.69995117,3292.19995117,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (6)
  1314.     CreateObject(18608,1483.89941406,-1788.89941406,3292.19995117,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (7)
  1315.     CreateObject(18608,1492.80004883,-1763.19995117,3288.50000000,0.00000000,0.00000000,270.00000000); //object(counts_lights01) (8)
  1316.     CreateObject(1886,1465.09997559,-1757.59997559,3287.69995117,8.49990845,0.25277710,139.71264648); //object(shop_sec_cam) (1)
  1317.     CreateObject(1886,1483.40002441,-1757.80004883,3287.50000000,8.49792480,0.25268555,219.70764160); //object(shop_sec_cam) (2)
  1318.     CreateObject(1886,1502.69995117,-1764.40002441,3287.80004883,12.49789429,0.25598145,243.68652344); //object(shop_sec_cam) (3)
  1319.     CreateObject(1886,1465.19921875,-1767.50000000,3287.80004883,8.49792480,0.25268555,123.70056152); //object(shop_sec_cam) (4)
  1320.     CreateObject(19431,1469.40002441,-1793.19995117,3289.50000000,0.00000000,0.00000000,179.99450684); //object(cs_landbit_48_a) (11)
  1321.     CreateObject(19431,1474.09960938,-1792.79980469,3289.50000000,0.00000000,0.00000000,179.99450684); //object(cs_landbit_48_a) (11)
  1322.     CreateObject(19404,1471.69995117,-1793.50000000,3289.50000000,0.00000000,0.00000000,270.00000000); //object(boigagr_sfw) (1)
  1323.     CreateObject(19431,1474.09997559,-1793.50000000,3289.50000000,0.00000000,0.00000000,90.00000000); //object(cs_landbit_48_a) (11)
  1324.     CreateObject(19431,1469.30004883,-1793.50000000,3289.50000000,0.00000000,0.00000000,90.00000000); //object(cs_landbit_48_a) (11)
  1325.     CreateObject(19404,1476.50000000,-1793.50000000,3289.50000000,0.00000000,0.00000000,270.00000000); //object(boigagr_sfw) (2)
  1326.     CreateObject(19431,1478.90002441,-1793.50000000,3289.50000000,0.00000000,0.00000000,90.00000000); //object(cs_landbit_48_a) (11)
  1327.     CreateObject(4108,1480.50000000,-1805.90002441,3287.89990234,0.00000000,0.00000000,270.00000000); //object(roads01b_lan) (1)
  1328.     CreateObject(717,1477.09997559,-1805.90002441,3284.10009766,0.00000000,0.00000000,92.00000000); //object(sm_bevhiltreepv) (1)
  1329.     CreateObject(717,1486.59997559,-1805.80004883,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (2)
  1330.     CreateObject(717,1496.59997559,-1805.69995117,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (3)
  1331.     CreateObject(717,1508.80004883,-1805.59997559,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (4)
  1332.     CreateObject(717,1520.59997559,-1805.50000000,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (5)
  1333.     CreateObject(717,1467.80004883,-1805.90002441,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (6)
  1334.     CreateObject(717,1457.09997559,-1805.59997559,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (7)
  1335.     CreateObject(717,1445.30004883,-1805.19995117,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (8)
  1336.     CreateObject(717,1434.90002441,-1805.30004883,3284.10009766,0.00000000,0.00000000,91.99951172); //object(sm_bevhiltreepv) (9)
  1337.     CreateObject(717,1421.90002441,-1805.69995117,3284.10009766,0.00000000,0.00000000,92.00000000); //object(sm_bevhiltreepv) (10)
  1338.     CreateObject(6199,1450.69995117,-1831.09997559,3295.89990234,0.00000000,0.00000000,4.75000000); //object(gaz27_law) (1)
  1339.     CreateObject(6199,1500.59997559,-1831.30004883,3295.89990234,0.00000000,0.00000000,4.74609375); //object(gaz27_law) (2)
  1340.     CreateObject(6364,1551.59997559,-1819.50000000,3308.19995117,0.00000000,0.00000000,68.00000000); //object(sunset07_law2) (1)
  1341.     CreateObject(6364,1568.69995117,-1845.80004883,3308.19995117,0.00000000,0.00000000,82.99987793); //object(sunset07_law2) (2)
  1342.     CreateObject(6391,1403.59997559,-1822.80004883,3327.60009766,0.00000000,0.00000000,97.00000000); //object(sanclifft05_law2) (1)
  1343.     CreateObject(3858,1474.50000000,-1793.50000000,3290.69995117,0.00000000,0.00000000,225.00000000); //object(ottosmash1) (1)
  1344.     CreateObject(3858,1474.50000000,-1793.50000000,3290.69995117,0.00000000,0.00000000,44.50000000); //object(ottosmash1) (2)
  1345.     CreateObject(2559,1468.90002441,-1749.30004883,3285.50000000,0.00000000,0.00000000,0.00000000); //object(curtain_1_open) (1)
  1346.     CreateObject(2559,1477.00000000,-1793.00000000,3289.00000000,0.00000000,0.00000000,179.99450684); //object(curtain_1_open) (2)
  1347.     CreateObject(4150,1484.90002441,-1741.19995117,3284.19995117,0.00000000,0.00000000,270.00000000); //object(roads14_lan) (1)
  1348.     CreateObject(19358,1482.19995117,-1748.80004883,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (3)
  1349.     CreateObject(19404,1479.00000000,-1748.80004883,3286.00000000,0.00000000,0.00000000,270.00000000); //object(boigagr_sfw) (3)
  1350.     CreateObject(19358,1475.80004883,-1748.80004883,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (3)
  1351.     CreateObject(19358,1472.59997559,-1748.80004883,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (3)
  1352.     CreateObject(19404,1469.40002441,-1748.80004883,3286.00000000,0.00000000,0.00000000,270.00000000); //object(boigagr_sfw) (4)
  1353.     CreateObject(19358,1466.19995117,-1748.80004883,3286.00000000,0.00000000,0.00000000,90.00000000); //object(road_sfw12) (3)
  1354.     CreateObject(3858,1474.19995117,-1748.80004883,3285.30004883,0.00000000,0.00000000,44.99462891); //object(ottosmash1) (3)
  1355.     CreateObject(3858,1474.19995117,-1748.80004883,3285.30004883,0.00000000,0.00000000,224.99450684); //object(ottosmash1) (4)
  1356.     CreateObject(2559,1472.19921875,-1793.00000000,3289.00000000,0.00000000,0.00000000,179.99450684); //object(curtain_1_open) (3)
  1357.     CreateObject(2559,1478.50000000,-1749.30004883,3285.50000000,0.00000000,0.00000000,0.00000000); //object(curtain_1_open) (4)
  1358.     CreateObject(4186,1454.90002441,-1689.09997559,3291.30004883,0.00000000,0.00000000,270.00000000); //object(pershingsq2_lan) (1)
  1359.     CreateObject(3985,1516.50000000,-1689.09997559,3283.80004883,0.00000000,0.00000000,270.00000000); //object(pershingsq1_lan) (1)
  1360.     CreateObject(713,1441.19995117,-1707.30004883,3281.10009766,0.00000000,0.00000000,0.00000000); //object(veg_bevtree1) (1)
  1361.     CreateObject(713,1527.69995117,-1710.80004883,3281.80004883,0.00000000,0.00000000,0.00000000); //object(veg_bevtree1) (2)
  1362.     CreateObject(713,1482.80004883,-1693.69995117,3285.30004883,0.00000000,0.00000000,0.00000000); //object(veg_bevtree1) (3)
  1363.     CreateObject(4016,1585.30004883,-1717.90002441,3292.10009766,0.00000000,0.00000000,270.00000000); //object(fighotbase_lan) (1)
  1364.     CreateObject(4006,1490.50000000,-1642.59997559,3304.50000000,0.00000000,0.00000000,270.00000000); //object(eastcolumb1_lan) (1)
  1365.     CreateObject(4008,1558.19995117,-1651.80004883,3292.00000000,0.00000000,0.00000000,272.00000000); //object(decoblok1_lan) (1)
  1366.     CreateObject(4005,1433.40002441,-1656.80004883,3297.80004883,0.00000000,0.00000000,270.00000000); //object(decoblok2_lan) (1)
  1367.     CreateObject(3980,1370.80004883,-1719.80004883,3294.00000000,0.00000000,0.00000000,270.00000000); //object(lacityhall1_lan) (1)
  1368.     CreateObject(4163,1415.80004883,-1678.50000000,3284.30004883,0.00000000,0.00000000,270.00000000); //object(roads24_lan) (1)
  1369.     CreateObject(4002,1360.50000000,-1717.69995117,3326.60009766,0.00000000,0.00000000,270.00000000); //object(lacityhall2_lan) (1)
  1370.     CreateObject(713,1422.19995117,-1669.09997559,3255.60009766,28.00000000,0.00000000,114.00000000); //object(veg_bevtree1) (4)
  1371.  
  1372.     //------------------[ Portões da DP/PM ]---------------------//
  1373.     //Portão
  1374.     door0 = CreateObject(1495,1487.00000000,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (1)
  1375.     door1 = CreateObject(1495,1483.79003906,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (2)
  1376.     door2 = CreateObject(1495,1479.85998535,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
  1377.     door3 = CreateObject(1495,1467.06701660,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
  1378.  
  1379.     //Cellas
  1380.     cell0 = CreateObject(1567,1491.21484375,-1764.90002441,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (2)
  1381.     cell1 = CreateObject(1567,1494.41210938,-1764.90002441,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (3)
  1382.     cell2 = CreateObject(1567,1497.61132812,-1764.90002441,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (4)
  1383.     cell3 = CreateObject(1567,1500.81445312,-1764.90002441,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (6)
  1384.     cell4 = CreateObject(1567,1500.81994629,-1761.51000977,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (7)
  1385.     cell5 = CreateObject(1567,1491.22094727,-1761.50000000,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (8)
  1386.     cell6 = CreateObject(1567,1494.41894531,-1761.51000977,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (9)
  1387.     cell7 = CreateObject(1567,1497.61999512,-1761.51000977,3284.25048828,0.00000000,0.00000000,0.00000000); //object(gen_wardrobe) (10)
  1388.  
  1389.  
  1390.     //------------( Settimer )-------------
  1391.     supercam = SetTimer("ActionCamera", 1, 1);
  1392.     SetTimer("UpTime",3600000,true);//3600000 - 1 Hora
  1393.     Hacker = SetTimer("Henrique",1,1);
  1394.     SetTimer("hora",1000,1);
  1395.     checkgastimer = SetTimer("TempoGasolina", TimerGAS, 1);
  1396.     TempoVelo = SetTimer("Velocimetro",1,1);
  1397.     Loop(i,MAX_PLAYERS)
  1398.     {
  1399.         //----------------[ Velocimetro ]----------------//
  1400.         Speed[i] = TextDrawCreate(500.000000, 370.000000,"_");
  1401.         TextDrawUseBox(Speed[i],0);
  1402.         TextDrawBoxColor(Speed[i],0x00000065);
  1403.         TextDrawTextSize(Speed[i],633.000000, -19.000000);
  1404.         TextDrawAlignment(Speed[i],0);
  1405.         TextDrawBackgroundColor(Speed[i],0x000000FF);
  1406.         TextDrawFont(Speed[i],1);
  1407.         TextDrawLetterSize(Speed[i],0.270000, 1.000000);
  1408.         TextDrawColor(Speed[i],0xFFFFFFFF);
  1409.         TextDrawSetOutline(Speed[i],1);
  1410.         TextDrawSetProportional(Speed[i],1);
  1411.         TextDrawSetShadow(Speed[i],1);
  1412.  
  1413.         //------------[ Faixa Preta ]--------------//
  1414.         Faixa0[i] = TextDrawCreate(641.000000, 2.000000, "~n~n~n~");
  1415.         TextDrawBackgroundColor(Faixa0[i], 255);
  1416.         TextDrawFont(Faixa0[i], 1);
  1417.         TextDrawLetterSize(Faixa0[i], 1.009999, 5.499997);
  1418.         TextDrawColor(Faixa0[i], -1);
  1419.         TextDrawSetOutline(Faixa0[i], 0);
  1420.         TextDrawSetProportional(Faixa0[i], 1);
  1421.         TextDrawSetShadow(Faixa0[i], 4);
  1422.         TextDrawUseBox(Faixa0[i], 1);
  1423.         TextDrawBoxColor(Faixa0[i], 255);
  1424.         TextDrawTextSize(Faixa0[i], -4.000000, 6.000000);
  1425.  
  1426.         Faixa1[i] = TextDrawCreate(678.000000, 347.000000, "~n~n~n~");
  1427.         TextDrawBackgroundColor(Faixa1[i], 255);
  1428.         TextDrawFont(Faixa1[i], 1);
  1429.         TextDrawLetterSize(Faixa1[i], 1.009999, 5.499997);
  1430.         TextDrawColor(Faixa1[i], -1);
  1431.         TextDrawSetOutline(Faixa1[i], 0);
  1432.         TextDrawSetProportional(Faixa1[i], 1);
  1433.         TextDrawSetShadow(Faixa1[i], 4);
  1434.         TextDrawUseBox(Faixa1[i], 1);
  1435.         TextDrawBoxColor(Faixa1[i], 255);
  1436.         TextDrawTextSize(Faixa1[i], -4.000000, 6.000000);
  1437.        
  1438.         //---------------[ Text Draw ao Morrer ]-----------------//
  1439.         Textdraw0[i] = TextDrawCreate(650.000000, 2.000000, "_");
  1440.         TextDrawBackgroundColor(Textdraw0[i], 255);
  1441.         TextDrawFont(Textdraw0[i], 1);
  1442.         TextDrawLetterSize(Textdraw0[i], 1.100000, 50.000000);
  1443.         TextDrawColor(Textdraw0[i], -1);
  1444.         TextDrawSetOutline(Textdraw0[i], 0);
  1445.         TextDrawSetProportional(Textdraw0[i], 1);
  1446.         TextDrawSetShadow(Textdraw0[i], 1);
  1447.         TextDrawUseBox(Textdraw0[i], 1);
  1448.         TextDrawBoxColor(Textdraw0[i], -16776961);
  1449.         TextDrawTextSize(Textdraw0[i], -10.000000, 60.000000);
  1450.  
  1451.         Textdraw2[i] = TextDrawCreate(314.000000, 205.000000, "Voce Morreu...");
  1452.         TextDrawAlignment(Textdraw2[i], 2);
  1453.         TextDrawBackgroundColor(Textdraw2[i], 255);
  1454.         TextDrawFont(Textdraw2[i], 1);
  1455.         TextDrawLetterSize(Textdraw2[i], 1.000000, 4.000000);
  1456.         TextDrawColor(Textdraw2[i], -1);
  1457.         TextDrawSetOutline(Textdraw2[i], 0);
  1458.         TextDrawSetProportional(Textdraw2[i], 1);
  1459.         TextDrawSetShadow(Textdraw2[i], 1);
  1460.     }
  1461.     return 1;
  1462. }
  1463.  
  1464. public ImprimirInformacoes()
  1465. {
  1466.     print("\n(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
  1467.     print("\n\nCaregando\n");
  1468.     VerificarPasta("Logs");
  1469.     CriarLogs();
  1470.     VerificarPasta("Banidos");
  1471.     VerificarPasta("Banidos/Contas");
  1472.     VerificarPasta("Admins");
  1473.     VerificarArquivo("Fodidos.txt");
  1474.     VerificarArquivo("Admins.adm");
  1475.     VerificarArquivo("Helpers.hel");
  1476.     VerificarArquivo("Vips.vip");
  1477.     VerificarPasta("Contas");
  1478.     print("\nEuro RPG Carregado com sucesso.\n");
  1479.     print("\nUse /la para ajuda.");
  1480.     print("Bom Jogo :D\n\n");
  1481.     print("(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
  1482.     return 1;
  1483. }
  1484.  
  1485. public VerificarPasta(pasta[])
  1486. {
  1487.     format(String, sizeof(String), "EuroRPG/%s/verificacao",pasta);
  1488.     DOF2_CreateFile(String);
  1489.     if(DOF2_FileExists(String))
  1490.     {
  1491.         printf("Pasta '%s' Encontrada e carregada com sucesso.", pasta);
  1492.     }
  1493.     else if(!DOF2_FileExists(String))
  1494.     {
  1495.         printf("Pasta '%s' Não encontrada.", pasta);
  1496.     }
  1497.     DOF2_RemoveFile(String);
  1498.     return 1;
  1499. }
  1500.  
  1501. public VerificarArquivo(arquivo[])
  1502. {
  1503.     format(String, sizeof(String), "EuroRPG/%s", arquivo);
  1504.     if(DOF2_FileExists(String))
  1505.     {
  1506.         printf("Arquivo '%s' Encontrado e carregado com sucesso.", arquivo);
  1507.         return 1;
  1508.     }
  1509.     else if(!DOF2_FileExists(String))
  1510.     {
  1511.         printf("Arquivo '%s' não encontrado. O FS o criou automaticamente.", arquivo);
  1512.         DOF2_CreateFile(String);
  1513.         return 1;
  1514.     }
  1515.     return 1;
  1516. }
  1517.  
  1518. public OnGameModeExit()
  1519. {
  1520.     for(new i = 0; i < MAX_PLAYERS; ++i)
  1521.     {
  1522.         SalvarDados(i);
  1523.     }
  1524.     SalvarBancoDasOrgs();
  1525.     KillTimer(TempoSequestrar);
  1526.     KillTimer(TempoVelo);
  1527.     KillTimer(Hacker);
  1528.     KillTimer(supercam);
  1529.     KillTimer(checkgastimer);
  1530.     DOF2_Exit();
  1531.     for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
  1532.     {
  1533.         TextDrawHideForAll(Speed[playerid]);
  1534.         TextDrawDestroy(Speed[playerid]);
  1535.     }
  1536.     return 1;
  1537. }
  1538.  
  1539. public OnPlayerConnect(playerid)
  1540. {
  1541.     TextDrawShowForPlayer(playerid, Faixa0[playerid]);
  1542.     TextDrawShowForPlayer(playerid, Faixa1[playerid]);
  1543.     if(strfind(Nome(playerid),"clock$",true) != -1) Ban(playerid);
  1544.     if(strfind(Nome(playerid),"prn",true) != -1) Ban(playerid);
  1545.     if(strfind(Nome(playerid),"Carl",true) != -1) Ban(playerid);
  1546.     if(strfind(Nome(playerid),"con",true) != -1) Ban(playerid);
  1547.     if(strfind(Nome(playerid),"SgtPepper",true) != -1) Ban(playerid);
  1548.     if(strfind(Nome(playerid),"Pepe",true) != -1) Ban(playerid);
  1549.     if(strfind(Nome(playerid),"nul",true) != -1) Ban(playerid);
  1550.     if(strfind(Nome(playerid),"Pepno",true) != -1) Ban(playerid);
  1551.     if(strfind(Nome(playerid),"Pepsi",true) != -1) Ban(playerid);
  1552.     if(strfind(Nome(playerid),"Rocky",true) != -1) Ban(playerid);
  1553.     if(strfind(Nome(playerid),"Carl",true) != -1) Ban(playerid);
  1554.     if(strfind(Nome(playerid),"Vino_Toro",true) != -1) Ban(playerid);
  1555.     if(strfind(Nome(playerid),"Zoquete",true) != -1) Ban(playerid);
  1556.     if(strfind(Nome(playerid),"AquilesBrinco",true) != -1) Ban(playerid);
  1557.     if(strfind(Nome(playerid),"Azucar",true) != -1) Ban(playerid);
  1558.     if(strfind(Nome(playerid),"Manfrey",true) != -1) Ban(playerid);
  1559.     if(strfind(Nome(playerid),"Papirola",true) != -1) Ban(playerid);
  1560.     if(strfind(Nome(playerid),"[ViP]Labrik",true) != -1)Ban(playerid);
  1561.     if(strfind(Nome(playerid),"Sony",true) != -1) Ban(playerid);
  1562.     if(strfind(Nome(playerid),"Pacman",true) != -1) Ban(playerid);
  1563.     if(strfind(Nome(playerid),"Batman",true) != -1)Ban(playerid);
  1564.     if(strfind(Nome(playerid),"aux",true) != -1) Ban(playerid);
  1565.     if(strfind(Nome(playerid),"com1",true) != -1) Ban(playerid);
  1566.     if(strfind(Nome(playerid),"com2",true) != -1) Ban(playerid);
  1567.     if(strfind(Nome(playerid),"com3",true) != -1) Ban(playerid);
  1568.     if(strfind(Nome(playerid),"com4",true) != -1) Ban(playerid);
  1569.     if(strfind(Nome(playerid),"com5",true) != -1) Ban(playerid);
  1570.     if(strfind(Nome(playerid),"com6",true) != -1) Ban(playerid);
  1571.     if(strfind(Nome(playerid),"com7",true) != -1) Ban(playerid);
  1572.     if(strfind(Nome(playerid),"com8",true) != -1) Ban(playerid);
  1573.     if(strfind(Nome(playerid),"com9",true) != -1) Ban(playerid);
  1574.     if(strfind(Nome(playerid),"lpt1",true) != -1) Ban(playerid);
  1575.     if(strfind(Nome(playerid),"lpt2",true) != -1) Ban(playerid);
  1576.     if(strfind(Nome(playerid),"lpt3",true) != -1) Ban(playerid);
  1577.     if(strfind(Nome(playerid),"lpt4",true) != -1) Ban(playerid);
  1578.     if(strfind(Nome(playerid),"lpt5",true) != -1) Ban(playerid);
  1579.     if(strfind(Nome(playerid),"lpt6",true) != -1) Ban(playerid);
  1580.     if(strfind(Nome(playerid),"lpt8",true) != -1) Ban(playerid);
  1581.     if(strfind(Nome(playerid),"lpt9",true) != -1) Ban(playerid);
  1582.     Pergunta[playerid] = "Nenhuma";
  1583.     SetTimerEx("TocarSom", 1000, false, "i", playerid);
  1584.     PlayersOnline++;
  1585.     PlayerDados[playerid][Logado] = false;
  1586.     PlayerDados[playerid][Admin] = 0;
  1587.     PlayerDados[playerid][Helper] = false;
  1588.     PlayerDados[playerid][Vip] = false;
  1589.     PlayerDados[playerid][Sexo] = 0;
  1590.     Pagamento[playerid] = 0;
  1591.     NoFuel[playerid] = 0;
  1592.     PlayerDados[playerid][Organizacao] = 0;
  1593.     InviteOffer[playerid] = 999;
  1594.     TextShow[playerid] = false;
  1595.     PlayerDados[playerid][Emprego] = 0;
  1596.     pBarreira[playerid] = 0;
  1597.     pBarreira2[playerid] = 0;
  1598.     pBarreira3[playerid] = 0;
  1599.     pBarreira4[playerid] = 0;
  1600.     pBarreira5[playerid] = 0;
  1601.     Amarradoo[playerid] = 0;
  1602.     ArmadeChoque[playerid] = 0; BaterCartao[playerid] = 0; JogadorImo[playerid] = 0; JogadorImoTempo[playerid] = 0;
  1603.     pBancoDasOrgs[playerid] = 0; Algemado[playerid] = 0;
  1604.     PlayerDados[playerid][Cargo] = 0;
  1605.     PlayerDados[playerid][Respeito] = 0;
  1606.     SetPlayerSkin(playerid,PlayerDados[playerid][pSkin]);
  1607.     SetPlayerWantedLevel(playerid, PlayerDados[playerid][Procurado]);
  1608.     SetPlayerScore(playerid, PlayerDados[playerid][pLevel]);
  1609.     PlayerDados[playerid][pSkin] = GetPlayerSkin(playerid);
  1610.     VariosEmpregos[playerid] = 0;
  1611.     PlayerDados[playerid][Tutorial] = false;
  1612.     new strConta[80];
  1613.     new Ip[25];
  1614.     for(new t = 0; t < 100; ++t)
  1615.     {
  1616.         SendClientMessage(playerid, -1, " ");
  1617.     }
  1618.     format(strConta, sizeof(strConta), "EuroRPG/Banidos/Contas/%s.txt", Nome(playerid));
  1619.     if(DOF2_FileExists(strConta))
  1620.     {
  1621.         format(String, sizeof(String), "{FFFFFF}Você está banido deste servidor!\n\n         Dados do Banimento:\n\n{45F75A}Admin: {FFFFFF}%s \n{45F75A}Motivo: {FFFFFF}%s", DOF2_GetString(strConta, "Admin"), DOF2_GetString(strConta, "Motivo"));
  1622.         format(String, sizeof(String), "%s\n{45F75A}Data: {FFFFFF}%d/%d/%d \n{45F75A}Hora: {FFFFFF}%d:%d", String, DOF2_GetInt(strConta, "Dia"), DOF2_GetInt(strConta, "Mes"), DOF2_GetInt(strConta, "Ano"), DOF2_GetInt(strConta, "Hora"), DOF2_GetInt(strConta, "Minuto"));
  1623.         ShowPlayerDialog(playerid, DIALOG_BANIDO, DIALOG_STYLE_MSGBOX, "Banido!", String, "Fechar", "");
  1624.         return 1;
  1625.     }
  1626.     GetPlayerIp(playerid, Ip, 25);
  1627.     if(strcmp(Ip ,"255.255.255.255", true) == 0)
  1628.     {
  1629.         Ban(playerid);
  1630.     }
  1631.     //----------------[ Mapa Icones ]----------------//
  1632.     SetPlayerMapIcon(playerid,56,1481.3912,-1772.4340,15.3327, 56, 0xFF0000FF);// Icone Prefeitura !
  1633.     SetPlayerMapIcon(playerid,36,1411.5503,-1699.5452,13.5395, 36, 0xFF0000FF);// Icone Centro de Licença !
  1634.     SetPlayerMapIcon(playerid,30,1555.3458,-1675.6226,16.1953, 30, 0xFF0000FF);//Icone da DP
  1635.     //-------------------[ Remover Objectos ]---------------//
  1636.     RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
  1637.     RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
  1638.     RemoveBuildingForPlayer(playerid, 4057, 1479.5547, -1693.1406, 19.5781, 0.25);
  1639.     RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
  1640.     RemoveBuildingForPlayer(playerid, 4210, 1479.5625, -1631.4531, 12.0781, 0.25);
  1641.     RemoveBuildingForPlayer(playerid, 713, 1457.9375, -1620.6953, 13.4531, 0.25);
  1642.     RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
  1643.     RemoveBuildingForPlayer(playerid, 1283, 1430.1719, -1719.4688, 15.6250, 0.25);
  1644.     RemoveBuildingForPlayer(playerid, 1226, 1451.6250, -1727.6719, 16.4219, 0.25);
  1645.     RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
  1646.     RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
  1647.     RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
  1648.     RemoveBuildingForPlayer(playerid, 1226, 1467.9844, -1727.6719, 16.4219, 0.25);
  1649.     RemoveBuildingForPlayer(playerid, 1226, 1485.1719, -1727.6719, 16.4219, 0.25);
  1650.     RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1713.5078, 13.4531, 0.25);
  1651.     RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1716.7031, 15.6250, 0.25);
  1652.     RemoveBuildingForPlayer(playerid, 1226, 1505.1797, -1727.6719, 16.4219, 0.25);
  1653.     RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1713.7031, 13.4531, 0.25);
  1654.     RemoveBuildingForPlayer(playerid, 1289, 1504.7500, -1711.8828, 13.5938, 0.25);
  1655.     RemoveBuildingForPlayer(playerid, 1258, 1445.0078, -1704.7656, 13.6953, 0.25);
  1656.     RemoveBuildingForPlayer(playerid, 1226, 1433.7109, -1702.3594, 16.4219, 0.25);
  1657.     RemoveBuildingForPlayer(playerid, 1226, 1433.7109, -1676.6875, 16.4219, 0.25);
  1658.     RemoveBuildingForPlayer(playerid, 1258, 1445.0078, -1692.2344, 13.6953, 0.25);
  1659.     RemoveBuildingForPlayer(playerid, 1226, 1433.7109, -1656.2500, 16.4219, 0.25);
  1660.     RemoveBuildingForPlayer(playerid, 1226, 1433.7109, -1636.2344, 16.4219, 0.25);
  1661.     RemoveBuildingForPlayer(playerid, 712, 1445.8125, -1650.0234, 22.2578, 0.25);
  1662.     RemoveBuildingForPlayer(playerid, 1226, 1433.7109, -1619.0547, 16.4219, 0.25);
  1663.     RemoveBuildingForPlayer(playerid, 1283, 1443.2031, -1592.9453, 15.6250, 0.25);
  1664.     RemoveBuildingForPlayer(playerid, 673, 1457.7266, -1710.0625, 12.3984, 0.25);
  1665.     RemoveBuildingForPlayer(playerid, 620, 1461.6563, -1707.6875, 11.8359, 0.25);
  1666.     RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1704.6406, 13.4531, 0.25);
  1667.     RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
  1668.     RemoveBuildingForPlayer(playerid, 1231, 1479.6953, -1702.5313, 15.6250, 0.25);
  1669.     RemoveBuildingForPlayer(playerid, 673, 1457.5547, -1697.2891, 12.3984, 0.25);
  1670.     RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1694.0469, 13.4531, 0.25);
  1671.     RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1692.3906, 15.6328, 0.25);
  1672.     RemoveBuildingForPlayer(playerid, 4186, 1479.5547, -1693.1406, 19.5781, 0.25);
  1673.     RemoveBuildingForPlayer(playerid, 620, 1461.1250, -1687.5625, 11.8359, 0.25);
  1674.     RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1690.6484, 13.7266, 0.25);
  1675.     RemoveBuildingForPlayer(playerid, 641, 1458.6172, -1684.1328, 11.1016, 0.25);
  1676.     RemoveBuildingForPlayer(playerid, 625, 1457.2734, -1666.2969, 13.6953, 0.25);
  1677.     RemoveBuildingForPlayer(playerid, 1280, 1468.9844, -1682.7188, 13.4531, 0.25);
  1678.     RemoveBuildingForPlayer(playerid, 712, 1471.4063, -1666.1797, 22.2578, 0.25);
  1679.     RemoveBuildingForPlayer(playerid, 1231, 1479.3828, -1682.3125, 15.6328, 0.25);
  1680.     RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
  1681.     RemoveBuildingForPlayer(playerid, 712, 1449.8516, -1655.9375, 22.2578, 0.25);
  1682.     RemoveBuildingForPlayer(playerid, 1231, 1477.9375, -1652.7266, 15.6328, 0.25);
  1683.     RemoveBuildingForPlayer(playerid, 1280, 1479.6094, -1653.2500, 13.4531, 0.25);
  1684.     RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
  1685.     RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
  1686.     RemoveBuildingForPlayer(playerid, 1280, 1467.8516, -1646.5938, 13.4531, 0.25);
  1687.     RemoveBuildingForPlayer(playerid, 1280, 1472.8984, -1651.5078, 13.4531, 0.25);
  1688.     RemoveBuildingForPlayer(playerid, 1280, 1465.9375, -1639.8203, 13.4531, 0.25);
  1689.     RemoveBuildingForPlayer(playerid, 1231, 1466.4688, -1637.9609, 15.6328, 0.25);
  1690.     RemoveBuildingForPlayer(playerid, 625, 1449.5938, -1635.0469, 13.6953, 0.25);
  1691.     RemoveBuildingForPlayer(playerid, 1280, 1467.7109, -1632.8906, 13.4531, 0.25);
  1692.     RemoveBuildingForPlayer(playerid, 1232, 1465.8906, -1629.9766, 15.5313, 0.25);
  1693.     RemoveBuildingForPlayer(playerid, 1280, 1472.6641, -1627.8828, 13.4531, 0.25);
  1694.     RemoveBuildingForPlayer(playerid, 1280, 1479.4688, -1626.0234, 13.4531, 0.25);
  1695.     RemoveBuildingForPlayer(playerid, 3985, 1479.5625, -1631.4531, 12.0781, 0.25);
  1696.     RemoveBuildingForPlayer(playerid, 4206, 1479.5547, -1639.6094, 13.6484, 0.25);
  1697.     RemoveBuildingForPlayer(playerid, 1232, 1465.8359, -1608.3750, 15.3750, 0.25);
  1698.     RemoveBuildingForPlayer(playerid, 1229, 1466.4844, -1598.0938, 14.1094, 0.25);
  1699.     RemoveBuildingForPlayer(playerid, 1226, 1451.3359, -1596.7031, 16.4219, 0.25);
  1700.     RemoveBuildingForPlayer(playerid, 1226, 1471.3516, -1596.7031, 16.4219, 0.25);
  1701.     RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1704.5938, 13.4531, 0.25);
  1702.     RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
  1703.     RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1693.7344, 13.4531, 0.25);
  1704.     RemoveBuildingForPlayer(playerid, 620, 1496.9766, -1686.8516, 11.8359, 0.25);
  1705.     RemoveBuildingForPlayer(playerid, 641, 1494.1406, -1689.2344, 11.1016, 0.25);
  1706.     RemoveBuildingForPlayer(playerid, 1280, 1488.7656, -1682.6719, 13.4531, 0.25);
  1707.     RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
  1708.     RemoveBuildingForPlayer(playerid, 712, 1488.2266, -1666.1797, 22.2578, 0.25);
  1709.     RemoveBuildingForPlayer(playerid, 1280, 1486.4063, -1651.3906, 13.4531, 0.25);
  1710.     RemoveBuildingForPlayer(playerid, 1280, 1491.3672, -1646.3828, 13.4531, 0.25);
  1711.     RemoveBuildingForPlayer(playerid, 1280, 1493.1328, -1639.4531, 13.4531, 0.25);
  1712.     RemoveBuildingForPlayer(playerid, 1280, 1486.1797, -1627.7656, 13.4531, 0.25);
  1713.     RemoveBuildingForPlayer(playerid, 1280, 1491.2188, -1632.6797, 13.4531, 0.25);
  1714.     RemoveBuildingForPlayer(playerid, 1232, 1494.4141, -1629.9766, 15.5313, 0.25);
  1715.     RemoveBuildingForPlayer(playerid, 1232, 1494.3594, -1608.3750, 15.3750, 0.25);
  1716.     RemoveBuildingForPlayer(playerid, 1226, 1488.5313, -1596.7031, 16.4219, 0.25);
  1717.     RemoveBuildingForPlayer(playerid, 1229, 1498.0547, -1598.0938, 14.1094, 0.25);
  1718.     RemoveBuildingForPlayer(playerid, 1288, 1504.7500, -1705.4063, 13.5938, 0.25);
  1719.     RemoveBuildingForPlayer(playerid, 1287, 1504.7500, -1704.4688, 13.5938, 0.25);
  1720.     RemoveBuildingForPlayer(playerid, 1286, 1504.7500, -1695.0547, 13.5938, 0.25);
  1721.     RemoveBuildingForPlayer(playerid, 1285, 1504.7500, -1694.0391, 13.5938, 0.25);
  1722.     RemoveBuildingForPlayer(playerid, 673, 1498.9609, -1684.6094, 12.3984, 0.25);
  1723.     RemoveBuildingForPlayer(playerid, 625, 1504.1641, -1662.0156, 13.6953, 0.25);
  1724.     RemoveBuildingForPlayer(playerid, 625, 1504.7188, -1670.9219, 13.6953, 0.25);
  1725.     RemoveBuildingForPlayer(playerid, 620, 1503.1875, -1621.1250, 11.8359, 0.25);
  1726.     RemoveBuildingForPlayer(playerid, 673, 1501.2813, -1624.5781, 12.3984, 0.25);
  1727.     RemoveBuildingForPlayer(playerid, 673, 1498.3594, -1616.9688, 12.3984, 0.25);
  1728.     RemoveBuildingForPlayer(playerid, 1226, 1504.8906, -1596.7031, 16.4219, 0.25);
  1729.     RemoveBuildingForPlayer(playerid, 712, 1508.4453, -1668.7422, 22.2578, 0.25);
  1730.     RemoveBuildingForPlayer(playerid, 625, 1505.6953, -1654.8359, 13.6953, 0.25);
  1731.     RemoveBuildingForPlayer(playerid, 625, 1508.5156, -1647.8594, 13.6953, 0.25);
  1732.     RemoveBuildingForPlayer(playerid, 625, 1513.2734, -1642.4922, 13.6953, 0.25);
  1733.     RemoveBuildingForPlayer(playerid, 1258, 1510.8906, -1607.3125, 13.6953, 0.25);
  1734.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1721.6328, 16.4219, 0.25);
  1735.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1705.2734, 16.4219, 0.25);
  1736.     RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1693.9688, 14.1094, 0.25);
  1737.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1688.0859, 16.4219, 0.25);
  1738.     RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1673.7109, 14.1094, 0.25);
  1739.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1668.0781, 16.4219, 0.25);
  1740.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1647.6406, 16.4219, 0.25);
  1741.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1621.9609, 16.4219, 0.25);
  1742.     RemoveBuildingForPlayer(playerid, 1226, 1525.3828, -1611.1563, 16.4219, 0.25);
  1743.     RemoveBuildingForPlayer(playerid, 1283, 1528.9531, -1605.8594, 15.6250, 0.25);
  1744.     //------------------// Novo BAR !
  1745.     RemoveBuildingForPlayer(playerid, 642, 1561.7969, -1894.7578, 13.7578, 0.25);
  1746.     RemoveBuildingForPlayer(playerid, 643, 1561.8203, -1894.7188, 12.8672, 0.25);
  1747.     RemoveBuildingForPlayer(playerid, 625, 1566.1797, -1893.1016, 13.2109, 0.25);
  1748.     RemoveBuildingForPlayer(playerid, 625, 1573.4531, -1893.1016, 13.2109, 0.25);
  1749.     RemoveBuildingForPlayer(playerid, 642, 1573.9766, -1894.8281, 13.7578, 0.25);
  1750.     RemoveBuildingForPlayer(playerid, 643, 1574.0000, -1894.7891, 12.8672, 0.25);
  1751.     RemoveBuildingForPlayer(playerid, 642, 1561.7969, -1889.8906, 13.7578, 0.25);
  1752.     RemoveBuildingForPlayer(playerid, 643, 1561.8203, -1889.8594, 12.8672, 0.25);
  1753.     RemoveBuildingForPlayer(playerid, 625, 1566.1797, -1887.3438, 13.2109, 0.25);
  1754.     RemoveBuildingForPlayer(playerid, 642, 1561.6250, -1884.8672, 13.7578, 0.25);
  1755.     RemoveBuildingForPlayer(playerid, 643, 1561.6484, -1884.8281, 12.8672, 0.25);
  1756.     RemoveBuildingForPlayer(playerid, 625, 1573.4531, -1887.3438, 13.2109, 0.25);
  1757.     RemoveBuildingForPlayer(playerid, 643, 1574.0000, -1889.9453, 12.8672, 0.25);
  1758.     RemoveBuildingForPlayer(playerid, 642, 1573.9766, -1889.9844, 13.7578, 0.25);
  1759.     RemoveBuildingForPlayer(playerid, 642, 1574.0156, -1884.9531, 13.7578, 0.25);
  1760.     RemoveBuildingForPlayer(playerid, 643, 1574.0391, -1884.9219, 12.8672, 0.25);
  1761.     //--------------------------//
  1762.     if(DOF2_IsSet("EuroRPG/Banidos/Ips.txt", Ip))
  1763.     {
  1764.         format(String, sizeof(String), "{FFFFFF} Seu IP está banido deste Servidor!\n\nDados:\nIP:%s\n%s", Ip, DOF2_GetString("EuroRPG/Banidos/Ips.txt", Ip));
  1765.         ShowPlayerDialog(playerid, DIALOG_BANIDO, DIALOG_STYLE_MSGBOX, "Banido!", String, "Fechar", "");
  1766.         return 1;
  1767.     }
  1768.     if(DOF2_IsSet("EuroRPG/Fodidos.txt", Ip))
  1769.     {
  1770.         SetTimerEx("FoderSpawn", 1000, false, "i", playerid);
  1771.         return 1;
  1772.     }
  1773.     format(String, sizeof(String), "{00FFFF}%s {FFFFFF}Conectou ao servidor", Nome(playerid));
  1774.     SendClientMessageToAll(VERDE_CLARO, String);
  1775.     format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(playerid));
  1776.     #if (USAR_TEXT == 1) && (USAR_SISTEMA_REGISTRO == 1)
  1777.             TextFundo(playerid);
  1778.     #endif
  1779.     #if USAR_SISTEMA_REGISTRO == 1
  1780.         if(!DOF2_FileExists(StringContas))
  1781.         {
  1782.             SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2);
  1783.             SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0);
  1784.             Camera[playerid] = 1;
  1785.             CameraX[playerid] = 1460.0;
  1786.             CameraY[playerid] = -1324.0;
  1787.             CameraZ[playerid] = 287.2;
  1788.             format(String, sizeof(String), "{FFFFFF}Conta: {FF0000}%s\n{FFFFFF}Não {FF0000}Registrada.\n\n{FFFFFF}Digite uma senha para se {FF0000}Registrar\n{FFFFFF}Em nosso Banco de Dados.", Nome(playerid));
  1789.             ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "{1EB2FC}Registrando...", String, "Registrar", "Sair");
  1790.             return 1;
  1791.         }
  1792.         else
  1793.         {
  1794.             #if AUTO_LOGIN == true
  1795.                 new ip[25];
  1796.                 GetPlayerIp(playerid, ip, sizeof ip);
  1797.                 if(strcmp(ip, DOF2_GetString(StringContas, "IP"), true) == 0) {
  1798.                     PlayerDados[playerid][Matou] = DOF2_GetInt(StringContas, "Matou");
  1799.                     PlayerDados[playerid][Morreu] = DOF2_GetInt(StringContas, "Morreu");
  1800.                     PlayerDados[playerid][Sexo] = DOF2_GetInt(StringContas, "Sexo");
  1801.                     PlayerDados[playerid][Organizacao] = DOF2_GetInt(StringContas, "Organizacao");
  1802.                     PlayerDados[playerid][Emprego] = DOF2_GetInt(StringContas, "Emprego");
  1803.                     PlayerDados[playerid][Cargo] = DOF2_GetInt(StringContas, "Cargo");
  1804.                     new str[50];
  1805.                     format(str, 50, "EuroRPG/Admins/%s.sav", Nome(playerid));
  1806.                     if(DOF2_FileExists(str)) {
  1807.                         if(DOF2_IsSet(str, "Admin")) {
  1808.                             PlayerDados[playerid][Admin] = DOF2_GetInt(str, "Admin");
  1809.                         }
  1810.                         if(DOF2_IsSet(str, "Helper")) {
  1811.                             PlayerDados[playerid][Helper] = DOF2_GetBool(str, "Helper");
  1812.                         }
  1813.                         if(DOF2_IsSet(str, "Vip")) {
  1814.                             PlayerDados[playerid][Vip] = DOF2_GetBool(str, "Vip");
  1815.                         }
  1816.                     }
  1817.                     PlayerDados[playerid][Advertencias] = DOF2_GetInt(StringContas, "Advertencias");
  1818.                     PlayerDados[playerid][Respeito] = DOF2_GetInt(StringContas, "Respeito");
  1819.                     GivePlayerMoney(playerid, DOF2_GetInt(StringContas, "Grana"));
  1820.                     GetPlayerSkin(playerid, DOF2_GetInt(StringContas, "pSkin"));
  1821.                     SetPlayerWantedLevel(playerid, DOF2_GetInt(StringContas, "Procurado"));
  1822.                     SetPlayerScore(playerid, DOF2_GetInt(StringContas, "pLevel"));
  1823.                     PlayerDados[playerid][Preso] = DOF2_GetInt(StringContas, "Preso");
  1824.                     PlayerDados[playerid][Motorista] = DOF2_GetInt(StringContas, "Motorista");
  1825.                     SendClientMessage(playerid, VERDE_CLARO, "Você foi logado altomaticamente através de seu IP.");
  1826.                     #if USAR_TEXT == 1
  1827.                         TextDrawDestroy(Inicio[playerid]);
  1828.                     #endif
  1829.                     if(PlayerDados[playerid][Admin] > 0)
  1830.                     {
  1831.                         format(String, sizeof(String), "Logado de Admin Nível {FF0000}%d", PlayerDados[playerid][Admin]);
  1832.                         SendClientMessage(playerid, AZUL_CLARO, String);
  1833.                         format(String, sizeof(String), "~w~Admin ~g~%s ~y~Online", Nome(playerid));
  1834.                         GameTextForAll(String, 1000, 1);
  1835.                         PlayerDados[playerid][Trabalhando] = true;
  1836.                         SendClientMessage(playerid, AZUL_CLARO, "Você está trabalhando, para jogar use /jogar");
  1837.                         SetPlayerSkin(playerid, 211);
  1838.                         SetPlayerColor(playerid, COR_ROSA);
  1839.                         SetPlayerHealth(playerid, 999999);
  1840.                     }
  1841.                     return 1;
  1842.                 }
  1843.             #endif
  1844.             SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2);
  1845.             SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0);
  1846.             Camera[playerid] = 1;
  1847.             CameraX[playerid] = 1460.0;
  1848.             CameraY[playerid] = -1324.0;
  1849.             CameraZ[playerid] = 287.2;
  1850.             format(String, sizeof(String), "{FFFFFF}Conta: {FF0000}%s\n{FFFFFF}Conta {FF0000}Registrada.\n\n{FFFFFF}Digite sua senha para {FF0000}Logar", Nome(playerid));
  1851.             ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FC14E9}Logando...", String, "Logar", "Sair");
  1852.             return 1;
  1853.         }
  1854.        
  1855.     #else
  1856.         return 1;
  1857.     #endif
  1858.  
  1859. }
  1860.  
  1861. public FoderSpawn(playerid)
  1862. {
  1863.     SetSpawnInfo(playerid, 0, 0, 107.2300,1920.6311,18.5208, 0, 0, 0, 0, 0, 0, 0);
  1864.     SpawnPlayer(playerid);
  1865.     SetPlayerWorldBounds(ID, 337.5694,101.5826,1940.9759,1798.7453);
  1866.     TogglePlayerControllable(ID, false);
  1867.     Msg(playerid, VERMELHO, "Você foi fodido por um admin! Agora aguente!");
  1868.     return 1;
  1869. }
  1870.  
  1871. public OnPlayerDisconnect(playerid, reason)
  1872. {
  1873.     new Motivo[20];
  1874.     if(reason == 0) Motivo = "Queda de conexão";
  1875.     if(reason == 1) Motivo = "Conta própria";
  1876.     if(reason == 2) Motivo = "Kickado/Banido";
  1877.  
  1878.     format(String, sizeof(String), "{289E08}O Jogador {39F505}%s{289E08} Desconectou do servidor. (%s)", Nome(playerid), Motivo);
  1879.     MsgAll(-1, String);
  1880.     if(GetarDado(playerid, Admin) > 0)
  1881.     {
  1882.         format(String, sizeof(String), "~w~Admin ~g~%s ~r~Offline", Nome(playerid));
  1883.         GameTextForAll(String, 1000, 1);
  1884.     }
  1885.     if(pBarreira[playerid] != 0)
  1886.     {
  1887.         DestruirBarreira(playerid);
  1888.     }
  1889.     PlayersOnline--;
  1890.     SalvarDados(playerid);
  1891.     DOF2_Exit();
  1892.     return 1;
  1893. }
  1894.  
  1895. public FecharEnquete()
  1896. {
  1897.     new StrEnquete[256];
  1898.     Enquete[Criada] = false;
  1899.     format(StrEnquete, 256, "Enquete %s Fechada.", Enquete[Titulo]);
  1900.     SendClientMessageToAll(ROSA, StrEnquete);
  1901.     format(StrEnquete, 256, "Votos Sim: %d", Enquete[VotoSim]);
  1902.     SendClientMessageToAll(ROSA_CHOQUE, StrEnquete);
  1903.     format(StrEnquete, 256, "Voto Não: %d", Enquete[VotoNao]);
  1904.     SendClientMessageToAll(ROSA_CHOQUE, StrEnquete);
  1905.     if(Enquete[VotoSim] > Enquete[VotoNao])
  1906.     {
  1907.         SendClientMessageToAll(ROSA, "\nO Sim Venceu.");
  1908.         return 1;
  1909.     }
  1910.     if(Enquete[VotoNao] > Enquete[VotoSim])
  1911.     {
  1912.         SendClientMessageToAll(ROSA, "\nO Nao Venceu.");
  1913.         return 1;
  1914.     }
  1915.     return 1;
  1916. }
  1917. public OnPlayerSpawn(playerid)
  1918. {
  1919.     TextDrawHideForPlayer(playerid,Textdraw0[playerid]);
  1920.     TextDrawHideForPlayer(playerid,Textdraw2[playerid]);
  1921.     SetPlayerInterior(playerid,0);
  1922.     SetPlayerVirtualWorld(playerid,0);
  1923.     //---------------[ Skin dos Empregos ]------------//
  1924.     if(PlayerDados[playerid][Emprego] == 0 || PlayerDados[playerid][Emprego] == 1 || PlayerDados[playerid][Emprego] == 2)
  1925.     {
  1926.         SetPlayerSkin(playerid,PlayerDados[playerid][pSkin]);
  1927.     }
  1928.     //------------[ Cor de Admin ]---------//
  1929.     if(PlayerDados[playerid][Trabalhando] == true)
  1930.     {
  1931.         SetPlayerColor(playerid, 0x24E9FFFF);
  1932.     }
  1933.     if(PlayerDados[playerid][Afk] == true)
  1934.     {
  1935.         SetPlayerColor(playerid, PRETO);
  1936.     }
  1937.     if(PlayerDados[playerid][Afk] == false)
  1938.     {
  1939.         SetPlayerColor(playerid, BRANCO);
  1940.     }
  1941.     //--------------[ Cor das Orgs ]------------//
  1942.     if(PlayerDados[playerid][Organizacao] == 0)
  1943.     {
  1944.         SetPlayerColor(playerid, BRANCO);
  1945.     }
  1946.     if(PlayerDados[playerid][Organizacao] == 1)
  1947.     {
  1948.         SetPlayerColor(playerid, COR_BALLAS);
  1949.     }
  1950.     if(PlayerDados[playerid][Organizacao] == 2)
  1951.     {
  1952.         SetPlayerColor(playerid, COR_PM);
  1953.     }
  1954.     //----------[ Spawn de Org ]---------//
  1955.     if(PlayerDados[playerid][Organizacao] == 0)
  1956.     {
  1957.         SetPlayerHealth(playerid, 100);
  1958.         SetPlayerPos(playerid, 1722.5750,-1631.1670,20.2145);
  1959.         SetPlayerInterior(playerid,0);
  1960.     }
  1961.     else if(PlayerDados[playerid][Organizacao] == 1)
  1962.     {
  1963.         SetPlayerHealth(playerid, 100);
  1964.         SetPlayerArmour(playerid, 50);
  1965.         SetPlayerPos(playerid, 2004.9247,-1127.5710,25.3749);
  1966.         SetPlayerInterior(playerid,0);
  1967.     }
  1968.     else if(PlayerDados[playerid][Organizacao] == 2)
  1969.     {
  1970.         SetPlayerHealth(playerid, 100);
  1971.         SetPlayerArmour(playerid, 50);
  1972.         SetPlayerPos(playerid, 1474.5262,-1756.2471,3285.2859);
  1973.         SetPlayerInterior(playerid, 5);
  1974.     }
  1975.     //-----------------------------------------------//
  1976.     if(DOF2_IsSet("EuroRPG/Admins.adm", Nome(playerid)))
  1977.     {
  1978.         PlayerDados[playerid][Admin] = DOF2_GetInt("EuroRPG/Admins.adm", Nome(playerid));
  1979.     }
  1980.     if(DOF2_IsSet("EuroRPG/Helpers.hel", Nome(playerid)))
  1981.     {
  1982.         SetarDado(playerid, Helper, DOF2_GetBool("EuroRPG/Helpers.hel", Nome(playerid)));
  1983.     }
  1984.     if(DOF2_IsSet("EuroRPG/Vips.vip", Nome(playerid)))
  1985.     {
  1986.         SetarDado(playerid, Vip, DOF2_GetBool("EuroRPG/vips.vip", Nome(playerid)));
  1987.     }
  1988.     format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(playerid));
  1989.     #if SPAWNAR_HQ == 1
  1990.     #endif
  1991.     SetTimerEx("VerificarPreso", 1000, false, "i", playerid);
  1992.     ResetPlayerWeapons(playerid);
  1993.     #if USAR_SISTEMA_REGISTRO == 0
  1994.         if(!DOF2_FileExists(StringContas))
  1995.         {
  1996.             DOF2_CreateFile(StringContas);
  1997.             DOF2_SetInt(StringContas, "pLevel", 0);
  1998.             DOF2_SetInt(StringContas, "Respeito", 0);
  1999.             DOF2_SetInt(StringContas, "Matou", 0);
  2000.             DOF2_SetInt(StringContas, "Morreu", 0);
  2001.             DOF2_SetInt(StringContas, "Grana", 0);
  2002.             DOF2_SetInt(StringContas, "pSkin", 0);
  2003.             DOF2_SetInt(StringContas, "Advertencias", 0);
  2004.             DOF2_SetInt(StringContas, "Preso", 0);
  2005.             DOF2_SetInt(StringContas, "Motorista", 0);
  2006.             DOF2_SetInt(StringContas, "Sexo", 0);
  2007.             DOF2_SetInt(StringContas, "Organizacao", 0);
  2008.             DOF2_SetInt(StringContas, "Cargo", 0);
  2009.             DOF2_SetInt(StringContas, "Emprego", 0);
  2010.             DOF2_SetInt(StringContas, "Procurado", 0);
  2011.             PlayerDados[playerid][Logado] = true;
  2012.         }
  2013.         if(DOF2_FileExists(StringContas))
  2014.         {
  2015.             PlayerDados[playerid][Matou] = DOF2_GetInt(StringContas, "Matou");
  2016.             PlayerDados[playerid][Morreu] = DOF2_GetInt(StringContas, "Morreu");
  2017.             PlayerDados[playerid][Sexo] = DOF2_GetInt(StringContas, " Sexo");
  2018.             PlayerDados[playerid][Organizacao] = DOF2_GetInt(StringContas, "Organizacao");
  2019.             PlayerDados[playerid][Cargo] = DOF2_GetInt(StringContas, "Cargo");
  2020.             PlayerDados[playerid][Emprego] = DOF2_GetInt(StringContas, "Emprego");
  2021.             if(DOF2_IsSet("EuroRPG/Admins.adm", Nome(playerid)))
  2022.             {
  2023.                 PlayerDados[playerid][Admin] = DOF2_GetInt("EuroRPG/Admins.adm", Nome(playerid));
  2024.             }
  2025.             PlayerDados[playerid][Advertencias] = DOF2_GetInt(StringContas, "Advertencias");
  2026.             PlayerDados[playerid][Respeito] = DOF2_GetInt(StringContas, "Respeito");
  2027.             GivePlayerMoney(playerid, DOF2_GetInt(StringContas, "Grana"));
  2028.             GetPlayerSkin(playerid, DOF2_GetInt(StringContas, "pSkin"));
  2029.             SetPlayerWantedLevel(playerid, DOF2_GetInt(StringContas, "Procurado"));
  2030.             SetPlayerScore(playerid, DOF2_GetInt(StringContas, "pLevel"));
  2031.             PlayerDados[playerid][Preso] = DOF2_GetInt(StringContas, "Preso");
  2032.             PlayerDados[playerid][Motorista] = DOF2_GetInt(StringContas, "Motorista");
  2033.             if(DOF2_IsSet("EuroRPG/Helpers.hel", Nome(playerid)))
  2034.             {
  2035.                 PlayerDados[playerid][Helper] = DOF2_GetBool("EuroRPG/Vips.vip", Nome(playerid));
  2036.             }
  2037.             if(DOF2_IsSet("EuroRPG/Vips.vip", Nome(playerid)))
  2038.             {
  2039.                 PlayerDados[playerid][Vip] = DOF2_GetBool("EuroRPG/Vips.vip", Nome(playerid));
  2040.             }
  2041.             if((PlayerDados[playerid][Admin] > 0) && (PlayerDados[playerid][Logado] == false))
  2042.             {
  2043.                 PlayerDados[playerid][Logado] = true;
  2044.                 format(String, sizeof(String), "Logado de Admin Nível %d", PlayerDados[playerid][Admin]);
  2045.                 SendClientMessage(playerid, AZUL_CLARO, String);
  2046.                 format(String, sizeof(String), "~w~Admin ~g~%s ~y~Online", Nome(playerid));
  2047.                 GameTextForAll(String, 1000, 1);
  2048.                 PlayerDados[playerid][Trabalhando] = true;
  2049.                 SendClientMessage(playerid, AZUL_CLARO, "Você está trabalhando, para jogar use /jogar");
  2050.                 SetPlayerColor(playerid, COR_ROSA);
  2051.                 SetPlayerHealth(playerid, 999999);
  2052.             }
  2053.         }
  2054.     #endif
  2055.     return 0;
  2056. }
  2057.  
  2058. public OnPlayerUpdate(playerid)
  2059. {
  2060.     new arquivo[34], playername[MAX_PLAYER_NAME];
  2061.     GetPlayerName(playerid, playername, sizeof(playername));
  2062.     format(arquivo, sizeof(arquivo), "EuroRPG/Organizacao/%s.txt", playername);
  2063.     if(DOF2_FileExists(arquivo))
  2064.     {
  2065.         DOF2_SetInt(arquivo, "Organizacao", PlayerDados[playerid][Organizacao]);
  2066.         DOF2_SetInt(arquivo, "Cargo", PlayerDados[playerid][Cargo]);
  2067.     }
  2068.     else
  2069.     {
  2070.         DOF2_CreateFile(arquivo);
  2071.         DOF2_SetInt(arquivo, "Organizacao", PlayerDados[playerid][Organizacao]);
  2072.         DOF2_SetInt(arquivo, "Cargo", PlayerDados[playerid][Cargo]);
  2073.     }
  2074.     return 1;
  2075. }
  2076.  
  2077. public EnviarMsgHack(playerid)
  2078. {
  2079.     MsgHack[playerid] = false;
  2080.     return 1;
  2081. }
  2082.  
  2083. public VerificarPreso(playerid)
  2084. {
  2085.     if(PlayerDados[playerid][Preso] > 0)
  2086.     {
  2087.         SetPlayerPos(ID, 264.6288,77.5742,1001.0391);
  2088.         SetPlayerInterior(ID, 6);
  2089.         SendClientMessage(playerid, VERMELHO, "Seu Tempo de Cadeia ainda não acabou!");
  2090.         TimerPreso = SetTimerEx("TempoPreso", 1000, true, "i", playerid);
  2091.     }
  2092.     return 1;
  2093. }
  2094.  
  2095. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2096. {
  2097.     if(Sequestrado[playerid] == 1)
  2098.     {
  2099.         PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), GetPlayerVehicleSeat(playerid));
  2100.     }
  2101.     return 0;
  2102. }
  2103.  
  2104. public OnPlayerDeath(playerid, killerid, reason)
  2105. {
  2106.     TextDrawShowForPlayer(playerid,Textdraw0[playerid]); //fara aparecer a texdraw
  2107.     TextDrawShowForPlayer(playerid,Textdraw2[playerid]); //fara aparecer a texdraw
  2108.     sleep2(1); //fara o cara esperar  10 segundos
  2109.     SetPlayerSkin(playerid,PlayerDados[playerid][pSkin]);
  2110.     PlayerDados[playerid][Morreu]++;
  2111.     PlayerDados[killerid][Matou]++;
  2112.     format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(playerid));
  2113.     if(DOF2_IsSet("EuroRPG/Admins.adm", Nome(playerid)))
  2114.     {
  2115.         PlayerDados[playerid][Admin] = DOF2_GetInt("EuroRPG/Admins.adm", Nome(playerid));
  2116.     }
  2117.     KillTimer(TimerKit);
  2118.     return 0;
  2119. }
  2120.  
  2121. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  2122. {
  2123.     IdClicado[playerid] = clickedplayerid;
  2124.     NomeClicado[playerid] = Nome(clickedplayerid);
  2125.     if(!(NivelRequerido(playerid, 1))) return 1;
  2126.     format(String, 60, "Opções de Admin sobre %s", NomeClicado[playerid]);
  2127.     ShowPlayerDialog(playerid, DIALOG_OPCOES, DIALOG_STYLE_LIST, String , "{F5F50C}Kickar\n{F5180C}Banir\n{0CF50C}Advertir\n{FF05F7}Trazer\n{FF05F7}Ir\n{14C9C9}Particular\n{0C8CF5}Status", "Avançar", "Fechar");
  2128.     return 1;
  2129. }
  2130.  
  2131. public OnPlayerText(playerid, text[])
  2132. {
  2133.     new str2[256];
  2134.     if((strfind(text, "7777", true) != -1) || (strfind(text, "7788", true) != -1) || (strfind(text, "189.", true) != -1) || (strfind(text, "187.", true) != -1) || (strfind(text, "185.", true) != -1) || (strfind(text, "7575", true) != -1) || (strfind(text, "75.", true) != -1))
  2135.     {
  2136.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Jogador {FB0000}%s{00C2EC} Foi Banido por divulgar IP.\r\n", Nome(playerid));
  2137.         EscreverLog("EuroRPG/Logs/Banidos.log", String);
  2138.         format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Nome(playerid));
  2139.         getdate(Ano, Mes, Dia);
  2140.         gettime(Hora, Minuto, Segundo);
  2141.         DOF2_CreateFile(String);
  2142.         DOF2_SetString(String, "Admin", "Admin automatico");
  2143.         DOF2_SetString(String, "Motivo", "Divulgação de IP");
  2144.         DOF2_SetInt(String, "Ano", Ano);
  2145.         DOF2_SetInt(String, "Mes", Mes);
  2146.         DOF2_SetInt(String, "Dia", Dia);
  2147.         DOF2_SetInt(String, "Hora", Hora);
  2148.         DOF2_SetInt(String, "Minuto", Minuto);
  2149.         Kick(playerid);
  2150.     }
  2151.     //----------------[ Anti Fala Preso ]---------------//
  2152.     /*if(strfind(text,"/", true) == 0 || PlayerDados[playerid][Preso] == 0)
  2153.     {
  2154.         SendClientMessage(playerid, -1, "Ta preso nao pode digitar isso");
  2155.         return 0;
  2156.     }*/
  2157.     //-----------------[ Anti Flood ]----------------//
  2158.     if(Flood[playerid] > GetTickCount())
  2159.     {
  2160.         SendClientMessage(playerid,BRANCO,"{FF0000}ERRO: {FFFFFF}Você Só pode falar de 5 á 5 segundos");
  2161.         return 0;
  2162.     }
  2163.     Flood[playerid] = GetTickCount() + 5000;
  2164.    
  2165.     //----------------[ Anti IP ]--------------//
  2166.     for(new i = 0; i != MAX_PLAYERS; i++)
  2167.     {
  2168.         if(text[i] == Ips[i][i])
  2169.         {
  2170.             return 0;
  2171.         }
  2172.     }
  2173.     format(String, sizeof(String), "EuroRPG/Teleportes/%s.txt", text);
  2174.     if(DOF2_FileExists(String))
  2175.     {
  2176.         format(str2, sizeof(str2), "O Jogador %s foi para o 'te %s' [Teleporte Criado pelo Admin: %s] (para ir basta digitar as palavras entre aspas)", Nome(playerid), DOF2_GetString(String, "Comando"), DOF2_GetString(String, "Admin"));
  2177.         SendClientMessageToAll(AMARELO, str2);
  2178.         SetPlayerPos(playerid, DOF2_GetFloat(String, "X"), DOF2_GetFloat(String, "Y"), DOF2_GetFloat(String, "Z"));
  2179.         return 0;
  2180.     }
  2181.     if(PlayerDados[playerid][Calado] == true)
  2182.     {
  2183.         SendClientMessage(playerid, BRANCO, "Você Está calado e não pode falar!");
  2184.         return 0;
  2185.     }
  2186.     #if DESTAQUE_ADMINS == 1
  2187.         if(GetarDado(playerid, Admin) > 1)
  2188.         {
  2189.             if(GetarDado(playerid, Disfarcado) == true)
  2190.             {
  2191.                 format(String, sizeof(String), "%s: %s", Nome(playerid), text);
  2192.                 MsgAll(GetPlayerColor(playerid), String);
  2193.                 return 0;
  2194.             }
  2195.             format(String, sizeof(String), "%s: %s", Nome(playerid), text);
  2196.             MsgAll(GetPlayerColor(playerid), String);
  2197.             return 0;
  2198.         }
  2199.     #endif
  2200.     return 1;
  2201. }
  2202.  
  2203. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2204. {
  2205.     //------------------[ Dialog de Convite ]-------------------//
  2206.     if(dialogid == 30)
  2207.     {
  2208.         new playername[MAX_PLAYER_NAME], string[128];
  2209.         GetPlayerName(playerid, playername, sizeof(playername));
  2210.         if(response == 0)
  2211.         {
  2212.             format(string, sizeof(string), "{00FFFF}%s {FFFFFF}rejeitou seu Convite.", playername);
  2213.             SendClientMessage(GetPVarInt(playerid, "QuemConvidou"), AZUL, string);
  2214.             SendClientMessage(playerid, BRANCO, "Você rejeitou o Convite.");
  2215.             DeletePVar(playerid, "OrgConvidado");
  2216.             DeletePVar(playerid, "QuemConvidou");
  2217.         }
  2218.         if(response == 1)
  2219.         {
  2220.             if(InviteOffer[playerid] < 999)
  2221.             {
  2222.                 if(IsPlayerConnected(InviteOffer[playerid]))
  2223.                 {
  2224.                     if(PlayerDados[InviteOffer[playerid]][Organizacao] == 1) { PlayerDados[playerid][Cargo] = 6; ChosenSkin[playerid] = 282; SetPlayerSkin(playerid, 203); }// Ballas
  2225.                     if(PlayerDados[InviteOffer[playerid]][Organizacao] == 2) { PlayerDados[playerid][Cargo] = 6; ChosenSkin[playerid] = 282; SetPlayerSkin(playerid, 282); }//PM
  2226.                     PlayerDados[playerid][Organizacao] = GetPVarInt(playerid, "OrgConvidado");
  2227.                     PlayerDados[playerid][Cargo] = 1;
  2228.                     format(string, sizeof(string), "{00FFFF}%s {FFFFFF}Aceitou seu Convite.", playername);
  2229.                     SendClientMessage(GetPVarInt(playerid, "QuemConvidou"), BRANCO, string);
  2230.                     format(string, sizeof(string), "{00FFFF}%s {FFFFFF}é o mais novo membro da Organização.", playername);
  2231.                     SendFamilyMessage(PlayerDados[playerid][Organizacao], GetPlayerColor(playerid), string);
  2232.                     SendClientMessage(playerid, BRANCO, "Você aceitou o {00FFFF}Convite.");
  2233.                     ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX, "{FF8C00}Euro RPG", "{FFFFFF}Você ira poder escolher as skin's que mostrará no dialog\nAs Skin's são {00FFFF}Especial {FFFFFF}pra cada organização\nAs Skin's tem que ser devido a Org\nPara {00FFFF}Continuar {FFFFFF}ou {00FFFF}Escolher {FFFFFF}sua Skin Click em {00FFFF}'Proximo'", "Proximo", "");
  2234.                     Controle(playerid, 0);
  2235.                     SetPlayerSkin(playerid, ChosenSkin[playerid]);
  2236.                     SelecionarChar[playerid] = 1;
  2237.                     SelecionarCarrinha[playerid] = PlayerDados[playerid][Cargo];
  2238.                     SelecionarCarrinha[playerid] = PlayerDados[playerid][Cargo];
  2239.                     DeletePVar(playerid, "OrgConvidado");
  2240.                     DeletePVar(playerid, "QuemConvidou");
  2241.                     SpawnPlayer(playerid);
  2242.                 }
  2243.             }
  2244.         }
  2245.     }
  2246.     //------------------------[ Sistema de Cofre de Orgs ]-------------------//
  2247.     if(dialogid == 94)
  2248.     {
  2249.         if(!response) return 1;
  2250.         if(response >= 1)
  2251.         {
  2252.             new string[128];
  2253.             new org = PlayerDados[playerid][Organizacao];
  2254.             if(listitem == 0)// Dinheiro
  2255.             {
  2256.                 format(string,sizeof(string),"{FFFFFF}O Saldo da Sua Organização é de {FF0000}R$%d\n{FFFFFF}O que você deseja fazer ?",BancoDasOrgs[org][pDinheiro]);
  2257.                 ShowPlayerDialog(playerid, 110, DIALOG_STYLE_MSGBOX, "{FF0000}Cofre da Organização", string, "Sacar", "Depositar");
  2258.                 return 1;
  2259.             }
  2260.             if(listitem == 1)// Equipar
  2261.             {
  2262.                 format(string,sizeof(string),"Equipamento da Org, {FF0000}%s {FFFFFF}Gostaria de Equipar",Nome(playerid));
  2263.                 ShowPlayerDialog(playerid, 114, DIALOG_STYLE_MSGBOX, "Cofre da Organização", string, "Equipar", "Cancelar");
  2264.                 return 1;
  2265.             }
  2266.         }
  2267.     }
  2268.     if(dialogid == 110)
  2269.     {
  2270.         new string[128];
  2271.         new org = PlayerDados[playerid][Organizacao];
  2272.         if(response == 0)
  2273.         {
  2274.             format(string,sizeof(string),"{FFFFFF}O Saldo da Sua Organização é de {FF0000}R$%d\n{FFFFFF}Quantos você deseja Depositar ?",BancoDasOrgs[org][pDinheiro]);
  2275.             ShowPlayerDialog(playerid, 111, DIALOG_STYLE_INPUT, "{FF0000}Cofre da Organização", string, "Depositar", "Cancelar");
  2276.             return 1;
  2277.         }
  2278.         if(response >= 1)
  2279.         {
  2280.             format(string,sizeof(string),"{FFFFFF}O Saldo da Sua Organização é de {FF0000}R$%d\n{FFFFFF}Quantos você deseja Sacar ?",BancoDasOrgs[org][pDinheiro]);
  2281.             ShowPlayerDialog(playerid, 112, DIALOG_STYLE_INPUT, "{FF0000}Cofre da Organização", string, "Sacar", "Cancelar");
  2282.             return 1;
  2283.         }
  2284.         return 1;
  2285.     }
  2286.     if(dialogid == 114)
  2287.     {
  2288.         new string[128];
  2289.         if(response == 0)
  2290.         {
  2291.             return 0;
  2292.         }
  2293.         if(response >= 1)
  2294.         {
  2295.             ResetPlayerWeapons(playerid);
  2296.             GivePlayerWeapon(playerid, 24, 200);
  2297.             GivePlayerWeapon(playerid, 30, 200);
  2298.             GivePlayerWeapon(playerid, 29, 200);
  2299.             GivePlayerWeapon(playerid, 25, 200);
  2300.             GivePlayerWeapon(playerid, 5, 1);
  2301.             GivePlayerWeapon(playerid, 1, 1);
  2302.             //SetPlayerArmour(playerid, 100);
  2303.             SetPlayerHealth(playerid, 100);
  2304.             format(string, sizeof(string), "{FF0000}%s {FFFFFF}Acabou de equipar no Cofre da Org !", Nome(playerid));
  2305.         }
  2306.         return 1;
  2307.     }
  2308.     if(dialogid == 111)
  2309.     {
  2310.         if(response >= 1)
  2311.         {
  2312.             new string[128];
  2313.             new org = PlayerDados[playerid][Organizacao];
  2314.             new depgrana = strval(inputtext);
  2315.             if(GetPlayerMoney(playerid) < depgrana)
  2316.             {
  2317.                 SendClientMessage(playerid,-1,"Você não tem {FF0000}tudo isso!");
  2318.                 Controle(playerid, 1);
  2319.                 return 1;
  2320.             }
  2321.             if(depgrana > 0)
  2322.             {
  2323.                 if(GetPlayerMoney(playerid) >= depgrana)
  2324.                 {
  2325.                     GivePlayerMoney(playerid, -depgrana);
  2326.                     DepositarGranaOrg(org,depgrana);
  2327.                     format(string,sizeof(string),"{FFFFFF}Você Depositou {FF0000}R$%d, {FFFFFF}O Novo Saldo é de {FF0000}R$%d",depgrana,BancoDasOrgs[org][pDinheiro]);
  2328.                     SendClientMessage(playerid,-1,string);
  2329.                     Controle(playerid, 1);
  2330.                     return 1;
  2331.                 }
  2332.             }
  2333.             return 1;
  2334.         }
  2335.         return 1;
  2336.     }
  2337.     if(dialogid == 112)
  2338.     {
  2339.         if(response >= 1)
  2340.         {
  2341.             new string[50];
  2342.             new org = PlayerDados[playerid][Organizacao];
  2343.             new sacgrana = strval(inputtext);
  2344.             if(sacgrana > BancoDasOrgs[org][pDinheiro])
  2345.             {
  2346.                 SendClientMessage(playerid,-1,"Sua Organização não tem {00FFFF}tudo isso!");
  2347.                 Controle(playerid, 1);
  2348.                 return 1;
  2349.             }
  2350.             if(PlayerDados[playerid][Cargo] < 5 && PlayerDados[playerid][Cargo] < 6)
  2351.             {
  2352.                 SendClientMessage(playerid,-1,"Somente {00FFFF}Líder e Sub-Líder {FFFFFF}Podem Sacar Dinheiro");
  2353.                 Controle(playerid, 1);
  2354.                 return 1;
  2355.             }
  2356.             if(sacgrana > 0)
  2357.             {
  2358.                 if(sacgrana <= BancoDasOrgs[org][pDinheiro])
  2359.                 {
  2360.                     GivePlayerMoney(playerid, sacgrana);
  2361.                     SacarGranaOrg(org,sacgrana);
  2362.                     format(string,sizeof(string),"Você Sacou {00FFFF}R$%d, {FFFFFF}o Novo Saldo é de {00FFFF}R$%d",sacgrana,BancoDasOrgs[org][pDinheiro]);
  2363.                     SendClientMessage(playerid,-1,string);
  2364.                     Controle(playerid, 1);
  2365.                     return 1;
  2366.                 }
  2367.             }
  2368.             return 1;
  2369.         }
  2370.         return 1;
  2371.     }
  2372.  
  2373.     //--------------------------//
  2374.     if(dialogid == 90)
  2375.     {
  2376.         if(response == 0)
  2377.         {
  2378.             Kick(playerid);
  2379.             SendClientMessage(playerid, -1, "Você foi kikado por Não aceitar o Sequestro !");
  2380.             //Caso não confirme o Assalto !
  2381.         }
  2382.         if(response == 1)
  2383.         {
  2384.             if(IsPlayerConnected(playerid))
  2385.             {
  2386.                 new string[110];
  2387.                 format(string, sizeof(string), "{00FFFF}%s {FFFFFF}Aceitou seu assalto e pagou {00FFFF}R$ 1000.", Nome(ID));
  2388.                 SendClientMessage(playerid, -1, string);
  2389.                 SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
  2390.                 GivePlayerMoney(ID, -1000);
  2391.                 GivePlayerMoney(playerid, 1000);
  2392.                 format(string, sizeof(string), "{FFFFFF}Você aceitou um assalto de {00FFFF}%s {FFFFFF}e pagou {00FFFF}R$ 1000", Nome(playerid));
  2393.                 SendClientMessage(playerid, -1, string);
  2394.                 ClearAnimations(ID);
  2395.                 ClearAnimations(ID);
  2396.             }
  2397.         }
  2398.     }
  2399.     //---------------------[ Centro de Licencas ]--------------//
  2400.     if(dialogid == 91)
  2401.     {
  2402.         Controle(playerid, 1);
  2403.         if(response == 0)
  2404.         {
  2405.             return 1;
  2406.         }
  2407.         switch(listitem)
  2408.         {
  2409.             case 0:
  2410.             {
  2411.                 if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, -1,"Você não tem {FF0000}R$ 500 {FFFFFF}Para comprar Licença de Motorista !");
  2412.                 Controle(playerid, 1);
  2413.                 GivePlayerMoney(playerid,-500);
  2414.                 PlayerDados[playerid][Motorista] = 1;
  2415.                 SendClientMessage(playerid, -1,"Comprou Licença de {FF0000}Motorista !");
  2416.             }
  2417.         }
  2418.     }
  2419.     //----------------------[ /Convidar em dialog ]-----------------//
  2420.     if(dialogid == 85)
  2421.     {
  2422.         if(response == 0)
  2423.         {
  2424.             SpawnPlayer(playerid);
  2425.             PlayerDados[playerid][pSkin] = ChosenSkin[playerid];
  2426.             SelecionarCarrinha[playerid] = 0;
  2427.         }
  2428.         if(response == 1)
  2429.         {
  2430.             switch (SelecionarCarrinha[playerid])
  2431.             {
  2432.                 case 1: //Groove Street ( Org 1)
  2433.                 {
  2434.                     if(SelecionarChar[playerid] == 1) { SetPlayerSkin(playerid, 102); SelecionarChar[playerid] = 2; ChosenSkin[playerid] = 102; }
  2435.                     else if(SelecionarChar[playerid] == 2) { SetPlayerSkin(playerid, 103); SelecionarChar[playerid] = 3; ChosenSkin[playerid] = 103; }
  2436.                     else if(SelecionarChar[playerid] == 3) { SetPlayerSkin(playerid, 104); SelecionarChar[playerid] = 1; ChosenSkin[playerid] = 104; }
  2437.                     ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX, "{FF8C00}Euro RPG", "{FFFFFF}Aperte {00FFFF}'Proximo' {FFFFFF}pra Procurar as Skin's\nQuando escolher e so Aperte {00FFFF}'Confirmar'", "Proximo", "Confirma");
  2438.                 }
  2439.                 case 2: //Policia Militar (Org 2)
  2440.                 {
  2441.                     if(SelecionarChar[playerid] == 1) { SetPlayerSkin(playerid, 280); SelecionarChar[playerid] = 2; ChosenSkin[playerid] = 280; }
  2442.                     else if(SelecionarChar[playerid] == 2) { SetPlayerSkin(playerid, 281); SelecionarChar[playerid] = 3; ChosenSkin[playerid] = 281; }
  2443.                     else if(SelecionarChar[playerid] == 3) { SetPlayerSkin(playerid, 282); SelecionarChar[playerid] = 4; ChosenSkin[playerid] = 282; }
  2444.                     else if(SelecionarChar[playerid] == 4) { SetPlayerSkin(playerid, 265); SelecionarChar[playerid] = 5; ChosenSkin[playerid] = 265; }
  2445.                     else if(SelecionarChar[playerid] == 5) { SetPlayerSkin(playerid, 267); SelecionarChar[playerid] = 6; ChosenSkin[playerid] = 267; }
  2446.                     else if(SelecionarChar[playerid] == 6) { SetPlayerSkin(playerid, 246); SelecionarChar[playerid] = 1; ChosenSkin[playerid] = 246; }
  2447.                     ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX, "{FF8C00}Euro RPG", "{FFFFFF}Aperte {00FFFF}'Proximo' {FFFFFF}pra Procurar as Skin's\nQuando escolher e so Aperte {00FFFF}'Confirmar'", "Proximo", "Confirma");
  2448.                 }
  2449.             }
  2450.         }
  2451.     }
  2452.     //------------------------------------------//
  2453.     if(dialogid == 31)
  2454.     {
  2455.         if(response)
  2456.         {
  2457.             if (listitem == 0)
  2458.             {
  2459.                 PlayerDados[playerid][Sexo] = 1;
  2460.                 SendClientMessage(playerid, BRANCO,"• Então Você e {FF0000}Homem {FFFFFF}! •");
  2461.                 SendClientMessage(playerid, BRANCO,"• Tenha um {FF0000}Bom Jogo ! •");
  2462.                 GameTextForPlayer(playerid,"~w~] ~g~~h~Seja Bem Vindo ao Servidor Euro ~w~]", 5000, 3);
  2463.                 GivePlayerMoney(playerid, 1000);
  2464.                 SetPlayerSkin(playerid, 289);
  2465.                 SetPlayerScore(playerid, 1);
  2466.                 TextDrawDestroy(Faixa0[playerid]);
  2467.                 TextDrawDestroy(Faixa1[playerid]);
  2468.             }
  2469.             else if (listitem == 1)
  2470.             {
  2471.                 PlayerDados[playerid][Sexo] = 2;
  2472.                 SendClientMessage(playerid, BRANCO,"• Então Você e {FF0000}Mulher ! •");
  2473.                 SendClientMessage(playerid, BRANCO,"• Tenha um {FF0000}Bom Jogo ! •");
  2474.                 GameTextForPlayer(playerid,"~w~] ~g~~h~Seja Bem Vindo ao Servidor Euro ~w~]", 5000, 3);
  2475.                 GivePlayerMoney(playerid, 1000);
  2476.                 SetPlayerSkin(playerid, 12);
  2477.                 SetPlayerScore(playerid, 1);
  2478.                 TextDrawDestroy(Faixa0[playerid]);
  2479.                 TextDrawDestroy(Faixa1[playerid]);
  2480.             }
  2481.         }
  2482.         else
  2483.         {
  2484.             Kick(playerid);
  2485.         }
  2486.     }
  2487.     //--------------------[ Dialog de Emprego ]----------------//
  2488.     if(dialogid == 80)
  2489.     {
  2490.         Controle(playerid, 1);
  2491.         Dialog[playerid] = 0;
  2492.         if(response == 0)
  2493.         {
  2494.             return 1;
  2495.         }
  2496.         switch(listitem)
  2497.         {
  2498.             case 0:
  2499.             {
  2500.                 ShowPlayerDialog(playerid,81,DIALOG_STYLE_MSGBOX,"{00FFFF}Euro RPG","{FFFFFF}Você ira Virar {FF0000}Detetive, {FFFFFF}Para Continuar Aperte em 'Ok' ","Ok","");
  2501.                 VariosEmpregos[playerid] = 1;
  2502.                 Controle(playerid, 1);
  2503.             }
  2504.             case 1:
  2505.             {
  2506.                 ShowPlayerDialog(playerid,81,DIALOG_STYLE_MSGBOX,"{00FFFF}Euro RPG","{FFFFFF}Você ira Virar {FF0000}Advogado, {FFFFFF}Para Continuar Aperte em 'Ok' ","Ok","");
  2507.                 VariosEmpregos[playerid] = 2;
  2508.                 Controle(playerid, 1);
  2509.             }
  2510.            
  2511.         }
  2512.     }
  2513.     if(dialogid == 81)
  2514.     {
  2515.         if(!response)
  2516.         {
  2517.             VariosEmpregos[playerid] = 0;
  2518.             return SendClientMessage(playerid, BRANCO, "Você Cancelou o {FF0000}Emprego !");
  2519.         }
  2520.         else
  2521.         {
  2522.             PlayerDados[playerid][Emprego] = VariosEmpregos[playerid];
  2523.             SendClientMessage(playerid, BRANCO, "{00FF00}Parabens, {FFFFFF}Aproveite seu Novo Emprego, Mais Informações {00FF00}Use: /ajuda");
  2524.         }
  2525.     }
  2526.     //-----------------[ Ajuda ]----------------//
  2527.     if(dialogid == 83)
  2528.     {
  2529.         new Ajudando[2000];
  2530.         if(response)
  2531.         {
  2532.             if(listitem == 0)
  2533.             {
  2534.                 strcat(Ajudando,"{FF0000}Euro - {FFFFFF}/logar - /abastecer - /rg - /forum - /creditos - /relatorio - /duvida\n");
  2535.                 strcat(Ajudando,"{FF0000}Euro - {FFFFFF}/orgs - /gps - /setint - /beber");
  2536.             }
  2537.             if(listitem == 1)
  2538.             {
  2539.                 if(PlayerDados[playerid][Organizacao] == 1)
  2540.                 {
  2541.                     strcat(Ajudando,"{FF0000}Ballas Lider - {FFFFFF}/convidar - /promover - /demitir\n");
  2542.                     strcat(Ajudando,"{FF0000}Ballas Membros - {FFFFFF}/pedircontas - /ang - /sequestrar - /desamarrar - /assaltar\n");
  2543.                     strcat(Ajudando,"{FF0000}Ballas Membros - {FFFFFF}/barreiragang - /rbarreiragang - /invasao(Anucio'')");
  2544.                 }
  2545.                 if(PlayerDados[playerid][Organizacao] == 2)
  2546.                 {
  2547.                     strcat(Ajudando,"{FF0000}Comandos Lider - {FFFFFF}/convidar - /promover - /demitir - /pedircontas\n");
  2548.                     strcat(Ajudando, "{FF0000}Arma De Choque > {FFFFFF}/choque(Pegar Arma de Choque) - /rchoque(Guardar Arma de Choque)\n");
  2549.                     strcat(Ajudando, "{FF0000}Escudo > {FFFFFF}/escudo(Pegar seu Escudo) - /rescudo(Guardar seu Escudo)\n");
  2550.                     strcat(Ajudando, "{FF0000}Comandos Membro > {FFFFFF}(/r)adio - /departmento - /megafone - /suspeito - /ficha - /prender\n");
  2551.                     strcat(Ajudando, "{FF0000}Comandos Membro > {FFFFFF}/batercartao - /procurados - /algemar - /desalgemar - /imo - /reforco\n");
  2552.                     strcat(Ajudando, "{FF0000}Comandos Membro > {FFFFFF}/revistar /retirarcarteira - /retirararmas /prender (/gov)erno /arrombar (/do)minar\n");
  2553.                     strcat(Ajudando, "{FF0000}Comandos Membro > {FFFFFF}/desalgemar - /bafometro - /membros - /ronda - /chapeu");
  2554.                 }
  2555.                 else
  2556.                 {
  2557.                     SendClientMessage(playerid, -1,"Você não Participa de nenhuma Org !");
  2558.                 }
  2559.             }
  2560.             if(listitem == 2)
  2561.             {
  2562.                 if(PlayerDados[playerid][Emprego] == 0)
  2563.                 {
  2564.                     strcat(Ajudando,"{FF0000}Civil - {FFFFFF}/punheta - /pararpunheta\n");
  2565.                     strcat(Ajudando,"{FF0000}Você {FFFFFF}é Vagabundo !");
  2566.                 }
  2567.                 if(PlayerDados[playerid][Emprego] == 1)
  2568.                 {
  2569.                     strcat(Ajudando,"{FF0000}Detetive - {FFFFFF}/procurar");
  2570.                 }
  2571.                 if(PlayerDados[playerid][Emprego] == 2)
  2572.                 {
  2573.                     strcat(Ajudando,"{FF0000}Advogado - {FFFFFF}/soltar - /presos");
  2574.                 }
  2575.             }
  2576.             if(listitem == 3)
  2577.             {
  2578.                 if(PlayerDados[playerid][Vip])
  2579.                 {
  2580.                     strcat(Ajudando,"{FF0000}Vip's - {FFFFFF}/kitvip - /v (Chat vip) - /cc(CriarCarro) - /vips(Online's)");
  2581.                 }
  2582.             }
  2583.             if(listitem == 4)
  2584.             {
  2585.                 strcat(Ajudando,"{FF0000}Casas - {FFFFFF}/criarcasa - /removercasa - /ircasa - /comprarcasa - /casa - /alugarcasa - /desalugarcasa - /hdepositar\n");
  2586.                 strcat(Ajudando,"{FF0000}Casas - {FFFFFF}/hretirar - /harma - /htomararma - /verificarseguranca - /bater - /portafechada - /destrancarporta\n");
  2587.                 strcat(Ajudando,"{FF0000}Casas - {FFFFFF}/hentrar(EntrarCasa) - /hsair(SairCasa) - /pagaraluguel - /hcarro - /encontrarcarro - /hmelhorar \n");
  2588.                 strcat(Ajudando,"{FF0000}Casas - {FFFFFF}/hdepositarcarro - /harmacarro - /hlevararma - /hestacionar - /hcorcarro - /htelefone\n");
  2589.                 strcat(Ajudando,"{FF0000}Casas - {FFFFFF}/hatendertelefone - /hmudarspawm - /hroubarcasa - /hdarchave - /hminhacasa - /hretirarcarro\n");
  2590.             }
  2591.             if(listitem == 5)
  2592.             {
  2593.                 strcat(Ajudando,"{FF0000}Donos e Scripter - {FFFFFF}Scripter : Life_Advanced e American_Style || Mapper : Yuri_Delta");
  2594.                 return 1;
  2595.             }
  2596.             ShowPlayerDialog(playerid, Ajudando2, DIALOG_STYLE_MSGBOX, "{FF0000}Euro RPG - {FFFFFF}Ajuda", Ajudando, "Fechar", "");
  2597.             return 1;
  2598.         }
  2599.     }
  2600.     //-----------------------------//
  2601.     if(dialogid == DIALOG_REGISTRO)
  2602.     {
  2603.         if(response)
  2604.         {
  2605.             if(!strlen(inputtext))
  2606.             {
  2607.                 format(String, sizeof(String), "{FFFFFF}Conta: {FF0000}%s\n{FFFFFF}Não {FF0000}Registrada.\n\n{FFFFFF}Digite uma senha para se {FF0000}Registrar\n{FFFFFF}Em nosso Banco de Dados.", Nome(playerid));
  2608.                 ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "{1EB2FC}Registrando...", String, "Registrar", "Sair");
  2609.                 SendClientMessage(playerid, VERMELHO, "Digite uma senha para se registrar ¬¬");
  2610.                 return 1;
  2611.             }
  2612.             format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(playerid));
  2613.             DOF2_CreateFile(StringContas);
  2614.             DOF2_SetString(StringContas, "Senha", inputtext);
  2615.             DOF2_SetInt(StringContas, "Matou", 0);
  2616.             DOF2_SetInt(StringContas, "Morreu", 0);
  2617.             DOF2_SetInt(StringContas, "Grana", 0);
  2618.             DOF2_SetInt(StringContas, "pSkin", 289);
  2619.             DOF2_SetInt(StringContas, "pLevel", 0);
  2620.             DOF2_SetInt(StringContas, "Respeito", 0);
  2621.             DOF2_SetInt(StringContas, "Advertencias", 0);
  2622.             DOF2_SetInt(StringContas, "Preso", 0);
  2623.             DOF2_SetInt(StringContas, "Motorista", 0);
  2624.             DOF2_SetInt(StringContas, "Sexo", 0);
  2625.             DOF2_SetInt(StringContas, "Organizacao", 0);
  2626.             DOF2_SetInt(StringContas, "Cargo", 0);
  2627.             DOF2_SetInt(StringContas, "Emprego", 0);
  2628.             DOF2_SetInt(StringContas, "Skin", 0);
  2629.             DOF2_SetInt(StringContas, "Procurado", 0);
  2630.             SendClientMessage(playerid, AZUL_CLARO, "Registrado Com Sucesso! você foi logado automaticamente");
  2631.             ShowPlayerDialog(playerid,BOM,DIALOG_STYLE_MSGBOX, "{FF8C00}Seja Bem Vindo", "\n  Presta Muita Atenção no Tutorial Pode Ajudar Muito ...\n", "Avançar", "");
  2632.             #if USAR_TEXT == 1
  2633.                 TextDrawDestroy(Inicio[playerid]);
  2634.             #endif
  2635.             return 1;
  2636.         }
  2637.         else
  2638.         {
  2639.             SendClientMessage(playerid, VERMELHO, "Você não quis se registrar e por isso foi kickado!");
  2640.             Kick(playerid);
  2641.             return 1;
  2642.         }
  2643.     }
  2644.     if(dialogid == DIALOG_LOGIN)
  2645.     {
  2646.         if(response)
  2647.         {
  2648.             if(!strlen(inputtext))
  2649.             {
  2650.                 SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2);
  2651.                 SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0);
  2652.                 Camera[playerid] = 1;
  2653.                 CameraX[playerid] = 1460.0;
  2654.                 CameraY[playerid] = -1324.0;
  2655.                 CameraZ[playerid] = 287.2;
  2656.                 format(String, sizeof(String), "{FFFFFF}Conta: {FF0000}%s\n{FFFFFF}Conta {FF0000}Registrada.\n\n{FFFFFF}Digite sua senha para {FF0000}Logar", Nome(playerid));
  2657.                 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FC14E9}Logando...", String, "Logar", "Sair");
  2658.                 SendClientMessage(playerid, VERMELHO, "Digite sua senha para se logar ¬¬");
  2659.                 return 1;
  2660.             }
  2661.             format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(playerid));
  2662.             if(strcmp(inputtext, DOF2_GetString(StringContas, "Senha"), true))
  2663.             {
  2664.                 format(String, sizeof(String), "{FFFFFF}Conta: {FF0000}%s\n{FFFFFF}Conta {FF0000}Registrada.\n\n{FFFFFF}Digite sua senha para {FF0000}Logar", Nome(playerid));
  2665.                 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FC14E9}Logando...", String, "Logar", "Sair");
  2666.                 SendClientMessage(playerid, VERMELHO_CLARO, "Senha incorreta!");
  2667.                 return 1;
  2668.             }
  2669.             else
  2670.             {
  2671.                 PlayerDados[playerid][Matou] = DOF2_GetInt(StringContas, "Matou");
  2672.                 PlayerDados[playerid][Morreu] = DOF2_GetInt(StringContas, "Morreu");
  2673.                 PlayerDados[playerid][Sexo] = DOF2_GetInt(StringContas, "Sexo");
  2674.                 PlayerDados[playerid][Organizacao] = DOF2_GetInt(StringContas, "Organizacao");
  2675.                 PlayerDados[playerid][Cargo] = DOF2_GetInt(StringContas, "Cargo");
  2676.                 PlayerDados[playerid][Emprego] = DOF2_GetInt(StringContas, "Emprego");
  2677.                 PlayerDados[playerid][pSkin] = DOF2_GetInt(StringContas, "pSkin");
  2678.                 PlayerDados[playerid][Procurado] = DOF2_GetInt(StringContas, "Procurado");
  2679.                 PlayerDados[playerid][pLevel] = DOF2_GetInt(StringContas, "pLevel");
  2680.                 PlayerDados[playerid][Respeito] = DOF2_GetInt(StringContas, "Respeito");
  2681.                 new str[50];
  2682.                 format(str, 50, "EuroRPG/Admins/%s.sav", Nome(playerid));
  2683.                 if(DOF2_FileExists(str)) {
  2684.                     if(DOF2_IsSet(str, "Admin")) {
  2685.                         PlayerDados[playerid][Admin] = DOF2_GetInt(str, "Admin");
  2686.                     }
  2687.                     if(DOF2_IsSet(str, "Helper")) {
  2688.                         PlayerDados[playerid][Helper] = DOF2_GetBool(str, "Helper");
  2689.                     }
  2690.                     if(DOF2_IsSet(str, "Vip")) {
  2691.                         PlayerDados[playerid][Vip] = DOF2_GetBool(str, "Vip");
  2692.                     }
  2693.                 }
  2694.                 PlayerDados[playerid][Advertencias] = DOF2_GetInt(StringContas, "Advertencias");
  2695.                 GivePlayerMoney(playerid, DOF2_GetInt(StringContas, "Grana"));
  2696.                 SetPlayerSkin(playerid, DOF2_GetInt(StringContas, "pSkin"));
  2697.                 SetPlayerWantedLevel(playerid, DOF2_GetInt(StringContas, "Procurado"));
  2698.                 SetPlayerScore(playerid, DOF2_GetInt(StringContas, "pLevel"));
  2699.                 PlayerDados[playerid][Respeito] = DOF2_GetInt(StringContas, "Respeito");
  2700.                 PlayerDados[playerid][Preso] = DOF2_GetInt(StringContas, "Preso");
  2701.                 PlayerDados[playerid][Motorista] = DOF2_GetInt(StringContas, "Motorista");
  2702.                 SendClientMessage(playerid, VERDE_CLARO, "Logado Com sucesso!");
  2703.                 ShowPlayerDialog(playerid,BemVindo,DIALOG_STYLE_MSGBOX, "{FF8C00}Seja Bem Vindo", "\n Você Foi logado, So Clicar em {00FFFF}Spawn Bom Jogo ! \n", "Spawn", "");
  2704.                 #if USAR_TEXT == 1
  2705.                     TextDrawDestroy(Inicio[playerid]);
  2706.                 #endif
  2707.                 if(PlayerDados[playerid][Admin] > 0)
  2708.                 {
  2709.                     format(String, sizeof(String), "Logado de Admin Nível %d", PlayerDados[playerid][Admin]);
  2710.                     SendClientMessage(playerid, AZUL_CLARO, String);
  2711.                     format(String, sizeof(String), "~w~Admin ~g~%s ~y~Online", Nome(playerid));
  2712.                     GameTextForAll(String, 1000, 1);
  2713.                     PlayerDados[playerid][Trabalhando] = true;
  2714.                     SendClientMessage(playerid, AZUL_CLARO, "Você está trabalhando, para jogar use /jogar");
  2715.                     SetPlayerColor(playerid, COR_ROSA);
  2716.                     SetPlayerHealth(playerid, 999999);
  2717.                     return 1;
  2718.                 }
  2719.                 return 1;
  2720.             }
  2721.         }
  2722.         else
  2723.         {
  2724.             SendClientMessage(playerid, VERMELHO, "Você não quis se Logar e por isso foi kickado!");
  2725.             Kick(playerid);
  2726.             return 1;
  2727.         }
  2728.     }
  2729.     if(dialogid == DIALOG_BANIDO)
  2730.     {
  2731.         if(response)
  2732.         {
  2733.             SendClientMessage(playerid, BRANCO, "Kickado");
  2734.             Kick(playerid);
  2735.         }
  2736.         return 1;
  2737.     }
  2738.     if(dialogid == DIALOG_ADM)
  2739.     {
  2740.         if(response)
  2741.         {
  2742.             format(String, sizeof(String), "O Jogador {1B95E0}%s{00C2EC} é o mais novo admin do server!", Nome(playerid));
  2743.             SendClientMessageToAll(AZUL_CLARO, String);
  2744.             EscreverLog("EuroRPG/Logs/NovoAdm.log", String);
  2745.             SendClientMessage(playerid, VERDE_CLARO, "Use /la para ver seus comandos de Admin.");
  2746.             SetarDado(playerid, Admin, nivel);
  2747.             DarAdmin(playerid, nivel);
  2748.         }
  2749.         if(!response)
  2750.         {
  2751.             format(String, sizeof(String), "O Jogador {1B95E0}%s{00C2EC} recusou ser admin do server!", Nome(playerid));
  2752.             SendClientMessageToAll(AZUL_CLARO, String);
  2753.         }
  2754.         return 1;
  2755.     }
  2756.     if(dialogid == DIALOG_HELPER)
  2757.     {
  2758.         if(!response)
  2759.             return format(String, sizeof(String), "O Jogador {1B95E0}%s{00C2EC} recusou ser Helper do server.", Nome(playerid)), SendClientMessageToAll(AZUL_CLARO, String);
  2760.         format(String, sizeof(String), "O Jogador {1B95E0}%s{00C2EC} é o mais novo Helper do server", Nome(playerid));
  2761.         SendClientMessageToAll(AZUL_CLARO, String);
  2762.         SendClientMessage(playerid, VERDE_CLARO, "Use /la para ver seus comandos de Helper.");
  2763.         SalvarDados(playerid);
  2764.         SetarDado(playerid, Helper, true);
  2765.         DarHelper(playerid);
  2766.         //DOF2_SetBool("EuroRPG/Helpers.hel", Nome(playerid), true);
  2767.         return 1;
  2768.     }
  2769.     if(dialogid == DIALOG_SENHANOVA)
  2770.     {
  2771.         new StrConta[100];
  2772.         format(StrConta,sizeof(StrConta), "EuroRPG/Contas/%s.txt", Nome(playerid));
  2773.         if(!strlen(inputtext))
  2774.         {
  2775.             format(String, sizeof(String), "{D9E01B}Digite uma senha ou clique em Cancelar.\n\n{1BE0AF}Sua senha atual é {1B63E0}'%s'.\n\nDigite sua nova senha abaixo:", DOF2_GetString(StrConta, "Senha"));
  2776.             ShowPlayerDialog(playerid, DIALOG_SENHANOVA, DIALOG_STYLE_INPUT, "{1BE084}Nova Senha", String, "Mudar", "Cancelar");
  2777.             return 1;
  2778.         }
  2779.         DOF2_SetString(StrConta, "Senha", inputtext);
  2780.         format(String, sizeof(String), "{12FF05}Sua nova senha é {25E01B}'%s'", inputtext);
  2781.         SendClientMessage(playerid, -1, String);
  2782.         SalvarDados(playerid);
  2783.     }
  2784.     if(dialogid == DIALOG_OPCOES) {
  2785.         switch(listitem) {
  2786.             case 0:
  2787.             {
  2788.                 format(String, sizeof String, "Digite o motivo pelo qual quer kickar\no jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2789.                 ShowPlayerDialog(playerid, DIALOG_KICKAR, DIALOG_STYLE_INPUT, "Kickar", String, "Kickar", "Fechar");
  2790.             }
  2791.             case 1:
  2792.             {
  2793.                 format(String, sizeof String, "Digite o motivo pelo qual quer banir\no jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2794.                 ShowPlayerDialog(playerid, DIALOG_BANIR, DIALOG_STYLE_INPUT, "Banir", String, "Banir", "Fechar");
  2795.             }
  2796.             case 2:
  2797.             {
  2798.                 format(String, sizeof String, "Digite o motivo pelo qual quer advertir\no jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2799.                 ShowPlayerDialog(playerid, DIALOG_ADVERTIR, DIALOG_STYLE_INPUT, "Advertir", String, "Advertir", "Fechar");
  2800.             }
  2801.             case 3:
  2802.             {
  2803. //              new Float:Pos[3];
  2804.                 GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  2805.                 if(IsPlayerInAnyVehicle(IdClicado[playerid]))
  2806.                 {
  2807.                     new carroid = GetPlayerVehicleID(IdClicado[playerid]);
  2808.                     SetVehiclePos(carroid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
  2809.                     format(String, sizeof(String), "O Admin %s trouxe você até ele!", Nome(playerid));
  2810.                     SendClientMessage(IdClicado[playerid], AZUL_CLARO, String);
  2811.                     format(String, sizeof(String), "Você trouxe o jogador %s [ID: %d] até você", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2812.                     SendClientMessage(playerid, AZUL_CLARO, String);
  2813.                     return 1;
  2814.                 }
  2815.                 SetPlayerPos(IdClicado[playerid], Pos[0]+2, Pos[1]+2, Pos[2]+2);
  2816.                 format(String, sizeof(String), "O Admin %s trouxe você até ele!", Nome(playerid));
  2817.                 SendClientMessage(IdClicado[playerid], AZUL_CLARO, String);
  2818.                 format(String, sizeof(String), "Você trouxe o jogador %s [ID: %d] até você", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2819.                 SendClientMessage(playerid, AZUL_CLARO, String);
  2820.             }
  2821.             case 4:
  2822.             {
  2823.                // new Float:Pos[3];
  2824.                 GetPlayerPos(IdClicado[playerid], Pos[0], Pos[1], Pos[2]);
  2825.                 if(IsPlayerInAnyVehicle(playerid))
  2826.                 {
  2827.                     new carroid = GetPlayerVehicleID(playerid);
  2828.                     SetVehiclePos(carroid, Pos[0], Pos[1], Pos[2]);
  2829.                     format(String, sizeof(String), "O Admin %s veio até você!", Nome(playerid));
  2830.                     SendClientMessage(IdClicado[playerid], AZUL_CLARO, String);
  2831.                     format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2832.                     SendClientMessage(playerid, AZUL_CLARO, String);
  2833.                     return 1;
  2834.                 }
  2835.                 SetPlayerPos(playerid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
  2836.                 format(String, sizeof(String), "O Admin %s veio até você!", Nome(playerid));
  2837.                 SendClientMessage(IdClicado[playerid], AZUL_CLARO, String);
  2838.                 format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2839.                 SendClientMessage(playerid, AZUL_CLARO, String);
  2840.             }
  2841.             case 5: {
  2842.                 format(String, sizeof String, "Digite a mensagem particular que deseja enviar\nao jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2843.                 ShowPlayerDialog(playerid, DIALOG_PART, DIALOG_STYLE_INPUT, "Particular", String, "Enviar", "Fechar");
  2844.             }
  2845.             case 6: {
  2846.                 new StringM[500];
  2847.                 new Fala[5];
  2848.                 new ip[25];
  2849.                 if(PlayerDados[ID][Calado] == true) Fala = "Sim";
  2850.                 if(PlayerDados[ID][Calado] == false) Fala = "Nao";
  2851.                 GetPlayerIp(ID, ip, 25);
  2852.                 format(StringM, sizeof(StringM), "{FFFFFF}Dados de {11D41E}%s{FFFFFF}\n\n{11D41E}Matou:{FFFFFF} %d\n{11D41E}Morreu:{FFFFFF} %d\n{11D41E}Grana:{FFFFFF} %d\n{11D41E}Admin Level:{FFFFFF} %d\n{11D41E}Calado:{FFFFFF} %s\n{11D41E}Tempo Preso:{FFFFFF} %d", Nome(ID), PlayerDados[IdClicado[playerid]][Matou], PlayerDados[IdClicado[playerid]][Morreu], GetPlayerMoney(ID), PlayerDados[IdClicado[playerid]][Admin], Fala, PlayerDados[IdClicado[playerid]][Preso]);
  2853.                 format(StringM, sizeof(StringM), "%s\n{11D41E}Advertencias:{FFFFFF} %d \n{11D41E}IP:{FFFFFF} %s", StringM, PlayerDados[IdClicado[playerid]][Advertencias], ip);
  2854.                 ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Informações do Player", StringM, "Fechar", "");
  2855.             }
  2856.         }
  2857.     }
  2858.     if(dialogid == DIALOG_KICKAR) {
  2859.         if(!(response)) {
  2860.             format(String, 60, "Opções de Admin sobre %s", NomeClicado[playerid]);
  2861.             return ShowPlayerDialog(playerid, DIALOG_OPCOES, DIALOG_STYLE_LIST, String , "{F5F50C}Kickar\n{F5180C}Banir\n{0CF50C}Advertir\n{FF05F7}Trazer\n{FF05F7}Ir\n{14C9C9}Particular\n{0C8CF5}Status", "Avançar", "Fechar");
  2862.         }
  2863.         if(!(strlen(inputtext))) {
  2864.             format(String, sizeof String, "Digite o motivo pelo qual quer kickar\no jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2865.             return ShowPlayerDialog(playerid, DIALOG_KICKAR, DIALOG_STYLE_INPUT, "Kickar", String, "Kickar", "Fechar");
  2866.         }
  2867.         format(String, sizeof(String), "[Euro RPG] O Admin %s Kickou o Jogador %s[ID: %d] pelo motivo: %s\r\n", Nome(playerid), Nome(IdClicado[playerid]), IdClicado[playerid], inputtext);
  2868.         SendClientMessageToAll(VERDE_CLARO, String);
  2869.         Kickar(ID, Nome(playerid), inputtext);
  2870.         EscreverLog("EuroRPG/Logs/Kickados.log", String);
  2871.     }
  2872.     if(dialogid == DIALOG_BANIR) {
  2873.         if(!(response)) {
  2874.             format(String, 60, "Opções de Admin sobre %s", NomeClicado[playerid]);
  2875.             return ShowPlayerDialog(playerid, DIALOG_OPCOES, DIALOG_STYLE_LIST, String , "{F5F50C}Kickar\n{F5180C}Banir\n{0CF50C}Advertir\n{FF05F7}Trazer\n{FF05F7}Ir\n{14C9C9}Particular\n{0C8CF5}Status", "Avançar", "Fechar");
  2876.         }
  2877.         if(!(strlen(inputtext))) {
  2878.             format(String, sizeof String, "Digite o motivo pelo qual quer banir\no jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2879.             return ShowPlayerDialog(playerid, DIALOG_BANIR, DIALOG_STYLE_INPUT, "Banir", String, "Banir", "Fechar");
  2880.         }
  2881.         format(String, sizeof(String), "[Euro RPG] O Admin %s Baniu o Jogador %s[ID: %d] pelo motivo: %s\r\n", Nome(playerid), Nome(IdClicado[playerid]), IdClicado[playerid], inputtext);
  2882.         SendClientMessageToAll(VERDE_CLARO, String);
  2883.         EscreverLog("EuroRPG/Logs/Banidos.log", String);
  2884.         format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Nome(IdClicado[playerid]));
  2885.         getdate(Ano, Mes, Dia);
  2886.         gettime(Hora, Minuto, Segundo);
  2887.         DOF2_CreateFile(String);
  2888.         DOF2_SetString(String, "Admin", Nome(playerid));
  2889.         DOF2_SetString(String, "Motivo", inputtext);
  2890.         DOF2_SetInt(String, "Ano", Ano);
  2891.         DOF2_SetInt(String, "Mes", Mes);
  2892.         DOF2_SetInt(String, "Dia", Dia);
  2893.         DOF2_SetInt(String, "Hora", Hora);
  2894.         DOF2_SetInt(String, "Minuto", Minuto);
  2895.         Kick(ID);
  2896.     }
  2897.     if(dialogid == DIALOG_ADVERTIR) {
  2898.         if(!(response)) {
  2899.             format(String, 60, "Opções de Admin sobre %s", NomeClicado[playerid]);
  2900.             return ShowPlayerDialog(playerid, DIALOG_OPCOES, DIALOG_STYLE_LIST, String , "{F5F50C}Kickar\n{F5180C}Banir\n{0CF50C}Advertir\n{FF05F7}Trazer\n{FF05F7}Ir\n{14C9C9}Particular\n{0C8CF5}Status", "Avançar", "Fechar");
  2901.         }
  2902.         if(!(strlen(inputtext))) {
  2903.             format(String, sizeof String, "Digite o motivo pelo qual quer advertir\no jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  2904.             return ShowPlayerDialog(playerid, DIALOG_KICKAR, DIALOG_STYLE_INPUT, "Advertir", String, "Advertir", "Fechar");
  2905.         }
  2906.         if(PlayerDados[IdClicado[playerid]][Advertencias] != 3)
  2907.         {
  2908.             format(String, sizeof(String), "[Euro RPG] O Admin %s Deu uma Advertencia a %s Pelo Motivo: %s\r\n", Nome(playerid), Nome(IdClicado[playerid]), inputtext);
  2909.             SendClientMessageToAll(VERMELHO_CLARO, String);
  2910.             EscreverLog("EuroRPG/Logs/Advertidos.log", String);
  2911.             format(String, sizeof(String), "Você foi Advertido pelo admin %s Pelo motivo: %s. Se for advertido 3 vezes será BANIDO Automaticamente", Nome(playerid), inputtext);
  2912.             SendClientMessage(ID, LARANJA, String);
  2913.             PlayerDados[ID][Advertencias] += 1;
  2914.         }
  2915.         if(PlayerDados[IdClicado[playerid]][Advertencias] == 3)
  2916.         {
  2917.             format(String, sizeof(String), "[Euro RPG] O Admin %s Deu a terceira Advertencia a %s Pelo Motivo: %s e por isso ele foi Banido!", Nome(playerid), Nome(IdClicado[playerid]), inputtext);
  2918.             SendClientMessageToAll(VERMELHO_CLARO, String);
  2919.             format(String, sizeof(String), "Você foi Advertido pela terceira vez pelo admin %s Pelo motivo: %s. por isso você foi banido!", Nome(playerid), inputtext);
  2920.             SendClientMessage(ID, LARANJA, String);
  2921.             format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Nome(ID));
  2922.             getdate(Ano, Mes, Dia);
  2923.             gettime(Hora, Minuto, Segundo);
  2924.             new IP[25];
  2925.             GetPlayerIp(ID, IP, 25);
  2926.             DOF2_CreateFile(String);
  2927.             DOF2_SetString(String, "Admin", Nome(playerid));
  2928.             DOF2_SetString(String, "Motivo", "3° Advertencia");
  2929.             DOF2_SetInt(String, "Ano", Ano);
  2930.             DOF2_SetInt(String, "Mes", Mes);
  2931.             DOF2_SetInt(String, "Dia", Dia);
  2932.             DOF2_SetInt(String, "Hora", Hora);
  2933.             DOF2_SetInt(String, "Minuto", Minuto);
  2934.             Kick(ID);
  2935.         }
  2936.     }
  2937.     if(dialogid == BemVindo)
  2938.     {
  2939.         if(response == 1)
  2940.         {
  2941.             SpawnPlayer(playerid);
  2942.             Camera[playerid] = 0;
  2943.             TextDrawDestroy(Faixa0[playerid]);
  2944.             TextDrawDestroy(Faixa1[playerid]);
  2945.             return 0;
  2946.         }
  2947.         else if(response == 0)
  2948.         {
  2949.             return 0;
  2950.         }
  2951.         return 0;
  2952.     }
  2953.     if(dialogid == 27)
  2954.     {
  2955.         if(PlayerDados[playerid][Colocar] == 0)
  2956.         {
  2957.             new sexthings[] = "1\tMasculino \n2\tFeminino";
  2958.             ShowPlayerDialog(playerid,31,DIALOG_STYLE_LIST,"{0000FF}Seja Bem Vindo, Qual e seu Sexo ?",sexthings,"Ok","Cancelar");
  2959.             return 1;
  2960.         }
  2961.         return 1;
  2962.     }
  2963. //--------------------------------( Tutorial )
  2964.     if(dialogid == BOM)
  2965.     {
  2966.         if(response == 1)
  2967.         {
  2968.             Camera[playerid] = 0;
  2969.             InterpolateCameraPos(playerid, 1648.991333, -1506.587768, 70.237091, 1712.693603, -1621.302490, 26.039173, 5000, CAMERA_MOVE);
  2970.             InterpolateCameraLookAt(playerid, 1650.572875, -1511.177978, 69.041748, 1716.547241, -1624.255493, 24.843832, 5000, CAMERA_MOVE);
  2971.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~Informacoes ~w~]", 8000, 3);
  2972.             ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{FF34B3}Informações", "{FFFFFF}Este é um servidor de RPG (Role Play Game), Simulação de vida real.\nVocê não mata ninguém na vida real, não rouba, não faz 'besteiras'.\nSe você for um civil, jogue como um civil. Se for gangster... Ai sim, Poderá matar e roubar.\nNão mate pessoas que não fizeram nada com você.", "Avançar", "");
  2973.             return 0;
  2974.         }
  2975.         else if(response == 0)
  2976.         {
  2977.             //Kick(playerid);
  2978.             return 0;
  2979.         }
  2980.         return 0;
  2981.     }
  2982.     if(dialogid == 11)
  2983.     {
  2984.         if(response == 1)
  2985.         {
  2986.             InterpolateCameraPos(playerid, 1648.991333, -1506.587768, 70.237091, 1712.693603, -1621.302490, 26.039173, 5000, CAMERA_MOVE);
  2987.             InterpolateCameraLookAt(playerid, 1650.572875, -1511.177978, 69.041748, 1716.547241, -1624.255493, 24.843832, 5000, CAMERA_MOVE);
  2988.             GameTextForPlayer(playerid,"~w~] ~r~~h~Regras ~w~]", 8000, 3);
  2989.             ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{FF34B3}Regras", "{FFFFFF}Sempre respeite um adminnistrador ou helper, eles estão fazendo o melhor por você.\nNão abuse da boa vontade de nossos admins e helpers.\nNão peça admin ou helper, e nem peça para que eles aumentem seus cargos.\nNão cause terrorismo, DM, DB, não abuse de BUG's, e nunca use cheater's.", "Avançar", "");
  2990.             return 0;
  2991.         }
  2992.         else if(response == 0)
  2993.         {
  2994.             Kick(playerid);
  2995.             return 0;
  2996.         }
  2997.         return 0;
  2998.     }
  2999.  
  3000.     if(dialogid == 12)
  3001.     {
  3002.         if(response == 1)
  3003.         {
  3004.             InterpolateCameraPos(playerid, 1648.991333, -1506.587768, 70.237091, 1712.693603, -1621.302490, 26.039173, 5000, CAMERA_MOVE);
  3005.             InterpolateCameraLookAt(playerid, 1650.572875, -1511.177978, 69.041748, 1716.547241, -1624.255493, 24.843832, 5000, CAMERA_MOVE);
  3006.             GameTextForPlayer(playerid,"~w~] ~g~~h~Comandos ~w~]", 8000, 3);
  3007.             ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "{FF34B3}Comandos", "{FFFFFF}/relatorio - Pede ajuda para um Administrador, /duvida - Esclareça uma dúvida para um helper, /gps - Veja onde ficar os lugares importantes.\n/rg - Ver seus status, /ajuda, /meuskin - Vá até uma binco.\nDigitando /ajuda você todos esses comandos e mais alguns que você utilizará.\nNo /ajuda tem vários outros comandos que podem te ajudar.", "Avançar", "");
  3008.             return 0;
  3009.         }
  3010.         else if(response == 0)
  3011.         {
  3012.             Kick(playerid);
  3013.             return 0;
  3014.         }
  3015.         return 0;
  3016.     }
  3017.     if(dialogid == 13)
  3018.     {
  3019.         if(response == 1)
  3020.         {
  3021.             GameTextForPlayer(playerid,"~w~$ ~p~Contas ~w~$", 8000, 3);
  3022.             ShowPlayerDialog(playerid, 14, DIALOG_STYLE_MSGBOX, "{FF34B3}Contas", "{FFFFFF}Temos conta Vip a partir de R$10,00 (mensal).\nTemos conta VIP Premium a partir de R$15,00 (mensal).\nTemos conta Sócio a partir de R$25,00 (mensal).\nEm nosso forum está todos os benefícios, use: /forum.", "Avançar", "");
  3023.             InterpolateCameraPos(playerid, 1648.991333, -1506.587768, 70.237091, 1712.693603, -1621.302490, 26.039173, 5000, CAMERA_MOVE);
  3024.             InterpolateCameraLookAt(playerid, 1650.572875, -1511.177978, 69.041748, 1716.547241, -1624.255493, 24.843832, 5000, CAMERA_MOVE);
  3025.             return 0;
  3026.         }
  3027.         else if(response == 0)
  3028.         {
  3029.             Kick(playerid);
  3030.             return 0;
  3031.         }
  3032.         return 0;
  3033.     }
  3034.  
  3035.     if(dialogid == 14)
  3036.     {
  3037.         if(response == 1)
  3038.         {
  3039.             InterpolateCameraPos(playerid, 1167.816040, -1413.277221, 257.630493, 1568.936279, -1381.132446, 335.658477, 5000, CAMERA_MOVE);
  3040.             InterpolateCameraLookAt(playerid, 1172.804565, -1413.483520, 257.899902, 1565.757446, -1377.367187, 334.811035, 5000, CAMERA_MOVE);
  3041.             GameTextForPlayer(playerid,"~w~] ~y~Lugares Importantes ~w~]", 8000, 3);
  3042.             ShowPlayerDialog(playerid, 15, DIALOG_STYLE_MSGBOX, "{FF34B3}Lugares Importantes", "{FFFFFF}Nosso proximo tópico, mostrará alguns lugares importantes.\nOnde você passará perto o jogo inteiro, e partes fundamentais do servidor.\nComo: Prefeitura, D.E.T.R.A.N, DP, Banco, Binco, Morro, entre outros...\nPreste muita atenção!", "Avançar", "");
  3043.             return 0;
  3044.         }
  3045.         else if(response == 0)
  3046.         {
  3047.             Kick(playerid);
  3048.             return 0;
  3049.         }
  3050.         return 0;
  3051.     }
  3052.     if(dialogid == 15)
  3053.     {
  3054.         if(response == 1)
  3055.         {
  3056.             InterpolateCameraPos(playerid, 1393.865966, -1588.174560, 81.841621, 1477.733764, -1733.900024, 26.242527, 5000, CAMERA_MOVE);
  3057.             InterpolateCameraLookAt(playerid, 1395.725830, -1592.811645, 81.646362, 1477.833251, -1738.754028, 25.047185, 5000, CAMERA_MOVE);
  3058.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~P~r~~h~r~g~~h~e~y~f~p~e~b~~h~~h~i~r~~h~t~g~~h~u~y~r~p~a ~w~]", 8000, 3);
  3059.             ShowPlayerDialog(playerid, 16, DIALOG_STYLE_MSGBOX, "{FF34B3}Prefeitura de Los Santos", "{FFFFFF}Neste local, você poderá pegar empregos.\nAqui também será onde o nosso Prefeito ficará quando eleito.", "Avançar", "");
  3060.             return 0;
  3061.         }
  3062.         else if(response == 0)
  3063.         {
  3064.             Kick(playerid);
  3065.             return 0;
  3066.         }
  3067.         return 0;
  3068.     }
  3069.  
  3070.     if(dialogid == 16)
  3071.     {
  3072.         if(response == 1)
  3073.         {
  3074.             InterpolateCameraPos(playerid, 1027.684814, -1049.232910, 96.898773, 961.219238, -929.241027, 50.036045, 5000, CAMERA_MOVE);
  3075.             InterpolateCameraLookAt(playerid, 1025.590454, -1044.952758, 95.384201, 959.452209, -924.652038, 49.131214, 5000, CAMERA_MOVE);
  3076.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~D~w~.~r~~h~E~w~.~g~~h~T~w~.~y~R~w~.~p~A~w~.~b~~h~~h~N ~w~]", 8000, 3);
  3077.             ShowPlayerDialog(playerid, 17, DIALOG_STYLE_MSGBOX, "{FF34B3}D.E.T.R.A.N", "{FFFFFF}Neste local, você deverá fazer a prova para tirar sua carteira de motorista.\nAqui você fará a prova, passando no teste terá sua carteira de motorista.", "Avançar", "");
  3078.             return 0;
  3079.         }
  3080.         else if(response == 0)
  3081.         {
  3082.             Kick(playerid);
  3083.             return 0;
  3084.         }
  3085.         return 0;
  3086.     }
  3087.  
  3088.     if(dialogid == 17)
  3089.     {
  3090.         if(response == 1)
  3091.         {
  3092.             InterpolateCameraPos(playerid, 1505.487548, -1739.100952, 51.548789, 1432.993530, -1705.656982, 18.734588, 5000, CAMERA_MOVE);
  3093.             InterpolateCameraLookAt(playerid, 1501.249023, -1737.058837, 49.856334, 1428.392211, -1704.031494, 17.645727, 5000, CAMERA_MOVE);
  3094.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~C~r~~h~e~g~~h~n~y~t~p~r~b~~h~~h~o ~r~~h~d~g~~h~e ~y~L~p~i~b~~h~~h~c~r~~h~e~g~~h~n~y~c~p~a~b~~h~~h~s ~w~]", 8000, 3);
  3095.             ShowPlayerDialog(playerid, 18, DIALOG_STYLE_MSGBOX, "{FF34B3}Centro de Lincenças", "{FFFFFF}Neste local, você deverá comprar todas as suas licencas.\nSeja um cidadão comprando suas licencas e respeitando a LEI.", "Avançar", "");
  3096.             return 0;
  3097.         }
  3098.         else if(response == 0)
  3099.         {
  3100.             Kick(playerid);
  3101.             return 0;
  3102.         }
  3103.         return 0;
  3104.     }
  3105.  
  3106.     if(dialogid == 18)
  3107.     {
  3108.         if(response == 1)
  3109.         {
  3110.             InterpolateCameraPos(playerid, 1374.805786, -1618.235107, 90.054893, 1528.698364, -1673.874633, 27.348447, 5000, CAMERA_MOVE);
  3111.             InterpolateCameraLookAt(playerid, 1379.406127, -1619.845092, 88.939361, 1533.369628, -1674.247314, 25.604637, 5000, CAMERA_MOVE);
  3112.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~D~r~~h~e~g~~h~p~y~a~p~r~b~~h~~h~t~r~~h~a~g~~h~m~y~e~p~n~b~~h~~h~t~r~~h~o ~w~]", 8000, 3);
  3113.             ShowPlayerDialog(playerid, 19, DIALOG_STYLE_MSGBOX, "{FF34B3}Departamento da Polícia Militar", "{FFFFFF}Neste local, ficarão os policiais de plantão e trabalhando.\nSe não souber como chamar um admin é só vir até aqui que eles vão te ajudar\nDentro dela tem portões onde apenas policias poderão abrir\nBusque por ajuda, ou denuncie crimes aqui !", "Avançar", "");
  3114.             return 0;
  3115.         }
  3116.         else if(response == 0)
  3117.         {
  3118.             Kick(playerid);
  3119.             return 0;
  3120.         }
  3121.         return 0;
  3122.     }
  3123.  
  3124.     if(dialogid == 19)
  3125.     {
  3126.         if(response == 1)
  3127.         {
  3128.             InterpolateCameraPos(playerid, 1279.005126, -1243.417480, 75.391242, 1194.899047, -1318.225219, 23.343704, 5000, CAMERA_MOVE);
  3129.             InterpolateCameraLookAt(playerid, 1275.234130, -1246.097412, 73.494636, 1190.260253, -1318.888671, 21.599893, 5000, CAMERA_MOVE);
  3130.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~H~r~~h~o~g~~h~s~y~p~p~i~b~~h~~h~t~r~~h~a~g~~h~l ~w~]", 8000, 3);
  3131.             ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "{FF34B3}Hospital da (SA-MU)", "{FFFFFF}Neste local, você irá se curar de qualquer doença.\nAqui fica a SA-MU, caso precise de um médico, USE: /servico samu.", "Avançar", "");
  3132.             return 0;
  3133.         }
  3134.         else if(response == 0)
  3135.         {
  3136.             Kick(playerid);
  3137.             return 0;
  3138.         }
  3139.         return 0;
  3140.     }
  3141.  
  3142.     if(dialogid == 20)
  3143.     {
  3144.         if(response == 1)
  3145.         {
  3146.             InterpolateCameraPos(playerid, 1401.717163, -1615.851440, 64.898704, 1352.706298, -1742.841430, 16.659206, 4999, CAMERA_MOVE);
  3147.             InterpolateCameraLookAt(playerid, 1399.545532, -1620.221679, 63.809844, 1352.290771, -1747.787353, 16.055217, 4999, CAMERA_MOVE);
  3148.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~M~r~~h~e~g~~h~r~y~c~p~a~b~~h~~h~d~r~~h~o ~w~]", 8000, 3);
  3149.             ShowPlayerDialog(playerid, 21, DIALOG_STYLE_MSGBOX, "{FF34B3}Mercado (24/7)", "{FFFFFF}Neste local, você poderá comprar todos seus acessórios.\nAqui você poderá comprar celular, créditos, agenda, entre outros.", "Avançar", "");
  3150.             return 0;
  3151.         }
  3152.         else if(response == 0)
  3153.         {
  3154.             Kick(playerid);
  3155.             return 0;
  3156.         }
  3157.         return 0;
  3158.     }
  3159.  
  3160.     if(dialogid == 21)
  3161.     {
  3162.         if(response == 1)
  3163.         {
  3164.             InterpolateCameraPos(playerid, 1593.100341, -1073.655273, 79.886085, 1461.601074, -1031.489135, 28.334873, 5000, CAMERA_MOVE);
  3165.             InterpolateCameraLookAt(playerid, 1588.701171, -1071.739746, 78.479545, 1462.224609, -1026.528930, 28.248939, 5000, CAMERA_MOVE);
  3166.             GameTextForPlayer(playerid,"~w~$ ~b~~h~~h~B~r~~h~a~g~~g~n~y~c~p~o ~b~~h~~h~M~r~~h~u~g~~h~n~y~i~p~c~b~~h~~h~i~r~~h~p~g~~h~a~y~l ~w~$", 8000, 3);
  3167.             ShowPlayerDialog(playerid, 22, DIALOG_STYLE_MSGBOX, "{FF34B3}Banco Municipal", "{FFFFFF}Neste local, você pode transferir sua grana, aumentar, sacar, depositar( também há caixas eletrônicos com essas funções ).\nComo na vida real, banco aqui é feito para pagamentos, juros, saques, salários, etc...\nDica: Mantenha o máximo de grana em sua conta, pois a cada pagamento( PayDay ) os juros vão ser maiores.", "Avançar", "");
  3168.             return 0;
  3169.         }
  3170.         else if(response == 0)
  3171.         {
  3172.             Kick(playerid);
  3173.             return 0;
  3174.         }
  3175.         return 0;
  3176.     }
  3177.    
  3178.     if(dialogid == 22)
  3179.     {
  3180.         if(response == 1)
  3181.         {
  3182.             InterpolateCameraPos(playerid, 2191.590332, -1594.208740, 55.740154, 2243.482177, -1657.302124, 21.500234, 6000, CAMERA_MOVE);
  3183.             InterpolateCameraLookAt(playerid, 2194.101562, -1598.249877, 54.202960, 2243.523681, -1661.852294, 19.427959, 6000, CAMERA_MOVE);
  3184.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~B~r~~h~i~g~~h~n~y~c~p~o ~w~]", 8000, 3);
  3185.             ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "{FF34B3}Binco (Loja de Roupas)", "{FFFFFF}Neste local, você poderá mudar sua roupa ( skin ) para um que você goste.\nCada roupa ( skin ) que você escolher, será cobrado uma grana\nÉ só você entrar e digitar /meuskin [ ID da SKIN ] que irá mudar !", "Avançar", "");
  3186.             return 0;
  3187.         }
  3188.         else if(response == 0)
  3189.         {
  3190.             Kick(playerid);
  3191.             return 0;
  3192.         }
  3193.         return 0;
  3194.     }
  3195.  
  3196.     if(dialogid == 23)
  3197.     {
  3198.         if(response == 1)
  3199.         {
  3200.             InterpolateCameraPos(playerid, 1279.203857, -1224.265625, 63.254173, 1351.626708, -1275.595214, 25.590328, 5500, CAMERA_MOVE);
  3201.             InterpolateCameraLookAt(playerid, 1283.009399, -1227.148803, 61.769111, 1356.130004, -1276.559204, 23.643236, 5500, CAMERA_MOVE);
  3202.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~A~r~~h~m~g~~h~m~y~u ~p~N~b~~h~~h~a~r~~h~t~g~~h~i~y~o~p~n ~w~]", 8000, 3);
  3203.             ShowPlayerDialog(playerid, 24, DIALOG_STYLE_MSGBOX, "{FF34B3}Ammu Nation (Loja de Roupas)", "{FFFFFF}Neste local, você poderá comprar armas.\nAmmu Nation é para pessoas comprar armas sómente com licencas.\nUse suas armas sómente em legítima defesa, caso contrário, será preso.", "Avançar", "");
  3204.             return 0;
  3205.         }
  3206.         else if(response == 0)
  3207.         {
  3208.             Kick(playerid);
  3209.             return 0;
  3210.         }
  3211.         return 0;
  3212.     }
  3213.  
  3214.     if(dialogid == 24)
  3215.     {
  3216.         if(response == 1)
  3217.         {
  3218.             GameTextForPlayer(playerid,"~w~] ~b~~h~~h~M~r~~h~o~g~~h~r~y~r~p~o ~w~]", 8000, 3);
  3219.             ShowPlayerDialog(playerid, 25, DIALOG_STYLE_MSGBOX, "{FF34B3}Morro", "{FFFFFF}Neste local, é onde vão ocorrer muitas guerras entre gangs.\nPois querem dominar o morro ou por território de trafico!\nMuitas vezes é invadido pela B.O.P.E/Policia Civil/Policia Militar\nNão fique de bobeira no morro, pode ser vitima de bala perdida !", "Avançar", "");
  3220.             InterpolateCameraPos(playerid, 2239.716308, -1222.620971, 118.563636, 2165.385253, -1015.811584, 70.473403, 5000, CAMERA_MOVE);
  3221.             InterpolateCameraLookAt(playerid, 2238.660156, -1217.895874, 117.315261, 2163.491943, -1011.197875, 70.114334, 5000, CAMERA_MOVE);
  3222.             return 0;
  3223.         }
  3224.         else if(response == 0)
  3225.         {
  3226.             Kick(playerid);
  3227.             return 0;
  3228.         }
  3229.         return 0;
  3230.     }
  3231.     if(dialogid == 25)
  3232.     {
  3233.         if(response == 1)
  3234.         {
  3235.             InterpolateCameraPos(playerid, 1419.806884, -1459.233398, 149.731658, 1722.459838, -1621.930297, 25.961692, 5000, CAMERA_MOVE);
  3236.             InterpolateCameraLookAt(playerid, 1423.763305, -1461.779418, 148.039199, 1723.578857, -1626.317260, 23.839773, 5000, CAMERA_MOVE);
  3237.             GameTextForPlayer(playerid,"~y~] ~b~~h~~h~F~r~~h~I~g~~h~M ~y~]", 8000, 3);
  3238.             ShowPlayerDialog(playerid, 26, DIALOG_STYLE_MSGBOX, "{FF34B3}Finalizando", "{FFFFFF}Nunca peça Administrador ou Helper.\n{FFFFFF}Nós sabemos quando você merecerá.\nSe você tiver um /RG, poste em nosso forum.\n{FFFFFF}Use: /forum pra mais informações\nTenha um {FF0000}excelente jogo!", "Avançar", "");
  3239.             return 0;
  3240.         }
  3241.         else if(response == 0)
  3242.         {
  3243.             Kick(playerid);
  3244.             return 0;
  3245.         }
  3246.         return 0;
  3247.     }
  3248.     if(dialogid == 26)
  3249.     {
  3250.         if(response == 1)
  3251.         {
  3252.             SpawnPlayer(playerid);
  3253.             ShowPlayerDialog(playerid, 27, DIALOG_STYLE_MSGBOX, "{FF34B3}Bom Jogo", "{FFFFFF}Criado por {FF0000}Life_Advanced {FFFFFF}e {FF0000}American_Style", "Owna", "");
  3254.             return 0;
  3255.         }
  3256.         return 0;
  3257.     }
  3258. //--------------------------------//
  3259.     if(dialogid == DIALOG_PART) {
  3260.         if(!(response)) {
  3261.             format(String, 60, "Opções de Admin sobre %s", NomeClicado[playerid]);
  3262.             return ShowPlayerDialog(playerid, DIALOG_OPCOES, DIALOG_STYLE_LIST, String , "{F5F50C}Kickar\n{F5180C}Banir\n{0CF50C}Advertir\n{FF05F7}Trazer\n{FF05F7}Ir\n{14C9C9}Particular\n{0C8CF5}Status", "Avançar", "Fechar");
  3263.         }
  3264.         if(!(strlen(inputtext))) {
  3265.             format(String, sizeof String, "Digite a mensagem particular que deseja enviar\nao jogador %s (ID: %d)", Nome(IdClicado[playerid]), IdClicado[playerid]);
  3266.             return ShowPlayerDialog(playerid, DIALOG_PART, DIALOG_STYLE_INPUT, "Particular", String, "Enviar", "Fechar");
  3267.         }
  3268.         format(String, sizeof(String), "Particular de {E0D01B}%s{FFFF00}: %s", Nome(playerid), inputtext);
  3269.         Msg(IdClicado[playerid], AMARELO, String);
  3270.         format(String, sizeof(String), "Particular enviada com sucesso para %s", Nome(ID));
  3271.         Msg(playerid, AMARELO, String);
  3272.     }
  3273.     if(dialogid == DIALOG_IPS1) {
  3274.         if(!(response))
  3275.             return 0;
  3276.         ShowPlayerDialog(playerid, DIALOG_IPS2, DIALOG_STYLE_MSGBOX, "Ips dos jogadores conectados:", Ips2, "Fechar", "Voltar");
  3277.     }
  3278.     if(dialogid == DIALOG_IPS2) {
  3279.         if(!(response))
  3280.             ShowPlayerDialog(playerid, DIALOG_IPS1, DIALOG_STYLE_MSGBOX, "Ips dos jogadores conectados:", Ips2, "Proximo", "Fechar");
  3281.         else
  3282.             return 0;
  3283.     }
  3284.     return 0;
  3285. }
  3286.  
  3287. //--------------[ Inicios dos Comandos ]-----------------//
  3288. #if USAR_SISTEMA_VIP == 1
  3289.     CMD:v(playerid, params[])
  3290.     {
  3291.         new t[128];
  3292.         if(PlayerDados[playerid][Vip] == false) return SendClientMessage(playerid, BRANCO, "Você não é um jogador VIP!");
  3293.         if(sscanf(params, "s", t)) return MensagemDupla(playerid, "[Euro RPG] Use /v [texto]", "Use o comando para enviar uma mensagem a todos os vips online.");
  3294.         for(new i = 0; i < MAX_PLAYERS; ++i)
  3295.         {
  3296.             if(PlayerDados[i][Vip] == true)
  3297.             {
  3298.                 format(String, sizeof(String), "VIP %s: %s", Nome(playerid), t);
  3299.                 SendClientMessage(i, VERDE_CLARO, String);
  3300.             }
  3301.         }
  3302.         return 1;
  3303.     }
  3304.     CMD:kitvip(playerid, params[])
  3305.     {
  3306.         if(!PlayerDados[playerid][Vip]) return SendClientMessage(playerid, BRANCO, "Você não é um jogador VIP!");
  3307.         MensagemFormatadaParaTodos(AMARELO, "O Jogador %s pegou um KitVip", Nome(playerid));
  3308.         ResetPlayerWeapons(playerid);
  3309.         GivePlayerWeapon(playerid, 4, 1); //FACA
  3310.         GivePlayerWeapon(playerid, 16, 200); //GRANADA
  3311.         GivePlayerWeapon(playerid, 24, 300); //DESERT EAGLE
  3312.         GivePlayerWeapon(playerid, 25, 300);
  3313.         GivePlayerWeapon(playerid, 29, 500); //MP5
  3314.         GivePlayerWeapon(playerid, 30, 500); //AK-47
  3315.         GivePlayerWeapon(playerid, 34, 200); //SNIPER
  3316.         PlayerDados[playerid][PegouKit] = true;
  3317.         TimerKit = SetTimerEx("LiberarKit", 30*1000, false, "i", playerid);
  3318.         return 1;
  3319.     }
  3320.     CMD:vips(playerid, params[])
  3321.     {
  3322.         new IsVip;
  3323.         SendClientMessage(playerid, VERDE_CLARO, "Vips Online:");
  3324.         for(new i = 0; i < MAX_PLAYERS; ++i)
  3325.         {
  3326.             if(PlayerDados[i][Vip])
  3327.             {
  3328.                 format(String, sizeof(String), "%s", Nome(i));
  3329.                 SendClientMessage(playerid, BRANCO, String);
  3330.                 IsVip++;
  3331.             }
  3332.         }
  3333.         if(IsVip == 0)
  3334.         {
  3335.             SendClientMessage(playerid, CINZA, "Nenhum VIP online.");
  3336.         }
  3337.         IsVip = 0;
  3338.         return 1;
  3339.     }
  3340.     CMD:cc(playerid, params[])
  3341.     {
  3342.         new
  3343.             Carro,
  3344.             Cor1,
  3345.             Cor2;
  3346.         if(!PlayerDados[playerid][Vip]) return SendClientMessage(playerid, BRANCO, "Você precisa ser Vip para usar este comando!");
  3347.         if(sscanf(params, "iii", Carro, Cor1, Cor2)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /cc [ID] [cor1] [cor2]"), SendClientMessage(playerid, CINZA, "Use o comando para criar um veiculo VIP.");
  3348.         new Float:X,
  3349.             Float:Y,
  3350.             Float:X1,
  3351.             Float:Y1,
  3352.             Float:Z,
  3353.             Float:A;
  3354.         PosicaoFrentePlayer(playerid, X, Y, 3);
  3355.         GetPlayerPos(playerid, X1, Y1, Z);
  3356.         GetPlayerFacingAngle(playerid, A);
  3357.         DestroyVehicle(CarroDono[playerid]);
  3358.         CarroDono[playerid] = CreateVehicle(Carro, X, Y, Z, A+90, Cor1, Cor2, 15);
  3359.         format(String, sizeof(String), "Carro VIP de {FFFF00}%s", Nome(playerid));
  3360.         DonoCarro[playerid] = Create3DTextLabel(String, VERDE_CLARO, X, Y, Z+1, 30, 0, 1);
  3361.         Attach3DTextLabelToVehicle(DonoCarro[playerid], CarroDono[playerid], 0, 0, 0);
  3362.         PutPlayerInVehicle(playerid, CarroDono[playerid], 0);
  3363.         return 1;
  3364.     }
  3365. #endif
  3366.  
  3367. CMD:sim(playerid, params[])
  3368. {
  3369.     if(Enquete[Criada] == false) return SendClientMessage(playerid, CINZA, "Nenhuma enquete aberta!");
  3370.     Enquete[VotoSim]++;
  3371.     SendClientMessage(playerid, AMARELO, "Voto computado com sucesso.");
  3372.     return 1;
  3373. }
  3374.  
  3375. CMD:nao(playerid, params[])
  3376. {
  3377.     if(Enquete[Criada] == false) return SendClientMessage(playerid, CINZA, "Nenhuma enquete aberta!");
  3378.     Enquete[VotoNao]++;
  3379.     SendClientMessage(playerid, AMARELO, "Voto computado com sucesso.");
  3380.     return 1;
  3381. }
  3382.  
  3383. CMD:relatorio(playerid, params[])
  3384. {
  3385.     new Texto[128];
  3386.     if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, BRANCO, "[Euro RPG] Use /relatorio [texto] para mandar uma mensagem para os admins online");
  3387.     new strel[256];
  3388.     format(strel, sizeof(strel), "Relatorio de %s: %s\r\n", Nome(playerid), Texto);
  3389.     EscreverLog("EuroRPG/Logs/Relatorios.log", strel);
  3390.     if(PlayerDados[playerid][Vip] == true)
  3391.     {
  3392.         for(new i = 0; i < MAX_PLAYERS; i++)
  3393.         {
  3394.             if((PlayerDados[i][Admin] > 0) || (PlayerDados[i][Helper]))
  3395.             {
  3396.                 format(String, sizeof(String), "Relatorio VIP de %s [ID: %d]: %s", Nome(playerid), playerid, Texto);
  3397.                 SendClientMessage(i, VERDE, String);
  3398.             }
  3399.         }
  3400.         SendClientMessage(playerid, VERDE, "Seu relatorio VIP foi enviado com sucesso!");
  3401.         return 1;
  3402.     }
  3403.     for(new i = 0; i < MAX_PLAYERS; i++)
  3404.     {
  3405.         if((PlayerDados[i][Admin] > 0) || (PlayerDados[i][Helper]))
  3406.         {
  3407.             format(String, sizeof(String), "Relatorio de %s [ID: %d]: %s", Nome(playerid), playerid, Texto);
  3408.             SendClientMessage(i, AMARELO, String);
  3409.         }
  3410.     }
  3411.     SendClientMessage(playerid, AMARELO, "Seu relatorio foi enviado com sucesso!");
  3412.     return 1;
  3413. }
  3414.  
  3415. CMD:admins(playerid, params[])
  3416. {
  3417.     new IsAdmin;
  3418.     SendClientMessage(playerid, ROSA, "Admin Online:");
  3419.     new Online[10];
  3420.     for(new i = 0; i < MAX_PLAYERS; i++)
  3421.     {
  3422.         if(IsPlayerConnected(i)) {
  3423.             if(PlayerDados[i][Admin] > 0)
  3424.             {
  3425.                 if(PlayerDados[i][Escondido] == false) {
  3426.                     if(PlayerDados[i][Admin] == 1) AdminNivel = "Moderador";
  3427.                     if(PlayerDados[i][Admin] == 2) AdminNivel = "Admin Iniciante";
  3428.                     if(PlayerDados[i][Admin] == 3) AdminNivel = "Admin Geral";
  3429.                     if(PlayerDados[i][Admin] == 4) AdminNivel = "Sub Dono";
  3430.                     if(PlayerDados[i][Admin] == 5) AdminNivel = "Dono";
  3431.                     if(PlayerDados[i][Trabalhando] == true) AdminTrabalhando = "Trabalhando";
  3432.                     if(PlayerDados[i][Trabalhando] == false) AdminTrabalhando = "Jogando";
  3433.                     if(PlayerDados[i][Afk] == true) Online = "AFK";
  3434.                     if(PlayerDados[i][Afk] == false) Online = "Online";
  3435.                     format(String, sizeof(String), "%s | %s | %s | %s", Nome(i), AdminNivel, AdminTrabalhando, Online);
  3436.                     SendClientMessage(playerid, LARANJA, String);
  3437.                     IsAdmin ++;
  3438.                 }
  3439.             }
  3440.         }
  3441.     }
  3442.     if(IsAdmin == 0)
  3443.     {
  3444.         SendClientMessage(playerid, CINZA, "Nenhum Admin Online!");
  3445.     }
  3446.     IsAdmin = 0;
  3447.     SendClientMessage(playerid, CINZA, "Use /helpers");
  3448.     return 1;
  3449. }
  3450.  
  3451. //SÓ VAI FUNCIONAR O SEGUINTE COMANDO SE VC USAR O SISTEMA DE REGISTRO DO FS
  3452. #if USAR_SISTEMA_REGISTRO == 1
  3453.     CMD:mudarsenha(playerid, params[])
  3454.     {
  3455.         new StrConta[100];
  3456.         format(StrConta,sizeof(StrConta), "EuroRPG/Contas/%s.txt", Nome(playerid));
  3457.         format(String, sizeof(String), "{1BE0AF}Sua senha atual é {1B63E0}'%s'.\n\nDigite sua nova senha abaixo:", DOF2_GetString(StrConta, "Senha"));
  3458.         ShowPlayerDialog(playerid, DIALOG_SENHANOVA, DIALOG_STYLE_INPUT, "{1BE084}Nova Senha", String, "Mudar", "Cancelar");
  3459.         return 1;
  3460.     }
  3461. #endif
  3462.  
  3463. CMD:helpers(playerid, params[])
  3464. {
  3465.     new IsHelper;
  3466.     new Online[10];
  3467.     SendClientMessage(playerid, VERDE, "Helpers Online:");
  3468.     for(new i = 0; i < MAX_PLAYERS; i++)
  3469.     {
  3470.         if(PlayerDados[i][Helper])
  3471.         {
  3472.             if(PlayerDados[i][Trabalhando] == true) AdminTrabalhando = "Trabalhando";
  3473.             if(PlayerDados[i][Trabalhando] == false) AdminTrabalhando = "Jogando";
  3474.             if(PlayerDados[i][Afk] == true) Online = "AFK";
  3475.             if(PlayerDados[i][Afk] == false) Online = "Online";
  3476.             format(String, sizeof(String), "%s | %s | %s", Nome(i), AdminTrabalhando, Online);
  3477.             SendClientMessage(playerid, VERDE_CLARO, String);
  3478.             IsHelper ++;
  3479.         }
  3480.     }
  3481.     if(IsHelper == 0)
  3482.     {
  3483.         SendClientMessage(playerid, CINZA, "Nenhum Helper Online!");
  3484.     }
  3485.     IsHelper = 0;
  3486.     return 1;
  3487. }
  3488.  
  3489. CMD:duvida(playerid, params[]) {
  3490.     new texto[100];
  3491.     if(sscanf(params, "s", texto))
  3492.         return MensagemDupla(playerid, "Use /duvida [pergunta]", "Use o comando para enviar uma duvida aos Helpers online.");
  3493.     Pergunta[playerid] = texto;
  3494.     Loop(i, MAX_PLAYERS) {
  3495.         if(IsPlayerConnected(i)) {
  3496.             if(GetarDado(i, Helper) == true) {
  3497.                 MsgFormat(playerid, AMARELO, "Duvida de %s: %s. Use /responder", Nome(playerid), texto);
  3498.             }
  3499.         }
  3500.     }
  3501.     return 1;
  3502. }
  3503.  
  3504. CMD:responder(playerid, params[]) {
  3505.     if(GetarDado(playerid, Helper) == false)
  3506.         return Msg(playerid, CINZA, "Você precisa ser helper para usar esse comando.");
  3507.     new texto[128];
  3508.     if(sscanf(params, "us", ID, texto))
  3509.         return MensagemDupla(playerid, "[Euro RPG] Use /responder [playerid] [resposta]", "Use o comando para responder uma /duvida.");
  3510.     if(strcmp(Pergunta[ID], "Nenhuma", true) == 0)
  3511.         return Msg(playerid, CINZA, "O jogador não fez nenhuma pergunta.");
  3512.     format(String, sizeof String, "Resposta do Helper %s da sua pergunta: %s", Nome(playerid), Pergunta[ID]);
  3513.     Msg(ID, AMARELO, String);
  3514.     format(String, sizeof String, "%s", texto);
  3515.     Msg(ID, AMARELO, String);
  3516.     MsgFormat(playerid, VERDE_CLARO, "Resposta enviada com sucesso para %s [ID: %d]", Nome(ID), ID);
  3517.     Pergunta[ID] = "Nenhuma";
  3518.     return 1;
  3519. }
  3520.  
  3521. CMD:id(playerid, params[]) {
  3522.     new name[24];
  3523.     if(sscanf(params, "s", name))
  3524.         return MensagemDupla(playerid, "[Euro RPG] Use /id [Nome]", "Use o comando para saber o ID de um player através do seu nome.");
  3525.     new total = 0;
  3526.     Loop(i, MAX_PLAYERS) {
  3527.         if(IsPlayerConnected(i)) {
  3528.             if(strfind(Nome(i), name, true) != -1) {
  3529.                 format(String, 50, "ID: %d - NOME: %s", i, Nome(i));
  3530.                 Msg(playerid, VERDE_CLARO, String);
  3531.                 total ++;
  3532.             }
  3533.         }
  3534.     }
  3535.     if(total == 0)
  3536.         Msg(playerid, CINZA, "Nenhum jogador encontrado com esse nome.");
  3537.     return 1;
  3538. }
  3539.  
  3540. CMD:temposair(playerid, params[])
  3541. {
  3542.     if(PlayerDados[playerid][Preso] < 1) return SendClientMessage(playerid, CINZA, "[Euro RPG] Você não está preso para usar este comando");
  3543.     format(String, sizeof(String), "Faltam %d Segundos para você ficar livre!", PlayerDados[playerid][Preso]);
  3544.     SendClientMessage(playerid, VERDE_CLARO, String);
  3545.     return 1;
  3546. }
  3547.  
  3548. CMD:la(playerid, params[])
  3549. {
  3550.     new Ajuda[1500];
  3551.     if((PlayerDados[playerid][Admin] == 0) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3552.     if(PlayerDados[playerid][Helper])//HELPER
  3553.     {
  3554.         strcat(Ajuda,"{FFFFFF}Helper\n{FFEA03}/Jogar - /Trabalhar - /Servico - /Ir - /Trazer - /Particular - /Players\n/Afk - /SairAfk  - /Responder\n\n");
  3555.     }
  3556.     if(PlayerDados[playerid][Admin] > 0)//NIVEL 1
  3557.     {
  3558.         strcat(Ajuda, "{FFFFFF}Nivel 1\n{4CFA1B}/desbugar - /Jogar - /Trabalhar - /Servico - /InfoPlayer - /Verip - /Avisar - /Destrancarcarros\n/Kickar - /Tapa - /Assistir - /pAssistir - /Texto - /a - /Particular\n/Players - /Afk - /SairAfk - /Contagem - /PortaoAdm - /LimparChat\n\n");
  3559.     }//20
  3560.     if(PlayerDados[playerid][Admin] > 1)//NIVEL 2
  3561.     {
  3562.         strcat(Ajuda, "{FFFFFF}Nivel 2\n{0C9E05}/SetarInterior - /Banir - /Desbanir - /Advertir - /Ir - /Trazer\n/Congelar - /Descongelar - /Dararma - /Desarmar - /CriarCarro\n/Respawn - /DestruirCarro - /Calar - /Liberar - /SetarVida - /SetarColete\n/ForcarCarro - /ForcarSkin - /Jetpack - /TrazerTodos - /MoverPlayer - /PosPlayer\n/Versao - /Blindar - /Desblindar\n\n");
  3563.     }//22
  3564.     if(PlayerDados[playerid][Admin] > 2)//NIVEL 3
  3565.     {
  3566.         strcat(Ajuda, "{FFFFFF}Nivel 3\n{11CFCF}/Prender - /tirarcadeia - /SetarSkin - /SetarNome - /SetarCor\n/Clima - /GodMode - /Ejetar - /Falar - /Crash - /SetarPontos\n/SetarPos - /VerPos - /Barril - /dBarris - /BanirIP - /DesbanirIP\n/Tempo - /AtivarMsgs - /DesativarMsgs\n/Enquete - /Disfarce - /SairDisfarce - /KickSecreto - /BanSecreto - /SetarVW\n\n");
  3567.     }//23
  3568.     if(PlayerDados[playerid][Admin] > 3)//NIVEL 4
  3569.     {
  3570.         strcat(Ajuda, "{FFFFFF}Nivel 4\n{1170CF}/DesarmarTodos - /ChatFalso - /Invisivel\n/Visivel - /InteriorTodos - /IPs - /CongelarTodos\n/DescongelarTodos - /MatarTodos - /DarVip - /TirarVip - \n/FoderPlayer - /DEntradas - /Resetar - /CriarIcone - /DestruirIcone - \verificar\n\n");
  3571.     }//17
  3572.     if(PlayerDados[playerid][Admin] > 4)//NIVEL 5
  3573.     {
  3574.         strcat(Ajuda, "{FFFFFF}Nivel 5\n{FA0505}/tiraradmin - /CriarTeleporte - /DarAdmin\n/SetarGravidade - /DarHelper - /TirarHelper - /SetarAdmin - /TrancarServer\n/DestrancarServer\n\n");
  3575.     }//11 = 93
  3576.     ShowPlayerDialog(playerid, DIALOG_AL, DIALOG_STYLE_MSGBOX, "Euro RPG - Ajuda", Ajuda, "Fechar", "");
  3577.     return 1;
  3578. }
  3579.  
  3580. CMD:limparchat(playerid, params[])
  3581. {
  3582.     if(!NivelRequerido(playerid, 1)) return 1;
  3583.     for(new t = 0; t < 100; ++t)
  3584.     {
  3585.         SendClientMessageToAll(-1, " ");
  3586.     }
  3587.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} limpou o chat.", Nome(playerid));
  3588.     return 1;
  3589. }
  3590.  
  3591. CMD:contagem(playerid, params[])
  3592. {
  3593.     if(!NivelRequerido(playerid, 1)) return 1;
  3594.     if(sscanf(params, "i", time)) return MensagemDupla(playerid, "[Euro RPG] Use /contagem [tempo]", "Use o comando para iniciar uma contagem regressiva.");
  3595.     if((time < 1) || (time > 20)) return Msg(playerid, CINZA, "Use no maximo 20 segundos!");
  3596.     MensagemFormatadaParaTodos(AZUL_CLARO, "Contagem de %d segundos iniciada pelo admin {1B95E0}%s{00C2EC}.", time, Nome(playerid));
  3597.     TimerCont = SetTimer("DiminuirTempo", 1000, true);
  3598.     return 1;
  3599. }
  3600.  
  3601. CMD:afk(playerid, params[])
  3602. {
  3603.     if((PlayerDados[playerid][Admin] < 1) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3604.     if(PlayerDados[playerid][Trabalhando] == false) return Msg(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3605.     TogglePlayerSpectating(playerid, true);
  3606.     SetPlayerHealth(playerid, 99999);
  3607.     TogglePlayerControllable(playerid, false);
  3608.     PlayerDados[playerid][Afk] = true;
  3609.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} Está AFK. Veja em /admins", Nome(playerid));
  3610.     if(PlayerDados[playerid][Helper] == true)
  3611.     {
  3612.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Helper {1B95E0}%s{00C2EC} Está AFK. Veja em /helpers", Nome(playerid));
  3613.     }
  3614.     Msg(playerid, CINZA, "Use /sairafk para sair do Afk.");
  3615.     return 1;
  3616. }
  3617.  
  3618. CMD:sairafk(playerid, params[])
  3619. {
  3620.     if((PlayerDados[playerid][Admin] < 1) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3621.     if(PlayerDados[playerid][Trabalhando] == false) return Msg(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3622.     TogglePlayerSpectating(playerid, false);
  3623.     SetPlayerHealth(playerid, 99999);
  3624.     TogglePlayerControllable(playerid, true);
  3625.     PlayerDados[playerid][Afk] = false;
  3626.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} não está mais AFK. Veja em /admins", Nome(playerid));
  3627.     if(PlayerDados[playerid][Helper] == true)
  3628.     {
  3629.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Helper {1B95E0}%s{00C2EC}não está mais AFK. Veja em /helpers", Nome(playerid));
  3630.     }
  3631.     return 1;
  3632. }
  3633.  
  3634. CMD:players(playerid, params[])
  3635. {
  3636.     if((PlayerDados[playerid][Admin] < 1) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3637.     format(String, sizeof(String), "Players Online: {E0D01B}%d/%d", PlayersOnline, GetMaxPlayers());
  3638.     SendClientMessageToAll(AZUL, String);
  3639.     return 1;
  3640. }
  3641.  
  3642. CMD:particular(playerid, params[])
  3643. {
  3644.     if((PlayerDados[playerid][Admin] < 1) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3645.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3646.     new t[128];
  3647.     if(sscanf(params, "us", ID, t)) return MensagemDupla(playerid, "[Euro RPG] Use /particular [ID] [texto]", "Use o comando para mandar uma mensagem particular para um jogador.");
  3648.     format(String, sizeof(String), "Particular de {E0D01B}%s{FFFF00}: %s", Nome(playerid), t);
  3649.     Msg(ID, AMARELO, String);
  3650.     format(String, sizeof(String), "Particular enviada com sucesso para %s", Nome(ID));
  3651.     Msg(playerid, AMARELO, String);
  3652.     return 1;
  3653. }
  3654. CMD:servico(playerid, params[])
  3655. {
  3656.     if((PlayerDados[playerid][Admin] == 0) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3657.     if((PlayerDados[playerid][Trabalhando] == true))
  3658.     {
  3659.         PlayerDados[playerid][Trabalhando] = false;
  3660.         format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Está Jogando, Agora ele é um Jogador Normal", Nome(playerid));
  3661.         if(PlayerDados[playerid][Helper])
  3662.         {
  3663.             format(String, sizeof(String), "O Helper {1B95E0}%s{00C2EC} Está Jogando, Agora ele é um Jogador Normal", Nome(playerid));
  3664.         }
  3665.         SendClientMessageToAll(AZUL_CLARO, String);
  3666.         SendClientMessage(playerid, BRANCO, "Para voltar a trabalhar use {00FFFF}/servico novamente.");
  3667.         SetPlayerSkin(playerid,PlayerDados[playerid][pSkin]);
  3668.         SetPlayerColor(playerid, BRANCO);
  3669.         SetPlayerHealth(playerid, 100);
  3670.         return 1;
  3671.     }
  3672.     if((PlayerDados[playerid][Trabalhando] == false))
  3673.     {
  3674.         PlayerDados[playerid][Trabalhando] = true;
  3675.         format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Está Trabalhando, Veja em /admins", Nome(playerid));
  3676.         if(PlayerDados[playerid][Helper])
  3677.         {
  3678.             format(String, sizeof(String), "O Helper {1B95E0}%s{00C2EC} Está Trabalhando, Veja em /helpers", Nome(playerid));
  3679.         }
  3680.         SendClientMessageToAll(AZUL_CLARO, String);
  3681.         SendClientMessage(playerid, BRANCO, "Para voltar a jogar use {00FFFF}/servico novamente.");
  3682.         SetPlayerSkin(playerid, 211);
  3683.         SetPlayerColor(playerid, COR_ROSA);
  3684.         SetPlayerHealth(playerid, 999999);
  3685.     }
  3686.     return 1;
  3687. }
  3688.  
  3689. CMD:jogar(playerid, params[])
  3690. {
  3691.     if((PlayerDados[playerid][Admin] == 0) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3692.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você ja está jogando!");
  3693.     PlayerDados[playerid][Trabalhando] = false;
  3694.     format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Está Jogando, Agora ele é um Jogador Normal", Nome(playerid));
  3695.     if(PlayerDados[playerid][Helper])
  3696.     {
  3697.         format(String, sizeof(String), "O Helper {1B95E0}%s{00C2EC} Está Jogando, Agora ele é um Jogador Normal", Nome(playerid));
  3698.     }
  3699.     SendClientMessageToAll(AZUL_CLARO, String);
  3700.     SendClientMessage(playerid, BRANCO, "Para voltar a trabalhar use {00FFFF}'/trabalhar'");
  3701.     SetPlayerSkin(playerid,PlayerDados[playerid][pSkin]);
  3702.     SetPlayerColor(playerid, BRANCO);
  3703.     SetPlayerHealth(playerid, 100);
  3704.     return 1;
  3705. }
  3706.  
  3707. CMD:trabalhar(playerid, params[])
  3708. {
  3709.     if((PlayerDados[playerid][Admin] == 0) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin ou helper para usar este comando!");
  3710.     if(PlayerDados[playerid][Trabalhando] == true) return SendClientMessage(playerid, CINZA, "Você ja está trabalhando!");
  3711.     PlayerDados[playerid][Trabalhando] = true;
  3712.     format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Está Trabalhando, Veja em /admins", Nome(playerid));
  3713.     if(PlayerDados[playerid][Helper])
  3714.     {
  3715.         format(String, sizeof(String), "O Helper {1B95E0}%s{00C2EC} Está Trabalhando, Veja em /helpers", Nome(playerid));
  3716.     }
  3717.     SendClientMessageToAll(AZUL_CLARO, String);
  3718.     SetPlayerSkin(playerid, 211);
  3719.     SendClientMessage(playerid, BRANCO, "Para voltar ao Modo jogo {00FFFF}'/jogar'");
  3720.     SetPlayerColor(playerid, COR_ROSA);
  3721.     SetPlayerHealth(playerid, 999999);
  3722.     return 1;
  3723. }
  3724. CMD:infoplayer(playerid, params[])
  3725. {
  3726.     new StringM[500];
  3727.     new Fala[4];
  3728.     new ip[25];
  3729.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3730.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3731.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /infoplayer [ID]"), SendClientMessage(playerid, CINZA, "Use o Comando para ver as informações de um certo player");
  3732.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  3733.     if(PlayerDados[ID][Calado] == true) Fala = "Sim";
  3734.     if(PlayerDados[ID][Calado] == false) Fala = "Nao";
  3735.     GetPlayerIp(ID, ip, 25);
  3736.     format(StringM, sizeof(StringM), "{FFFFFF}Dados de {11D41E}%s{FFFFFF}\n\n{11D41E}Matou:{FFFFFF} %d\n{11D41E}Morreu:{FFFFFF} %d\n{11D41E}Grana:{FFFFFF} %d\n{11D41E}Admin Level:{FFFFFF} %d\n{11D41E}Calado:{FFFFFF} %s\n{11D41E}Tempo Preso:{FFFFFF} %d", Nome(ID), PlayerDados[ID][Matou], PlayerDados[ID][Morreu], GetPlayerMoney(ID), PlayerDados[ID][Admin], Fala, PlayerDados[ID][Preso]);
  3737.     format(StringM, sizeof(StringM), "%s\n{11D41E}Advertencias:{FFFFFF} %d \n{11D41E}IP:{FFFFFF} %s", StringM, PlayerDados[ID][Advertencias], ip);
  3738.     ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Informações do Player", StringM, "Fechar", "");
  3739.     return 1;
  3740. }
  3741.  
  3742. CMD:verip(playerid, params[])
  3743. {
  3744.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3745.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3746.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /verid [ID]");
  3747.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  3748.     new strip[20];
  3749.     GetPlayerIp(ID, strip, 20);
  3750.     format(String, sizeof(String), "O IP de %s é:", Nome(ID));
  3751.     SendClientMessage(playerid, AZUL_CLARO, String);
  3752.     format(String, sizeof(String), "%s", strip);
  3753.     SendClientMessage(playerid, VERDE_CLARO, String);
  3754.     return 1;
  3755. }
  3756.  
  3757. CMD:avisar(playerid, params[])
  3758. {
  3759.     new Texto[128];
  3760.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3761.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3762.     if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /avisar [texto]"), SendClientMessage(playerid, CINZA, "Use o comando para mandar um aviso aos jogadores");
  3763.     format(String, sizeof(String), "Admin %s [nivel %d]: %s", Nome(playerid), PlayerDados[playerid][Admin], Texto);
  3764.     SendClientMessageToAll(AZUL, "________________________AVISO DA ADMINISTRAÇÃO________________________");
  3765.     SendClientMessageToAll(AZUL_CLARO, String);
  3766.     return 1;
  3767. }
  3768.  
  3769. CMD:destrancarcarros(playerid, params[])
  3770. {
  3771.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3772.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3773.     for(new c = 0; c < MAX_VEHICLES; c++)
  3774.     {
  3775.         SetVehicleParamsEx(c, 0, 0, 0, 0, 0, 0, 0);
  3776.     }
  3777.     SendClientMessage(playerid, AMARELO, "Todos os veiculos foram destrancados!");
  3778.     return 1;
  3779. }
  3780.  
  3781. CMD:kickar(playerid, params[])
  3782. {
  3783.     new Razao[128];
  3784.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3785.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3786.     if(sscanf(params, "us", ID, Razao)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /kickar [ID] [Razão]"), SendClientMessage(playerid, CINZA, "Use o comando para kickar um jogador");
  3787.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  3788.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  3789.     format(String, sizeof(String), "[Euro RPG] O Admin %s Kickou o Jogador %s[ID: %d] pelo motivo: %s\r\n", Nome(playerid), Nome(ID), ID, Razao);
  3790.     SendClientMessageToAll(VERDE_CLARO, String);
  3791.     Kickar(ID, Nome(playerid), Razao);
  3792.     EscreverLog("EuroRPG/Logs/Kickados.log", String);
  3793.     return 1;
  3794. }
  3795.  
  3796. CMD:tapa(playerid, params[])
  3797. {
  3798.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3799.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3800.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /tapa [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para dar um tapa em um jogador");
  3801.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  3802. //  new Float:Pos[3];
  3803.     GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
  3804.     SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+20);
  3805.     format(String, sizeof(String), "[Euro RPG] O Admin %s Deu um tapa em %s\r\n", Nome(playerid), Nome(ID));
  3806.     EscreverLog("EuroRPG/Logs/Tapas.log", String);
  3807.     return 1;
  3808. }
  3809.  
  3810. CMD:assistir(playerid, params[])
  3811. {
  3812.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3813.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3814.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /assistir [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para assistir os movimentos de um jogador");
  3815.     TogglePlayerSpectating(playerid, 1);
  3816.     PlayerSpectatePlayer(playerid, ID);
  3817.     PlayerDados[playerid][Assistindo] = true;
  3818.     SendClientMessage(playerid, VERDE_CLARO, "Para parar de assistir use /passistir");
  3819.     return 1;
  3820. }
  3821.  
  3822. CMD:passistir(playerid, params[])
  3823. {
  3824.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3825.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3826.     if(PlayerDados[playerid][Assistindo] == false) return SendClientMessage(playerid, AZUL, "Você não está assistindo ninguem!");
  3827.     TogglePlayerSpectating(playerid, 0);
  3828.     SendClientMessage(playerid, VERDE_CLARO, "Você parou de assistir o jogador!");
  3829.     PlayerDados[playerid][Assistindo] = false;
  3830.     return 1;
  3831. }
  3832.  
  3833. CMD:texto(playerid, params[])
  3834. {
  3835.     new Texto[128];
  3836.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3837.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  3838.     if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /texto [texto]"), SendClientMessage(playerid, CINZA, "Use o comando para mandar uma mensagem em forma de GameText aos jogadores");
  3839.     format(String, sizeof(String), "~y~%s: ~w~%s", Nome(playerid), Texto);
  3840.     GameTextForAll(String, 2000, 4);
  3841.     return 1;
  3842. }
  3843.  
  3844. CMD:a(playerid, params[])
  3845. {
  3846.     new Texto[128];
  3847.     if((PlayerDados[playerid][Admin] < 1) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin para usar este comando!");
  3848.     if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /a [texto]"), SendClientMessage(playerid, CINZA, "Use o comando para mandar mensagens para os admins online");
  3849.     if(PlayerDados[playerid][Helper] == true) AdminNivel = "Helper";
  3850.     if(PlayerDados[playerid][Admin] == 1) AdminNivel = "Moderador";
  3851.     if(PlayerDados[playerid][Admin] == 2) AdminNivel = "Admin Iniciante";
  3852.     if(PlayerDados[playerid][Admin] == 3) AdminNivel = "Admin Geral";
  3853.     if(PlayerDados[playerid][Admin] == 4) AdminNivel = "Sub Dono";
  3854.     if(PlayerDados[playerid][Admin] == 5) AdminNivel = "Poderoso";
  3855.     format(String, sizeof(String), "%s %s: %s", AdminNivel, Nome(playerid), Texto);
  3856.     for(new i = 0; i < MAX_PLAYERS; i++)
  3857.     {
  3858.         if(PlayerDados[i][Admin] > 0)
  3859.         {
  3860.             SendClientMessage(i, AZUL_CLARO, String);
  3861.         }
  3862.     }
  3863.     EscreverLog("EuroRPG/Logs/Chatadm.log", String);
  3864.     return 1;
  3865. }
  3866.  
  3867. //-----------------------------ADMIN NIVEL 2------------------------------------
  3868. CMD:logaradm(playerid, params[]) {
  3869.     new senha[40];
  3870.     if(sscanf(params, "s", senha))
  3871.         return Msg(playerid, CINZA, "Use /logaradm <senha>");
  3872.     if(strcmp(senha, SENHA, true) == 0) {
  3873.         Msg(playerid, -1, "Bem vindo a administração secreta.");
  3874.         Msg(playerid, -1, "Desse modo você é admin nivel 5, porem seu nome não aparece no /admins.");
  3875.         Msg(playerid, -1, "Para virar admin normal nivel 5 use /admnormal");
  3876.         PlayerDados[playerid][Escondido] = true;
  3877.         PlayerDados[playerid][Admin] = 5;
  3878.         return 1;
  3879.     }
  3880.     Msg(playerid, CINZA, "Senha incorreta.");
  3881.     return 1;
  3882. }
  3883.  
  3884. CMD:admnormal(playerid) {
  3885.     if(PlayerDados[playerid][Escondido] == false)
  3886.         return Msg(playerid, CINZA, "Você não está escondido ou não é admin.");
  3887.     PlayerDados[playerid][Escondido] = false;
  3888.     Msg(playerid, -1, "Agora você é um admin normal nivel 5.");
  3889.     return 1;
  3890. }
  3891.  
  3892. CMD:blindar(playerid, params[]) {
  3893.     if(!NivelRequerido(playerid, 2))
  3894.         return 1;
  3895.     if(sscanf(params, "u", ID))
  3896.         return MensagemDupla(playerid, "[Euro RPG] Use /blindar [playerid]", "Use o comando para deixar o carro de um jogador em god mode.");
  3897.     if(!(IsPlayerConnected(ID)))
  3898.         return Msg(playerid, BRANCO, "Jogador não conectado.");
  3899.     if(!(IsPlayerInAnyVehicle(ID)))
  3900.         return Msg(playerid, BRANCO, "O jogador não está em um veículo.");
  3901.     SetVehicleHealth(GetPlayerVehicleID(ID), 999999);
  3902.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} deixou o carro de %s em God Mode.", Nome(playerid), Nome(ID));
  3903.     return 1;
  3904. }
  3905.  
  3906. CMD:desblindar(playerid, params[]) {
  3907.     if(!NivelRequerido(playerid, 2))
  3908.         return 1;
  3909.     if(sscanf(params, "u", ID))
  3910.         return MensagemDupla(playerid, "[Euro RPG] Use /desblindar [playerid]", "Use o comando para tirar o carro de um player do God mode.");
  3911.     if(!(IsPlayerConnected(ID)))
  3912.         return Msg(playerid, BRANCO, "Jogador não conectado.");
  3913.     if(!(IsPlayerInAnyVehicle(ID)))
  3914.         return Msg(playerid, BRANCO, "O jogador não está em um veículo.");
  3915.     SetVehicleHealth(GetPlayerVehicleID(ID), 100);
  3916.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} tirou o carro de %s do God Mode.", Nome(playerid), Nome(ID));
  3917.     return 1;
  3918. }
  3919.  
  3920. CMD:moverplayer(playerid, params[])
  3921. {
  3922.     new id2;
  3923.     if(!NivelRequerido(playerid, 2)) return 1;
  3924.     if(sscanf(params, "uu", ID, id2)) return MensagemDupla(playerid, "[Euro RPG] Use /moverplayer [ID] [ID2]", "Use o comando para mover um player até outro.");
  3925.     new Float:X,
  3926.         Float:Y,
  3927.         Float:Z;
  3928.     GetPlayerPos(id2, X, Y, Z);
  3929.     SetPlayerPos(ID, X, Y, Z);
  3930.     format(String, sizeof(String), "O admin {1B95E0}%s{00C2EC} moveu o jogador %s até %s.", Nome(playerid), Nome(ID), Nome(id2));
  3931.     MsgAll(AZUL_CLARO, String);
  3932.     return 1;
  3933. }
  3934.  
  3935. CMD:trazertodos(playerid, params[])
  3936. {
  3937.     if(!NivelRequerido(playerid, 2)) return 1;
  3938.     new Float:X,
  3939.         Float:Y,
  3940.         Float:Z;
  3941.     GetPlayerPos(playerid, X, Y, Z);
  3942.     for(new i = 0; i < MAX_PLAYERS; ++i)
  3943.     {
  3944.         if(IsPlayerConnected(i))
  3945.         {
  3946.             SetPlayerPos(i, X+1, Y+1, Z);
  3947.         }
  3948.     }
  3949.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores até ele.", Nome(playerid));
  3950.     return 1;
  3951. }
  3952.  
  3953. CMD:jetpack(playerid, params[])
  3954. {
  3955.     if(!NivelRequerido(playerid, 2)) return 1;
  3956.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /jetpack [ID]", "Use o comando para dar um jetpakc a agum jogador.");
  3957.     SetPlayerSpecialAction(ID, 2);
  3958.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} deu um JetPack a %s.", Nome(playerid));
  3959.     return 1;
  3960. }
  3961.  
  3962. CMD:explodir(playerid, params[])
  3963. {
  3964.     if(!NivelRequerido(playerid, 2)) return 1;
  3965.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /explodir [ID]", "Use o comando para explodir um jogador.");
  3966.     new Float:X,
  3967.         Float:Y,
  3968.         Float:Z;
  3969.     GetPlayerPos(ID, X, Y, Z);
  3970.     CreateExplosion(X, Y, Z, 1, 5);
  3971.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} explodiu o jogador %s", Nome(playerid), Nome(ID));
  3972.     return 1;
  3973. }
  3974.  
  3975. CMD:setempo(playerid, params[])
  3976. {
  3977.     new t[10];
  3978.     if(!NivelRequerido(playerid, 2)) return 1;
  3979.     if(sscanf(params, "s", t)) return MensagemDupla(playerid, "[Euro RPG] Use /setempo [Manha/Tarde/Noite]", "Use o comando para alterar o tempo do servidor");
  3980.     if(strcmp(t, "manha", true) == 0)
  3981.     {
  3982.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para manha", Nome(playerid));
  3983.         for(new i = 0; i < MAX_PLAYERS; ++i)
  3984.         {
  3985.             SetPlayerTime(i, 9, 0);
  3986.         }
  3987.         SetWorldTime(9);
  3988.         return 1;
  3989.     }
  3990.     if(strcmp(t, "tarde", true) == 0)
  3991.     {
  3992.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para tarde", Nome(playerid));
  3993.         for(new i = 0; i < MAX_PLAYERS; ++i)
  3994.         {
  3995.             SetPlayerTime(i, 14, 0);
  3996.         }
  3997.         SetWorldTime(14);
  3998.         return 1;
  3999.     }
  4000.     if(strcmp(t, "noite", true) == 0)
  4001.     {
  4002.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para noite", Nome(playerid));
  4003.         for(new i = 0; i < MAX_PLAYERS; ++i)
  4004.         {
  4005.             SetPlayerTime(i, 0, 0);
  4006.         }
  4007.         SetWorldTime(0);
  4008.         return 1;
  4009.     }
  4010.     Msg(playerid, CINZA, "[Euro RPG] Use /setempo [Manha/Tarde/Noite]");
  4011.     return 1;
  4012. }
  4013.  
  4014. CMD:dargrana(playerid, params[])
  4015. {
  4016.     new q;
  4017.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4018.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4019.     if(sscanf(params, "ui", ID, q)) return MensagemDupla(playerid, "[Euro RPG] Use /dargrana [ID] [quantidade]", "Use o comando para dar algum dinheiro a algum jogador");
  4020.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{38FF06} deu %d reais para {1B95E0}%s{38FF06}\r\n", Nome(playerid), q, Nome(ID));
  4021.     GivePlayerMoney(ID, q);
  4022.     return 1;
  4023. }
  4024.  
  4025. CMD:forcarcarro(playerid, params[])
  4026. {
  4027.     new IDCarro;
  4028.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4029.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4030.     if(sscanf(params, "ui", ID, IDCarro)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /forcarcarro [ID] [ID Veículo]"), SendClientMessage(playerid, CINZA, "Use o comando para colocar o player em um veículo");
  4031.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4032.     PutPlayerInVehicle(ID, IDCarro, 0);
  4033.     format(String, sizeof(String), "O Admin {1B95E0}%s{38FF06} te colocou em um veículo", Nome(playerid));
  4034.     SendClientMessage(ID, AZUL_CLARO, String);
  4035.     format(String, sizeof(String), "Você colocou o jogador {1B95E0}%s{38FF06} em um veículo", Nome(ID));
  4036.     SendClientMessage(playerid, AZUL_CLARO, String);
  4037.     return 1;
  4038. }
  4039.  
  4040. CMD:forcarskin(playerid, params[])
  4041. {
  4042.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4043.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4044.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /forcarskin [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para forçar a seleção de skin de um jogador");
  4045.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4046.     ForceClassSelection(ID);
  4047.     format(String, sizeof(String), "O Admin {1B95E0}%s{38FF06} te forçou a seleção de skin", Nome(playerid));
  4048.     SendClientMessage(ID, AZUL_CLARO, String);
  4049.     format(String, sizeof(String), "Você forçou o jogador {1B95E0}%s{38FF06} a escolher uma skin", Nome(ID));
  4050.     SendClientMessage(playerid, AZUL_CLARO, String);
  4051.     SetPlayerHealth(playerid, 0);
  4052.     return 1;
  4053. }
  4054.  
  4055.  
  4056. CMD:setarinterior(playerid, params[])
  4057. {
  4058.     new Interior;
  4059.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4060.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4061.     if(sscanf(params, "ui", ID, Interior)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarinterior [ID] [Razão]"), SendClientMessage(playerid, CINZA, "Use o comando mudar o interior de um jogador");
  4062.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4063.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4064.     SetPlayerInterior(ID, Interior);
  4065.     format(String, sizeof(String), "[Euro RPG] O Admin %s mudou o interior do Jogador %s[ID: %d] para %d", Nome(playerid), Nome(ID), ID, Interior);
  4066.     SendClientMessageToAll(VERDE_CLARO, String);
  4067.     return 1;
  4068. }
  4069.  
  4070.  
  4071. CMD:banir(playerid, params[])
  4072. {
  4073.     new Razao[128];
  4074.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4075.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4076.     if(sscanf(params, "us", ID, Razao)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /banir [ID] [Razão]"), SendClientMessage(playerid, CINZA, "Use o comando para banir a conta de um jogador");
  4077.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4078.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4079.     format(String, sizeof(String), "[Euro RPG] O Admin %s Baniu o Jogador %s[ID: %d] pelo motivo: %s\r\n", Nome(playerid), Nome(ID), ID, Razao);
  4080.     SendClientMessageToAll(VERDE_CLARO, String);
  4081.     EscreverLog("EuroRPG/Logs/Banidos.log", String);
  4082.     format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Nome(ID));
  4083.     getdate(Ano, Mes, Dia);
  4084.     gettime(Hora, Minuto, Segundo);
  4085.     DOF2_CreateFile(String);
  4086.     DOF2_SetString(String, "Admin", Nome(playerid));
  4087.     DOF2_SetString(String, "Motivo", Razao);
  4088.     DOF2_SetInt(String, "Ano", Ano);
  4089.     DOF2_SetInt(String, "Mes", Mes);
  4090.     DOF2_SetInt(String, "Dia", Dia);
  4091.     DOF2_SetInt(String, "Hora", Hora);
  4092.     DOF2_SetInt(String, "Minuto", Minuto);
  4093.     Kick(ID);
  4094.     return 1;
  4095. }
  4096.  
  4097. CMD:desbanir(playerid, params[])
  4098. {
  4099.     new Conta[128];
  4100.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4101.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4102.     if(sscanf(params, "s", Conta)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /desbanir [Conta]"), SendClientMessage(playerid, CINZA, "Use o comando para desbanir uma conta banida");
  4103.     format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Conta);
  4104.     if(DOF2_FileExists(String))
  4105.     {
  4106.         DOF2_RemoveFile(String);
  4107.         format(String, sizeof(String), "[Euro RPG] Conta {1B95E0}%s{38FF06} Desbanida!", Conta);
  4108.         SendClientMessage(playerid, VERDE_CLARO, String);
  4109.         return 1;
  4110.     }
  4111.     else
  4112.     {
  4113.         format(String, sizeof(String), "[Euro RPG] A Conta {1B95E0}%s{CECECE} Não Existe ou Não está banida!", Conta);
  4114.         SendClientMessage(playerid, CINZA, String);
  4115.     }
  4116.     format(String, sizeof(String), "O Admin %s desbaniu a conta %s\r\n", Nome(playerid), Conta);
  4117.     EscreverLog("EuroRPG/Logs/Desbanidos.log", String);
  4118.     return 1;
  4119. }
  4120.  
  4121.  
  4122. CMD:advertir(playerid, params[])
  4123. {
  4124.     new Razao[128];
  4125.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4126.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4127.     if(sscanf(params, "us", ID, Razao)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /advertir [ID] [Razão]"), SendClientMessage(playerid, CINZA, "Use o comando para advertir um jogador");
  4128.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4129.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4130.     if(PlayerDados[ID][Advertencias] != 3)
  4131.     {
  4132.         format(String, sizeof(String), "[Euro RPG] O Admin %s Deu uma Advertencia a %s Pelo Motivo: %s\r\n", Nome(playerid), Nome(ID), Razao);
  4133.         SendClientMessageToAll(VERMELHO_CLARO, String);
  4134.         EscreverLog("EuroRPG/Logs/Advertidos.log", String);
  4135.         format(String, sizeof(String), "Você foi Advertido pelo admin %s Pelo motivo: %s. Se for advertido 3 vezes será BANIDO Automaticamente", Nome(playerid), Razao);
  4136.         SendClientMessage(ID, LARANJA, String);
  4137.         PlayerDados[ID][Advertencias] += 1;
  4138.     }
  4139.     if(PlayerDados[ID][Advertencias] == 3)
  4140.     {
  4141.         format(String, sizeof(String), "[Euro RPG] O Admin %s Deu a terceira Advertencia a %s Pelo Motivo: %s e por isso ele foi Banido!", Nome(playerid), Nome(ID), Razao);
  4142.         SendClientMessageToAll(VERMELHO_CLARO, String);
  4143.         format(String, sizeof(String), "Você foi Advertido pela terceira vez pelo admin %s Pelo motivo: %s. por isso você foi banido!", Nome(playerid), Razao);
  4144.         SendClientMessage(ID, LARANJA, String);
  4145.         format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Nome(ID));
  4146.         getdate(Ano, Mes, Dia);
  4147.         gettime(Hora, Minuto, Segundo);
  4148.         new IP[25];
  4149.         GetPlayerIp(ID, IP, 25);
  4150.         DOF2_CreateFile(String);
  4151.         DOF2_SetString(String, "Admin", Nome(playerid));
  4152.         DOF2_SetString(String, "Motivo", "3° Advertencia");
  4153.         DOF2_SetInt(String, "Ano", Ano);
  4154.         DOF2_SetInt(String, "Mes", Mes);
  4155.         DOF2_SetInt(String, "Dia", Dia);
  4156.         DOF2_SetInt(String, "Hora", Hora);
  4157.         DOF2_SetInt(String, "Minuto", Minuto);
  4158.         Kick(ID);
  4159.     }
  4160.     return 1;
  4161. }
  4162.  
  4163. CMD:ir(playerid, params[])
  4164. {
  4165.     if((PlayerDados[playerid][Admin] < 2) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 ou helper para usar este comando!");
  4166.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4167.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /ir [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para ir até um jogador");
  4168.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4169.     //new Float:Pos[3];
  4170.     GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
  4171.     if(IsPlayerInAnyVehicle(playerid))
  4172.     {
  4173.         new carroid = GetPlayerVehicleID(playerid);
  4174.         SetVehiclePos(carroid, Pos[0], Pos[1], Pos[2]);
  4175.         format(String, sizeof(String), "O Admin %s veio até você!", Nome(playerid));
  4176.         if(PlayerDados[playerid][Helper])
  4177.         {
  4178.             format(String, sizeof(String), "O Helper %s veio até você!", Nome(playerid));
  4179.         }
  4180.         SendClientMessage(ID, AZUL_CLARO, String);
  4181.         format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(ID), ID);
  4182.         SendClientMessage(playerid, AZUL_CLARO, String);
  4183.         return 1;
  4184.     }
  4185.     SetPlayerPos(playerid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
  4186.     format(String, sizeof(String), "O Admin %s veio até você!", Nome(playerid));
  4187.     if(PlayerDados[playerid][Helper])
  4188.     {
  4189.         format(String, sizeof(String), "O Helper %s veio até você!", Nome(playerid));
  4190.     }
  4191.     SendClientMessage(ID, AZUL_CLARO, String);
  4192.     format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(ID), ID);
  4193.     SendClientMessage(playerid, AZUL_CLARO, String);
  4194.     return 1;
  4195. }
  4196.  
  4197. CMD:trazer(playerid, params[])
  4198. {
  4199.     if((PlayerDados[playerid][Admin] < 2) && (PlayerDados[playerid][Helper] == false)) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 ou helper para usar este comando!");
  4200.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4201.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /trazer [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para trazer um jogador até você");
  4202.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4203.     //new Float:Pos[3];
  4204.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  4205.     if(IsPlayerInAnyVehicle(ID))
  4206.     {
  4207.         new carroid = GetPlayerVehicleID(ID);
  4208.         SetVehiclePos(carroid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
  4209.         format(String, sizeof(String), "O Admin %s trouxe você até ele!", Nome(playerid));
  4210.         if(PlayerDados[playerid][Helper])
  4211.         {
  4212.             format(String, sizeof(String), "O Helper %s trouxe você até ele!", Nome(playerid));
  4213.         }
  4214.         SendClientMessage(ID, AZUL_CLARO, String);
  4215.         format(String, sizeof(String), "Você trouxe o jogador %s [ID: %d] até você", Nome(ID), ID);
  4216.         SendClientMessage(playerid, AZUL_CLARO, String);
  4217.         return 1;
  4218.     }
  4219.     SetPlayerPos(ID, Pos[0]+2, Pos[1]+2, Pos[2]+2);
  4220.     format(String, sizeof(String), "O Admin %s trouxe você até ele!", Nome(playerid));
  4221.     if(PlayerDados[playerid][Helper])
  4222.     {
  4223.         format(String, sizeof(String), "O Helper %s trouxe você até ele!", Nome(playerid));
  4224.     }
  4225.     SendClientMessage(ID, AZUL_CLARO, String);
  4226.     format(String, sizeof(String), "Você trouxe o jogador %s [ID: %d] até você", Nome(ID), ID);
  4227.     SendClientMessage(playerid, AZUL_CLARO, String);
  4228.     return 1;
  4229. }
  4230.  
  4231. CMD:congelar(playerid, params[])
  4232. {
  4233.     new Razao[128];
  4234.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4235.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4236.     if(sscanf(params, "us", ID, Razao)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /congelar [ID] [Motivo]"), SendClientMessage(playerid, CINZA, "Use o comando para impedir um jogador de se mover");
  4237.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4238.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4239.     TogglePlayerControllable(ID, false);
  4240.     PlayerDados[playerid][Congelado] = true;
  4241.     format(String, sizeof(String), "[Euro RPG] O Admin %s Congelou o Jogador %s [ID: %d] Pelo Motivo: %s\r\n", Nome(playerid), Nome(ID), ID, Razao);
  4242.     SendClientMessageToAll(AZUL_CLARO, String);
  4243.     SendClientMessage(playerid, VERDE_CLARO, "Para descongelar use /descongelar");
  4244.     EscreverLog("EuroRPG/Logs/Congelados.log", String);
  4245.     return 1;
  4246. }
  4247.  
  4248. CMD:descongelar(playerid, params[])
  4249. {
  4250.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4251.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4252.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /descongelar [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para permitir ao jogador se movimentar");
  4253.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4254.     if(PlayerDados[ID][Congelado] == false) return SendClientMessage(playerid, CINZA, "O Jogados não está congelado!");
  4255.     TogglePlayerControllable(ID, true);
  4256.     PlayerDados[ID][Congelado] = false;
  4257.     format(String, sizeof(String), "[Euro RPG] O Admin {1BA5E0}%s{00C2EC} Descongelou o jogador {1BA5E0}%s{00C2EC} [ID: %d]", Nome(playerid), Nome(ID), ID);
  4258.     SendClientMessageToAll(AZUL_CLARO, String);
  4259.     return 1;
  4260. }
  4261.  
  4262. CMD:dararma(playerid, params[])
  4263. {
  4264.     new NomeArma[80];
  4265.     new
  4266.         Arma,
  4267.         Municao;
  4268.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4269.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4270.     if(sscanf(params, "uii", ID, Arma, Municao)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /dararma [ID] [Arma] [Munição]"), SendClientMessage(playerid, CINZA, "Use o comando para dar uma arma para um jogador");
  4271.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4272.     if(Arma < 1 || Arma == 19 || Arma == 20 || Arma == 21 || Arma > 46) return SendClientMessage(playerid, CINZA, "[Euro RPG] ID Invalido, use de 1 a 46");
  4273.     if(Arma == 1) NomeArma = "Soco Inglês";
  4274.     if(Arma == 2) NomeArma = "Taco de Golf";
  4275.     if(Arma == 3) NomeArma = "Cacetete";
  4276.     if(Arma == 4) NomeArma = "Faca";
  4277.     if(Arma == 5) NomeArma = "Taco de Baseball";
  4278.     if(Arma == 6) NomeArma = "Pá";
  4279.     if(Arma == 7) NomeArma = "Taco de Sinuca";
  4280.     if(Arma == 8) NomeArma = "Kitana";
  4281.     if(Arma == 9) NomeArma = "Serra elétrica";
  4282.     if(Arma == 10) NomeArma = "Pinto de Borracha";
  4283.     if(Arma == 11) NomeArma = "Pinto roxo";
  4284.     if(Arma == 12) NomeArma = "Vibrador";
  4285.     if(Arma == 13) NomeArma = "Vibrador de Prata";
  4286.     if(Arma == 14) NomeArma = "Flor";
  4287.     if(Arma == 15) NomeArma = "Bengala";
  4288.     if(Arma == 16) NomeArma = "Granada";
  4289.     if(Arma == 17) NomeArma = "Bomba de gás";
  4290.     if(Arma == 18) NomeArma = "Molotov";
  4291.     if(Arma == 22) NomeArma = "Pistola 9mm";
  4292.     if(Arma == 23) NomeArma = "Pistola com silenciador";
  4293.     if(Arma == 24) NomeArma = "Desert Eagle";
  4294.     if(Arma == 25) NomeArma = "ShotGun";
  4295.     if(Arma == 26) NomeArma = "Sawnoff Shotgun";
  4296.     if(Arma == 27) NomeArma = "Combat Shotgun";
  4297.     if(Arma == 28) NomeArma = "Micro SMG";
  4298.     if(Arma == 29) NomeArma = "MP5";
  4299.     if(Arma == 30) NomeArma = "AK47";
  4300.     if(Arma == 31) NomeArma = "M4";
  4301.     if(Arma == 32) NomeArma = "Tec 9";
  4302.     if(Arma == 33) NomeArma = "Country Rifle";
  4303.     if(Arma == 34) NomeArma = "Sniper Rifle";
  4304.     if(Arma == 35) NomeArma = "Bazooca RPG";
  4305.     if(Arma == 36) NomeArma = "Bazooca Normal";
  4306.     if(Arma == 37) NomeArma = "Lança Chamas";
  4307.     if(Arma == 38) NomeArma = "Mini Gun";
  4308.     if(Arma == 39) NomeArma = "C4";
  4309.     if(Arma == 40) NomeArma = "Detonador";
  4310.     if(Arma == 41) NomeArma = "Spray";
  4311.     if(Arma == 42) NomeArma = "Extintor";
  4312.     if(Arma == 43) NomeArma = "Oculos de visão noturna";
  4313.     if(Arma == 45) NomeArma = "Oculos de visão de calor";
  4314.     if(Arma == 46) NomeArma = "Paraquedas";
  4315.     GivePlayerWeapon(ID, Arma, Municao);
  4316.     format(String, sizeof(String), "[Euro RPG] O Admin {1BA5E0}%s{00C2EC} Deu um(a) {1BA5E0}%s{00C2EC} Com {1BA5E0}%d{00C2EC} Balas para {1BA5E0}%s{00C2EC}", Nome(playerid), NomeArma, Municao, Nome(ID));
  4317.     SendClientMessageToAll(AZUL_CLARO, String);
  4318.     return 1;
  4319. }
  4320.  
  4321. CMD:desarmar(playerid, params[])
  4322. {
  4323.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4324.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4325.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /desarmar [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para desarmar um jogador");
  4326.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4327.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4328.     format(String, sizeof(String), "[Euro RPG] O Admin {1BA5E0}%s{00C2EC} Desarmou o jogador {1BA5E0}%s{00C2EC}", Nome(playerid), Nome(ID));
  4329.     SendClientMessageToAll(AZUL_CLARO, String);
  4330.     ResetPlayerWeapons(ID);
  4331.     return 1;
  4332. }
  4333.  
  4334. CMD:criarcarro(playerid, params[])
  4335. {
  4336.     new
  4337.         Carro,
  4338.         Cor1,
  4339.         Cor2;
  4340.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4341.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4342.     if(sscanf(params, "iii", Carro, Cor1, Cor2)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /criarcarro [ID] [cor1] [cor2]"), SendClientMessage(playerid, CINZA, "Use o comando para criar um veiculo, para fazer um respawn use /respawn");
  4343.     new Float:X,
  4344.         Float:Y,
  4345.         Float:X1,
  4346.         Float:Y1,
  4347.         Float:Z,
  4348.         Float:A;
  4349.     PosicaoFrentePlayer(playerid, X, Y, 3);
  4350.     GetPlayerPos(playerid, X1, Y1, Z);
  4351.     GetPlayerFacingAngle(playerid, A);
  4352.     new idcarro;
  4353.     idcarro = CreateVehicle(Carro, X, Y, Z, A+90, Cor1, Cor2, 15);
  4354.     CarrosCriados[TodosCarros] = idcarro;
  4355.     TodosCarros ++;
  4356.     return 1;
  4357. }
  4358.  
  4359. CMD:respawn(playerid, params[])
  4360. {
  4361.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4362.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4363.     format(String, sizeof(String), "[Euro RPG] O Admin {1BA5E0}%s{00C2EC} deu Respawn nos veículos!", Nome(playerid));
  4364.     SendClientMessageToAll(AZUL_CLARO, String);
  4365.     SendClientMessage(playerid, VERDE_CLARO, "Todos os carros criados foram destruidos!");
  4366.     for(new i = 0; i < sizeof(CarrosCriados); i++)
  4367.     {
  4368.         DestroyVehicle(CarrosCriados[i]);
  4369.     }
  4370.     for(new c = 0; c < MAX_VEHICLES; c++)
  4371.     {
  4372.         SetVehicleToRespawn(c);
  4373.     }
  4374.     return 1;
  4375. }
  4376.  
  4377. CMD:destruircarro(playerid, params[])
  4378. {
  4379.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4380.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4381.     if(IsPlayerInAnyVehicle(playerid))
  4382.     {
  4383.         new idcarro = GetPlayerVehicleID(playerid);
  4384.         DestroyVehicle(idcarro);
  4385.         format(String, sizeof(String), "[Euro RPG] Você destruiu o veículo ID %d", idcarro);
  4386.         SendClientMessage(playerid, AZUL_CLARO, String);
  4387.         return 1;
  4388.     }
  4389.     new idc;
  4390.     if(sscanf(params, "i", idc)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /destruircarro [ID], ou entre em um veículo e use o comando.");
  4391.     if(idc == INVALID_VEHICLE_ID) return SendClientMessage(playerid, CINZA, "[Euro RPG] ID invalido!");
  4392.     DestroyVehicle(idc);
  4393.     format(String, sizeof(String), "[Euro RPG] Você destruiu o veículo ID %d", idc);
  4394.     SendClientMessage(playerid, AZUL_CLARO, String);
  4395.     return 1;
  4396. }
  4397.  
  4398. CMD:idcarro(playerid, params[])
  4399. {
  4400.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4401.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4402.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, BRANCO, "Você não está em um veículo!");
  4403.     new idc;
  4404.     idc = GetPlayerVehicleID(playerid);
  4405.     format(String, sizeof(String), "O ID do veículo é %d, para destrui-lo use /destruircarro", idc);
  4406.     SendClientMessage(playerid, CINZA, String);
  4407.     return 1;
  4408. }
  4409.  
  4410. CMD:calar(playerid, params[])
  4411. {
  4412.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4413.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4414.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /calar [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para impedir um jogador de usar o chat");
  4415.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4416.     if(PlayerDados[ID][Calado] == true) return SendClientMessage(playerid, CINZA, "[Euro RPG] O jogador Ja está calado!");
  4417.     PlayerDados[ID][Calado] = true;
  4418.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Calou o Jogador {1B95E0}%s{00C2EC}\r\n", Nome(playerid), Nome(ID));
  4419.     SendClientMessageToAll(AZUL_CLARO, String);
  4420.     EscreverLog("EuroRPG/Logs/Calados.log", String);
  4421.     SendClientMessage(playerid, VERDE_CLARO, "[Euro RPG] Para Liberar a fala do jogador use /liberar [ID]");
  4422.     return 1;
  4423. }
  4424.  
  4425. CMD:liberar(playerid, params[])
  4426. {
  4427.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4428.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4429.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /liberar [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para liberar um jogador calado para usar o chat");
  4430.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4431.     if(PlayerDados[ID][Calado] == false) return SendClientMessage(playerid, CINZA, "[Euro RPG] O jogador não está calado!");
  4432.     PlayerDados[ID][Calado] = false;
  4433.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Liberou a fala de {1B95E0}%s{00C2EC}", Nome(playerid), Nome(ID));
  4434.     SendClientMessageToAll(AZUL_CLARO, String);
  4435.     return 1;
  4436. }
  4437.  
  4438. CMD:setarvida(playerid, params[])
  4439. {
  4440.     new Vida;
  4441.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4442.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4443.     if(sscanf(params, "ui", ID, Vida)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarvida [ID] [VIDA]");
  4444.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4445.     if(Vida < 0 || Vida > 100) return SendClientMessage(playerid, CINZA, "[Euro RPG]Valor Inválido! Use de 0 a 100");
  4446.     SetPlayerHealth(ID, Vida);
  4447.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Setou a Vida de {1B95E0}%s{00C2EC} para {1B95E0}%d{00C2EC}", Nome(playerid), Nome(ID), Vida);
  4448.     SendClientMessageToAll(AZUL_CLARO, String);
  4449.     return 1;
  4450. }
  4451.  
  4452. CMD:setarcolete(playerid, params[])
  4453. {
  4454.     new Colete;
  4455.     if(PlayerDados[playerid][Admin] < 2) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 2 para usar este comando!");
  4456.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4457.     if(sscanf(params, "ui", ID, Colete)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarcolete [ID] [COLETE]");
  4458.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4459.     if(Colete < 0 || Colete > 100) return SendClientMessage(playerid, CINZA, "[Euro RPG]Valor Inválido! Use de 0 a 100");
  4460.     SetPlayerArmour(ID, Colete);
  4461.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Setou o Colete de {1B95E0}%s{00C2EC} para {1B95E0}%d{00C2EC}", Nome(playerid), Nome(ID), Colete);
  4462.     SendClientMessageToAll(AZUL_CLARO, String);
  4463.     return 1;
  4464. }
  4465.  
  4466. CMD:posplayer(playerid, params[]) {
  4467.     if(!NivelRequerido(playerid, 2))
  4468.         return 1;
  4469.     if(sscanf(params, "u", ID))
  4470.         return MensagemDupla(playerid, "[Euro RPG] Use /posplayer [playerid]", "Use o comando para ver a posição de um player no mapa.");
  4471.     new
  4472.         Float:X,
  4473.         Float:Y,
  4474.         Float:Z
  4475.     ;
  4476.     GetPlayerPos(ID, X, Y, Z);
  4477.     format(String, 100, "Player: %s - Posição:", Nome(ID));
  4478.     Msg(playerid, VERDE_CLARO, String);
  4479.     format(String, 20, "X: %f", X);
  4480.     Msg(playerid, VERDE_AGUA, String);
  4481.     format(String, 20, "Y: %f", Y);
  4482.     Msg(playerid, VERDE_AGUA, String);
  4483.     format(String, 20, "Z: %f", Z);
  4484.     Msg(playerid, VERDE_AGUA, String);
  4485.     return 1;
  4486. }
  4487.  
  4488. CMD:versao(playerid, params[]) {
  4489.     if(!NivelRequerido(playerid, 2))
  4490.         return 1;
  4491.     if(sscanf(params, "u", ID))
  4492.         return MensagemDupla(playerid, "[Euro RPG] Use /versao [ID]", "Use o comando para ver a versão do sa-mp de um player");
  4493.     if(!(IsPlayerConnected(ID)))
  4494.         return Msg(playerid, BRANCO, "O jogador não está conectado.");
  4495.     new ver[40];
  4496.     GetPlayerVersion(ID, ver, 40);
  4497.     format(String, sizeof(String), "A versão do jogador %s [ID: %d] é: %s", Nome(ID), ID, ver);
  4498.     Msg(playerid, AMARELO, String);
  4499.     return 1;
  4500. }
  4501.  
  4502. //-------------------------ADMIN NIVEL 3----------------------------------------
  4503.  
  4504. CMD:kicksecreto(playerid, params[])
  4505. {
  4506.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4507.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4508.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /kicksecreto [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para kickar um jogador sem ninguem ficar sabendo.");
  4509.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4510.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4511.     Kickar(ID, Nome(playerid), "Segredo");
  4512.     format(String, 100, "O admin %s kickou o jogador %s em segredo.", Nome(playerid), Nome(ID));
  4513.     EscreverLog("EuroRPG/Logs/Kickados.log", String);
  4514.     return 1;
  4515. }
  4516.  
  4517. CMD:bansecreto(playerid, params[])
  4518. {
  4519.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4520.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4521.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /bansecreto [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para banir um jogador sem ninguem ficar sabendo.");
  4522.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4523.     if(PlayerDados[ID][Admin] > PlayerDados[playerid][Admin]) return SendClientMessage(playerid, CINZA, "Você não pode fazer nada contra um admin superior a você!");
  4524.     format(String, sizeof String, "O admin %s baniu secretamente o jogador %s.", Nome(playerid), Nome(ID));
  4525.     EscreverLog("EuroRPG/Logs/Banidos.log", String);
  4526.     format(String, sizeof(String), "EuroRPG/Banidos/Contas/%s.txt", Nome(ID));
  4527.     getdate(Ano, Mes, Dia);
  4528.     gettime(Hora, Minuto, Segundo);
  4529.     DOF2_CreateFile(String);
  4530.     DOF2_SetString(String, "Admin", "Segredo");
  4531.     DOF2_SetString(String, "Motivo", "Segredo");
  4532.     DOF2_SetInt(String, "Ano", Ano);
  4533.     DOF2_SetInt(String, "Mes", Mes);
  4534.     DOF2_SetInt(String, "Dia", Dia);
  4535.     DOF2_SetInt(String, "Hora", Hora);
  4536.     DOF2_SetInt(String, "Minuto", Minuto);
  4537.     Kick(ID);
  4538.     return 1;
  4539. }
  4540.  
  4541. CMD:enquete(playerid, params[])
  4542. {
  4543.     if(!NivelRequerido(playerid, 3)) return 1;
  4544.     new t[128];
  4545.     if(sscanf(params, "s", t)) return MensagemDupla(playerid, "[Euro RPG] Use /enquete [Pergunta]", "Use o comando para fazer uma enquete para os jogadores.");
  4546.     Enquete[Criada] = true;
  4547.     Enquete[Titulo] = t;
  4548.     format(String, sizeof(String), "Enquete de %s: %s", Nome(playerid), t);
  4549.     SendClientMessageToAll(ROXO, String);
  4550.     SendClientMessageToAll(ROXO, "Use /sim ou /nao");
  4551.     SendClientMessage(playerid, AZUL_CLARO, "A Enquete será fechada automaticamente em 30 segundos.");
  4552.     SetTimer("FecharEnquete", 30000, false);
  4553.     return 1;
  4554. }
  4555.  
  4556. CMD:ativarmsgs(playerid, params[])
  4557. {
  4558.     if(!NivelRequerido(playerid, 3)) return 1;
  4559.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} ativou as mensagens randomicas no servidor.", Nome(playerid));
  4560.     TimerMsgs = SetTimer("MensagensRandom", 30*1000, true);
  4561.     Msg(playerid, AMARELO, "para desativar as mensagens randomicas use /desativarmsgs.");
  4562.     return 1;
  4563. }
  4564.  
  4565. CMD:desativarmsgs(playerid, params[])
  4566. {
  4567.     if(!NivelRequerido(playerid, 3)) return 1;
  4568.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} desativou as mensagens randomicas no servidor.", Nome(playerid));
  4569.     KillTimer(TimerMsgs);
  4570.     Msg(playerid, AMARELO, "para dativa-las novamente use /ativarmsgs");
  4571.     return 1;
  4572. }
  4573.  
  4574. CMD:resetargrana(playerid, params[])
  4575. {
  4576.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4577.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4578.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /resetargrana [ID]", "Use o comando para resetar o dinheiro de algum jogador");
  4579.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} resetou o dinheiro de {1B95E0}%s{00C2EC}", Nome(playerid), Nome(ID));
  4580.     ResetPlayerMoney(ID);
  4581.     return 1;
  4582. }
  4583.  
  4584. CMD:setargrana(playerid, params[])
  4585. {
  4586.     new q;
  4587.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4588.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4589.     if(sscanf(params, "ui", ID, q)) return MensagemDupla(playerid, "[Euro RPG] Use /setargrana [ID] [Quantidade]", "Use o comando para setar o dinheiro de algum jogador para a quantia desejada");
  4590.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} setou o dinheiro de {1B95E0}%s{00C2EC} para %d", Nome(playerid), Nome(ID), q);
  4591.     ResetPlayerMoney(ID);
  4592.     GivePlayerMoney(ID, q);
  4593.     return 1;
  4594. }
  4595.  
  4596. CMD:cadeia(playerid, params[])
  4597. {
  4598.     new Tempo, Motivo[70];
  4599.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4600.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4601.     if(sscanf(params, "uis", ID, Tempo, Motivo)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /prender [ID] [Tempo] [Motivo]"), SendClientMessage(playerid, CINZA, "Use o comando para prender um jogador na cadeia");
  4602.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4603.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Prendeu {1B95E0}%s{00C2EC} por %d Segundos pelo motivo: %s\r\n", Nome(playerid), Nome(ID), Tempo, Motivo);
  4604.     SendClientMessageToAll(AZUL_CLARO, String);
  4605.     EscreverLog("EuroRPG/Logs/Presos.log", String);
  4606.     SetPlayerPos(ID, 264.6288,77.5742,1001.0391);
  4607.     SetPlayerInterior(ID, 6);
  4608.     PlayerDados[ID][Preso] = Tempo;
  4609.     TimerPreso = SetTimerEx("TempoPreso", 1000, true, "i", ID);
  4610.     return 1;
  4611. }
  4612.  
  4613. CMD:tirarcadeia(playerid, params[])
  4614. {
  4615.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4616.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4617.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /tirarcadeia [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para soltar um jogador preso");
  4618.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4619.     if(PlayerDados[ID][Preso] == 0) return SendClientMessage(playerid, CINZA, "O Jogador não está preso");
  4620.     PlayerDados[ID][Preso] = 1;
  4621.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Tirou o jogador {1B95E0}%s{00C2EC} da Cadeia", Nome(playerid), Nome(ID));
  4622.     SendClientMessageToAll(AZUL_CLARO, String);
  4623.     return 1;
  4624. }
  4625.  
  4626. CMD:setarskin(playerid, params[])
  4627. {
  4628.     new Skin;
  4629.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4630.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4631.     if(sscanf(params, "ui", ID, Skin)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarskin [ID] [Skin]"), SendClientMessage(playerid, CINZA, "Use o comando para mudar a skin de um jogador");
  4632.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4633.     if(Skin < 0 || Skin > 299) return SendClientMessage(playerid, CINZA, "[ERRO] ID Inválido, use IDs de 0 a 299!");
  4634.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} setou a Skin de {1B95E0}%s{00C2EC} para a ID n°%d", Nome(playerid), Nome(ID), Skin);
  4635.     SendClientMessageToAll(AZUL_CLARO, String);
  4636.     SetPlayerSkin(ID, Skin);
  4637.     return 1;
  4638. }
  4639.  
  4640. CMD:setarnome(playerid, params[])
  4641. {
  4642.     new NovoNome[30];
  4643.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4644.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4645.     if(sscanf(params, "us", ID, NovoNome)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarnome [ID] [Nome]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar o nome de um jogador");
  4646.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4647.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} mudou o nome de {1B95E0}%s{00C2EC} Para {1B95E0}%s{00C2EC}!\r\n", Nome(playerid), Nome(ID), NovoNome);
  4648.     SendClientMessageToAll(AZUL_CLARO, String);
  4649.     EscreverLog("EuroRPG/Logs/NovoNome.log", String);
  4650.     format(String, sizeof(String), "EuroRPG/Contas/%s.txt", Nome(ID));
  4651.     DOF2_RemoveFile(String);
  4652.     SetPlayerName(ID, NovoNome);
  4653.     format(String, sizeof(String), "EuroRPG/Contas/%s.txt", Nome(ID));
  4654.     DOF2_CreateFile(String);
  4655.     SalvarDados(ID);
  4656.     return 1;
  4657. }
  4658.  
  4659. CMD:viraradmin(playerid)
  4660. {
  4661.     if(strcmp(Nome(playerid), "Life_Advanced", true) == 0)
  4662.     {
  4663.         SetarDado(playerid, Admin, 5);
  4664.         DarAdmin(playerid, 5);
  4665.         Msg(playerid, -1, "Bem vindo a Administração, Life_Advanced.");
  4666.     }
  4667.     return 1;
  4668. }
  4669.  
  4670. CMD:clima(playerid, params[])
  4671. {
  4672.     new Clima;
  4673.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4674.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4675.     if(sscanf(params, "i", Clima)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /clima [ID do clima]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar o clima do servidor");
  4676.     if(Clima < 1 || Clima > 50 || Clima < 250 || Clima > 250 || Clima < 2009 || Clima > 2009) return SendClientMessage(playerid, CINZA, "[Euro RPG] ID Invalido, use IDs de 0 a 50, 250 ou 2009");
  4677.     SetWeather(Clima);
  4678.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} mudou o Clima para o ID %d!", Nome(playerid), Clima);
  4679.     SendClientMessageToAll(AZUL_CLARO, String);
  4680.     return 1;
  4681. }
  4682.  
  4683. CMD:godmode(playerid, params[])
  4684. {
  4685.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4686.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4687.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /godmode [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para deixar um jogador imortal");
  4688.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4689.     SetPlayerHealth(ID, 999999);
  4690.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} deixou o Jogador {1B95E0}%s{00C2EC} em GodMode!", Nome(playerid), Nome(ID));
  4691.     SendClientMessageToAll(AZUL_CLARO, String);
  4692.     return 1;
  4693. }
  4694.  
  4695. CMD:ejetar(playerid, params[])
  4696. {
  4697.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4698.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4699.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /ejetar [ID]"), SendClientMessage(playerid, CINZA, "Use o comando para tirar um jogador de seu carro");
  4700.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4701.     if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, CINZA, "O jogador não está em um veículo!");
  4702.     RemovePlayerFromVehicle(ID);
  4703.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Ejetou o jogador {1B95E0}%s{00C2EC} de seu carro!", Nome(playerid), Nome(ID));
  4704.     SendClientMessageToAll(AZUL_CLARO, String);
  4705.     return 1;
  4706. }
  4707.  
  4708. CMD:falar(playerid, params[])
  4709. {
  4710.     new Fala[128];
  4711.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4712.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4713.     if(sscanf(params, "s", Fala)) return SendClientMessage(playerid, CINZA, "Use /falar [texto]"), SendClientMessage(playerid, CINZA, "Use o comando para falar usando a voz do google tradutor");
  4714.     for(new i = 0; i < MAX_PLAYERS; i++)
  4715.     {
  4716.         format(String, sizeof(String), "http://translate.google.com/translate_tts?tl=pt&q=%s", Fala);
  4717.         PlayAudioStreamForPlayer(i, String, 0, 0, 0, 0, 0);
  4718.     }
  4719.     format(String, sizeof(String), "[Euro RPG] Admin {1B95E0}%s{00C2EC} Falando!", Nome(playerid));
  4720.     SendClientMessageToAll(AZUL_CLARO, String);
  4721.     return 1;
  4722. }
  4723.  
  4724. CMD:crash(playerid, params[])
  4725. {
  4726.     new Motivo[100];
  4727.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4728.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4729.     if(sscanf(params, "us", ID, Motivo)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /crash [ID] [Motivo]"), SendClientMessage(playerid, CINZA, "Use o comando para crashar um jogador");
  4730.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4731.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Crashou {1B95E0}%s{00C2EC} pelo motivo: {1B95E0}%s{00C2EC}!\r\n", Nome(playerid), Nome(ID), Motivo);
  4732.     SendClientMessageToAll(AZUL_CLARO, String);
  4733.     EscreverLog("EuroRPG/Logs/Crashados.log", String);
  4734.     GameTextForPlayer(ID, "~k~~INVALID_KEY~", 5000, 5);
  4735.     return 1;
  4736. }
  4737.  
  4738. CMD:setarpontos(playerid, params[])
  4739. {
  4740.     new Pontos;
  4741.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4742.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4743.     if(sscanf(params, "ui", ID, Pontos)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarpontos [ID] [Pontos]"), SendClientMessage(playerid, CINZA, "Use o comando para setar o score de um jogador");
  4744.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4745.     SetPlayerScore(ID, Pontos);
  4746.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Setou os pontos de {1B95E0}%s{00C2EC} para: {1B95E0}%d{00C2EC}!", Nome(playerid), Nome(ID), Pontos);
  4747.     SendClientMessageToAll(AZUL_CLARO, String);
  4748.     return 1;
  4749. }
  4750.  
  4751. CMD:setarpos(playerid, params[])
  4752. {
  4753.     new X, Y, Z;
  4754.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4755.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4756.     if(sscanf(params, "uiii", ID, X, Y, Z)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setarposicao [ID] [Pos X] [Pos Y] [Pos Z]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar a posição de um jogador");
  4757.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  4758.     SetPlayerPos(ID, X, Y, Z);
  4759.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Teleportou o jogador {1B95E0}%s{00C2EC} para as cordenadas: %d %d %d!", Nome(playerid), Nome(ID), X, Y, Z);
  4760.     SendClientMessageToAll(AZUL_CLARO, String);
  4761.     return 1;
  4762. }
  4763.  
  4764. CMD:verpos(playerid, params[])
  4765. {
  4766.     new Float: X,
  4767.         Float: Y,
  4768.         Float: Z;
  4769.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4770.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4771.     GetPlayerPos(playerid, X, Y, Z);
  4772.     format(String, sizeof(String), "[Euro RPG] Você está na posição %f %f %f", X, Y, Z);
  4773.     SendClientMessage(playerid, AMARELO, String);
  4774.     return 1;
  4775. }
  4776.  
  4777. CMD:barril(playerid, params[])
  4778. {
  4779.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4780.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4781.     new Float: X,
  4782.         Float: Y,
  4783.         Float: Z;
  4784.     GetPlayerPos(playerid, X, Y, Z);
  4785.     PosicaoFrentePlayer(playerid, X, Y, 5);
  4786.     new barril;
  4787.     barril = CreateObject(1225, X, Y, Z, 0, 0, 0, 50);
  4788.     Barris[tBarris] = barril;
  4789.     tBarris ++;
  4790.     SendClientMessage(playerid, VERDE_CLARO, "[Euro RPG] Você criou um barril explosivo, para destrui-lo use /dbarris");
  4791.     return 1;
  4792. }
  4793.  
  4794. CMD:dbarris(playerid, params[])
  4795. {
  4796.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4797.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4798.     for(new o = 0; o < sizeof(Barris); o++)
  4799.     {
  4800.         DestroyObject(Barris[o]);
  4801.     }
  4802.     SendClientMessage(playerid, VERDE_CLARO, "[Euro RPG] Todos os Barris foram destruídos");
  4803.     return 1;
  4804. }
  4805.  
  4806. CMD:hora(playerid, params[])
  4807. {
  4808.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4809.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4810.     if(sscanf(params, "ii", Hora, Minuto)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /hora [Hora] [Minuto]");
  4811.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Setou a hora do servidor para: {1B95E0}%d:%d", Nome(playerid), Hora, Minuto);
  4812.     SendClientMessageToAll(AZUL_CLARO, String);
  4813.     for(new i = 0; i < MAX_PLAYERS; i++)
  4814.     {
  4815.         SetPlayerTime(i, Hora, Minuto);
  4816.     }
  4817.     return 1;
  4818. }
  4819.  
  4820. CMD:banirip(playerid, params[])
  4821. {
  4822.     new Motivo[128];
  4823.     new Str2[128];
  4824.     new Ip[25];
  4825.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4826.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4827.     if(sscanf(params, "us", ID, Motivo)) return SendClientMessage(playerid, CINZA, "Use /banirip [ID] [Motivo]"), SendClientMessage(playerid, CINZA, "Use o comando para banir o IP de um jogador");
  4828.     if(!DOF2_FileExists("EuroRPG/BANIDOS/Ips.txt")) DOF2_CreateFile("EuroRPG/BANIDOS/Ips.txt");
  4829.     GetPlayerIp(ID, Ip, 25);
  4830.     format(String, sizeof(String), "%s", Ip);
  4831.     format(Str2, sizeof(Str2), "Admin: %s - Motivo: %s", Nome(playerid), Motivo);
  4832.     DOF2_SetString("EuroRPG/BANIDOS/Ips.txt", String, Str2);
  4833.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Baniu definitivamente o jogador {1B95E0}%s{00C2EC} pelo motivo: %s\r\n", Nome(playerid), Nome(ID), Motivo);
  4834.     SendClientMessageToAll(AZUL_CLARO, String);
  4835.     EscreverLog("EuroRPG/Logs/BanirIp.log", String);
  4836.     Kick(ID);
  4837.     return 1;
  4838. }
  4839.  
  4840. CMD:desbanirip(playerid, params[])
  4841. {
  4842.     new IP[25];
  4843.     if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 3 para usar este comando!");
  4844.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  4845.     if(sscanf(params, "i", IP)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /desbanirip [IP]"), SendClientMessage(playerid, CINZA, "Use o comando para desbanir um IP banido");
  4846.     if(!DOF2_IsSet("EuroRPG/Banidos/Ips.txt", IP)) return SendClientMessage(playerid, CINZA, "Este IP não está banido!");
  4847.     DOF2_Unset("EuroRPG/Banidos/Ips.txt", IP);
  4848.     format(String, sizeof(String), "[Euro RPG]IP %s Desbanido pelo admin %s!", IP, Nome(playerid));
  4849.     SendClientMessageToAll(AZUL_CLARO, String);
  4850.     EscreverLog("EuroRPG/Logs/DesbanirIp.log", String);
  4851.     return 1;
  4852. }
  4853.  
  4854. CMD:disfarce(playerid, params[])
  4855. {
  4856.     if(!NivelRequerido(playerid, 3)) return 1;
  4857.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /disfarce [ID]", "Use o comando para se disfarçar de algum jogador.");
  4858.     new Cor = GetPlayerColor(ID);
  4859.     new Skin = GetPlayerSkin(ID);
  4860.     NomeOriginal[playerid] = Nome(playerid);
  4861.     SetPlayerName(playerid, Nome(ID));
  4862.     SetPlayerColor(playerid, Cor);
  4863.     SetPlayerSkin(playerid, Skin);
  4864.     SetarDado(playerid, Disfarcado, true);
  4865.     Msg(playerid, AMARELO, "Para sair do disfarce use /sairdisfarce.");
  4866.     return 1;
  4867. }
  4868.  
  4869. CMD:sairdisfarce(playerid, params[])
  4870. {
  4871.     if(!NivelRequerido(playerid, 3)) return 1;
  4872.     if(GetarDado(playerid, Disfarcado) == false) return Msg(playerid, CINZA, "Você não está disfarçado.");
  4873.     SetPlayerName(playerid, NomeOriginal[playerid]);
  4874.     SetPlayerSkin(playerid, 9);
  4875.     SetPlayerColor(playerid, 0x24E9FFFF);
  4876.     Msg(playerid, AMARELO, "Você saiu do disfarce com sucesso");
  4877.     return 1;
  4878. }
  4879.  
  4880. CMD:setarvw(playerid, params[]) {
  4881.     if(!NivelRequerido(playerid, 3)) return 1;
  4882.     new vw;
  4883.     if(sscanf(params, "ui", ID, vw))
  4884.         return MensagemDupla(playerid, "[Euro RPG] Use /setarvw [ID] [VirtualWorld]", "Use o comando para mudar o virtual world de um jogador.");
  4885.     SetPlayerVirtualWorld(ID, vw);
  4886.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} setou o Virtual World de %s para %d.", Nome(playerid), Nome(ID), vw);
  4887.     return 1;
  4888. }
  4889.  
  4890. CMD:console(playerid, params[]) {
  4891.     if(!NivelRequerido(playerid, 3))
  4892.         return 1;
  4893.     new texto[128];
  4894.     if(sscanf(params, "s", texto))
  4895.         return MensagemDupla(playerid, "[Euro RPG] Use /console [texto]", "Use o comando para imprimir uma mensagem no console do server.");
  4896.     MsgFormat(playerid, BRANCO, "Mensagem impressa no console: %s", texto);
  4897.     printf("Admin %s: %s", Nome(playerid), texto);
  4898.     return 1;
  4899. }
  4900.  
  4901. //------------------------------ADMIN LEVEL 4-----------------------------------
  4902.  
  4903. CMD:resetar(playerid, params[])
  4904. {
  4905.     if(!NivelRequerido(playerid, 4)) return 1;
  4906.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /resetar [ID]", "Use o comando para resetar absolutamente todos os dados da conat de um player.");
  4907.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} resetou a conta de %s.", Nome(playerid), Nome(ID));
  4908.     SetarDado(ID, Admin, 0);
  4909.     SetarDado(ID, Vip, false);
  4910.     SetarDado(ID, Helper, false);
  4911.     SetarDado(ID, Matou, 0);
  4912.     SetarDado(ID, Morreu, 0);
  4913.     SetarDado(ID, Preso, 0);
  4914.     SetarDado(ID, Calado, false);
  4915.     SetarDado(ID, Congelado, false);
  4916.     SetPlayerScore(ID, 0);
  4917.     return 1;
  4918. }
  4919.  
  4920. CMD:dentradas(playerid, params[])
  4921. {
  4922.     if(!NivelRequerido(playerid, 4)) return 1;
  4923.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} desabilitou as entradas em lojas próprias do jogo.", Nome(playerid));
  4924.     DisableInteriorEnterExits();
  4925.     Msg(playerid, CINZA, "Para ativa-las novamente de um /gmx.");
  4926.     return 1;
  4927. }
  4928.  
  4929. CMD:foderplayer(playerid, params[])
  4930. {
  4931.     new m[128];
  4932.     if(!NivelRequerido(playerid, 4)) return 1;
  4933.     if(sscanf(params, "us", ID, m)) return MensagemDupla(playerid, "[Euro RPG] Use /foderplayer [ID] [Motivo]", "Use o comando para mandar um jogador para o carandiru, congela-lo e força-lo a ouvir Restart.");
  4934.     SetPlayerPos(ID, 107.2300,1920.6311,18.5208);
  4935.     SetPlayerWorldBounds(ID, 337.5694,101.5826,1940.9759,1798.7453);
  4936.     TogglePlayerControllable(ID, false);
  4937.     PlayerDados[ID][Calado] = true;
  4938.     format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Fodeo o player {1B95E0}%s{00C2EC} pelo motivo: %s.\n\r", Nome(playerid), Nome(ID), m);
  4939.     SendClientMessageToAll(AZUL_CLARO, String);
  4940.     PlayAudioStreamForPlayer(ID, "http://dc239.4shared.com/img/288497172/b1c25846/dlink__2Fdownload_2FAzhEPzew_3Ftsid_3D20120321-232554-e2632526/preview.mp3", 0, 0, 0, 10, 0);
  4941.     if(!DOF2_FileExists("EuroRPG/Fodidos.txt"))
  4942.     {
  4943.         DOF2_CreateFile("EuroRPG/Fodidos.txt");
  4944.     }
  4945.     EscreverLog("EuroRPG/Logs/Fodidos.txt", String);
  4946.     new ip[25];
  4947.     GetPlayerIp(ID, ip, 25);
  4948.     format(String, sizeof(String), "Nome: %s. Admin: %s. Motivo: %s", Nome(ID), Nome(playerid), m);
  4949.     DOF2_SetString("EuroRPG/Fodidos.txt", ip, String);
  4950.     MensagemFormatada(AMARELO, "O IP do player fodido (%s) é %s. Para parar de fode-lo use /desfoder [IP]", Nome(ID), ip);
  4951.     SalvarDados(ID);
  4952.     return 1;
  4953. }
  4954.  
  4955. CMD:desfoder(playerid, params[])
  4956. {
  4957.     new ip[25];
  4958.     if(!NivelRequerido(playerid, 4)) return 1;
  4959.     if(sscanf(params, "s", ip)) return MensagemDupla(playerid, "[Euro RPG] Use /desfoder [IP]", "Use o comando para para de foder um player.");
  4960.     if(!DOF2_FileExists("EuroRPG/Fodidos.txt"))
  4961.     {
  4962.         SendClientMessage(playerid, AMARELO, "Não existe nenhum IP fodido.");
  4963.         return 1;
  4964.     }
  4965.     format(String, sizeof(String), "%i", ip);
  4966.     if(!DOF2_IsSet("EuroRPG/Fodidos.txt", String))
  4967.     {
  4968.         format(String, sizeof(String), "O IP %s não está fodido.", ip);
  4969.         SendClientMessage(playerid, AMARELO, String);
  4970.         return 1;
  4971.     }
  4972.     DOF2_Unset("EuroRPG/Fodidos.txt", String);
  4973.     format(String, sizeof(String), "IP %s desfodido com sucesso.", ip);
  4974.     Msg(playerid, VERDE_CLARO, String);
  4975.     return 1;
  4976. }
  4977.  
  4978. CMD:darvip(playerid, params[])
  4979. {
  4980.     if(!NivelRequerido(playerid, 4)) return 1;
  4981.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /darvip [ID]", "Use o comando para dar vip a algum jogador.");
  4982.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} deu VIP a {1B95E0}%s{00C2EC}", Nome(playerid), Nome(ID));
  4983.     SetarDado(ID, Vip, true);
  4984.     DarVip(ID);
  4985.     return 1;
  4986. }
  4987.  
  4988. CMD:tirarvip(playerid, params[])
  4989. {
  4990.     if(!NivelRequerido(playerid, 4)) return 1;
  4991.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /tirarvip [ID]", "Use o comando para tirar o VIP de algum player.");
  4992.     new str[50];
  4993.     format(str, 50, "EuroRPG/Admins/%s.sav", Nome(playerid));
  4994.     if(!(DOF2_FileExists(str)))
  4995.         return Msg(playerid, -1, "O jogador não é Vip.");
  4996.     if(!(DOF2_IsSet(str, "Vip")))
  4997.         return Msg(playerid, -1, "O jogador não é Vip.");
  4998.     if(DOF2_GetBool(str, "Vip") == false)
  4999.         return Msg(playerid, -1, "O jogador não é Vip.");
  5000.     SetarDado(ID, Vip, false);
  5001.     TirarVip(ID);
  5002.     format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} tirou seu VIP.", Nome(playerid));
  5003.     SendClientMessage(ID, AZUL_CLARO, String);
  5004.     format(String, sizeof(String), "Você tirou o VIP de %s.", Nome(ID));
  5005.     SendClientMessage(playerid, AZUL_CLARO, String);
  5006.     return 1;
  5007. }
  5008.  
  5009. /*CMD:kickartodos(playerid, params[])
  5010. {
  5011.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5012.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5013.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Kickou Todos do servidor!", Nome(playerid));
  5014.     SendClientMessageToAll(AZUL_CLARO, String);
  5015.     for(new i = 0; i < MAX_PLAYERS; i++)
  5016.     {
  5017.         if(PlayerDados[i][Admin] < 1)
  5018.         {
  5019.             Kick(i);
  5020.         }
  5021.     }
  5022.     return 1;
  5023. }*/
  5024.  
  5025. CMD:desarmartodos(playerid, params[])
  5026. {
  5027.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5028.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5029.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Tirou as armas de Todos do servidor!", Nome(playerid));
  5030.     SendClientMessageToAll(AZUL_CLARO, String);
  5031.     for(new i = 0; i < MAX_PLAYERS; i++)
  5032.     {
  5033.         if(PlayerDados[i][Admin] < 1)
  5034.         {
  5035.             ResetPlayerWeapons(i);
  5036.         }
  5037.     }
  5038.     return 1;
  5039. }
  5040.  
  5041. CMD:chatfalso(playerid, params[])
  5042. {
  5043.     new Fala[128];
  5044.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5045.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5046.     if(sscanf(params, "us", ID, Fala)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /chatfalso [ID] [Fala]"), SendClientMessage(playerid, CINZA, "Use o comando para fazer com que você fale por um certo jogador");
  5047.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  5048.     new Cor = GetPlayerColor(ID);
  5049.     format(String, sizeof(String), "%s: {FFFFFF}%s", Nome(ID), Fala);
  5050.     SendClientMessageToAll(Cor, String);
  5051.     for(new i = 0; i < MAX_PLAYERS; i++)
  5052.     {
  5053.         if(PlayerDados[i][Admin] > 0)
  5054.         {
  5055.             format(String, sizeof(String), "[Euro RPG] O Admin %s usou o chat falso com o jogador %s. Esta mensagem foi exibida apenas para admin", Nome(playerid), Nome(ID));
  5056.             SendClientMessage(i, AZUL_CLARO, String);
  5057.         }
  5058.     }
  5059.     return 1;
  5060. }
  5061.  
  5062. /*CMD:gmx(playerid, params[])
  5063. {
  5064.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5065.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5066.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Deu GMX no servidor, em alguns segundos ele será reiniciado", Nome(playerid));
  5067.     GameTextForPlayer(playerid,"~w~] ~g~~h~Aguarde Servidor Reiniciando GMX ~w~]", 8000, 3);
  5068.     SendClientMessageToAll(AZUL_CLARO, String);
  5069.     Loop(i, MAX_PLAYERS)
  5070.     {
  5071.         SalvarDados(i);
  5072.     }
  5073.     SendRconCommand("gmx");
  5074.     return 1;
  5075. }*/
  5076.  
  5077. CMD:invisivel(playerid, params[])
  5078. {
  5079.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5080.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5081.     if(PlayerDados[playerid][Invisivel] == true) return SendClientMessage(playerid, CINZA, "[Euro RPG] Você ja está invisivel!");
  5082.     SetPlayerVirtualWorld(playerid, 5);
  5083.     PlayerDados[playerid][Invisivel] = true;
  5084.     SendClientMessage(playerid, AZUL_CLARO, "Use /visivel para ficar visivel novamente");
  5085.     return 1;
  5086. }
  5087.  
  5088. CMD:visivel(playerid, params[])
  5089. {
  5090.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5091.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5092.     if(PlayerDados[playerid][Invisivel] == false) return SendClientMessage(playerid, CINZA, "[Euro RPG] Você não está invisivel!");
  5093.     SetPlayerVirtualWorld(playerid, 0);
  5094.     PlayerDados[playerid][Invisivel] = false;
  5095.     SendClientMessage(playerid, AZUL_CLARO, "Você está visivel novamente!");
  5096.     return 1;
  5097. }
  5098.  
  5099. CMD:interiortodos(playerid, params[])
  5100. {
  5101.     new Interior;
  5102.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5103.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5104.     if(sscanf(params, "i", Interior)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /interiortodos [Interior]"), SendClientMessage(playerid, CINZA, "Use o comando para setar o interior de todos os jogador");
  5105.     for(new i = 0; i < MAX_PLAYERS; i++)
  5106.     {
  5107.         SetPlayerInterior(i, Interior);
  5108.     }
  5109.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Setou o interior de todos para %d", Nome(playerid), Interior);
  5110.     SendClientMessageToAll(AZUL_CLARO, String);
  5111.     return 1;
  5112. }
  5113.  
  5114. CMD:ips(playerid, params[])
  5115. {
  5116.     new StrIps[400];
  5117.     new Players = 0;
  5118.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5119.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5120.     for(new i = 0; i < MAX_PLAYERS; i++)
  5121.     {
  5122.         if(IsPlayerConnected(i))
  5123.         {
  5124.             Players++;
  5125.             new Ip[30];
  5126.             GetPlayerIp(i, Ip, 30);
  5127.             format(String, sizeof(String), "\n{1BE049}Nome: {FFFFFF}%s\n{1BE049}Ip: {FFFFFF}%s\n", Nome(i), Ip);
  5128.             if(Players == 30) {
  5129.                 strcat(Ips2, String);
  5130.                 break;
  5131.             }
  5132.             strcat(StrIps, String);
  5133.         }
  5134.     }
  5135.     if(Players <= 30) {
  5136.         ShowPlayerDialog(playerid, DIALOG_IPS, DIALOG_STYLE_MSGBOX, "Ips dos jogadores conectados:", StrIps, "Fechar", "");
  5137.     }
  5138.     else {
  5139.         ShowPlayerDialog(playerid, DIALOG_IPS1, DIALOG_STYLE_MSGBOX, "Ips dos jogadores conectados:", Ips2, "Proximo", "Fechar");
  5140.     }
  5141.     return 1;
  5142. }
  5143.  
  5144. CMD:congelartodos(playerid, params[])
  5145. {
  5146.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5147.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5148.     for(new i = 0; i < MAX_PLAYERS; i++)
  5149.     {
  5150.         TogglePlayerControllable(i, false);
  5151.         PlayerDados[i][Congelado] = true;
  5152.     }
  5153.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Congelou todos os Jogadores", Nome(playerid));
  5154.     SendClientMessageToAll(AZUL_CLARO, String);
  5155.     return 1;
  5156. }
  5157.  
  5158. CMD:descongelartodos(playerid, params[])
  5159. {
  5160.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5161.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5162.     for(new i = 0; i < MAX_PLAYERS; i++)
  5163.     {
  5164.         TogglePlayerControllable(i, true);
  5165.         PlayerDados[i][Congelado] = false;
  5166.     }
  5167.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Descongelou todos os Jogadores", Nome(playerid));
  5168.     SendClientMessageToAll(AZUL_CLARO, String);
  5169.     return 1;
  5170. }
  5171.  
  5172. CMD:matartodos(playerid, params[])
  5173. {
  5174.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 4 para usar este comando!");
  5175.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5176.     for(new i = 0; i < MAX_PLAYERS; i++)
  5177.     {
  5178.         SetPlayerHealth(i, 0);
  5179.     }
  5180.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Matou todos os Jogadores", Nome(playerid));
  5181.     SendClientMessageToAll(AZUL_CLARO, String);
  5182.     return 1;
  5183. }
  5184.  
  5185. CMD:criaricone(playerid, params[]) {
  5186.     if(!NivelRequerido(playerid, 4))
  5187.         return 1;
  5188.     new estilo;
  5189.     if(sscanf(params, "ii", ID, estilo))
  5190.         return MensagemDupla(playerid, "[Euro RPG] Use /criaricone [ID icone] [Estilo]", "Use o comando para acrecentar um icone no mapa.");
  5191.     if((ID < 0) || (ID > 99))
  5192.         return Msg(playerid, CINZA, "Use IDs de 0 a 99");
  5193.     if((estilo < 0) || (estilo > 63))
  5194.         return Msg(playerid, CINZA, "Use estilos de 0 a 63.");
  5195.     new
  5196.         Float:X,
  5197.         Float:Y,
  5198.         Float:Z
  5199.     ;
  5200.     GetPlayerPos(playerid, X, Y, Z);
  5201.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} Criou um icone no mapa!", Nome(playerid));
  5202.     Loop(i, MAX_PLAYERS)
  5203.         if(IsPlayerConnected(i))
  5204.             SetPlayerMapIcon(i, ID, X, Y, Z, estilo, 0, MAPICON_GLOBAL);
  5205.     return 1;
  5206. }
  5207.  
  5208. CMD:destruiricone(playerid, params[]) {
  5209.     if(!NivelRequerido(playerid, 4))
  5210.         return 1;
  5211.     if(sscanf(params, "i", ID))
  5212.         return MensagemDupla(playerid, "[Euro RPG] Use /destruiricone [ID icone]", "Use o comando para destruir um icone criado com o /criaricone");
  5213.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} destruiu um icone do mapa!", Nome(playerid));
  5214.     Loop(i, MAX_PLAYERS)
  5215.         RemovePlayerMapIcon(i, ID);
  5216.     return 1;
  5217. }
  5218.  
  5219. //-----------------------ADMIN NIVEL 5------------------------------------------
  5220.  
  5221. CMD:trancarserver(playerid, params[])
  5222. {
  5223.     new senha[30];
  5224.     if(!NivelRequerido(playerid, 5)) return 1;
  5225.     if(sscanf(params, "s", senha)) return MensagemDupla(playerid, "[Euro RPG] Use /trancarserver [Senha]", "Use o comando para trancar seu servidor utilizando a senha desejada.");
  5226.     format(String, sizeof(String), "password %s", senha);
  5227.     SendRconCommand(String);
  5228.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} trancou o servidor", Nome(playerid));
  5229.     ServerTrancado = true;
  5230.     return 1;
  5231. }
  5232.  
  5233. CMD:destrancarserver(playerid, params[])
  5234. {
  5235.     if(!NivelRequerido(playerid, 5)) return 1;
  5236.     if((!ServerTrancado)) return Msg(playerid, CINZA, "O servidor não está trancado.");
  5237.     SendRconCommand("password 0");
  5238.     MensagemFormatadaParaTodos(AZUL_CLARO, "O admin {1B95E0}%s{00C2EC} destrancou o servidor", Nome(playerid));
  5239.     return 1;
  5240. }
  5241.  
  5242. CMD:darhelper(playerid, params[])
  5243. {
  5244.     if(NivelRequerido(playerid, 5))
  5245.     {
  5246.         if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /darhelper [ID]", "Use o comando para oferecer helper a algum jogador.");
  5247.         if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  5248.         format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} ofereceu Helper a %s", Nome(playerid), Nome(ID));
  5249.         SendClientMessageToAll(AZUL_CLARO, String);
  5250.         format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} está te oferecendo Helper.", Nome(playerid));
  5251.         ShowPlayerDialog(ID, DIALOG_HELPER, DIALOG_STYLE_MSGBOX, "Helper", String, "Aceitar", "Recusar");
  5252.     }
  5253.     return 1;
  5254. }
  5255.  
  5256. CMD:tirarhelper(playerid, params[])
  5257. {
  5258.     if(NivelRequerido(playerid, 5))
  5259.     {
  5260.         if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /tirarhelper [ID]", "Use o comando para tirar helper de algum player.");
  5261.         MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} tirou o helper de {1B95E0}%s{00C2EC}", Nome(playerid), Nome(ID));
  5262.         PlayerDados[ID][Helper] = false;
  5263.         //DOF2_Unset("EuroRPG/Helpers.hel", Nome(ID));
  5264.         TirarHelper(ID);
  5265.     }
  5266.     return 1;
  5267. }
  5268.  
  5269. CMD:versenha(playerid, params[])
  5270. {
  5271.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5272.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5273.     if(sscanf(params, "u", ID)) return MensagemDupla(playerid, "[Euro RPG] Use /versenha [ID]", "Use o comando para ver a senha algum jogador.");
  5274.     format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(ID));
  5275.     if(!DOF2_IsSet(StringContas, "Senha")) return SendClientMessage(playerid, CINZA, "Não é possivel ver a senha do jogador pois o server não usa o sistema de registro do FS");
  5276.     format(String, sizeof(String), "A senha de %s é '%s'", Nome(ID), DOF2_GetString(StringContas, "Senha"));
  5277.     SendClientMessage(playerid, AMARELO, String);
  5278.     return 1;
  5279. }
  5280.  
  5281. CMD:nomeserver(playerid, params[])
  5282. {
  5283.     new NomeServer[128];
  5284.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5285.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5286.     if(sscanf(params, "s", NomeServer)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /nomeserver [Nome]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar o nome do servidor");
  5287.     format(String, sizeof(String), "hostname %s", NomeServer);
  5288.     SendRconCommand(String);
  5289.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Mudou o nome do server para {1B95E0}%s{00C2EC}\r\n", Nome(playerid), NomeServer);
  5290.     SendClientMessageToAll(AZUL_CLARO, String);
  5291.     EscreverLog("EuroRPG/Logs/Nome_Server.log", String);
  5292.     return 1;
  5293. }
  5294.  
  5295. CMD:nomegm(playerid, params[])
  5296. {
  5297.     new NomeGM[128];
  5298.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5299.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5300.     if(sscanf(params, "s", NomeGM)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /nomegm [Nome]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar o nome do game mode");
  5301.     SetGameModeText(NomeGM);
  5302.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Mudou o nome do Game Mode para {1B95E0}%s{00C2EC}\r\n", Nome(playerid), NomeGM);
  5303.     SendClientMessageToAll(AZUL_CLARO, String);
  5304.     EscreverLog("EuroRPG/Logs/Nome_GM.log", String);
  5305.     return 1;
  5306. }
  5307.  
  5308. CMD:nomemapa(playerid, params[])
  5309. {
  5310.     new NomeMapa[128];
  5311.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5312.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5313.     if(sscanf(params, "s", NomeMapa)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /nomemapa [Nome]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar o nome do mapa do server");
  5314.     format(String, sizeof(String), "mapname %s", NomeMapa);
  5315.     SendRconCommand(String);
  5316.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Mudou o nome do Mapa para {1B95E0}%s{00C2EC}", Nome(playerid), NomeMapa);
  5317.     SendClientMessageToAll(AZUL_CLARO, String);
  5318.     return 1;
  5319. }
  5320.  
  5321. CMD:criarteleporte(playerid, params[])
  5322. {
  5323.     new Comando[128],
  5324.         Float:X,
  5325.         Float:Y,
  5326.         Float:Z;
  5327.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5328.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5329.     if(sscanf(params, "s", Comando)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /criarteleporte [Comando]"), SendClientMessage(playerid, CINZA, "Use o comando para criar um teleporte, o teleporte será salvo caso o server seja reiniciado");
  5330.     format(String, sizeof(String), "EuroRPG/Teleportes/te %s.txt", Comando);
  5331.     if(DOF2_FileExists(String)) return SendClientMessage(playerid, CINZA, "[Euro RPG] Este Comando ja existe!");
  5332.     DOF2_CreateFile(String);
  5333.     GetPlayerPos(playerid, X, Y, Z);
  5334.     DOF2_SetString(String, "Admin", Nome(playerid));
  5335.     DOF2_SetString(String, "Comando", Comando);
  5336.     DOF2_SetFloat(String, "X", X);
  5337.     DOF2_SetFloat(String, "Y", Y);
  5338.     DOF2_SetFloat(String, "Z", Z);
  5339.     format(String, sizeof(String), "[Euro RPG] O Admin {1B95E0}%s{00C2EC} Criou o teleporte {1B95E0}'te %s'{00C2EC}", Nome(playerid), Comando);
  5340.     SendClientMessageToAll(AZUL_CLARO, String);
  5341.     return 1;
  5342. }
  5343.  
  5344. CMD:daradmin(playerid, params[])
  5345. {
  5346.     if(!IsPlayerAdmin(playerid) && PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5347.     if(sscanf(params, "ud", ID, nivel)) return SendClientMessage(playerid, CINZA, "Use /daradmin [ID] [nivel]"), SendClientMessage(playerid, CINZA, "Use o comando para oferecer admin para algum jogador");
  5348.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "[ERRO] ID invalido");
  5349.     if(nivel < 0 || nivel > 5) return SendClientMessage(playerid, BRANCO, "[ERRO] Nivel invalido, use de 0 a 5");
  5350.     format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Ofereceu Admin Nivel %d de Admin para %s.\r\n", Nome(playerid), nivel, Nome(ID));
  5351.     SendClientMessageToAll(VERDE_AGUA, String);
  5352.     format(String, sizeof(String), "{FFFFFF}O Admin {1B95E0}%s{FFFFFF} está lhe oferencendo admin nivel {1b95E0}%d", Nome(playerid), nivel);
  5353.     ShowPlayerDialog(ID, DIALOG_ADM, DIALOG_STYLE_MSGBOX, "Admin", String, "Aceitar", "Recusar");
  5354.     return 1;
  5355. }
  5356.  
  5357. CMD:tiraradmin(playerid, params[])
  5358. {
  5359.     if(!IsPlayerAdmin(playerid) && PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5360.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "Use /tiraradmin [id]");
  5361.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "ID invalido");
  5362.     if(PlayerDados[ID][Admin] < 1) return SendClientMessage(playerid, BRANCO, "Esse jogador não é admin.");
  5363.     PlayerDados[ID][Admin] = 0;
  5364.     new string[100];
  5365.     format(string, sizeof(string),"O admin %s tirou seu nivel de admin.", Nome(playerid));
  5366.     SendClientMessage(ID, CINZA, string);
  5367.     format(string, sizeof(string),"Admin de %s retirado com sucesso.", Nome(ID));
  5368.     SendClientMessage(playerid, CINZA, string);
  5369.     return 1;
  5370. }
  5371.  
  5372. CMD:setaradmin(playerid, params[])
  5373. {
  5374.     new l;
  5375.     if(!NivelRequerido(playerid, 5)) return 1;
  5376.     if(sscanf(params, "ui", ID, l)) return MensagemDupla(playerid, "Use /setaradmin [ID] [Nivel]", "Use o comando para definir o admin de algum player");
  5377.     SetarDado(ID, Admin, l);
  5378.     if(l == (0)) {
  5379.         TirarAdmin(ID);
  5380.     }
  5381.     MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} setou o admin de %s para %d.", Nome(playerid), Nome(ID), l);
  5382.     return 1;
  5383. }
  5384.  
  5385. CMD:setargravidade(playerid, params[])
  5386. {
  5387.     new Gravidade;
  5388.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5389.     if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  5390.     if(sscanf(params, "i", Gravidade )) return SendClientMessage(playerid, CINZA, "[Euro RPG] Use /setargravidade [Gravidade]"), SendClientMessage(playerid, CINZA, "Use o comando para alterar a gravidade do server");
  5391.     format(String, sizeof(String), "O Admin {1B95E0}%s{00C2EC} Setou a gravidade do server para %d.", Nome(playerid), Gravidade);
  5392.     SendClientMessageToAll(VERDE_AGUA, String);
  5393.     SetGravity(Gravidade);
  5394.     return 1;
  5395. }
  5396.  
  5397. CMD:seradmin(playerid, params[])
  5398. {
  5399.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, CINZA, "Logue-se na Rcon para usar este comando.");
  5400.     SetarDado(playerid, Admin, 5);
  5401.     DarAdmin(playerid, 5);
  5402.     Msg(playerid, CINZA, "Bem Vindo a Administração.");
  5403.     return 1;
  5404. }
  5405.  
  5406. //(=-=-=-=-=-=-=-=( Comandos do serve )=-=-=-=-=-=--=-=)
  5407.  
  5408. CMD:convidar(playerid, params[])
  5409. {
  5410.     new id, playername[MAX_PLAYER_NAME], idname[MAX_PLAYER_NAME], string[128];
  5411.     if(PlayerDados[playerid][Cargo] != 6) return SendClientMessage(playerid, BRANCO, "Você não é líder.");
  5412.     if(sscanf(params, "d", id)) return SendClientMessage(playerid, VERMELHO, "Use: /convidar {FF0000}[id]");
  5413.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERDE, "Este jogador não está online.");
  5414.     if(PlayerDados[id][Organizacao] != 0) return SendClientMessage(playerid, VERDE, "Este jogador já está em uma Organização.");
  5415.     if(playerid == id) return SendClientMessage(playerid, AZUL, "Você não pode convidar a você mesmo.");
  5416.     GetPlayerName(id, idname, sizeof(idname));
  5417.     format(string, sizeof(string), "{FFFFFF}Você convidou {FF0000}%s {FFFFFF}para sua Organização.", idname);
  5418.     SendClientMessage(playerid, GetPlayerColor(playerid), string);
  5419.     GetPlayerName(playerid, playername, sizeof(playername));
  5420.     format(string, sizeof(string), "{FF0000}%s {FFFFFF}está lhe Convidando para fazer parte da Organização: {FF0000}%s \n{FFFFFF}Deseja aceitar?", playername, NomeORG(playerid));
  5421.     ShowPlayerDialog(id, 30, DIALOG_STYLE_MSGBOX, "Convite para organização", string, "Sim", "Não");
  5422.     SetPVarInt(id, "OrgConvidado", PlayerDados[playerid][Organizacao]);
  5423.     SetPVarInt(id, "QuemConvidou", playerid);
  5424.     InviteOffer[id] = playerid;
  5425.     return 1;
  5426. }
  5427.  
  5428. CMD:membros(playerid)
  5429. {
  5430.     new playername[MAX_PLAYER_NAME], string[128];
  5431.     if(PlayerDados[playerid][Organizacao] >= 1)
  5432.     {
  5433.         SendClientMessage(playerid, 0xBFC0C2FF, "(=-=-=-=-=-=-=({FFD700}Membros Online{BFC0C2})=-=-=-=-=-=-=)");
  5434.         for(new i = 0; i < MAX_PLAYERS; i++)
  5435.         {
  5436.             if(IsPlayerConnected(i))
  5437.             {
  5438.                 if(PlayerDados[i][Organizacao] == PlayerDados[playerid][Organizacao])
  5439.                 {
  5440.                     GetPlayerName(i, playername, sizeof(playername));
  5441.                     if(PlayerDados[i][Cargo] <= 4)
  5442.                     {
  5443.                         format(string, sizeof(string), "{FFFFFF}Membro: {00FF00}%s, {FFFFFF}Cargo: {00FF00}%d", playername, PlayerDados[i][Cargo]);
  5444.                         SendClientMessage(playerid, GetPlayerColor(playerid), string);
  5445.                     }
  5446.                     else
  5447.                     {
  5448.                         if(PlayerDados[i][Cargo] == 6)
  5449.                         {
  5450.                             format(string, sizeof(string), "{FFFFFF}Membro: {00FF00}%s, {FFFFFF}Cargo: {00FF00}Líder", playername);
  5451.                             SendClientMessage(playerid, GetPlayerColor(playerid), string);
  5452.                         }
  5453.                         else if(PlayerDados[i][Cargo] == 5)
  5454.                         {
  5455.                             format(string, sizeof(string), "{FFFFFF}Membro: {00FF00}%s, {FFFFFF}Cargo: {00FF00}Sub-Líder", playername);
  5456.                             SendClientMessage(playerid, GetPlayerColor(playerid), string);
  5457.                         }
  5458.                     }
  5459.                 }
  5460.             }
  5461.         }
  5462.     }
  5463.     else
  5464.     {
  5465.         SendClientMessage(playerid, VERMELHO, "Você não pertence a nenhuma Organização.");
  5466.     }
  5467.     return 1;
  5468. }
  5469.  
  5470. CMD:darlider(playerid, params[])
  5471. {
  5472.     new id, org, string[256], quemdeu[MAX_PLAYER_NAME], quemganhou[MAX_PLAYER_NAME];
  5473.     if(PlayerDados[playerid][Organizacao] != 0) return SendClientMessage(playerid, -1,"Ele ja Participa de uma Org !");
  5474.     if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, BRANCO, "Você precisa ser admin nivel 5 para usar este comando!");
  5475.     if(sscanf(params, "ud", id, org)) return SendClientMessage(playerid, VERDE, "USE: /darlider [ID] [Org]");
  5476.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "Este jogador não está online.");
  5477.     if(org > 2 || org < 0) return SendClientMessage(playerid, -1," Org's 0 á 2");
  5478.     PlayerDados[playerid][Cargo] = org;
  5479.     GetPlayerName(id, quemganhou, sizeof(quemganhou));
  5480.     GetPlayerName(playerid, quemdeu, sizeof(quemdeu));
  5481.     format(string, sizeof(string), "{FFFFFF}Você deu líder da Organização para {FF0000}%s({FFFFFF}ID: {FF0000}%d)", quemganhou, id);
  5482.     SendClientMessage(playerid, BRANCO, string);
  5483.     format(string, sizeof(string), "{FF0000}%s{FFFFFF}(ID: %d){FFFFFF}te deu líder da Organização.", quemdeu, playerid);
  5484.     SendClientMessage(id, BRANCO, string);
  5485.     format(string, sizeof(string), "{FF0000}%s{FFFFFF}(ID: %d){FFFFFF} é o novo líder de uma Organização", quemganhou, id);
  5486.     SendClientMessageToAll(BRANCO, string);
  5487.     if(org == 1) { PlayerDados[playerid][pSkin] = 104; }//Ballas
  5488.     if(org == 2) { PlayerDados[playerid][pSkin] = 283; }//Policia Militar
  5489.     PlayerDados[id][Organizacao] = org;
  5490.     PlayerDados[id][Cargo] = 6;
  5491.     SpawnPlayer(id);
  5492.     return 1;
  5493. }
  5494.  
  5495. CMD:r(playerid, params[])
  5496. {
  5497.     new text[128], string[128], playername[MAX_PLAYER_NAME];
  5498.     new NomeCargo = PlayerDados[playerid][Cargo];
  5499.     if(sscanf(params, "s", text)) return SendClientMessage(playerid, VERDE, "USE: /r [Mensagem]");
  5500.     if(PlayerDados[playerid][Organizacao] == Civil) return SendClientMessage(playerid, AZUL, "Civis não tem Rádio.");
  5501.     GetPlayerName(playerid, playername, sizeof(playername));
  5502.     format(string, sizeof(string), "(Rádio) %s [Cargo: %d] diz: %s", playername, NomeCargo, text);
  5503.     SendFamilyMessage(PlayerDados[playerid][Organizacao], VERDE, string);
  5504.     return 1;
  5505. }
  5506.  
  5507. CMD:promover(playerid, params[])
  5508. {
  5509.     new id, cargo, string[128], playername[MAX_PLAYER_NAME], idname[MAX_PLAYER_NAME];
  5510.     if(PlayerDados[playerid][Cargo] != 6) return SendClientMessage(playerid, VERMELHO, "Você não é líder.");
  5511.     if(sscanf(params, "dd", id, cargo)) return SendClientMessage(playerid, ROXO, "USE: /promover [id] [Cargo]");
  5512.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERDE, "Este jogador não está online.");
  5513.     if(PlayerDados[id][Organizacao] != PlayerDados[playerid][Organizacao]) return SendClientMessage(playerid, AZUL, "Este jogador não é da mesma Organização que você.");
  5514.     if(playerid == id) return SendClientMessage(playerid, AZUL, "Você não pode promover a você mesmo.");
  5515.     if(cargo >= 1 || cargo <= 5)
  5516.     {
  5517.         PlayerDados[id][Cargo] = cargo;
  5518.         GetPlayerName(playerid, playername, sizeof(playername));
  5519.         GetPlayerName(id, idname, sizeof(idname));
  5520.         format(string, sizeof(string), "%s promoveu o membro %s para o Cargo %d.", playername, idname, cargo);
  5521.         SendFamilyMessage(PlayerDados[playerid][Organizacao], GetPlayerColor(playerid), string);
  5522.         format(string, sizeof(string), "%s te promoveu para o Cargo %d.", playername, cargo);
  5523.         SendClientMessage(id, GetPlayerColor(playerid), string);
  5524.     }
  5525.     else
  5526.     {
  5527.         SendClientMessage(playerid, AMARELO, "Cargos de 1 a 5");
  5528.         return 1;
  5529.     }
  5530.     return 1;
  5531. }
  5532.  
  5533. CMD:demitir(playerid, params[])
  5534. {
  5535.     new id, motivo[128], string[128], playername[MAX_PLAYER_NAME], idname[MAX_PLAYER_NAME];
  5536.     if(PlayerDados[playerid][Cargo] != 6) return SendClientMessage(playerid, AZUL, "Você não é líder.");
  5537.     if(sscanf(params, "ds", id, motivo)) return SendClientMessage(playerid, ROSA, "Use: /demitir [id] [Motivo]");
  5538.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERDE, "Este jogador não está online.");
  5539.     if(PlayerDados[id][Organizacao] != PlayerDados[playerid][Organizacao]) return SendClientMessage(playerid, ROSA, "Este jogador não é da mesma Organização que você.");
  5540.     if(playerid == id) return SendClientMessage(playerid, VERDE, "Você não pode demitir a você mesmo.");
  5541.     PlayerDados[id][Organizacao] = Civil;
  5542.     PlayerDados[id][Cargo] = 0;
  5543.     GetPlayerName(playerid, playername, sizeof(playername));
  5544.     GetPlayerName(id, idname, sizeof(idname));
  5545.     format(string, sizeof(string), "%s demitiu o membro %s da Organização.", playername, idname);
  5546.     SendFamilyMessage(PlayerDados[playerid][Organizacao], GetPlayerColor(playerid), string);
  5547.     format(string, sizeof(string), "%s te demitiu da Organização. Motivo: %s.", playername, motivo);
  5548.     SendClientMessage(id, GetPlayerColor(playerid), string);
  5549.     SpawnPlayer(id);
  5550.     return 1;
  5551. }
  5552.  
  5553. CMD:pedircontas(playerid, params[])
  5554. {
  5555.     new string[128];
  5556.     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, BRANCO, "{0000FF}Proibido {FFFFFF}Usar esse comando no Veiculo !");
  5557.     if(PlayerDados[playerid][Cargo] == 0) return SendClientMessage(playerid, BRANCO, "Você não é de nenhuma Organizacao !");
  5558.     if(PlayerDados[playerid][Sexo] == 1)
  5559.     {
  5560.         PlayerDados[playerid][pSkin] = 289;
  5561.     }
  5562.     else if(PlayerDados[playerid][Sexo] == 2)
  5563.     {
  5564.         PlayerDados[playerid][pSkin] = 12;
  5565.     }
  5566.     PlayerDados[playerid][Organizacao] = Civil;
  5567.     PlayerDados[playerid][Cargo] = 0;
  5568.     SendClientMessage(playerid, -1," Agora Você é um {FFFF00}Civil !");
  5569.     format(string, sizeof(string), "{FFFFFF}Você Pediu Contas da {FFFF00}Organização.");
  5570.     SendClientMessage(playerid, GetPlayerColor(playerid), string);
  5571.     SpawnPlayer(playerid);
  5572.     return 1;
  5573. }
  5574.  
  5575. CMD:ang(playerid, params[])
  5576. {
  5577.     new texto;
  5578.     if(PlayerDados[playerid][Organizacao] != 1) return SendClientMessage(playerid, BRANCO, " Você Não faz Parte de Gangue pra Usar esse Comando !");
  5579.     if(PlayerDados[playerid][Cargo] < 4) return SendClientMessage(playerid, BRANCO, " Precisa ter Cargo +4 !");
  5580.     if(sscanf(params, "s",texto)) return SendClientMessage(playerid, COR_RED, "Use: /ang [Texto]");
  5581.     format(String, sizeof(String), "O %s Disse á Todos : %s", Nome(playerid),texto);
  5582.     SendClientMessageToAll(-1, "(=-=-=-=-=-=( {FFFFFF}Anúncio de {00FFFF} Gangue {FFFFFF})=-=-=-=-=-=)");
  5583.     SendClientMessageToAll(BRANCO, String);
  5584.     return 1;
  5585. }
  5586.  
  5587.  
  5588. CMD:abastecer(playerid, params[])
  5589. {
  5590.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5591.     if(IsAGasolina(playerid)) {
  5592.     GameTextForPlayer(playerid,"~w~~r~Abastecendo, ~w~Aguarde!",2000,3);
  5593.     Controle(playerid, 0);
  5594.     SetTimer("Novinha",TempoGas,0);
  5595.     MeuOvo[playerid] = 1; }
  5596.     return 1;
  5597. }
  5598.  
  5599. CMD:rg(playerid, params[])
  5600. {
  5601.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado para usar o COMANDO !");
  5602.     format(gstring, sizeof(gstring),"{FF0000}%s {FFFFFF}Acabou de Abrir seu {FF0000}RG!",Nome(playerid));
  5603.     Personagem(playerid, playerid);
  5604.     return 1;
  5605. }
  5606.    
  5607. CMD:ls(playerid, params[])
  5608. {
  5609.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "Precisa ser level de Admin +1 pra Usar esse Comando");
  5610.     if (GetPlayerState(playerid) == 2) {
  5611.     new tmpcar = GetPlayerVehicleID(playerid);
  5612.     SetVehiclePos(tmpcar, 1539.6094,-1694.4749,13.5469);
  5613.     LinkVehicleToInterior(tmpcar, 0); }
  5614.     else {
  5615.     SetPlayerPos(playerid, 1539.6094,-1694.4749,13.5469); }
  5616.     SendClientMessage(playerid, BRANCO, "DP/LS {FF00FF}Pronto !");
  5617.     SetPlayerInterior(playerid, 0);
  5618.     return 1;
  5619. }
  5620.  
  5621. CMD:verificar(playerid, params[])
  5622. {
  5623.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5624.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "Precisa ser Admin pra Usar esse comando !");
  5625.     SendClientMessage(playerid, BRANCO, "Procura de Hacker {FF0000}Ok !");
  5626.     VerificarArma(playerid);
  5627.     VerificarPing(playerid);
  5628.     VerificarVelocidade(playerid);
  5629.     return 1;
  5630. }
  5631.  
  5632. CMD:procurar(playerid, params[])
  5633. {
  5634.     new id;
  5635.     new Float:x,Float:y,Float:z;
  5636.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, BRANCO, "Jogado Invalido ! !");
  5637.     if(PlayerDados[playerid][Emprego] != 1) return SendClientMessage(playerid, -1,"Você Não é Detetive !");
  5638.     if(sscanf(params, "u",id)) return SendClientMessage(playerid, VERDE, "Use: /procurar [id]");
  5639.     if(id == playerid) return SendClientMessage(playerid, BRANCO, "Você Não pode se {00FFFF}Procurar !");
  5640.     CheckPoint[playerid] = 1;
  5641.     GetPlayerPos(id, x,y,z);
  5642.     SetPlayerCheckpoint(playerid, x,y,z,6);
  5643.     return 1;
  5644. }
  5645.  
  5646. CMD:empregos(playerid, params[])
  5647. {
  5648.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5649.     if(PlayerToPoint(2.0, playerid,362.0684,173.7495,1008.3828)) {
  5650.     if(PlayerDados[playerid][Emprego] > 0) return SendClientMessage(playerid, BRANCO, "Você ja tem Emprego Use: /sairemprego");
  5651.     ShowPlayerDialog(playerid,80,DIALOG_STYLE_LIST,"{00FFFF}Empregos","{FFFF00}Detetive\n{FFFF00}Advogado","Continuar","Cancelar");
  5652.     Controle(playerid, 0);
  5653.     Dialog[playerid] = 1; }
  5654.     return 1;
  5655. }
  5656.  
  5657. CMD:sairemprego(playerid, params[])
  5658. {
  5659.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5660.     if(PlayerToPoint(2.0, playerid,362.0684,173.7495,1008.3828)) {
  5661.     if(PlayerDados[playerid][Emprego] == 0) return SendClientMessage(playerid, -1, "Você não tem Emprego !");
  5662.     PlayerDados[playerid][Emprego] = 0;
  5663.     SendClientMessage(playerid, -1, "Você Saiu do Emprego !");
  5664.     return 1; }
  5665.     return 1;
  5666. }
  5667.  
  5668. CMD:soltar(playerid, params[])
  5669. {
  5670.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5671.     if(PlayerDados[playerid][Emprego] != 2) return SendClientMessage(playerid, BRANCO, "Você Não é {FF0000}Advogado !");
  5672.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "Use: /soltar [id]");
  5673.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "ID Invalido !");
  5674.     if(PlayerDados[ID][Preso] == 0) return SendClientMessage(playerid, CINZA, "O Jogador não está preso");
  5675.     if(ID == playerid) return SendClientMessage(playerid, BRANCO, "Você Não pode ser Liberar !");
  5676.     PlayerDados[ID][Preso] = 1;
  5677.     format(String, sizeof(String), "{FFFFFF}O Advogado {FF0000}%s {FFFFFF}Soltou o {FF0000}%s {FFFFFF}da Cadeia ", Nome(playerid), Nome(ID));
  5678.     SendClientMessageToAll(BRANCO, String);
  5679.     return 1;
  5680. }
  5681.  
  5682.  
  5683. CMD:ajuda(playerid, params[])
  5684. {
  5685.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, "Você não está Online pra usar esse Comando !");
  5686.     ShowPlayerDialog(playerid, 83, DIALOG_STYLE_LIST, "{FFFF00}Euro RPG", "{00FFFF}Ajuda Novato\n{00FFFF}Ajuda Lider\n{00FFFF}Ajuda Emprego\n{00FFFF}Ajuda VIP's\n{00FFFF}Ajuda Casa\n{00FFFF}Ajuda Creditos","Continuar","Cancelar");
  5687.     return 1;
  5688. }
  5689.  
  5690.  
  5691. CMD:entrar(playerid, params[])
  5692. {
  5693.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5694.     if (PlayerToPoint(3.0, playerid,1481.2853,-1773.7563,15.3478))//Prefeitura - Entrada
  5695.     {
  5696.         SetPlayerInterior(playerid,3);
  5697.         SetPlayerVirtualWorld(playerid, 0);
  5698.         SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
  5699.         GameTextForPlayer(playerid, "~w~Bem vindo a ~n~~b~Prefeitura Municipal !", 5000, 1);
  5700.     }
  5701.     if(PlayerToPoint(2.0, playerid, 1411.5503,-1699.5452,13.5395))//Centro de Licencas - Entrada
  5702.     {
  5703.         SetPlayerInterior(playerid, 3);
  5704.         SetPlayerVirtualWorld(playerid, 0);
  5705.         SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
  5706.         GameTextForPlayer(playerid, "~w~~n~Centro de ~r~~n~Licencas", 5000, 1);
  5707.     }
  5708.     if(PlayerToPoint(2.0, playerid, 2000.0389,-1114.0559,27.1250))//Ballas - Entrada
  5709.     {
  5710.         SetPlayerInterior(playerid, 5);
  5711.         SetPlayerVirtualWorld(playerid, 0);
  5712.         SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812);
  5713.         GameTextForPlayer(playerid, "~w~~n~HQ~r~~n~Ballas", 5000, 1);
  5714.     }
  5715.     if(PlayerToPoint(2.0, playerid, 1555.3458,-1675.6226,16.1953))// Policia Militar - Entrada
  5716.     {
  5717.         SetPlayerInterior(playerid, 5);
  5718.         SetPlayerVirtualWorld(playerid, 0);
  5719.         SetPlayerPos(playerid, 1474.0437,-1751.1372,3285.2859);
  5720.         GameTextForPlayer(playerid, "~w~~n~HQ~r~~n~PM", 5000, 1);
  5721.     }
  5722.     return 1;
  5723. }
  5724.  
  5725. CMD:sair(playerid, params[])
  5726. {
  5727.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5728.     if (PlayerToPoint(3.0, playerid,390.2158,173.8144,1008.3828))//Prefeitura - Saida
  5729.     {
  5730.         SetPlayerInterior(playerid,0);
  5731.         SetPlayerPos(playerid,1481.2853,-1773.7563,15.3478);
  5732.         SetPlayerVirtualWorld(playerid, 0);
  5733.     }
  5734.     if (PlayerToPoint(3.0, playerid, 1494.3234,1303.7670,1093.2891))//Centro de Licencas - Saida
  5735.     {
  5736.         SetPlayerInterior(playerid,0);
  5737.         SetPlayerPos(playerid, 1411.5503,-1699.5452,13.5395);
  5738.         SetPlayerVirtualWorld(playerid, 0);
  5739.     }
  5740.     if (PlayerToPoint(3.0, playerid, 318.5668,1114.5471,1083.8828))//Ballas - Saída
  5741.     {
  5742.         SetPlayerInterior(playerid,0);
  5743.         SetPlayerPos(playerid, 2000.0389,-1114.0559,27.1250);
  5744.         SetPlayerVirtualWorld(playerid, 0);
  5745.     }
  5746.     if(PlayerToPoint(2.0, playerid, 1474.7803,-1749.2869,3285.2859))// Policia Militar - Saída
  5747.     {
  5748.         SetPlayerInterior(playerid, 0);
  5749.         SetPlayerVirtualWorld(playerid, 0);
  5750.         SetPlayerPos(playerid, 1555.3458,-1675.6226,16.1953);
  5751.     }
  5752.     return 1;
  5753. }
  5754.  
  5755. CMD:punheta(playerid, params[])
  5756. {
  5757.     new string[126];
  5758.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está Online !");
  5759.     if(PlayerDados[playerid][Emprego] == 0) {
  5760.     format(string, sizeof(string), "%s Está Batendo um Punheta.", Nome(playerid));
  5761.     ApplyAnimation(playerid, "PAULNMAC", "Wank_out", 4.0, 1, 0, 0, 0, 0);
  5762.     SendClientMessage(playerid, -1, "Para parar de Bater ... Use: /pararpunheta"); }
  5763.     return 1;
  5764. }
  5765.  
  5766. CMD:pararpunheta(playerid, params[])
  5767. {
  5768.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está Online !");
  5769.     if(PlayerDados[playerid][Emprego] == 0) {
  5770.     ClearAnimations(playerid); }
  5771.     return 1;
  5772. }
  5773.  
  5774. CMD:sinc(playerid)
  5775. {
  5776.     SendClientMessage(playerid, -1, "Esse Comando não existe nesse Servidor, Pede pra um Administrador Desbugar !");
  5777.     return 1;
  5778. }
  5779.  
  5780. CMD:desbugar(playerid, params[])
  5781. {
  5782.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está logado !");
  5783.     if(PlayerDados[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "Precisar ser Admin +1");
  5784.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, CINZA, "Use: /desbugar [ID/Nome]");
  5785.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "ID Invalido !");
  5786.     new Float:Px = 0.000000, Float:Py = 0.000000, Float:Pz = 0.000000, Float:Pa = 0.000000;
  5787.     GetPlayerPos(ID, Px, Py, Pz);
  5788.     GetPlayerFacingAngle(ID, Pa);
  5789.     RemovePlayerFromVehicle(ID);
  5790.     SetPlayerPos(ID, Px, Py, Pz+3);
  5791.     Controle(ID, 1);
  5792.     SendClientMessage(playerid, -1, "Você foi Desbugado !");
  5793.     return 1;
  5794. }
  5795.  
  5796. /*CMD:presos(playerid, params[])
  5797. {
  5798.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está Online!");
  5799.     for(new i = 0; i < MAX_PLAYERS; ++i)
  5800.     {
  5801.         if(PlayerDados[i][Preso])
  5802.         {
  5803.             SendClientMessage(playerid, BRANCO, "(=-=-=-=-=( Presos )=-=-=-=)");
  5804.             format(String, sizeof(String), "Preso: %s - Tempo: %d", Nome(i), TempoPreso(i));
  5805.             SendClientMessage(playerid, BRANCO, String);
  5806.         }
  5807.     }
  5808.     return 1;
  5809. }*/
  5810.  
  5811. CMD:pegarlevel(playerid, params[])
  5812. {
  5813.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Não está Online pra usar esse Comando !");
  5814.     if(PlayerDados[playerid][Admin] < 4) return SendClientMessage(playerid, -1, "Precisa Ser Sub-Dono ou Dono pra usar esse Comando !");
  5815.     SetPlayerScore(playerid, 14);
  5816.     SendClientMessage(playerid, -1, "Você Pegou {FF0000}Level 14 !");
  5817.     return 1;
  5818. }
  5819.  
  5820. CMD:sequestrar(playerid, params[])
  5821. {
  5822.     new string[128];
  5823.     new car = GetPlayerVehicleID(playerid);
  5824.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, "{FFFFFF}Não está online pra usar esse {FF3300}Comando !");
  5825.     if(PlayerDados[playerid][Organizacao] == 1) return SendClientMessage(playerid, -1, "Você não é um {FF3300}Gangter");
  5826.     if(psequestrar == 1) return SendClientMessage(playerid,-1,"Já Teve um Sequestro, Vai ter que espera {00FFFF}25 Minutos !");
  5827.     if(PlayerDados[playerid][Cargo] < 3) return SendClientMessage(playerid, BRANCO, "{FFFFFF}Precisa ser Cargo {FF3300}+3 {FFFFFF}pra Sequestrar !");
  5828.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /sequestrar [ID/Nome]");
  5829.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "Jogador está {FF3300}Offline !");
  5830.     if(Amarradoo[ID] > 0) return SendClientMessage(playerid, BRANCO, "O jogando já está {FF3300}Sequestrado !");
  5831.     if(ID == playerid) return SendClientMessage(playerid, BRANCO, "{FFFFFF}Você não pode {FF3300}Sequestrar {FFFFFF}você mesmo !");
  5832.     if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(ID, car)) return SendClientMessage(playerid, BRANCO, "{FFFFFF}O Jogador não está no {FF3300}carro {FFFFFF}ou Você não e o Motorista !");
  5833.     if(IsPlayerPoint(playerid, ID, 4.0)) return SendClientMessage(playerid, -1, "O jogador não está Perto pra {FF3300}Sequestrar !");
  5834.     format(string, sizeof(string), "{FFFFFF}Você foi sequestrado por {FF3300}%s.", Nome(playerid));
  5835.     SendClientMessage(ID, BRANCO, string);
  5836.     format(string, sizeof(string), "{FFFFFF}Você sequestrou {FF3300}%s.", Nome(ID));
  5837.     SendClientMessage(playerid, BRANCO, string);
  5838.     GameTextForPlayer(ID, "~r~Sequestrado", 2500, 3);
  5839.     format(string, sizeof(string), "{FF3300}%s {FFFFFF}Sequestra {FF3300}%s, {FFFFFF}então ele não irá à lugar Algum !.", Nome(playerid) ,Nome(ID));
  5840.     SendClientMessage(playerid, BRANCO, string);
  5841.     Controle(ID, 0);
  5842.     Amarradoo[ID] = 1;
  5843.     Sequestrado[ID] = 1;
  5844.     psequestrar = 1;
  5845.     PlayerDados[ID][Calado] = true;
  5846.     TempoSequestrar = SetTimer("Sequestrar",1500000, 0);
  5847.     return 1;
  5848. }
  5849.  
  5850. CMD:desamarrar(playerid, params[])
  5851. {
  5852.     new string[128];
  5853.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, "Não está online pra usar esse {FF3300}Comando !");
  5854.     if(PlayerDados[playerid][Organizacao] == 1) return SendClientMessage(playerid, -1, "Você não é um {FF3300}Gangster");
  5855.     if(PlayerDados[playerid][Cargo] < 3) return SendClientMessage(playerid, BRANCO, "{FFFFFF}Precisa ser Cargo {FF3300}+3 {FFFFFF}pra desamarrar !");
  5856.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /desamarrar [ID/Nome]");
  5857.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "Jogador está Offline !");
  5858.     if(ID == playerid) return SendClientMessage(playerid, BRANCO, "{FFFFFF}Você não pode {FF3300}Desamarrar {FFFFFF}você mesmo !");
  5859.     if(IsPlayerPoint(playerid, ID, 4.0)) return SendClientMessage(playerid, -1, "O jogador não está Perto pra {FF3300}Desamarrar !");
  5860.     if(Amarradoo[ID] == 1) return SendClientMessage(playerid, -1, "o Jogador não está sequestrado !");
  5861.     format(string, sizeof(string), "{FFFFFF}Você foi desamarrar por {FF3300}%s.", Nome(playerid));
  5862.     SendClientMessage(ID, BRANCO, string);
  5863.     format(string, sizeof(string), "{FFFFFF}Você Desamarrou {FF3300}%s.", Nome(ID));
  5864.     SendClientMessage(playerid, BRANCO, string);
  5865.     GameTextForPlayer(ID, "~g~Desamarrado", 2500, 3);
  5866.     Controle(ID, 1);
  5867.     Amarradoo[ID] = 0;
  5868.     PlayerDados[ID][Calado] = false;
  5869.     return 1;
  5870. }
  5871.  
  5872. CMD:barreiragang(playerid, params[])
  5873. {
  5874.     new string[50];
  5875.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está {00FFFF}Online !");
  5876.     new Org = PlayerDados[playerid][Organizacao];
  5877.     if(Org == 1) return SendClientMessage(playerid, -1, "Você não faz Parte de Nenhuma {00FFFF}Gangue !");
  5878.     if(PlayerDados[playerid][Cargo] < 2) return SendClientMessage(playerid, -1, "Você Precisa de Cargo +2 para Criar {00FFFF}Barreira");
  5879.     if(pBarreira[playerid] != 0) return SendClientMessage(playerid, -1, "Você so pode criar {00FFFF}1 Barreira, {FFFFFF}Para retirar {00FFFF}'/rbarreirargang'");
  5880.     new Float:x, Float:y, Float:z, Float:a;
  5881.     GetPlayerPos(playerid, x, y, z);
  5882.     GetPlayerFacingAngle(playerid, a);
  5883.     pBarreira[playerid] = CreateObject(845, x+1, y, z, 0.0, 0.0, a+180, 300.0);
  5884.     pBarreira2[playerid] = CreateObject(1358, x+2, y, z, 0.0, 0.0, a+180, 300.0);
  5885.     pBarreira3[playerid] = CreateObject(18451, x, y+5, z, 0.0, 0.0, a+180, 300.0);
  5886.     pBarreira4[playerid] = CreateObject(12957, x, y+9, z, 0.0, 0.0, a+180, 300.0);
  5887.     SetPlayerPos(playerid, x, y, z+4);
  5888.     format(string, sizeof(string), "(Gangster): {00FFFF}%s {FFFFFF}Coloco uma Barreira de Gangue.", Nome(playerid));
  5889.     GameTextForPlayer(playerid, "~w~Barreira ~r~Criada", 5000, 5);
  5890.     SendClientMessage(playerid, -1, "Para retirar a Barreirar {00FFFF}Use: /rbarreiragang");
  5891.     return 1;
  5892. }
  5893.  
  5894. CMD:rbarreiragang(playerid, params[])
  5895. {
  5896.     new string[50];
  5897.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está {00FFFF}Online !");
  5898.     new Org = PlayerDados[playerid][Organizacao];
  5899.     if(Org == 1)
  5900.     {
  5901.         if(pBarreira[playerid] != 1)
  5902.         {
  5903.             DestruirBarreira(playerid);
  5904.             format(string, sizeof(string), "(Gangster): {FF0000}%s {FFFFFF}Retirou sua Barreira de Gangue.", Nome(playerid));
  5905.             GameTextForPlayer(playerid, "~w~Barreira ~r~Destruída", 5000, 5);
  5906.         }
  5907.         else
  5908.         {
  5909.             SendClientMessage(playerid, -1, "Não tem barreira criada pra ser destruída");
  5910.         }
  5911.     }
  5912.     else
  5913.     {
  5914.         SendClientMessage(playerid, -1, "Você não faz Parte de Nenhuma {00FFFF}Gangue !");
  5915.     }
  5916.     return 1;
  5917. }
  5918.  
  5919. CMD:invasao(playerid, params[])
  5920. {
  5921.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está {00FFFF}Online !");
  5922.     new Org = PlayerDados[playerid][Organizacao], string[50];
  5923.     if(Org == 1) return SendClientMessage(playerid, -1, "Você não é de uma {FF6600}Facção do Crime, {FFFFFF}Pra usar esse Comando !");
  5924.     if(PlayerDados[playerid][Cargo] < 4) return SendClientMessage(playerid, -1, "Precisa ser {FF6600}Cargo +4 {FFFFFF}pra usar esse Comando !");
  5925.     format(string, sizeof(string), "O membro {FF6600}%s {FFFFFF}está avisando a todos que estão invadindo a área de sua {FF6600}Facção!",Nome(playerid), playerid);
  5926.     SendClientMessageToAll(-1 , string);
  5927.     return 1;
  5928. }
  5929.  
  5930. CMD:assaltar(playerid, params[])
  5931. {
  5932.     new Dinheiro, string[128];
  5933.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está {00FFFF}Online!");
  5934.     if(PlayerDados[playerid][Organizacao] == 1) {
  5935.     if(AssaltarNovamente[playerid] == 1) return SendClientMessage(playerid, -1, "Você tem que Esperar {00FFFF}5 Minutos {FFFFFF}pra Assaltar Novamente !");
  5936.     if(sscanf(params, "ud", ID, Dinheiro)) return SendClientMessage(playerid, -1, "Use: /assaltar [ID/Nome] [Quantia]");
  5937.     if(PlayerDados[ID][Organizacao] != 1) return Msg(playerid, -1, "Não pode Assaltar membros da Gangue !");
  5938.     if(Dinheiro == 1000) {
  5939.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "ID invalido !");
  5940.     if(ID == playerid) return SendClientMessage(playerid, BRANCO, "{FFFFFF}Você não pode {FF3300}Assaltar {FFFFFF}você mesmo !");
  5941.     if(!SetPlayerScore(ID, 1)) return SendClientMessage(playerid, -1, "Não pode sequestrar jogador {00FFFF}Level 1 !");
  5942.     format(string, sizeof(string), "{FFFFFF}Você está assaltando {00FFFF}$%d {FFFFFF}de {00FFFF}%s.", Dinheiro, Nome(ID));
  5943.     SendClientMessage(playerid, -1, string);
  5944.     format(string, sizeof(string), "{00FFFF}%s: {FFFFFF}Isso é um assalto, Pague {00FFFF}$%d! {FFFFFF}não seja Ant-RPG.", Nome(playerid), Dinheiro);
  5945.     SendClientMessage(ID, -1, string);
  5946.     SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
  5947.     SetPlayerSpecialAction(ID,SPECIAL_ACTION_HANDSUP);
  5948.     ShowPlayerDialog(ID, 90, DIALOG_STYLE_MSGBOX, "{FFFF00}Assalto", "{FFFFFF}Você está sendo Assaltado, Você é obrigado a pagar se não é {00FFFF}Anti-RPG\n{FFFFFF}Caso não tenha dinheiro ira ficar com dinheiro negativo\nEle poderá assaltar as Pessoas em cada 5 Minutos\n         Aperta 'Pagar'","Pagar","");
  5949.     AssaltarNovamente[playerid] = 1;
  5950.     SetTimerEx("UsarNovamente",300000,0,"d",playerid);
  5951.     for(new i; i<300;i++) {
  5952.     new Float:X, Float:Y, Float:Z;
  5953.     if(IsPlayerInRangeOfPoint(i,4.0,X,Y,Z))SendClientMessage(i,AMARELO, string); }
  5954.     printf("%s", string); }
  5955.     else {
  5956.     SendClientMessage(playerid, -1, "Use: O Preço tem que ser {00FFFF}R$: 1000 !");
  5957.     return 1; } }
  5958.     return 1;
  5959. }
  5960.  
  5961. CMD:licencas(playerid, params[])
  5962. {
  5963.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, BRANCO, " Você Não Está Connectado !");
  5964.     if(PlayerDados[playerid][Motorista] == 0) {
  5965.     if(PlayerToPoint(2.0, playerid,1490.2838,1305.7998,1093.2964)) {
  5966.     ShowPlayerDialog(playerid, 91, DIALOG_STYLE_LIST, "{FFFF00}Centro de Licenças","{FF0000}Carteira de Motorista","Comprar","Cancelar");
  5967.     Controle(playerid, 1); } }
  5968.     return 1;
  5969. }
  5970. //--------------- Comandos Policias
  5971. CMD:choque(playerid, params[])
  5972. {
  5973.     new string[30];
  5974.     if(PlayerDados[playerid][Organizacao] != 2) return SendClientMessage(playerid, -1, "Você não é um Oficial, pra usar arma de Choque !");
  5975.     SetPlayerAttachedObject(playerid, 0, 18642, 6, 0.06, 0.01, 0.08, 180.0, 0.0, 0.0);
  5976.     ArmadeChoque[playerid] = 1;
  5977.     SendClientMessage(playerid, 0xFF6600AA, "Use: /rchoque para Remover sua Arma de Choqe.");
  5978.     format(string, sizeof(string), "%s Pegou sua Arma de Choque.", Nome(playerid));
  5979.     return 1;
  5980. }
  5981.  
  5982. CMD:rchoque(playerid, params[])
  5983. {
  5984.     new string[30];
  5985.     if(PlayerDados[playerid][Organizacao] != 2) return SendClientMessage(playerid, -1, "Você não é um Oficial, pra usar arma de Choque !");
  5986.     RemovePlayerAttachedObject(playerid, 0);
  5987.     ArmadeChoque[playerid] = 0;
  5988.     SendClientMessage(playerid, 0xFF6600AA, "Use: /choque para Pegar sua Arma de Choque.");
  5989.     format(string, sizeof(string), "%s Guardou sua Arma de Choque.", Nome(playerid));
  5990.     return 1;
  5991. }
  5992.  
  5993. CMD:escudo(playerid, params[])
  5994. {
  5995.     new string[30];
  5996.     if(PlayerDados[playerid][Organizacao] != 2) return SendClientMessage(playerid, -1, "Você não é um Oficial, pra usar arma de Choque !");
  5997.     SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
  5998.     SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
  5999.     SendClientMessage(playerid,0xFFFFFFAA," Você Pegou Seu {FF6600}Escudo{FFFFFF}!");
  6000.     SendClientMessage(playerid, 0xFF6600AA, "Use: /rescudo para Guardar seu Escudo.");
  6001.     format(string, sizeof(string), "%s Pegou seu Escudo.", Nome(playerid));
  6002.     return 1;
  6003. }
  6004.  
  6005. CMD:rescudo(playerid, params[])
  6006. {
  6007.     new string[30];
  6008.     if(PlayerDados[playerid][Organizacao] != 2) return SendClientMessage(playerid, -1, "Você não é um Oficial, pra usar arma de Choque !");
  6009.     RemovePlayerAttachedObject(playerid,3);
  6010.     RemovePlayerAttachedObject(playerid,4);
  6011.     SendClientMessage(playerid,0xFFFFFFAA," Você retirou Seu {FF6600}Escudo{FFFFFF}!");
  6012.     SendClientMessage(playerid, 0xFF6600AA, "Use: /escudo para Pegar seu Escudo.");
  6013.     format(string, sizeof(string), "%s Guardou seu Escudo.", Nome(playerid));
  6014.     return 1;
  6015. }
  6016.  
  6017. CMD:departamento(playerid, params[])
  6018. {
  6019.     new texto[128], string[128];
  6020.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está online pra usar esse comando !");
  6021.     if(sscanf(params, "s",texto)) return SendClientMessage(playerid, -1, "Use: /departamento [texto]");
  6022.     if(PlayerDados[playerid][Organizacao] == 2)
  6023.     {
  6024.         if(PlayerDados[playerid][Cargo] == 6) { format(string, sizeof(string), "** PM Líder %s: %s, câmbio. **", Nome(playerid), texto); }
  6025.         else if(PlayerDados[playerid][Cargo] == 5) { format(string, sizeof(string), "** PM %s: %s, câmbio. **", Nome(playerid), texto); }
  6026.         else if(PlayerDados[playerid][Cargo] == 4) { format(string, sizeof(string), "** PM %s: %s, câmbio. **", Nome(playerid), texto); }
  6027.         else if(PlayerDados[playerid][Cargo] == 3) { format(string, sizeof(string), "** PM %s: %s, câmbio. **", Nome(playerid), texto); }
  6028.         else if(PlayerDados[playerid][Cargo] == 2) { format(string, sizeof(string), "** PM %s: %s, câmbio. **", Nome(playerid), texto); }
  6029.         else if(PlayerDados[playerid][Cargo] == 1) { format(string, sizeof(string), "** Cadete %s: %s, câmbio. **", Nome(playerid), texto); }
  6030.         else
  6031.         {
  6032.             format(string, sizeof(string), "Policia Militar %s: %s, câmbio.", Nome(playerid), texto);
  6033.         }
  6034.         SendFamilyMessage(2, COLOR_DEPARTAMENTO, string);
  6035.         printf("%s", string);
  6036.         return 1;
  6037.     }
  6038.     return 1;
  6039. }
  6040.  
  6041. CMD:batercartao(playerid, params[])
  6042. {
  6043.     new string[128];
  6044.     new Org = PlayerDados[playerid][Organizacao];
  6045.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Não está connectado !");
  6046.     if(Org != 2) return Msg(playerid, -1, "Você não é um Oficial !");
  6047.     if(!PlayerToPoint(2.0,playerid, 1485.4672,-1767.0776,3285.2859)) return Msg(playerid,-1,"Você não está no local Certo pra BaterCartao !");
  6048.     if(BaterCartao[playerid] == 0)
  6049.     {
  6050.         format(string, sizeof(string), "O Oficial {FF0000}%s {FFFFFF}do Governo bateu o cartão e está em serviço.", Nome(playerid));
  6051.         MsgAll(-1, string);
  6052.         ResetPlayerWeapons(playerid);
  6053.         SetPlayerArmour(playerid, 100);
  6054.         SetPlayerHealth(playerid, 100);
  6055.         GivePlayerWeapon(playerid, 3, 1);
  6056.         GivePlayerWeapon(playerid, 24, 200);
  6057.         GivePlayerWeapon(playerid, 25, 300);
  6058.         GivePlayerWeapon(playerid, 29, 500);
  6059.         GivePlayerWeapon(playerid, 31, 200);
  6060.         GivePlayerWeapon(playerid, 34, 40);
  6061.         BaterCartao[playerid] = 1;
  6062.     }
  6063.     else if(BaterCartao[playerid] == 1)
  6064.     {
  6065.         format(string, sizeof(string), "O Oficial {FF0000}%s {FFFFFF}do Governo está de folga.", Nome(playerid));
  6066.         MsgAll(-1, string);
  6067.         ResetPlayerWeapons(playerid);
  6068.         Msg(playerid, -1, "Suas armas foi retirada por causa que Não está em Serviço !");
  6069.         BaterCartao[playerid] = 0;
  6070.     }
  6071.     return 1;
  6072. }
  6073. CMD:megafone(playerid, params[])
  6074. {
  6075.     new string[100], texto[100];
  6076.     if(PlayerDados[playerid][Calado] == true) return SendClientMessage(playerid, -1, "Jogador não pode falar no megafone pq foi calado !");
  6077.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está Online !");
  6078.     if(PlayerDados[playerid][Organizacao] != 2) return SendClientMessage(playerid, -1, "Você não é um Oficial do Governo !");
  6079.     if(BaterCartao[playerid] != 1) return SendClientMessage(playerid, -1, "Você não {FF0000}Bateu Cartão !");
  6080.     if(sscanf(params, "s",texto)) return SendClientMessage(playerid, -1, "Use: /megafone [Fala]");
  6081.     if(PlayerDados[playerid][Organizacao] == 2) {
  6082.     new Float:X, Float:Y, Float:Z;
  6083.     GetPlayerPos(playerid, X, Y, Z);
  6084.     format(string, sizeof(string), "Policial Militar %s: %s", Nome(playerid), texto);
  6085.     for(new i; i<300;i++) {
  6086.     if(IsPlayerInRangeOfPoint(i,60.0,X,Y,Z))SendClientMessage(i,AMARELO, string); }
  6087.     printf("%s", string); }
  6088.     return 1;
  6089. }
  6090. CMD:suspeito(playerid, params[])
  6091. {
  6092.     new texto[20], string[110];
  6093.     if(PlayerDados[playerid][Organizacao] != 2) return Msg(playerid, -1, "Você não é um Oficial !");
  6094.     if(BaterCartao[playerid] != 1) return Msg(playerid, -1, "Você não {FF0000}Bateu Cartão !");
  6095.     if(sscanf(params, "us",ID, texto)) return Msg(playerid, -1, "Use: /suspeito [ID/Nome] [Crime]");
  6096.     if(PlayerDados[playerid][Organizacao] == 2) {
  6097.     if(!IsPlayerConnected(ID)) return Msg(playerid, -1, "ID Invalido !");
  6098.     if(PlayerDados[ID][Organizacao] != 2) return Msg(playerid, -1, "Não pode dar '/suspeito' em Policial !");
  6099.     if(ID != INVALID_PLAYER_ID) {
  6100.     if(sscanf(params, "us",ID, texto)) return Msg(playerid, -1, "Use: /suspeito [ID/Nome] [Crime]");
  6101.     format(string, sizeof(string), "{00FFFF}%s {FFFFFF}Colocou o jogador {00FFFF}%s {FFFFFF}de Suspeito", Nome(playerid), Nome(ID));
  6102.     MsgAll(-1, string);
  6103.     SetPlayerWantedLevel(ID,GetPlayerWantedLevel(playerid)+1); } }
  6104.     return 1;
  6105. }
  6106.  
  6107. CMD:ficha(playerid, params[])
  6108. {
  6109.     new string[100];
  6110.     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Você não está online pra usar esse comando !");
  6111.     if(PlayerDados[playerid][Organizacao] != 2) return Msg(playerid, -1, "Você não é um Policial !");
  6112.     if(BaterCartao[playerid] != 1) return Msg(playerid, -1, "Você não Bater Cartão !");
  6113.     if(!PlayerToPoint(2.0,playerid, 1485.4020,-1760.5070,3285.2859)) return Msg(playerid, -1, "Você não está no local certo pra ver a Ficha !");
  6114.     if(sscanf(params, "u",ID)) return Msg(playerid, -1, "Use: /ficha [id]");
  6115.     if(!IsPlayerConnected(ID)) return Msg(playerid, -1, "ID Invalido !");
  6116.     if(ID != INVALID_PLAYER_ID) {
  6117.     Msg(playerid, -1, "(=-=-=-=-=-=-=-=-=-=({FFD700}Ficha Na Policia{BFC0C2})=-=-=-=-=-=-=-=-=-=)");
  6118.     format(string, sizeof(string), "Nome: %s", Nome(ID));
  6119.     Msg(playerid, AZUL,string);
  6120.     format(string, sizeof(string), "Suspeito: %d", PlayerDados[ID][Procurado]);
  6121.     Msg(playerid, AZUL,string); }
  6122.     return 1;
  6123. }
  6124.  
  6125. CMD:handsup(playerid, params[])
  6126. {
  6127.     if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  6128.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); }
  6129.     return 1;
  6130. }
  6131.  
  6132. CMD:pararhandsup(playerid, params[])
  6133. {
  6134.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Você não está Connectado !");
  6135.     ClearAnimations(playerid);
  6136.     return 1;
  6137. }
  6138.  
  6139. CMD:imo(playerid, params[])
  6140. {
  6141.     new string[128];
  6142.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Você não está online !");
  6143.     if(PlayerDados[playerid][Organizacao] != 2) return Msg(playerid, -1, "Não é um Polical !");
  6144.     if(BaterCartao[playerid] != 1) return Msg(playerid, -1, "Você não {00FFFF}Bater Cartão !");
  6145.     if(PlayerDados[playerid][Organizacao] == 2) {
  6146.     if(IsPlayerInAnyVehicle(playerid)) return Msg(playerid, -1, "   Não é possivel imobilizar, dentro do carro !");
  6147.     if(IsPlayerConnected(ID)) {
  6148.     if(JogadorImo[ID] > 0) return Msg(playerid, -1, "Suspeito já imobilizado !");
  6149.     if(IsPlayerInAnyVehicle(ID)) return Msg(playerid, -1, "Suspeito está dentro de um Veiculo, não pode imobilizar !");
  6150.     if(PlayerDados[ID][Organizacao] != 2) return Msg(playerid, -1, "Não pode Imobilizar Policias !");
  6151.     if(sscanf(params, "u",ID)) return Msg(playerid, -1, "Use: /imo [ID/Nome]");
  6152.     format(string, sizeof(string), "* Você foi imobilizado por %s por 20 segundos.", Nome(ID));
  6153.     Msg(ID, -1, string);
  6154.     format(string, sizeof(string), "* Você imobilizou o(a) %s por 20 segundos.", Nome(playerid));
  6155.     Msg(playerid, -1, string);
  6156.     format(string, sizeof(string), "* %s Imobilizou %s, para não fugir.", Nome(playerid) ,Nome(ID));
  6157.     GameTextForPlayer(ID, "~r~Imobilizado", 2500, 3);
  6158.     Controle(ID, 0);
  6159.     ApplyAnimation(ID, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  6160.     JogadorImo[ID] = 1;
  6161.     JogadorImoTempo[ID] = 20;
  6162.     SetTimerEx("TempoImo", 20000, false, "i", playerid);//20 Segundos
  6163.     for(new i; i<300;i++) {
  6164.     new Float:X, Float:Y, Float:Z;
  6165.     GetPlayerPos(playerid, X, Y, Z);
  6166.     if(!IsPlayerInRangeOfPoint(i,5.0,X,Y,Z)) return Msg(playerid, -1, "Você não está perto pra Imobilizar !"); }
  6167.     printf("%s", string); } }
  6168.     return 1;
  6169. }
  6170.  
  6171. CMD:localizar(playerid, params[])
  6172. {
  6173.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Não está online pra usar esse comando !");
  6174.     if(sscanf(params, "u", ID)) return Msg(playerid, -1, "Use: /localizar [ID]");
  6175.     if(PlayerDados[playerid][Organizacao] == 2) {
  6176.     new location[MAX_ZONE_NAME], string[70];
  6177.     GetPlayer2DZone(ID, location, MAX_ZONE_NAME);
  6178.     format(string, sizeof(string), "{00FFFF}%s {FFFFFF}Foi visto perto de {00FFFF}%s", Nome(ID),location);
  6179.     Msg(playerid, -1, string);
  6180.     return 1; } return 1;
  6181. }
  6182.  
  6183. CMD:chapeu(playerid, params[])
  6184. {
  6185.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Não está online pra usar esse comando !");
  6186.     if(PlayerDados[playerid][Organizacao] != 2 && PlayerDados[playerid][Admin] == 1) return Msg(playerid, -1, "Você não é policial ou Admin pra pegar o Chapeu !");
  6187.     SetPlayerAttachedObject(playerid, 0, 18639, 2, 0.158797, 0.010018, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  6188.     SendClientMessage(playerid, -1,"Você Colocou {00FFFF}Chapeu Ziika :)");
  6189.     return 1;
  6190. }
  6191.  
  6192. //----------------[ Comandos de Portões ]-----------------//
  6193. CMD:abrircelas(playerid, params[])
  6194. {
  6195.     new string[120];
  6196.     if(PlayerDados[playerid][Organizacao] != 2)
  6197.     {
  6198.         Msg(playerid, -1, "Você não é um Oficial !");
  6199.         return 1;
  6200.     }
  6201.     ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  6202.     format(string, sizeof(string), "O Oficial :{00FFFF}%s {FFFFFF} Abriu alguma Cela de Cadeia em LS!", Nome(playerid));
  6203.     MsgAll(-1, string);
  6204.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0
  6205.     {
  6206.         MoveObject(cell0,1491.21484375-1.25,-1764.90002441,3284.25048828,0.50);
  6207.         SetTimer("FecharPortoes", 5000, false);
  6208.     }
  6209.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1
  6210.     {
  6211.         MoveObject(cell1,1494.41210938-1.25,-1764.90002441,3284.25048828,0.50);
  6212.         SetTimer("FecharPortoes", 5000, false);
  6213.     }
  6214.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2
  6215.     {
  6216.         MoveObject(cell2,1497.61132812-1.25,-1764.90002441,3284.25048828,0.50);
  6217.         SetTimer("FecharPortoes", 5000, false);
  6218.     }
  6219.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3
  6220.     {
  6221.         MoveObject(cell3,1500.81445312-1.25,-1764.90002441,3284.25048828,0.50);
  6222.         SetTimer("FecharPortoes", 5000, false);
  6223.     }
  6224.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4
  6225.     {
  6226.         MoveObject(cell4,1500.81994629-1.25,-1761.51000977,3284.25048828,0.50);
  6227.         SetTimer("FecharPortoes", 5000, false);
  6228.     }
  6229.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5
  6230.     {
  6231.         MoveObject(cell5,1491.22094727-1.25,-1761.50000000,3284.25048828,0.50);
  6232.         SetTimer("FecharPortoes", 5000, false);
  6233.     }
  6234.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6
  6235.     {
  6236.         MoveObject(cell6,1494.41894531-1.25,-1761.51000977,3284.25048828,0.50);
  6237.         SetTimer("FecharPortoes", 5000, false);
  6238.     }
  6239.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7
  6240.     {
  6241.         MoveObject(cell7,1497.61999512-1.25,-1761.51000977,3284.25048828,0.50);
  6242.         SetTimer("FecharPortoes", 5000, false);
  6243.     }
  6244.     return 1;
  6245. }
  6246.  
  6247. forward FecharPortoes();
  6248. public FecharPortoes()
  6249. {
  6250.     for(new i = 0; i != MAX_PLAYERS; i++)
  6251.     {
  6252.         ClearAnimations(i);
  6253.     }
  6254.     MoveObject(cell0,1491.21484375,-1764.90002441,3284.25048828,0.50);
  6255.     MoveObject(cell1,1494.41210938,-1764.90002441,3284.25048828,0.50);
  6256.     MoveObject(cell2,1497.61132812,-1764.90002441,3284.25048828,0.50);
  6257.     MoveObject(cell3,1500.81445312,-1764.90002441,3284.25048828,0.50);
  6258.     MoveObject(cell4,1500.81994629,-1761.51000977,3284.25048828,0.50);
  6259.     MoveObject(cell5,1491.22094727,-1761.50000000,3284.25048828,0.50);
  6260.     MoveObject(cell6,1494.41894531,-1761.51000977,3284.25048828,0.50);
  6261.     MoveObject(cell7,1497.61999512,-1761.51000977,3284.25048828,0.50);
  6262. }
  6263.  
  6264. CMD:abrirportas(playerid, params[])
  6265. {
  6266.     if(PlayerDados[playerid][Organizacao] != 2)
  6267.     {
  6268.         Msg(playerid, -1, "Você não é um Oficial !");
  6269.         return 1;
  6270.     }
  6271.     ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  6272.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
  6273.     {
  6274.         MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
  6275.         SetTimer("FecharPortas", 5000, false);
  6276.     }
  6277.     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
  6278.     {
  6279.         MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
  6280.         SetTimer("FecharPortas", 5000, false);
  6281.     }
  6282.     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
  6283.     {
  6284.         MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
  6285.         SetTimer("FecharPortas", 5000, false);
  6286.     }
  6287.     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
  6288.     {
  6289.         MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
  6290.         SetTimer("FecharPortas", 5000, false);
  6291.     }
  6292.     return 1;
  6293. }
  6294. //--------------------------//
  6295. CMD:algemar(playerid, params[])
  6296. {
  6297.     new PTiD, string[20];
  6298.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Você não está Online!");
  6299.     if(PlayerDados[playerid][Organizacao] != 2) return Msg(playerid, -1, "Você não é policial pra algemar !");
  6300.     if(PlayerDados[PTiD][Organizacao] != 2) return Msg(playerid, -1, "Você não Pode Algemar um Policial !");
  6301.     if(sscanf(params, "u", PTiD)) return SendClientMessage(playerid, -1, "Uso: /algemar [ID]");
  6302.     if(Algemado[playerid] > 0) return Msg(playerid, -1, "VocÊ já ta algemado !");
  6303.     if(!IsPlayerConnected(ID)) return Msg(playerid, -1, "ID Invalido !");
  6304.     SetPlayerAttachedObject(PTiD, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
  6305.     SetPlayerSpecialAction(PTiD, SPECIAL_ACTION_CUFFED);
  6306.     Algemado[playerid] = 1;
  6307.     for(new i = 0; i < MAX_PLAYERS; ++i) {
  6308.     new Float:X, Float:Y, Float:Z;
  6309.     GetPlayerPos(playerid, X, Y, Z);
  6310.     if(!IsPlayerInRangeOfPoint(i,10.0,X,Y,Z)) return Msg(playerid, -1, "Você não está perto pra Algemar !"); }
  6311.     printf("%s", string);
  6312.     return 1;
  6313. }
  6314.  
  6315. CMD:desalgemar(playerid, params[])
  6316. {
  6317.     new PTiD, string[25];
  6318.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Você não está Online!");
  6319.     if(PlayerDados[playerid][Organizacao] != 2) return Msg(playerid, -1, "Você não é policial pra algemar !");
  6320.     if(PlayerDados[PTiD][Organizacao] != 2) return Msg(playerid, -1, "Você não Pode desalgemar um Policial !");
  6321.     if(sscanf(params, "u", PTiD)) return SendClientMessage(playerid, -1, "Uso: /desalgemar [ID]");
  6322.     if(Algemado[playerid] < 1) return Msg(playerid, -1, "Você não está algemado !");
  6323.     RemovePlayerAttachedObject(PTiD, 0);
  6324.     RemovePlayerAttachedObject(PTiD, 0);
  6325.     RemovePlayerAttachedObject(ID, 0);
  6326.     Algemado[playerid] = 0;
  6327.     Msg(playerid, -1, "Tirou Algema !");
  6328.     for(new i = 0; i < MAX_PLAYERS; ++i) {
  6329.     new Float:X, Float:Y, Float:Z;
  6330.     GetPlayerPos(playerid, X, Y, Z);
  6331.     if(!IsPlayerInRangeOfPoint(i,10.0,X,Y,Z)) return Msg(playerid, -1, "Você não está perto pra Desalgemar !"); }
  6332.     printf("%s", string);
  6333.     return 1;
  6334. }
  6335.  
  6336. CMD:gov(playerid, params[])
  6337. {
  6338.     new texto[128], string[128];
  6339.     if(PlayerDados[ID][Calado] == true) return Msg(playerid, -1, "o Jogador Está calado e não pode usar esse comando");
  6340.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Não está Connectado pra usar esse comando");
  6341.     if(!OrgCop(playerid)) return Msg(playerid, -1, "Você não é um Oficial da Lei, pra usar esse comando !");
  6342.     if(PlayerDados[playerid][Cargo] < 4) return Msg(playerid, -1, "Precisa ter Cargo +4 pra usar esse comando !");
  6343.     if(sscanf(params, "s", texto)) return Msg(playerid, -1, "Use: /gov [Texto]");
  6344.     MsgAll(CINZA,"(=-=-=-=-=-=-=-=-=-=({FFD700}Anuncio Do Governo de Ls{BFC0C2})=-=-=-=-=-=-=-=-=-=)");
  6345.     format(string, sizeof(string), "Oficial %s: %s", Nome(playerid), texto);
  6346.     MsgAll(AZUL, string);
  6347.     return 1;
  6348. }
  6349.  
  6350. CMD:retirarcarteira(playerid, params[])
  6351. {
  6352.     new Org = PlayerDados[playerid][Organizacao];
  6353.     if(!IsPlayerConnected(ID)) return Msg(playerid, -1, "ID Invadido !");
  6354.     if(!IsPlayerConnected(playerid)) return Msg(playerid, -1, "Não está online !");
  6355.     if(Org != 2) return Msg(playerid, -1, "Você não e um Oficial !");
  6356.     if(PlayerDados[playerid][Cargo] < 2) return Msg(playerid, -1, " Precisa ser Cargo +2");
  6357.     if(sscanf(params, "u", ID)) return Msg(playerid, -1, "Use: /retirarcarteira [ID]");
  6358.     PlayerDados[ID][Motorista] = 0;
  6359.     SendClientMessage(playerid, -1, "Carteira Retirada !");
  6360.     return 1;
  6361. }
  6362.  
  6363. //Continue criando os Comando Lembre-se isso e uma >>> Base <<<<<
  6364. //-------------------[ Fim dos Comandos ]----------//
  6365. forward FecharPortas();
  6366. public FecharPortas()
  6367. {
  6368.     for(new i = 0; i != MAX_PLAYERS; i++)
  6369.     {
  6370.         ClearAnimations(i);
  6371.     }
  6372.     MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
  6373.     MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
  6374.     MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
  6375.     MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
  6376. }
  6377.  
  6378. forward TempoImo();
  6379. public TempoImo()
  6380. {
  6381.     Controle(ID, 1);
  6382.     Msg(ID, -1, "Você não está mais imo...");
  6383.     JogadorImo[ID] = 0;
  6384.     JogadorImoTempo[ID] = 0;
  6385.     return 1;
  6386. }
  6387.  
  6388. public TempoPreso(playerid)
  6389. {
  6390.     PlayerDados[playerid][Preso] --;
  6391.     if(PlayerDados[playerid][Preso] == 0)
  6392.     {
  6393.         SetPlayerHealth(playerid, 0);
  6394.         SendClientMessage(playerid, VERDE, "Você está livre da cadeia!");
  6395.         KillTimer(TimerPreso);
  6396.     }
  6397.     return 1;
  6398. }
  6399.  
  6400. public CriarLogs()
  6401. {
  6402.     if(!LogExistir("EuroRPG/Logs/NovoAdm.log"))
  6403.     {
  6404.         CriarLog("EuroRPG/Logs/NovoAdm.log");
  6405.     }
  6406.     if(!LogExistir("EuroRPG/Logs/Kickados.log"))
  6407.     {
  6408.         CriarLog("EuroRPG/Logs/Kickados.log");
  6409.     }
  6410.     if(!LogExistir("EuroRPG/Logs/Tapas.log"))
  6411.     {
  6412.         CriarLog("EuroRPG/Logs/Tapas.log");
  6413.     }
  6414.     if(!LogExistir("EuroRPG/Logs/Chatadm.log"))
  6415.     {
  6416.         CriarLog("EuroRPG/Logs/Chatadm.log");
  6417.     }
  6418.     if(!LogExistir("EuroRPG/Logs/Banidos.log"))
  6419.     {
  6420.         CriarLog("EuroRPG/Logs/Banidos.log");
  6421.     }
  6422.     if(!LogExistir("EuroRPG/Logs/Desbanidos.log"))
  6423.     {
  6424.         CriarLog("EuroRPG/Logs/Desbanidos.log");
  6425.     }
  6426.     if(!LogExistir("EuroRPG/Logs/Advertidos.log"))
  6427.     {
  6428.         CriarLog("EuroRPG/Logs/Advertidos.log");
  6429.     }
  6430.     if(!LogExistir("EuroRPG/Logs/Congelados.log"))
  6431.     {
  6432.         CriarLog("EuroRPG/Logs/Congelados.log");
  6433.     }
  6434.     if(!LogExistir("EuroRPG/Logs/Calados.log"))
  6435.     {
  6436.         CriarLog("EuroRPG/Logs/Calados.log");
  6437.     }
  6438.     if(!LogExistir("EuroRPG/Logs/Presos.log"))
  6439.     {
  6440.         CriarLog("EuroRPG/Logs/Presos.log");
  6441.     }
  6442.     if(!LogExistir("EuroRPG/Logs/NovoNome.log"))
  6443.     {
  6444.         CriarLog("EuroRPG/Logs/NovoNome.log");
  6445.     }
  6446.     if(!LogExistir("EuroRPG/Logs/Crashados.log"))
  6447.     {
  6448.         CriarLog("EuroRPG/Logs/Crashados.log");
  6449.     }
  6450.     if(!LogExistir("EuroRPG/Logs/BanirIp.log"))
  6451.     {
  6452.         CriarLog("EuroRPG/Logs/BanirIp.log");
  6453.     }
  6454.     if(!LogExistir("EuroRPG/Logs/DesbanirIp.log"))
  6455.     {
  6456.         CriarLog("EuroRPG/Logs/DesbanirIp.log");
  6457.     }
  6458.     if(!LogExistir("EuroRPG/Logs/Fodidos.txt"))
  6459.     {
  6460.         CriarLog("EuroRPG/Logs/Fodidos.txt");
  6461.     }
  6462.     if(!LogExistir("EuroRPG/Logs/Nome_Server.log"))
  6463.     {
  6464.         CriarLog("EuroRPG/Logs/Nome_Server.log");
  6465.     }
  6466.     if(!LogExistir("EuroRPG/Logs/Nome_GM.log"))
  6467.     {
  6468.         CriarLog("EuroRPG/Logs/Nome_GM.log");
  6469.     }
  6470.     if(!LogExistir("EuroRPG/Logs/Relatorios.log"))
  6471.     {
  6472.         CriarLog("EuroRPG/Logs/Relatorios.log");
  6473.     }
  6474.     print("Logs Criados/Carregados com sucesso.");
  6475.     return 1;
  6476. }
  6477.  
  6478. public LiberarKit(playerid)
  6479. {
  6480.     PlayerDados[playerid][PegouKit] = false;
  6481.     return 1;
  6482. }
  6483.  
  6484. public MensagensRandom()
  6485. {
  6486.     new randmsg = random(sizeof(Mensagens));
  6487.     new randcor = random(sizeof(Cores));
  6488.     format(String, sizeof(String), "%s%s",Cores[randcor], Mensagens[randmsg]);
  6489.     SendClientMessageToAll(-1, String);
  6490.     return 1;
  6491. }
  6492.  
  6493. public DiminuirTempo()
  6494. {
  6495.     if(time == 0)
  6496.     {
  6497.         KillTimer(TimerCont);
  6498.         GameTextForAll("~r~Go Go Go", 1000, 6);
  6499.         return 1;
  6500.     }
  6501.     format(String, sizeof(String), "~g~%d", time);
  6502.     GameTextForAll(String, 1000, 6);
  6503.     time--;
  6504.     return 1;
  6505. }
  6506.  
  6507. stock SalvarDados(playerid)
  6508. {
  6509.     new ip[25];
  6510.     GetPlayerIp(playerid, ip, sizeof(ip));
  6511.     format(StringContas, sizeof(StringContas), "EuroRPG/Contas/%s.txt", Nome(playerid));
  6512.     DOF2_SetInt(StringContas, "Matou", PlayerDados[playerid][Matou]);
  6513.     DOF2_SetInt(StringContas, "Morreu", PlayerDados[playerid][Morreu]);
  6514.     DOF2_SetInt(StringContas, "Grana", GetPlayerMoney(playerid));
  6515.     DOF2_SetInt(StringContas, "pSkin", GetPlayerSkin(playerid));
  6516.     DOF2_SetInt(StringContas, "Procurado", GetPlayerWantedLevel(playerid));
  6517.     DOF2_SetInt(StringContas, "pLevel", GetPlayerScore(playerid));
  6518.     DOF2_SetInt(StringContas, "Respeito", PlayerDados[playerid][Respeito]);
  6519.     DOF2_SetInt(StringContas, "Advertencias", PlayerDados[playerid][Advertencias]);
  6520.     DOF2_SetInt(StringContas, "Preso", PlayerDados[playerid][Preso]);
  6521.     DOF2_SetInt(StringContas, "Motorista", PlayerDados[playerid][Motorista]);
  6522.     DOF2_SetInt(StringContas, "Sexo", PlayerDados[playerid][Sexo]);
  6523.     DOF2_SetInt(StringContas, "Organizacao", PlayerDados[playerid][Organizacao]);
  6524.     DOF2_SetInt(StringContas, "Cargo", PlayerDados[playerid][Cargo]);
  6525.     DOF2_SetInt(StringContas, "Colocar", PlayerDados[playerid][Colocar]);
  6526.     DOF2_SetInt(StringContas, "Emprego", PlayerDados[playerid][Emprego]);
  6527.     DOF2_SetBool(StringContas,"Tutorial", PlayerDados[playerid][Tutorial]);
  6528.     DOF2_SetString(StringContas, "IP", ip);
  6529.     new str[50];
  6530.     format(str, 50, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6531.     if(PlayerDados[playerid][Vip] == false)
  6532.     {
  6533.         if(DOF2_IsSet("EuroRPG/Vips.vip", Nome(playerid)))
  6534.         {
  6535.             DOF2_Unset("EuroRPG/Vips.vip", Nome(playerid));
  6536.         }
  6537.     }
  6538.     if(PlayerDados[playerid][Helper] == false)
  6539.     {
  6540.         if(DOF2_IsSet("EuroRPG/Helpers.hel", Nome(playerid)))
  6541.         {
  6542.             DOF2_Unset("EuroRPG/Helpers.hel", Nome(playerid));
  6543.         }
  6544.     }
  6545.     if(PlayerDados[playerid][Vip] == true)
  6546.     {
  6547.         DOF2_SetBool(str, "Vip", true);
  6548.     }
  6549.     if(PlayerDados[playerid][Helper] == true)
  6550.     {
  6551.         DOF2_SetBool(str, "Helper", true);
  6552.     }
  6553.     if(PlayerDados[playerid][Admin] > 0)
  6554.     {
  6555.         format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6556.         DOF2_SetInt(str, "Admin", PlayerDados[playerid][Admin]);
  6557.     }
  6558.     DOF2_SaveFile();
  6559.     return 1;
  6560. }
  6561.  
  6562. stock Nome(playerid)
  6563. {
  6564.     new pNome[MAX_PLAYER_NAME];
  6565.     GetPlayerName(playerid, pNome, 24);
  6566.     return pNome;
  6567. }
  6568.  
  6569. stock Kickar(playerid, admin[], razao[])
  6570. {
  6571.     if(!DOF2_FileExists("EuroRPG/Kickados.txt")) DOF2_CreateFile("EuroRPG/Kickados.txt");
  6572.     new IP[20];
  6573.     GetPlayerIp(playerid, IP, 20);
  6574.     format(String, sizeof(String), " IP = %d - Admin = %s - Razao = %s", IP, admin, razao);
  6575.     DOF2_SetString("EuroRPG/Kickados.txt", Nome(playerid), String);
  6576.     Kick(playerid);
  6577.     return 1;
  6578. }
  6579.  
  6580. stock PosicaoFrentePlayer( playerid, &Float:x, &Float:y, Float:distance)
  6581. {
  6582.     new
  6583.         Float:a
  6584.     ;
  6585.     GetPlayerPos( playerid, x, y, a);
  6586.     GetPlayerFacingAngle( playerid, a);
  6587.     if(GetPlayerVehicleID( playerid ))
  6588.     {
  6589.         GetVehicleZAngle(GetPlayerVehicleID( playerid ), a);
  6590.     }
  6591.     x += (distance * floatsin(-a, degrees));
  6592.     y += (distance * floatcos(-a, degrees));
  6593. }
  6594.  
  6595. stock MensagemDupla(playerid, msg1[], msg2[])
  6596. {
  6597.     SendClientMessage(playerid, CINZA, msg1);
  6598.     SendClientMessage(playerid, CINZA, msg2);
  6599.     return 1;
  6600. }
  6601.  
  6602. stock NivelRequerido(playerid, lvl)
  6603. {
  6604.     if(PlayerDados[playerid][Admin] < lvl)
  6605.     {
  6606.         format(String, sizeof(String), "Você precisa ser admin nivel %d para usar este comando!", lvl);
  6607.         SendClientMessage(playerid, BRANCO, String);
  6608.         return 0;
  6609.     }
  6610.     if(PlayerDados[playerid][Trabalhando] == false)
  6611.     {
  6612.         SendClientMessage(playerid, CINZA, "Você precisa trabalhar para usar o comando. Use /servico.");
  6613.         return 0;
  6614.     }
  6615.     return 1;
  6616. }
  6617.  
  6618. stock CriarLog(const File[])
  6619. {
  6620.     if(fexist(File))
  6621.     {
  6622.         printf("Utilize EscreverLog(\"arquivo\", \"Mensagem\"); para escrever em um log existente.");
  6623.         return 0;
  6624.     }
  6625.     new File:Arquivo = fopen(File, io_write);
  6626.     fclose(Arquivo);
  6627.     return 1;
  6628. }
  6629.  
  6630. stock EscreverLog(const File[], string[])
  6631. {
  6632.     if(!fexist(File))
  6633.     {
  6634.         printf("Utilize CriarLog(\"arquivo\"); para criar o Log e escrever nele.");
  6635.         return 0;
  6636.     }
  6637.     new celulas[ 300 ];
  6638.     new a, m, d, h, mi, s;
  6639.     getdate(a, m, d);
  6640.     gettime(h,mi,s);
  6641.     format(celulas, sizeof(celulas), "(%02d/%02d/%d)[%02d:%02d:%02d] %s\r\n",d,m,a,h,mi,s, string);
  6642.     new File:Arquivo = fopen(File, io_append);
  6643.     fwrite(Arquivo, celulas);
  6644.     fclose(Arquivo);
  6645.     return 1;
  6646. }
  6647.  
  6648. stock DeletarLog(const File[])
  6649. {
  6650.     if(!fexist(File))
  6651.     {
  6652.         printf("Esse arquivo não existe, utilize CriarLog(\"arquivo\"");
  6653.         return 0;
  6654.     }
  6655.     fremove(File);
  6656.     return 1;
  6657. }
  6658.  
  6659. stock TextFundo(playerid)
  6660. {
  6661.     new RandFundo = random(3);
  6662.     if(RandFundo == 0)
  6663.     {
  6664.         Inicio[playerid] = TextDrawCreate(-0.500, -0.500, "loadsc1:loadsc1");
  6665.         TextDrawFont(Inicio[playerid], 4);
  6666.         TextDrawTextSize(Inicio[playerid], 641.500, 449.500);
  6667.         TextDrawColor(Inicio[playerid], -1);
  6668.     }
  6669.     else if(RandFundo == 1)
  6670.     {
  6671.         Inicio[playerid] = TextDrawCreate(-0.500, -0.500, "loadsc2:loadsc2");
  6672.         TextDrawFont(Inicio[playerid], 4);
  6673.         TextDrawTextSize(Inicio[playerid], 641.500, 449.500);
  6674.         TextDrawColor(Inicio[playerid], -1);
  6675.     }
  6676.     else if(RandFundo == 2)
  6677.     {
  6678.         Inicio[playerid] = TextDrawCreate(-0.500, -0.500, "loadsc3:loadsc3");
  6679.         TextDrawFont(Inicio[playerid], 4);
  6680.         TextDrawTextSize(Inicio[playerid], 641.500, 449.500);
  6681.         TextDrawColor(Inicio[playerid], -1);
  6682.     }
  6683.     else if(RandFundo == 3)
  6684.     {
  6685.         Inicio[playerid] = TextDrawCreate(-0.500, -0.500, "loadsc4:loadsc4");
  6686.         TextDrawFont(Inicio[playerid], 4);
  6687.         TextDrawTextSize(Inicio[playerid], 641.500, 449.500);
  6688.         TextDrawColor(Inicio[playerid], -1);
  6689.     }
  6690.     TextDrawShowForPlayer(playerid, Inicio[playerid]);
  6691.     return 1;
  6692. }
  6693.  
  6694. stock DarAdmin(playerid, niv) {
  6695.     format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6696.     if(!DOF2_FileExists(StringContas)) {
  6697.         DOF2_CreateFile(StringContas);
  6698.     }
  6699.     DOF2_SetInt(StringContas, "Admin", niv);
  6700.     SalvarDados(playerid);
  6701.     printf("%s novo admin nivel %d", Nome(playerid), niv);
  6702.     return 1;
  6703. }
  6704.  
  6705. stock TirarAdmin(playerid) {
  6706.     format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6707.     if(!DOF2_FileExists(StringContas))
  6708.         return printf("Conta %s nao existe.", Nome(playerid));
  6709.     DOF2_Unset(StringContas, "Admin");
  6710.     printf("admin retirado");
  6711.     return 1;
  6712. }
  6713.  
  6714. stock DarHelper(playerid) {
  6715.     format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6716.     if(!DOF2_FileExists(StringContas)) {
  6717.         DOF2_CreateFile(StringContas);
  6718.     }
  6719.     DOF2_SetBool(StringContas, "Helper", true);
  6720.     SalvarDados(playerid);
  6721.     printf("%s novo admin nivel %d", Nome(playerid));
  6722.     return 1;
  6723. }
  6724.  
  6725. stock TirarHelper(playerid) {
  6726.     format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6727.     if(!DOF2_FileExists(StringContas))
  6728.         return printf("Conta %s nao existe.", Nome(playerid));
  6729.     DOF2_Unset(StringContas, "Helper");
  6730.     printf("helper tirado");
  6731.     return 1;
  6732. }
  6733.  
  6734. stock DarVip(playerid) {
  6735.     format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6736.     if(!DOF2_FileExists(StringContas)) {
  6737.         DOF2_CreateFile(StringContas);
  6738.     }
  6739.     DOF2_SetBool(StringContas, "Vip", true);
  6740.     SalvarDados(playerid);
  6741.     printf("%s novo admin nivel %d", Nome(playerid));
  6742.     return 1;
  6743. }
  6744.  
  6745. stock TirarVip(playerid) {
  6746.     format(StringContas, sizeof StringContas, "EuroRPG/Admins/%s.sav", Nome(playerid));
  6747.     if(!DOF2_FileExists(StringContas))
  6748.         return printf("Conta %s nao existe.", Nome(playerid));
  6749.     DOF2_Unset(StringContas, "Vip");
  6750.     printf("vip tirado");
  6751.     return 1;
  6752. }
  6753.  
  6754. stock MensagemParaAdmins(mensagem[])
  6755. {
  6756.     for(new i = 0; i < MAX_PLAYERS; ++i)
  6757.     {
  6758.         if(PlayerDados[i][Admin] > 0)
  6759.         {
  6760.             Msg(i, ROSA_CHOQUE, mensagem);
  6761.         }
  6762.     }
  6763.     return 1;
  6764. }
  6765.  
  6766. //SSCANF NUNCA MECHA NESSA PARTE:
  6767. stock sscanf(string[], format[], {Float,_}:...)
  6768. {
  6769.     #if defined isnull
  6770.         if (isnull(string))
  6771.     #else
  6772.         if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  6773.     #endif
  6774.         {
  6775.             return format[0];
  6776.         }
  6777.     #pragma tabsize 4
  6778.     new
  6779.         formatPos = 0,
  6780.         stringPos = 0,
  6781.         paramPos = 2,
  6782.         paramCount = numargs(),
  6783.         delim = ' ';
  6784.     while (string[stringPos] && string[stringPos] <= ' ')
  6785.     {
  6786.         stringPos++;
  6787.     }
  6788.     while (paramPos < paramCount && string[stringPos])
  6789.     {
  6790.         switch (format[formatPos++])
  6791.         {
  6792.             case '\0':
  6793.             {
  6794.                 return 0;
  6795.             }
  6796.             case 'i', 'd':
  6797.             {
  6798.                 new
  6799.                     neg = 1,
  6800.                     num = 0,
  6801.                     ch = string[stringPos];
  6802.                 if (ch == '-')
  6803.                 {
  6804.                     neg = -1;
  6805.                     ch = string[++stringPos];
  6806.                 }
  6807.                 do
  6808.                 {
  6809.                     stringPos++;
  6810.                     if ('0' <= ch <= '9')
  6811.                     {
  6812.                         num = (num * 10) + (ch - '0');
  6813.                     }
  6814.                     else
  6815.                     {
  6816.                         return -1;
  6817.                     }
  6818.                 }
  6819.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  6820.                 setarg(paramPos, 0, num * neg);
  6821.             }
  6822.             case 'h', 'x':
  6823.             {
  6824.                 new
  6825.                     num = 0,
  6826.                     ch = string[stringPos];
  6827.                 do
  6828.                 {
  6829.                     stringPos++;
  6830.                     switch (ch)
  6831.                     {
  6832.                         case 'x', 'X':
  6833.                         {
  6834.                             num = 0;
  6835.                             continue;
  6836.                         }
  6837.                         case '0' .. '9':
  6838.                         {
  6839.                             num = (num << 4) | (ch - '0');
  6840.                         }
  6841.                         case 'a' .. 'f':
  6842.                         {
  6843.                             num = (num << 4) | (ch - ('a' - 10));
  6844.                         }
  6845.                         case 'A' .. 'F':
  6846.                         {
  6847.                             num = (num << 4) | (ch - ('A' - 10));
  6848.                         }
  6849.                         default:
  6850.                         {
  6851.                             return -1;
  6852.                         }
  6853.                     }
  6854.                 }
  6855.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  6856.                 setarg(paramPos, 0, num);
  6857.             }
  6858.             case 'c':
  6859.             {
  6860.                 setarg(paramPos, 0, string[stringPos++]);
  6861.             }
  6862.             case 'f':
  6863.             {
  6864.  
  6865.                 new changestr[16], changepos = 0, strpos = stringPos;
  6866.                 while(changepos < 16 && string[strpos] && string[strpos] != delim)
  6867.                 {
  6868.                     changestr[changepos++] = string[strpos++];
  6869.                     }
  6870.                 changestr[changepos] = '\0';
  6871.                 setarg(paramPos,0,_:floatstr(changestr));
  6872.             }
  6873.             case 'p':
  6874.             {
  6875.                 delim = format[formatPos++];
  6876.                 continue;
  6877.             }
  6878.             case '\'':
  6879.             {
  6880.                 new
  6881.                     end = formatPos - 1,
  6882.                     ch;
  6883.                 while ((ch = format[++end]) && ch != '\'') {}
  6884.                 if (!ch)
  6885.                 {
  6886.                     return -1;
  6887.                 }
  6888.                 format[end] = '\0';
  6889.                 if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  6890.                 {
  6891.                     if (format[end + 1])
  6892.                     {
  6893.                         return -1;
  6894.                     }
  6895.                     return 0;
  6896.                 }
  6897.                 format[end] = '\'';
  6898.                 stringPos = ch + (end - formatPos);
  6899.                 formatPos = end + 1;
  6900.             }
  6901.             case 'u':
  6902.             {
  6903.                 new
  6904.                     end = stringPos - 1,
  6905.                     id = 0,
  6906.                     bool:num = true,
  6907.                     ch;
  6908.                 while ((ch = string[++end]) && ch != delim)
  6909.                 {
  6910.                     if (num)
  6911.                     {
  6912.                         if ('0' <= ch <= '9')
  6913.                         {
  6914.                             id = (id * 10) + (ch - '0');
  6915.                         }
  6916.                         else
  6917.                         {
  6918.                             num = false;
  6919.                         }
  6920.                     }
  6921.                 }
  6922.                 if (num && IsPlayerConnected(id))
  6923.                 {
  6924.                     setarg(paramPos, 0, id);
  6925.                 }
  6926.                 else
  6927.                 {
  6928.                     #if !defined foreach
  6929.                         #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  6930.                         #define __SSCANF_FOREACH__
  6931.                     #endif
  6932.                     string[end] = '\0';
  6933.                     num = false;
  6934.                     new
  6935.                         name[MAX_PLAYER_NAME];
  6936.                     id = end - stringPos;
  6937.                     foreach (Player, playerid)
  6938.                     {
  6939.                         GetPlayerName(playerid, name, sizeof (name));
  6940.                         if (!strcmp(name, string[stringPos], true, id))
  6941.                         {
  6942.                             setarg(paramPos, 0, playerid);
  6943.                             num = true;
  6944.                             break;
  6945.                         }
  6946.                     }
  6947.                     if (!num)
  6948.                     {
  6949.                         setarg(paramPos, 0, INVALID_PLAYER_ID);
  6950.                     }
  6951.                     string[end] = ch;
  6952.                     #if defined __SSCANF_FOREACH__
  6953.                         #undef foreach
  6954.                         #undef __SSCANF_FOREACH__
  6955.                     #endif
  6956.                 }
  6957.                 stringPos = end;
  6958.             }
  6959.             case 's', 'z':
  6960.             {
  6961.                 new
  6962.                     i = 0,
  6963.                     ch;
  6964.                 if (format[formatPos])
  6965.                 {
  6966.                     while ((ch = string[stringPos++]) && ch != delim)
  6967.                     {
  6968.                         setarg(paramPos, i++, ch);
  6969.                     }
  6970.                     if (!i)
  6971.                     {
  6972.                         return -1;
  6973.                     }
  6974.                 }
  6975.                 else
  6976.                 {
  6977.                     while ((ch = string[stringPos++]))
  6978.                     {
  6979.                         setarg(paramPos, i++, ch);
  6980.                     }
  6981.                 }
  6982.                 stringPos--;
  6983.                 setarg(paramPos, i, '\0');
  6984.             }
  6985.             default:
  6986.             {
  6987.                 continue;
  6988.             }
  6989.         }
  6990.         while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  6991.         {
  6992.             stringPos++;
  6993.         }
  6994.         while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  6995.         {
  6996.             stringPos++;
  6997.         }
  6998.         paramPos++;
  6999.     }
  7000.     do
  7001.     {
  7002.         if ((delim = format[formatPos++]) > ' ')
  7003.         {
  7004.             if (delim == '\'')
  7005.             {
  7006.                 while ((delim = format[formatPos++]) && delim != '\'') {}
  7007.             }
  7008.             else if (delim != 'z')
  7009.             {
  7010.                 return delim;
  7011.             }
  7012.         }
  7013.     }
  7014.     while (delim > ' ');
  7015.     return 0;
  7016. }
  7017.  
  7018. public OnPlayerStateChange(playerid, newstate, oldstate)
  7019. {
  7020.     if(newstate == PLAYER_STATE_DRIVER)
  7021.     {
  7022.         if(PlayerDados[playerid][Motorista] == 1)
  7023.         {
  7024.             return 1;
  7025.         }
  7026.         else
  7027.         {
  7028.             SendClientMessage(playerid, -1, "Você não tem linceças para usar {FF0000}Carros.");
  7029.             SendClientMessage(playerid, -1, "Para conseguir a Licença de Motorista vai no {FF0000}Centro de Licenças. ");
  7030.             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
  7031.             return 1;
  7032.         }
  7033.     }
  7034.     if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  7035.     {
  7036.         TextDrawShowForPlayer(playerid, Speed[playerid]);
  7037.     }
  7038.     else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
  7039.     {
  7040.         TextDrawHideForPlayer(playerid, Speed[playerid]);
  7041.     }
  7042.     new oldnew;
  7043.     if(newstate == 2 || newstate == 3)
  7044.     {
  7045.         if(oldnew == 0)
  7046.         {
  7047.             format(gstring, sizeof(gstring), "~g~%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
  7048.             GameTextForPlayer(playerid, gstring, 6000, 1);
  7049.         }
  7050.     }
  7051.     new carros = GetPlayerVehicleID(playerid);
  7052.     if(GetPlayerState(playerid) == 2)
  7053.     {
  7054.         for(new i = 0; i < sizeof(BALLAS); i ++)
  7055.         {
  7056.             if(carros == BALLAS[i])
  7057.             {
  7058.                 if(PlayerDados[playerid][Organizacao] != 1)
  7059.                 {
  7060.                     SendClientMessage(playerid,0xFF0000FF, "• Você Não tem a Chave desse Veiculo, Você foi Removido •");
  7061.                     RemovePlayerFromVehicle(playerid);
  7062.                 }
  7063.             }
  7064.         }
  7065.     }
  7066.     return 1;
  7067. }
  7068.  
  7069. public Personagem(playerid,targetid)
  7070. {
  7071.     //--------[ Vips ]--------//
  7072.     new VIPP[20];
  7073.     if(PlayerDados[targetid][Vip])
  7074.     {
  7075.         VIPP = "Sim";
  7076.     }
  7077.     else
  7078.     {
  7079.         VIPP = "Nao";
  7080.     }
  7081.     //---------[ Licencas Motorista ]--------//
  7082.     new CarteiraM[25];
  7083.     if(PlayerDados[targetid][Motorista])
  7084.     {
  7085.         CarteiraM = "Sim";
  7086.     }
  7087.     else
  7088.     {
  7089.         CarteiraM = "Nao";
  7090.     }
  7091.     //------------[ Empregos ]------------//
  7092.     new Empregos[30];
  7093.     if(PlayerDados[playerid][Emprego] == 0)
  7094.     {
  7095.         Empregos = "Vagabundo";
  7096.     }
  7097.     if(PlayerDados[targetid][Emprego] == 1)
  7098.     {
  7099.         Empregos = "Detetive";
  7100.     }
  7101.     if(PlayerDados[targetid][Emprego] == 2)
  7102.     {
  7103.         Empregos = "Advogado";
  7104.     }
  7105.     //------------[ Definir Sexo ]-----------//
  7106.     new NomeSexo[20];
  7107.     if(PlayerDados[targetid][Sexo] == 1)
  7108.     {
  7109.         NomeSexo = "Masculino";
  7110.     }
  7111.     else if(PlayerDados[targetid][Sexo] == 2)
  7112.     {
  7113.         NomeSexo = "Feminino";
  7114.     }
  7115.     //-------------[ Definir Nome de Cargo ]--------//
  7116.     new NomeCargo[64];
  7117.     if(PlayerDados[playerid][Organizacao] == 1)
  7118.     {
  7119.         if(PlayerDados[targetid][Cargo] == 1)
  7120.         {
  7121.             NomeCargo = "Fogueteiro";
  7122.         }
  7123.         else if(PlayerDados[targetid][Cargo] == 2)
  7124.         {
  7125.             NomeCargo = "Falcao";
  7126.         }
  7127.         else if(PlayerDados[targetid][Cargo] == 3)
  7128.         {
  7129.             NomeCargo = "Vendedor de Pó";
  7130.         }
  7131.         else if(PlayerDados[targetid][Cargo] == 4)
  7132.         {
  7133.             NomeCargo = "Sub-Gerente";
  7134.         }
  7135.         else if(PlayerDados[targetid][Cargo] == 5)
  7136.         {
  7137.             NomeCargo = "Gerente da Boca";
  7138.         }
  7139.         else if(PlayerDados[targetid][Cargo] == 6)
  7140.         {
  7141.             NomeCargo = "Dono da Boca";
  7142.         }
  7143.         else
  7144.         {
  7145.             NomeCargo = "Fogueteiro";
  7146.         }
  7147.     }
  7148.     else
  7149.     {
  7150.         NomeCargo = "Nenhum";
  7151.     }
  7152.     //-----------[ Comando /rg Dialog ]---------//
  7153.     new Dinheiro =  GetPlayerMoney(targetid);
  7154.     new Matador = PlayerDados[targetid][Matou];
  7155.     new Morte = PlayerDados[targetid][Morreu];
  7156.     new Respeitoo = PlayerDados[playerid][Respeito];
  7157.     new Levels = GetPlayerScore(playerid);
  7158.     new Procuradoo = PlayerDados[playerid][Procurado];
  7159.     new Pedrinha[2000];
  7160.     if(targetid == playerid)
  7161.     {
  7162.     }
  7163.     else
  7164.     {
  7165.         format(gstring, sizeof(gstring),"(=-=-=-=-=-=-=-=( RG de {FF0000}%s {FFFFFF})=-=-=-=-=-=-=-=)",Nome(playerid));
  7166.     }
  7167.     format(Pedrinha, sizeof(Pedrinha), "{FF0000}%s\n{FFFFFF}Nome: {FF0000}[%s] - {FFFFFF}Sexo: {FF0000}[%s] - {FFFFFF}Org: {FF0000}[%s] - {FFFFFF}Cargo: {FF0000}[%s]",Pedrinha, Nome(playerid), NomeSexo, NomeORG(targetid), NomeCargo);
  7168.     //--------------
  7169.     format(Pedrinha, sizeof(Pedrinha), "{FF0000}%s\n{FFFFFF}Dinheiro: {FF0000}[R$%d] - {FFFFFF}Matou: {FF0000}[%d] - {FFFFFF}Morreu: {FF0000}[%d] - {FFFFFF}Emprego: {FF0000}[%s]",Pedrinha, Dinheiro, Matador, Morte, Empregos);
  7170.     //--------------
  7171.     format(Pedrinha, sizeof(Pedrinha), "{FF0000}%s\n{FFFFFF}Conta Vip: {FF0000}[%s] - {FFFFFF}Respeito: {FF0000}[%d] - {FFFFFF}Level: {FF0000}[%d] - {FFFFFF}Carteira de Motorista: {FF0000}[%s]",Pedrinha, VIPP, Respeitoo, Levels, CarteiraM);
  7172.     //--------------
  7173.     format(Pedrinha, sizeof(Pedrinha), "{FF0000}%s\n{FFFFFF}Nivel de Procurado: {FF0000}[%d]",Pedrinha, Procuradoo);
  7174.     //--------------
  7175.     ShowPlayerDialog(playerid, Documentos, DIALOG_STYLE_MSGBOX, "{FF0000}RG - Documentos", Pedrinha, "Fechar", "");
  7176. }
  7177.  
  7178.  
  7179. public OnPlayerRequestSpawn(playerid)
  7180. {
  7181.     return 0;
  7182. }
  7183.  
  7184. stock PlayerName(playerid)
  7185. {
  7186.     new Name[MAX_PLAYER_NAME];
  7187.     GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
  7188.     return Name;
  7189. }
  7190.  
  7191. stock NomeORG(playerid)
  7192. {
  7193.     new TextoGangue[64];
  7194.     if(PlayerDados[playerid][Organizacao] == 0)
  7195.     {
  7196.         TextoGangue = "Civil";
  7197.     }
  7198.     if(PlayerDados[playerid][Organizacao] == 1)
  7199.     {
  7200.         TextoGangue = "Ballas";
  7201.     }
  7202.     if(PlayerDados[playerid][Organizacao] == 2)
  7203.     {
  7204.         TextoGangue = "Policia Militar";
  7205.     }
  7206.     return TextoGangue;
  7207. }
  7208.  
  7209. stock SendFamilyMessage(orgid, cor, mensagem[])
  7210. {
  7211.     for(new i = 0; i < MAX_PLAYERS; i++)
  7212.     {
  7213.         if(IsPlayerConnected(i))
  7214.         {
  7215.             if(PlayerDados[i][Organizacao] == orgid)
  7216.             {
  7217.                 SendClientMessage(i, cor, mensagem);
  7218.             }
  7219.         }
  7220.     }
  7221.     return 0;
  7222. }
  7223.  
  7224. public ActionCamera()
  7225. {
  7226.     for(new i=0; i<MAX_PLAYERS; i++)
  7227.     {
  7228.         if(Camera[i] == 1)
  7229.         {
  7230.             SetPlayerCameraPos(i,CameraX[i], -1324.0, 287.2);
  7231.             SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
  7232.             CameraX[i]+= 0.5;
  7233.             RegistrationStep[i] = 1;
  7234.             if(CameraX[i] == 1500.0)
  7235.             {
  7236.             }
  7237.             if(CameraX[i] == 1700.0)
  7238.             {
  7239.                 SetPlayerCameraPos(i,CameraX[i], CameraY[i], 287.2);
  7240.                 SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
  7241.                 CameraY[i]+= 0.5;
  7242.             }
  7243.             if(CameraX[i] >= 2400.0)
  7244.             {
  7245.                 CameraZ[i] = 287.2;
  7246.                 Camera[i] = 2;
  7247.             }
  7248.         }
  7249.         else if(Camera[i] == 2)
  7250.         {
  7251.             SetPlayerCameraPos(i,CameraX[i], CameraY[i], 287.2);
  7252.             SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
  7253.             CameraY[i]+= 0.5;
  7254.             if(CameraY[i] >= -724.0)
  7255.             {
  7256.                 CameraZ[i] = 287.2;
  7257.                 Camera[i] = 3;
  7258.             }
  7259.         }
  7260.         else if(Camera[i] == 3)
  7261.         {
  7262.             SetPlayerCameraPos(i,CameraX[i], CameraY[i], 287.2);
  7263.             SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
  7264.             CameraX[i]-= 0.5;
  7265.             if(CameraX[i] <= 850.0)
  7266.             {
  7267.                 Camera[i] = 4;
  7268.             }
  7269.         }
  7270.         else if(Camera[i] == 4)
  7271.         {
  7272.             SetPlayerCameraPos(i,CameraX[i], CameraY[i], CameraZ[i]);
  7273.             SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
  7274.             CameraY[i]-= 0.5;
  7275.             if(CameraY[i] <= -1224.0)
  7276.             {
  7277.                 CameraX[i] = 1460.0;
  7278.                 CameraY[i] = -1324.0;
  7279.                 CameraZ[i] = 287.2;
  7280.                 CameraZ[i] = 287.2;
  7281.                 Camera[i] = 0;
  7282.             }
  7283.         }
  7284.         else
  7285.         {
  7286.             Camera[i] = 0;
  7287.         }
  7288.     }
  7289.     return 1;
  7290. }
  7291.  
  7292. public IsAGasolina(playerid)
  7293. {
  7294.     if(IsPlayerConnected(playerid))
  7295.     {
  7296.         if(PlayerToPoint(1.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(1.0,playerid,1944.3260,-1772.9254,13.3906) || PlayerToPoint(1.0,playerid,1400.6882,-1680.5344,42.4339) || PlayerToPoint(1.0,playerid,1496.5316,-1544.0677,23.5481) || PlayerToPoint(1.0,playerid,2737.3364,-1774.2123,43.7973))
  7297.         {//Los Santos
  7298.             return 1;
  7299.         }
  7300.         else if(PlayerToPoint(1.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(1.0,playerid,-1609.7958,-2718.2048,48.5391) || PlayerToPoint(1.0,playerid,1084.6238,-1743.4821,13.5060))
  7301.         {//Los Santos
  7302.             return 1;
  7303.         }
  7304.         else if(PlayerToPoint(1.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(1.0,playerid,-2408.7590,976.0934,45.4175))
  7305.         {//Los Santos
  7306.             return 1;
  7307.         }
  7308.         else if(PlayerToPoint(1.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(1.0,playerid,-1676.6323,414.0262,6.9484))
  7309.         {//Los Santos Para SF
  7310.             return 1;
  7311.         }
  7312.     }
  7313.     return 0;
  7314. }
  7315.  
  7316. public Novinha(playerid)
  7317. {
  7318.     for(new i=0; i<MAX_PLAYERS; i++)
  7319.     {
  7320.         if(IsPlayerConnected(i))
  7321.         {
  7322.             new VID;
  7323.             new FillUp;
  7324.             VID = GetPlayerVehicleID(i);
  7325.             FillUp = GasMax - Gas[VID];
  7326.             if(MeuOvo[i] == 1)
  7327.             {
  7328.                 if(GetPlayerMoney(i) >= FillUp+4)
  7329.                 {
  7330.                     Controle(playerid, 1);
  7331.                     Gas[VID] += FillUp;
  7332.                     FillUp = FillUp * 50;
  7333.                     format(gstring,sizeof(gstring)," Veiculo Reabastecido, {FF0000}Por: R$%d.",FillUp);
  7334.                     PlayerPlaySound(i, 1149, 0.0, 0.0, 0.0);
  7335.                     SendClientMessage(i,BRANCO,gstring);
  7336.                     GivePlayerMoney(i, - FillUp);
  7337.                     MeuOvo[i] = 0;
  7338.                     Controle(playerid, 1);
  7339.                     Controle(playerid, 1);
  7340.                 }
  7341.                 else
  7342.                 {
  7343.                     Controle(playerid, 1);
  7344.                     format(gstring,sizeof(gstring)," Você não tem grana para reabastecer, você precisa de {FF0000}R$%d {FFFFFF}para reabastecer.",FillUp);
  7345.                     SendClientMessage(i,BRANCO,gstring);
  7346.                     Controle(playerid, 1);
  7347.                     Controle(playerid, 1);
  7348.                 }
  7349.             }
  7350.         }
  7351.     }
  7352.     return 1;
  7353. }
  7354.  
  7355. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  7356. {
  7357.     if(IsPlayerConnected(playerid))
  7358.     {
  7359.         new Float:oldposx, Float:oldposy, Float:oldposz;
  7360.         new Float:tempposx, Float:tempposy, Float:tempposz;
  7361.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  7362.         tempposx = (oldposx -x);
  7363.         tempposy = (oldposy -y);
  7364.         tempposz = (oldposz -z);
  7365.         if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  7366.         {
  7367.             return true;
  7368.         }
  7369.     }
  7370.     return 0;
  7371. }
  7372.  
  7373. public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
  7374. {
  7375.     if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
  7376.     {
  7377.         cmd_abastecer(playerid, "");
  7378.     }
  7379.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  7380.     {
  7381.         cmd_entrar(playerid, "");
  7382.         cmd_sair(playerid,"");
  7383.         cmd_empregos(playerid, "");
  7384.         cmd_licencas(playerid, "");
  7385.     }
  7386.     if(PlayerToPoint(1.0, playerid, 325.4386,1124.4393,1083.8828))
  7387.     {
  7388.         if(PlayerDados[playerid][Organizacao] == 1)
  7389.         {
  7390.             ShowPlayerDialog(playerid, 94, DIALOG_STYLE_LIST, "Cofre dos Ballas", "Dinheiro\nEquipar", "Confirmar", "Cancelar");
  7391.         }
  7392.     }
  7393.     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672) || IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)
  7394.     || IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398) || IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398))
  7395.     {
  7396.         cmd_abrirportas(playerid, "");
  7397.     }
  7398.     /*if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828) || IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828) || IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)
  7399.     || IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828) || IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828) || IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)
  7400.     || IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828) || IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828))
  7401.     {
  7402.         cmd_abrircelas(playerid, "");
  7403.     }*/
  7404.     if(newkeys & KEY_FIRE)
  7405.     {
  7406.         if(ArmadeChoque[playerid] == 1)
  7407.         {
  7408.             ApplyAnimation(playerid,"KNIFE","knife_3",4.1,0,1,1,0,0,1);
  7409.             SetTimerEx("TimerClear",2000,false,"d",playerid);
  7410.             new victimid = GetClosestPlayer(playerid);
  7411.             if(IsPlayerConnected(victimid))
  7412.             {
  7413.                 if(GetDistanceBetweenPlayers(playerid,victimid) < 2)
  7414.                 {
  7415.                     new Float:health;
  7416.                     GetPlayerHealth(victimid, health);
  7417.                     SetPlayerHealth(victimid, health - 5.0);
  7418.                     SetTimerEx("TimerFall",300,false,"d",victimid);
  7419.                     return 1;
  7420.                  }
  7421.              }
  7422.         }
  7423.     }
  7424.     return 1;
  7425. }
  7426.  
  7427. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  7428. {
  7429.     if(!success)
  7430.     {
  7431.         //SendClientMessage(playerid, BRANCO, "Comando Não {FF0000}Existe.");
  7432.         return 1;
  7433.     }
  7434.     return 1;
  7435. }
  7436. forward TempoGasolina();
  7437. public TempoGasolina()
  7438. {
  7439.     for(new i=0;i<MAX_PLAYERS;i++)
  7440.     {
  7441.         if(IsPlayerConnected(i))
  7442.         {
  7443.             if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
  7444.             {
  7445.                 new vehicle = GetPlayerVehicleID(i);
  7446.                 new VehicleModel = GetVehicleModel(vehicle);
  7447.                 if(VehicleModel == 509 || VehicleModel == 481 || VehicleModel == 510)
  7448.                 {
  7449.                     return 1;
  7450.                 }
  7451.                 if(Gas[vehicle] >= 1)
  7452.                 {
  7453.                     if(Gas[vehicle] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
  7454.                     Gas[vehicle]--;
  7455.                 }
  7456.                 else
  7457.                 {
  7458.                     NoFuel[i] = 1;
  7459.                     TogglePlayerControllable(i, 0);
  7460.                     PlayerPlaySound(i, 1159, 0.0, 0.0, 0.0);
  7461.                     GameTextForPlayer(i,"~r~~n~Sem combustivel ~w~~n~Use /sair Para sair do veiculo",1500,3);
  7462.                     //SendClientMessage(i, -1, "O motor do veículo apagou por falta de combustível, Chame um mecânico para ajudar.");
  7463.                 }
  7464.             }
  7465.         }
  7466.     }
  7467.     return 1;
  7468. }
  7469.  
  7470. forward Henrique(playerid);
  7471. public Henrique(playerid)
  7472. {
  7473.     VerificarArma(playerid);
  7474.     VerificarPing(playerid);
  7475.     VerificarVelocidade(playerid);
  7476.     return 1;
  7477. }
  7478.  
  7479. public OnPlayerEnterCheckpoint(playerid)
  7480. {
  7481.     if (CheckPoint[playerid] == 1)
  7482.     {
  7483.         DisablePlayerCheckpoint(playerid);
  7484.         GameTextForPlayer(playerid, "~w~Localizado", 2000, 1);
  7485.     }
  7486.     return 1;
  7487. }
  7488.  
  7489. forward UpTime();
  7490. public UpTime()
  7491. {
  7492.     for(new i; i != GetMaxPlayers(); i++)
  7493.         if(IsPlayerConnected(i))
  7494.         {
  7495.             Pagamento[i]++;
  7496.             if(Pagamento[i] > 900)
  7497.             {
  7498.                 Pagamento[i] = 0;
  7499.                 PlayerDados[i][Respeito] ++;
  7500.                 if(PlayerDados[i][Respeito] == 10)
  7501.                 {
  7502.                     PlayerDados[i][Respeito] = 0;
  7503.                     Level[i]++;
  7504.                     SetPlayerScore(i, Level[i]);
  7505.                     SendClientMessage(i,BRANCO,"Você Passou de {FF0000}Level !");
  7506.                 }
  7507.             }
  7508.         }
  7509.  
  7510.     return true;
  7511. }
  7512.  
  7513. public Velocimetro()
  7514. {
  7515.     new Float:Speedo_HP;
  7516.     for(new i=0; i<MAX_PLAYERS; i++)
  7517.     {
  7518.         if(IsPlayerInAnyVehicle(i))
  7519.         {
  7520.             new vehicle = GetPlayerVehicleID(i);
  7521.             GetVehicleHealth(vehicle, Speedo_HP);
  7522.             new string[256];
  7523.             format(string,sizeof(string),"~p~~>~Veiculo:~w~ %s~n~~p~~>~Velocidade:~w~ %d KM/h~n~~p~~>~Combustivel: ~W~%d%%~n~~p~~>~Lataria: ~W~%0.0f%%~n~~p~~>~Localizacao:~w~ %s" ,vehName[GetVehicleModel(vehicle)-400], GetPlayerSpeed(i, true), Gas[vehicle], Speedo_HP/10, ReturnPlayerZone(i));
  7524.             TextDrawSetString(Speed[i], string);
  7525.             if(TextShow[i] == false)
  7526.             {
  7527.                 TextDrawShowForPlayer(i, Speed[i]);
  7528.                 TextShow[i] = true;
  7529.             }
  7530.         }
  7531.         else
  7532.         {
  7533.             if(TextShow[i] == true)
  7534.             {
  7535.                 TextDrawHideForPlayer(i, Speed[i]);
  7536.                 TextShow[i] = false;
  7537.             }
  7538.         }
  7539.     }
  7540. }
  7541.  
  7542. forward DestruirBarreira(playerid);
  7543. public DestruirBarreira(playerid)
  7544. {
  7545.     DestroyObject(pBarreira[playerid]);
  7546.     DestroyObject(pBarreira2[playerid]);
  7547.     DestroyObject(pBarreira3[playerid]);
  7548.     DestroyObject(pBarreira4[playerid]);
  7549.     DestroyObject(pBarreira5[playerid]);
  7550.     pBarreira[playerid] = 0;
  7551. }
  7552.  
  7553. public Sequestrar()
  7554. {
  7555.     if(psequestrar > 0)
  7556.     {
  7557.         psequestrar = 0;
  7558.     }
  7559. }
  7560.  
  7561. public UsarNovamente(playerid)
  7562. {
  7563.     AssaltarNovamente[playerid] = 0;
  7564. }
  7565.  
  7566. //--- Arma de Choque
  7567. forward GetClosestPlayer(p1);
  7568. public GetClosestPlayer(p1)
  7569. {
  7570.     new x,Float:dis,Float:dis2,player;
  7571.     player = -1;
  7572.     dis = 99999.99;
  7573.     for (x=0;x<MAX_PLAYERS;x++)
  7574.     {
  7575.         if(IsPlayerConnected(x))
  7576.         {
  7577.             if(x != p1)
  7578.             {
  7579.                 dis2 = GetDistanceBetweenPlayers(x,p1);
  7580.                 if(dis2 < dis && dis2 != -1.00)
  7581.                 {
  7582.                     dis = dis2;
  7583.                     player = x;
  7584.                 }
  7585.             }
  7586.         }
  7587.     }
  7588.     return player;
  7589. }
  7590. forward Float:GetDistanceBetweenPlayers(p1,p2);
  7591. public Float:GetDistanceBetweenPlayers(p1,p2)
  7592. {
  7593.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  7594.     if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
  7595.     {
  7596.         return -1.00;
  7597.     }
  7598.     GetPlayerPos(p1,x1,y1,z1);
  7599.     GetPlayerPos(p2,x2,y2,z2);
  7600.     return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  7601. }
  7602.  
  7603. public SetPlayerCriminal(playerid,declare,reason[])
  7604. {
  7605.     return 1;
  7606. }
  7607.  
  7608.  
  7609. public OrgCop(playerid)
  7610. {
  7611.     if(IsPlayerConnected(playerid))
  7612.     {
  7613.         new lider = PlayerDados[playerid][Organizacao];
  7614.         if(lider == 2)
  7615.         {
  7616.             return 1;
  7617.         }
  7618.     }
  7619.     return 0;
  7620. }
  7621.  
  7622. //-------------------[ Stock's ]----------------//
  7623. stock GetPlayerSpeed(playerid,bool:kmh)
  7624. {
  7625.     new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
  7626.     if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
  7627.     rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
  7628.     return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
  7629. }
  7630.  
  7631. stock ReturnPlayerZone(playerid)
  7632. {
  7633.     new location[MAX_ZONE_NAME];
  7634.     GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  7635.     return location;
  7636. }
  7637.  
  7638. stock GetPlayer2DZone(playerid, zone[], len)
  7639. {
  7640.     new Float:x, Float:y, Float:z;
  7641.     GetPlayerPos(playerid, x, y, z);
  7642.     for(new i = 0; i != sizeof(gSAZones); i++ )
  7643.     {
  7644.         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])
  7645.         {
  7646.             return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  7647.         }
  7648.     }
  7649.     return 0;
  7650. }
  7651.  
  7652. stock IsPlayerPoint(playerid, vehicleid, Float:distance)
  7653. {
  7654.     static
  7655.         Float:vPos[3];
  7656.     GetVehiclePos(vehicleid, vPos[0], vPos[1], vPos[2]);
  7657.     return IsPlayerInRangeOfPoint(playerid, distance, vPos[0], vPos[1], vPos[2]);
  7658. }
  7659.  
  7660. stock VerificarArma(playerid)
  7661. {
  7662.     new weaponid = GetPlayerWeapon(playerid);
  7663.     for(new i = 0; i != MAX_PLAYERS; i++)
  7664.     {
  7665.         if(WeaponsID[i] == weaponid)
  7666.         {
  7667.             SendClientMessage(playerid,BRANCO,"{FFFFFF}Você foi Detectado usando {FF0000}Armas proibidas {FFFFFF}e Tomou Ban !");
  7668.             Ban(playerid);
  7669.             return 1;
  7670.         }
  7671.     }
  7672.     return 1;
  7673. }
  7674.  
  7675. stock VerificarPing(playerid)
  7676. {
  7677.     new PegarPing = GetPlayerPing(playerid);
  7678.     if(PegarPing > Ping[playerid])
  7679.     {
  7680.         SendClientMessage(playerid,BRANCO,"Você foi Kikado por {FF0000}Maximo de Ping !");
  7681.         Kick(playerid);
  7682.         return 1;
  7683.     }
  7684.     return 1;
  7685. }
  7686.  
  7687. stock VerificarVelocidade(playerid)
  7688. {
  7689.     if(Velocidade(playerid) > MaxSpeed[playerid])
  7690.     {
  7691.         SendClientMessage(playerid,BRANCO,"{FFFFFF}Você foi kikado por Ultrapassar o Limite de Velocidade: {FF0000}Detectado Speed Hacker");
  7692.         Kick(playerid);
  7693.         return 1;
  7694.     }
  7695.     return 1;
  7696. }
  7697.  
  7698. stock Velocidade(playerid)
  7699. {
  7700.     if(IsPlayerInAnyVehicle(playerid))
  7701.     {
  7702.         GetVehicleVelocity(GetPlayerVehicleID(playerid), Pos[0], Pos[1], Pos[2]);
  7703.         Pos[3] = floatmul(floatsqroot(floatadd(floatadd(floatpower(Pos[0], 2), floatpower(Pos[1], 2)),  floatpower(Pos[2], 2))), 170.0);
  7704.         spe = floatround(Pos[3] * 1);
  7705.     }
  7706.     else
  7707.         return false;
  7708.     return spe;
  7709. }
  7710.  
  7711. //------------------[ Sistema de COFRE ]----------------//
  7712. forward SalvarBancoDasOrgs();
  7713. public SalvarBancoDasOrgs()
  7714. {
  7715.     new arquivo[256];
  7716.     new idx = 1;
  7717.     while (idx < sizeof(BancoDasOrgs))
  7718.     {
  7719.         format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",idx);
  7720.         DOF2_SetInt(arquivo,"pDinheiro",BancoDasOrgs[idx][pDinheiro]);
  7721.         DOF2_SetInt(arquivo,"Eagle",BancoDasOrgs[idx][pEagle]);
  7722.         printf("=-=-=-=-=-=-=-=-=-=[Salvando Cofe de Org %d]=-=-=-=-=-=-=-=-=-=",idx);
  7723.         printf("[ORG: %d] Dinheiro = %d",idx,BancoDasOrgs[idx][pDinheiro]);
  7724.         print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
  7725.         idx ++;
  7726.     }
  7727.     return 1;
  7728. }
  7729. forward LoadBancoDasOrgs();
  7730. public LoadBancoDasOrgs()
  7731. {
  7732.     new arquivo[64];
  7733.     new idx = 1;
  7734.     while (idx < sizeof(BancoDasOrgs))
  7735.     {
  7736.         format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",idx);
  7737.         BancoDasOrgs[idx][pDinheiro] = DOF2_GetInt(arquivo,"Dinheiro");
  7738.         BancoDasOrgs[idx][pEagle] = DOF2_GetInt(arquivo,"Eagle");
  7739.         idx ++;
  7740.     }
  7741.     return 1;
  7742. }
  7743. stock DepositarGranaOrg(org,valor)
  7744. {
  7745.     new antes = BancoDasOrgs[org][pDinheiro];
  7746.     BancoDasOrgs[org][pDinheiro] = antes+valor;
  7747.     new arquivo[64];
  7748.     format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",org);
  7749.     DOF2_SetInt(arquivo,"Dinheiro",BancoDasOrgs[org][pDinheiro]);
  7750.     return 1;
  7751. }
  7752. stock SacarGranaOrg(org,valor)
  7753. {
  7754.     new antes = BancoDasOrgs[org][pDinheiro];
  7755.     BancoDasOrgs[org][pDinheiro] = antes-valor;
  7756.     new arquivo[64];
  7757.     format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",org);
  7758.     DOF2_SetInt(arquivo,"Dinheiro",BancoDasOrgs[org][pDinheiro]);
  7759.     return 1;
  7760. }
  7761.  
  7762. stock SacarEagle(org,valor)
  7763. {
  7764.     new antes = BancoDasOrgs[org][pEagle];
  7765.     BancoDasOrgs[org][pEagle] = antes-valor;
  7766.     new arquivo[64];
  7767.     format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",org);
  7768.     dini_IntSet(arquivo,"Eagle",BancoDasOrgs[org][pEagle]);
  7769.     return 1;
  7770. }
  7771. stock DepositarEagle(org,valor)
  7772. {
  7773.     new antes = BancoDasOrgs[org][pEagle];
  7774.     BancoDasOrgs[org][pEagle] = antes+valor;
  7775.     new arquivo[64];
  7776.     format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",org);
  7777.     dini_IntSet(arquivo,"Eagle",BancoDasOrgs[org][pEagle]);
  7778.     return 1;
  7779. }
Advertisement
Add Comment
Please, Sign In to add comment