SamP1

Survival the land in english version

Sep 4th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 311.56 KB | None | 0 0
  1. #include <a_samp>
  2. #include <FCNPC>
  3. #include <streamer>
  4. #include <sscanf2>
  5. #include <DOF2>
  6. #include <ProgressBar>
  7. /*========================== MAPINHA ==========================*/
  8. #define sd 350.0
  9. #define dd 350.0
  10. /*======================= ADMINISTRAÇÃO =======================*/
  11. #define NAOADM "Você não tem permissão para usar esse comando!"
  12. #define Banido "Banidos\\%s.ini"
  13. #define paramount(%0,%1) for(new %0; %0 < %1; ++%0) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
  14.  
  15. const verde = 0x5EAF03FF;
  16. const fail = 0xFF0000FF;
  17.  
  18. new string_[168];
  19.  
  20. enum banido_auto
  21. {
  22. pBan,
  23. pAutorizado
  24. };
  25. new pInfo2[MAX_PLAYERS][banido_auto];
  26.  
  27. new
  28. bool:calado[MAX_PLAYERS];
  29.  
  30. new
  31. bool:votou[MAX_PLAYERS],
  32. bool:enquete,
  33. sim,nao;
  34. /*======================== INVENTARIO =========================*/
  35. #pragma tabsize 0
  36.  
  37. #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  38. #define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  39. #define HOLDING(%0) ((newkeys & (%0)) == (%0))
  40.  
  41. #define DialogPegarItem (1)
  42.  
  43. enum player_data
  44. {
  45. pSlots, pBackpack,
  46. };
  47. new pInfo[MAX_PLAYERS][player_data];
  48. /*========================== REGISTRO =========================*/
  49. #define DIALOG_REGISTRO ( 99 )
  50. #define DIALOG_LOGIN ( 98 )
  51.  
  52. #define COR_AVISO 0xBEBEBEFF
  53. #define COR_ADMIN 0x436EEEFF
  54. #define COR_SUCESSO 0xCAE1FFFF
  55.  
  56. new Text: Registro[12];
  57. new Text: Info[13];
  58. new PlayerText: PlayerRegistro[5];
  59.  
  60. enum player_info
  61. {
  62. nome[MAX_PLAYER_NAME],
  63. senha[17],
  64. Administrador,
  65. Level,
  66. Skin,
  67. Matou,
  68. Morreu,
  69. Dinheiro,
  70. Cash,
  71. CmdJaUsado,
  72. Madeira,
  73. Pedra,
  74. Metal,
  75. Parafuso,
  76. Borracha,
  77. Frutas,
  78. Peixe,
  79. Carne,
  80. Cloth,
  81. Agua,
  82. Float: PosX,
  83. Float: PosY,
  84. Float: PosZ,
  85.  
  86. bool: Logado,
  87. ERRO
  88. };
  89.  
  90. new PlayerInfo[MAX_PLAYERS][player_info];
  91. /*========================== TEMPOS ==========================*/
  92. #define FomeTempo 100000 // Tempo para aumentar Fome.
  93. #define SedeTempo 60000 // Tempo para aumentar Sede.
  94. #define FrioTempo 200000 // tempo para aumentar frio.
  95. /*======================== TEXT'S DRAW =======================*/
  96. new Text:Wood[MAX_PLAYERS];
  97. new Text:Boxzin[MAX_PLAYERS];
  98. new Text:Stone[MAX_PLAYERS];
  99. new Text:Boxzin2[MAX_PLAYERS];
  100. new Text:MetalF[MAX_PLAYERS];
  101. new Text:DataC;
  102. new Text:barrinha1;
  103. new Text:forum1;
  104. new Text:forum2;
  105. new Text:barrinha2;
  106. new Text:forum3;
  107. new Text:sprite1;
  108. new Text:sprite2;
  109. new PlayerText:SedeT[MAX_PLAYERS];
  110. new Text:FrioT;
  111. new Text:Textdraw0;
  112. new Text:TextCash1;
  113. new Text:TextCash2;
  114. new Text:TextCash3;
  115. new Text:TextDin0;
  116. new Text:TextDin1;
  117. new Text:TextDin2;
  118. new BlackRadar;
  119. new RadarPreto;
  120. new Text:TextGPS;
  121. /*========================= BARRINHAS ========================*/
  122. new Bar:FomeA;
  123. new Bar:SedeB;
  124. new Bar:FrioD;
  125. // BARRINHA DE RIFLE
  126. new Bar:Exemplo;
  127. new Valor[MAX_PLAYERS];
  128. new Baru[MAX_PLAYERS];
  129. // BARRINHA DE AGUA
  130. new Bar:Exemplo2;
  131. new Valor2[MAX_PLAYERS];
  132. new Baru2[MAX_PLAYERS];
  133. // sistemna de camera
  134. new pUsarCamera[MAX_PLAYERS];
  135. new pPrimeiro[MAX_PLAYERS];
  136. new firstperson[MAX_PLAYERS];
  137. /*=========================== CORES ==========================*/
  138. #define VERDE 0x00A200FF
  139. #define COR_VERMELHO 0xAA3333AA
  140. #define COR_VERDE 0x41F837FF
  141. #define VERDE_ESCURO 0x16A82EFF
  142. #define COR_AZUL 0x4A42EDFF
  143. #define COR_AMARELO 0xFFFF33FF
  144. #define AMARELO_2 0xFFFF00AA
  145. #define COR_ROSA 0xFD33FFFF
  146. #define AZUL_AGUA 0x33FDFFFF
  147. #define COR_BRANCO 0xFFFFFFAA
  148. #define AZULCLARO 0x5278F3FF
  149. #define COR_CINZA 0xE6E6E6E6
  150. // Sistema De Votos
  151. #define LARANJA 0xFF660000
  152. #define VERDECLARO 0x00FF0C00
  153. #define VERDEMEDIO 0xa5b1A300
  154. #define BRANCO 0xFFFFFF00
  155. #define VERMELHO 0xFF000000
  156. #define VERDEFRACO 0x80cf8000
  157. #define PlayerNoLugar(%1,%2,%3,%4,%5) IsPlayerInRangeOfPoint(%1,%2,%3,%4,%5)
  158. /*=================== SALVAMENTO DOS OBJETOS ==================*/
  159. #define MAX_BASES 100
  160. #define ObjectBase 19366//ID do Objeto
  161. enum BaseInfo
  162. {
  163. ID,
  164. Dono[MAX_PLAYER_NAME + 1],
  165. Existe,
  166. ObjectB,
  167. Float: PosX,
  168. Float: PosY,
  169. Float: PosZ,
  170. Float: RX,
  171. Float: RY,
  172. Float: RZ,
  173. }
  174. new Base[MAX_BASES][BaseInfo];
  175. //
  176. #define MAX_BANCADAS 100
  177. #define bancada 2205//ID do Objeto
  178. enum BancadaInfo
  179. {
  180. ID,
  181. Dono[MAX_PLAYER_NAME + 1],
  182. Existe,
  183. ObjectA,
  184. Float: PosX,
  185. Float: PosY,
  186. Float: PosZ,
  187. Float: RX,
  188. Float: RY,
  189. Float: RZ,
  190. }
  191. new Bancada[MAX_BANCADAS][BancadaInfo];
  192. //
  193. #define MAX_PORTAS 100
  194. #define porta 1497//ID do Objeto
  195. enum PortaInfo
  196. {
  197. ID,
  198. Dono[MAX_PLAYER_NAME + 1],
  199. Existe,
  200. ObjectC,
  201. Float: PosX,
  202. Float: PosY,
  203. Float: PosZ,
  204. Float: RX,
  205. Float: RY,
  206. Float: RZ,
  207. }
  208. new Porta[MAX_PORTAS][PortaInfo];
  209. //
  210. #define MAX_BAU 100
  211. #define bau 2969//ID do Objeto
  212. enum BauInfo
  213. {
  214. ID,
  215. Dono[MAX_PLAYER_NAME + 1],
  216. Existe,
  217. ObjectD,
  218. Float: PosX,
  219. Float: PosY,
  220. Float: PosZ,
  221. Float: RX,
  222. Float: RY,
  223. Float: RZ,
  224. }
  225. new Bau[MAX_BAU][BauInfo];
  226. //
  227. #define MAX_RAMPAS 100
  228. #define rampa 1245//ID do Objeto
  229. enum RampaInfo
  230. {
  231. ID,
  232. Dono[MAX_PLAYER_NAME + 1],
  233. Existe,
  234. ObjectE,
  235. Float: PosX,
  236. Float: PosY,
  237. Float: PosZ,
  238. Float: RX,
  239. Float: RY,
  240. Float: RZ,
  241. }
  242. new Rampa[MAX_RAMPAS][RampaInfo];
  243. //
  244. #define MAX_DOOR 100
  245. #define walldoor 19386//ID do Objeto
  246. enum DoorInfo
  247. {
  248. ID,
  249. Dono[MAX_PLAYER_NAME + 1],
  250. Existe,
  251. ObjectF,
  252. Float: PosX,
  253. Float: PosY,
  254. Float: PosZ,
  255. Float: RX,
  256. Float: RY,
  257. Float: RZ,
  258. }
  259. new Door[MAX_DOOR][DoorInfo];
  260. //
  261. #define MAX_CAMA 100
  262. #define cama 1647//ID do Objeto
  263. enum CamaInfo
  264. {
  265. ID,
  266. Dono[MAX_PLAYER_NAME + 1],
  267. Existe,
  268. ObjectG,
  269. Float: PosX,
  270. Float: PosY,
  271. Float: PosZ,
  272. Float: RX,
  273. Float: RY,
  274. Float: RZ,
  275. }
  276. new Cama[MAX_CAMA][CamaInfo];
  277. //
  278. #define MAX_WINDOWN 100
  279. #define windown1 19412
  280. enum WindownInfo
  281. {
  282. ID,
  283. Dono[MAX_PLAYER_NAME + 1],
  284. Existe,
  285. ObjectH,
  286. Float: PosX,
  287. Float: PosY,
  288. Float: PosZ,
  289. Float: RX,
  290. Float: RY,
  291. Float: RZ,
  292. }
  293. new Windown[MAX_WINDOWN][WindownInfo];
  294. //
  295. #define MAX_FORNO 100
  296. #define forno 2144//ID do Objeto
  297. enum FornoInfo
  298. {
  299. ID,
  300. Dono[MAX_PLAYER_NAME + 1],
  301. Existe,
  302. ObjectJ,
  303. Float: PosX,
  304. Float: PosY,
  305. Float: PosZ,
  306. Float: RX,
  307. Float: RY,
  308. Float: RZ,
  309. }
  310. new Forno[MAX_FORNO][FornoInfo];
  311. /*================ AQUI FICA O OBJETO DA TENDA ================*/
  312. #define MAX_TENTS 100
  313. new tentCount;
  314. enum tentinfo
  315. {
  316. TentID,
  317. Float:xTent,
  318. Float:yTent,
  319. Float:zTent,
  320. tent_SideR1,
  321. tent_SideR2,
  322. tent_SideL1,
  323. tent_SideL2,
  324. tent_EndF,
  325. tent_EndB,
  326. tent_PoleF,
  327. tent_PoleB,
  328. }
  329. new Tent[MAX_TENTS][tentinfo];
  330. /*========================= System Inv ========================*/
  331. new Float:Industrial_Spawns[][] =
  332. {
  333. {-159.2924,-2797.5200,43.3407},
  334. {-189.0022,-2786.5845,40.2496},
  335. {-189.1409,-2800.8079,44.7266},
  336. {-293.5280,-2231.0457,33.5780},
  337. {-304.2758,-2209.2595,29.9228},
  338. {-296.1620,-2217.6016,29.7881},
  339. {-288.4427,-2236.7048,29.4874},
  340. {-309.7368,-2232.3398,30.4623},
  341. {-287.8112,-2227.1431,29.6049},
  342. {-299.5066,-2210.8237,30.0115},
  343. {-1015.4057,-2516.6653,77.9130},
  344. {-1013.8149,-2515.1287,81.1252},
  345. {-1006.6309,-2571.3643,84.5203},
  346. {-1042.5748,-2600.7156,81.2654},
  347. {-1052.9657,-2617.4270,82.1011},
  348. {-1105.5520,-2537.0659,67.5628},
  349. {-1091.3235,-2507.0908,67.5563},
  350. {-1024.8778,-2537.4790,77.0197},
  351. {-1043.4700,-2539.1758,77.9781},
  352. {-1058.6095,-2543.6929,79.9203},
  353. {-737.3275,-2638.3088,82.7672},
  354. {-731.6837,-2626.5215,79.7017},
  355. {-721.5016,-2638.7527,80.5564},
  356. {-734.8204,-2611.5439,75.4355},
  357. {-709.2844,-2610.6194,73.5081}
  358. };
  359.  
  360. new PlayerText:INV_DESIGN[MAX_PLAYERS][21];
  361. new PlayerText:INV_SLOTS[MAX_PLAYERS][24];
  362.  
  363. #define MAX_DROPS (10000)
  364. #define MAX_ITEM_NAME (34)
  365.  
  366. enum Item_Data
  367. {
  368. Item_ID,
  369. Item_Obj,
  370. Item_Name[MAX_ITEM_NAME],
  371. Float:Item_RotX,
  372. Float:Item_RotY,
  373. Float:Item_RotZ,
  374. Item_Color,
  375. };
  376.  
  377. enum Drop_Data
  378. {
  379. DropItemID,
  380. DropObj,
  381. Text3D:DropLabel,
  382. Float:dPosX,
  383. Float:dPosY,
  384. Float:dPosZ,
  385. };
  386.  
  387. new DropInfo[MAX_DROPS][Drop_Data];
  388.  
  389. new ItemInfo[][Item_Data] =
  390. {
  391. {0, 19382, "Null", 0.0, 0.0, 0.0, -1}, //não mexa nesse
  392. /* ============ [ Itens ] ============ */
  393. {1, 11738, "Kit Médico/MedKit", 0.0, 0.0, 0.0, 0x3EE314FF},
  394. {2, 19141, "Helmet", 0.0, 0.0, 0.0, 0x3EE314FF},
  395. {3, 19142, "Colete", 0.0, 0.0, 0.0, 0x3EE314FF},
  396. {4, 356, "Metralhadora M16", 0.0, 0.0, 0.0, 0x3EE314FF},
  397. {5, 353, "SMG MP5", 0.0, 0.0, 0.0, 0x3EE314FF},
  398. {6, 358, "Sniper", 0.0, 0.0, 0.0, 0x3EE314FF},
  399. {7, 349, "Shotgum", 0.0, 0.0, 0.0, 0x3EE314FF},
  400. {8, 1650, "Gasoline", 0.0, 0.0, 0.0, 0x3EE314FF},
  401. {9, 1279, "Engine", 0.0, 0.0, 0.0, 0x3EE314FF},
  402. {10, 348, "Desert Eagle", 0.0, 0.0, 0.0, 0x3EE314FF},
  403. {11, 1210, "Maleta de Cash", 0.0, 0.0, 0.0, 0x3EE314FF}
  404. };
  405. // # Forwards #
  406.  
  407. forward Item_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
  408. forward Item_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
  409.  
  410. forward PickUPItemDrop(playerid);
  411. forward OnPlayerUseItem(playerid, itemid);
  412. forward OnPlayerDropItem(playerid, itemid);
  413.  
  414. #define MAX_SLOTS (48)
  415.  
  416. enum Inventario
  417. {
  418. Item[MAX_SLOTS],
  419. ItemSelected,
  420. invPage,
  421. bool:InvOpen,
  422. };
  423.  
  424. new Inv[MAX_PLAYERS][Inventario];
  425. /*=========================== OUTROS ==========================*/
  426. new Tocha[MAX_PLAYERS];
  427. new Fogo[MAX_PLAYERS];
  428. new Bandagem[MAX_PLAYERS];
  429. new Remedio[MAX_PLAYERS];
  430. new Medkit[MAX_PLAYERS];
  431. new pPescando[MAX_PLAYERS];
  432. new PegouPresente[MAX_PLAYERS];
  433. /*=========================== EDIÇÕES ==========================*/
  434. new EditBaseID[MAX_PLAYERS] = {-1, ...};
  435. new EditBancadaID[MAX_PLAYERS] = {-1, ...};
  436. new EditPortaID[MAX_PLAYERS] = {-1, ...};
  437. new EditBauID[MAX_PLAYERS] = {-1, ...};
  438. new EditRampaID[MAX_PLAYERS] = {-1, ...};
  439. new EditDoorID[MAX_PLAYERS] = {-1, ...};
  440. new EditCamaID[MAX_PLAYERS] = {-1, ...};
  441. new EditWindownID[MAX_PLAYERS] = {-1, ...};
  442. new EditFornoID[MAX_PLAYERS] = {-1, ...};
  443. /*=========================== OUTROS ==========================*/
  444. new bool:PortaAberta[MAX_PLAYERS];
  445. /*=========================== OUTROS ==========================*/
  446. new Fogarel;
  447. new Bambi;
  448.  
  449. new BambiDead[MAX_PLAYERS];
  450.  
  451. // ARVORES
  452. new Arvores[155];
  453. /*=========================== IDIOMAS ==========================*/
  454. new idioma[MAX_PLAYERS]; // variável do idioma
  455. new arquivo1[32]; // arquivo
  456. new string1[256]; // string
  457. const EN = 2; // Definir que 2 é o inglês
  458. const PT = 1; // Definir que o 1 é o português
  459. /*========================== FORWARD'S ========================*/
  460. forward AdminDePa(playerid);
  461. forward FazendoPistola(playerid);
  462. forward Relogio(playerid);
  463. forward Pescando(playerid);
  464. forward campfire(playerid);
  465. forward ApagarFogo(playerid);
  466. forward ApagarTocha(playerid);
  467. forward DestruirTextoDraw(playerid);
  468. forward BambiVoltou(playerid);
  469. forward pegandoagua(playerid);
  470. forward Fome(playerid);
  471. forward Sede(playerid);
  472. forward Frio(playerid);
  473. forward Acordar(playerid);
  474. forward Payday(playerid);
  475. forward SendMSG();
  476. forward mMensagens();
  477. forward Correction(playerid);
  478. /*========================= NOMES SERV =======================*/
  479. new RandomServerName[3][] =
  480. {
  481. "Survival The Island ® | RUST no SA:MP ",// Nomes Server Random
  482. "Survival The Island ® | BETA Version [0.3.7]",// Nomes Server Random
  483. "Survival The Island ® | Visite nosso fórum!"// Sempre deixe o ultimo nome sem vírgula
  484. };
  485. /*========================= MSG'S SERV =======================*/
  486. new Mensagens[][] =
  487. {
  488. "Survival The Island - Simulando RUST no SAMP!",
  489. "Pegue seu presente, use /presente e ganhe leveis + cash.",
  490. "Novato, pegue seu kit iniciante, use /kit1 e aproveite!",
  491. "Para saber todos os comandos do servidor, use /ajuda.",
  492. "Está com duvidas? Não sabe o'que fazer? Use /duvida e fale com um admin.",
  493. "Você encontrou um BUG? Mande agora mesmo para nossa staff resolver, use /bug [texto]!",
  494. "Utilize agora mesmo nosso chat Global para falar com todos os players ON. Use: /g.",
  495. "Caso haver inregularidade tire um Print Screen apertando F8, e poste no /forum.",
  496. "Não tem nosso IP nos favoritos? Adicione agora mesmo. IP: 123.123.123:1234"
  497. };
  498. /*========================= CORES MSG =======================*/
  499. new RandomColors [] =
  500. {
  501. 0xFF5A00FF,
  502. 0xF50000FF,
  503. 0xF50000FF,
  504. 0x91FF00FF,
  505. 0xFF0091FF,
  506. 0x009000FF,
  507. 0x9600FFFF
  508. };
  509. /*========================= STOOP ANIM =======================*/
  510. new PlayerUsandoAnim[MAX_PLAYERS];
  511. StopLoopingAnim(playerid)
  512. {
  513. PlayerUsandoAnim[playerid] = 0;
  514. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
  515. }
  516. /*=============================================================*/
  517. main()
  518. {
  519. print(" ________________________________________ ");
  520. print(" |º Survival The Island ® º|");
  521. print(" |º________________________________________º|");
  522. print(" |º Criado por: Power e Mozart º|");
  523. print(" |º Feito para: Survival The Island ® º|");
  524. print(" __________________________________________\n\n");
  525. }
  526.  
  527. public OnGameModeInit()
  528. {
  529. SetTimer("SendMSG", 1000, true);
  530. SetGameModeText("BRASIL | STI");
  531. SendRconCommand("mapname Brasil Survival");
  532. SendRconCommand("language Português - BR");
  533. SetTimer("mMensagens", 60000, true);
  534. UsePlayerPedAnims();
  535. LimitGlobalChatRadius(1000.0);
  536. CriarLoots();
  537.  
  538. CreateDynamicObject(17114,-109.9000000,-2423.3000000,100.1000000,0.0000000,0.0000000,288.0000000); //object(cuntwland45b) (1)
  539. CreateDynamicObject(17114,-61.3000000,-2713.2000000,120.0000000,0.0000000,0.0000000,229.9960000); //object(cuntwland45b) (2)
  540. CreateDynamicObject(17114,-343.1000100,-1893.4000000,80.0000000,0.0000000,0.0000000,270.0000000); //object(cuntwland45b) (3)
  541. CreateDynamicObject(17114,-496.6000100,-1766.6000000,100.0000000,0.0000000,0.0000000,334.0000000); //object(cuntwland45b) (4)
  542. CreateDynamicObject(17114,-243.6000100,-2173.0000000,100.0000000,0.0000000,0.0000000,272.0000000); //object(cuntwland45b) (5)
  543. CreateDynamicObject(17114,-295.2000100,-2924.3000000,100.0000000,0.0000000,0.0000000,175.9930000); //object(cuntwland45b) (7)
  544. CreateDynamicObject(17114,-434.5000000,-2901.0000000,90.0000000,0.0000000,0.0000000,147.9900000); //object(cuntwland45b) (8)
  545. CreateDynamicObject(17133,-627.7000100,-2805.3999000,120.0000000,0.0000000,0.0000000,142.0000000); //object(cuntwland68b) (1)
  546. CreateDynamicObject(17114,-787.7000100,-2645.3000000,160.0000000,0.0000000,0.0000000,99.9860000); //object(cuntwland45b) (9)
  547. CreateDynamicObject(17114,-864.2000100,-1777.6000000,160.0000000,0.0000000,0.0000000,3.9950000); //object(cuntwland45b) (10)
  548. CreateDynamicObject(17114,-1049.5000000,-1929.2000000,150.0000000,0.0000000,0.0000000,45.9940000); //object(cuntwland45b) (11)
  549. CreateDynamicObject(17114,-1169.0000000,-2190.0000000,115.0000000,0.0000000,0.0000000,47.9890000); //object(cuntwland45b) (12)
  550. CreateDynamicObject(17114,-1250.5000000,-2469.7000000,110.0000000,0.0000000,0.0000000,61.9890000); //object(cuntwland45b) (13)
  551. CreateDynamicObject(17114,-1162.2000000,-2606.3999000,140.0000000,0.0000000,0.0000000,113.9850000); //object(cuntwland45b) (14)
  552. CreateDynamicObject(17114,-913.4000200,-2610.0000000,160.0000000,0.0000000,0.0000000,189.9810000); //object(cuntwland45b) (15)
  553. CreateDynamicObject(17114,-916.0000000,-2612.1001000,142.2000000,0.0000000,0.0000000,189.9810000); //object(cuntwland45b) (16)
  554. CreateDynamicObject(17299,-1165.1000000,-2339.7000000,20.0000000,0.0000000,0.0000000,274.0000000); //object(cunt_rockgp2_27) (1)
  555. CreateDynamicObject(1337,-744.7294900,-1952.5635000,22.7200200,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (2)
  556. CreateDynamicObject(14872,-883.0999800,-1863.8000000,87.4000000,0.0000000,0.0000000,0.0000000); //object(kylie_logs) (1)
  557. CreateDynamicObject(669,-881.7999900,-1866.3000000,86.9000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree4) (1)
  558. CreateDynamicObject(3414,-734.5999800,-2643.2000000,83.9000000,0.0000000,0.0000000,146.0000000); //object(ce_oldhut1) (1)
  559. CreateDynamicObject(3418,-716.4000200,-2625.5000000,78.3000000,0.0000000,0.0000000,358.0000000); //object(ce_oldhut02) (1)
  560. CreateDynamicObject(3415,-728.7999900,-2629.2000000,78.6000000,6.0000000,0.0000000,124.0000000); //object(ce_loghut1) (1)
  561. CreateDynamicObject(12991,-720.4000200,-2639.0000000,79.6000000,350.0000000,0.0000000,0.0000000); //object(sw_shack02) (1)
  562. CreateDynamicObject(12937,-737.5000000,-2613.3999000,76.3000000,0.0000000,0.0000000,176.0000000); //object(ce_catshack) (1)
  563. CreateDynamicObject(11503,-711.0999800,-2644.3000000,83.0000000,0.0000000,0.0000000,218.0000000); //object(des_westrn11_05) (1)
  564. CreateDynamicObject(9227,-709.0999800,-2612.3000000,73.7000000,0.0000000,0.0000000,274.0000000); //object(moresfnshit20) (1)
  565. CreateDynamicObject(3644,-181.3000000,-2807.5000000,42.0000000,0.0000000,0.0000000,272.0000000); //object(idlebuild01_lax) (1)
  566. CreateDynamicObject(3641,-204.8000000,-2818.3000000,45.6000000,0.0000000,0.0000000,318.0000000); //object(glenphouse04_lax) (1)
  567. CreateDynamicObject(3588,-216.8000000,-2794.8999000,42.8000000,6.0000000,0.0000000,206.0000000); //object(sanped_hse1_las) (1)
  568. CreateDynamicObject(3355,-156.3000000,-2803.2000000,41.8000000,0.0000000,0.0000000,206.0000000); //object(cxrf_savhus1_) (1)
  569. CreateDynamicObject(3175,-174.3000000,-2788.3999000,39.6000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (1)
  570. CreateDynamicObject(3173,-191.1000100,-2786.1001000,38.8000000,0.0000000,0.0000000,0.0000000); //object(trailer_large4_01) (1)
  571. CreateDynamicObject(1772,-179.1000100,-2795.5000000,40.4000000,0.0000000,0.0000000,0.0000000); //object(cj_hot_dog1) (1)
  572. CreateDynamicObject(1362,-183.3000000,-2796.1001000,40.2000000,0.0000000,0.0000000,0.0000000); //object(cj_firebin) (1)
  573. CreateDynamicObject(3594,-183.1000100,-2782.0000000,38.4000000,0.0000000,0.0000000,308.0000000); //object(la_fuckcar1) (1)
  574. CreateDynamicObject(1334,-191.3000000,-2779.5000000,38.8000000,0.0000000,0.0000000,0.0000000); //object(binnt04_la) (1)
  575. CreateDynamicObject(12954,-183.8999900,-2778.1001000,38.1000000,0.0000000,0.0000000,0.0000000); //object(sw_furnipile01) (1)
  576. CreateDynamicObject(12957,-181.3000000,-2807.2000000,41.9000000,0.0000000,0.0000000,20.0000000); //object(sw_pickupwreck01) (1)
  577. CreateDynamicObject(12957,-196.7000000,-2803.8999000,43.3000000,0.0000000,0.0000000,256.0000000); //object(sw_pickupwreck01) (2)
  578. CreateDynamicObject(1358,-167.7000000,-2796.8999000,41.3000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (1)
  579. CreateDynamicObject(1369,-186.7000000,-2799.3999000,44.3000000,0.0000000,0.0000000,0.0000000); //object(cj_wheelchair1) (1)
  580. CreateDynamicObject(3092,-183.3000000,-2796.1001000,42.5000000,0.0000000,0.0000000,0.0000000); //object(dead_tied_cop) (1)
  581. CreateDynamicObject(3099,-171.3000000,-2796.0000000,39.8000000,0.0000000,0.0000000,0.0000000); //object(break_wall_3b) (1)
  582. CreateDynamicObject(852,-182.3000000,-2791.0000000,38.6000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_4) (1)
  583. CreateDynamicObject(1571,-200.3000000,-2783.2000000,40.0000000,0.0000000,0.0000000,154.0000000); //object(cj_noodle_1) (1)
  584. CreateDynamicObject(3073,-178.8000000,-2768.1001000,41.3000000,0.0000000,0.0000000,228.0000000); //object(kmb_container_broke) (1)
  585. CreateDynamicObject(12957,-176.6000100,-2753.3000000,37.3000000,0.0000000,0.0000000,203.9980000); //object(sw_pickupwreck01) (3)
  586. CreateDynamicObject(12957,-185.6000100,-2751.8999000,35.7000000,0.0000000,0.0000000,255.9940000); //object(sw_pickupwreck01) (4)
  587. CreateDynamicObject(3594,-181.3000000,-2752.2000000,36.6000000,0.0000000,0.0000000,299.9960000); //object(la_fuckcar1) (2)
  588. CreateDynamicObject(3363,-193.1000100,-2768.8999000,35.7000000,0.0000000,0.0000000,0.0000000); //object(des_ruin1_) (1)
  589. CreateDynamicObject(3887,-1053.6000000,-2547.3000000,80.1000000,0.0000000,0.0000000,0.0000000); //object(demolish4_sfxrf) (2)
  590. CreateDynamicObject(3866,-998.7000100,-2530.3999000,90.7000000,0.0000000,0.0000000,174.0000000); //object(demolish1_sfxrf) (1)
  591. CreateDynamicObject(3887,-1001.6000000,-2557.6001000,84.7000000,0.0000000,0.0000000,146.0000000); //object(demolish4_sfxrf) (3)
  592. CreateDynamicObject(11088,-1049.0000000,-2608.5000000,86.0000000,3.0000000,0.0000000,184.0000000); //object(cf_ext_dem_sfs) (1)
  593. CreateDynamicObject(11440,-1017.5000000,-2558.0000000,79.6000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
  594. CreateDynamicObject(11442,-1028.7000000,-2566.3999000,79.1000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo3) (1)
  595. CreateDynamicObject(11446,-1032.8000000,-2558.7000000,77.2000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo07) (1)
  596. CreateDynamicObject(11458,-1039.8000000,-2551.8000000,74.7000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo10) (1)
  597. CreateDynamicObject(11457,-1043.5000000,-2529.7000000,70.9000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
  598. CreateDynamicObject(11445,-1014.1000000,-2533.7000000,78.2000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo06) (1)
  599. CreateDynamicObject(11442,-1028.0000000,-2539.8000000,75.5000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo3) (2)
  600. CreateDynamicObject(11440,-1025.0000000,-2524.8999000,74.6000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
  601. CreateDynamicObject(11428,-1037.7000000,-2512.7000000,76.2000000,0.0000000,0.0000000,290.0000000); //object(des_indruin02) (1)
  602. CreateDynamicObject(11427,-1021.4000000,-2585.0000000,90.3000000,0.0000000,0.0000000,288.0000000); //object(des_adobech) (1)
  603. CreateDynamicObject(11088,-1094.0000000,-2531.8000000,71.9000000,0.0000000,0.0000000,314.0000000); //object(cf_ext_dem_sfs) (2)
  604. CreateDynamicObject(3866,-1000.8000000,-2511.7000000,84.0000000,0.0000000,0.0000000,343.9960000); //object(demolish1_sfxrf) (2)
  605. CreateDynamicObject(3866,-1079.9000000,-2499.6001000,67.9000000,0.0000000,0.0000000,313.9930000); //object(demolish1_sfxrf) (3)
  606. CreateDynamicObject(13296,-295.7000100,-2230.7000000,31.8000000,0.0000000,0.0000000,296.0000000); //object(ce_roadsidegas) (1)
  607. CreateDynamicObject(17036,-305.2999900,-2210.0000000,28.8000000,0.0000000,0.0000000,0.0000000); //object(cuntw_carport1_) (1)
  608. CreateDynamicObject(18284,-283.8999900,-2252.3000000,31.8000000,0.0000000,0.0000000,324.0000000); //object(cw_tscanopy) (1)
  609. CreateDynamicObject(3252,-299.3999900,-2210.8000000,29.0000000,0.0000000,0.0000000,0.0000000); //object(des_oldwattwr_) (1)
  610. CreateDynamicObject(17324,-291.5000000,-2271.2000000,29.0000000,0.0000000,0.0000000,222.0000000); //object(cw_combbarn) (1)
  611. CreateDynamicObject(4514,-321.1000100,-2208.0000000,30.4000000,0.0000000,0.0000000,10.0000000); //object(cn2_roadblock01ld) (1)
  612. CreateDynamicObject(4514,-295.7999900,-2186.8000000,30.3000000,0.0000000,0.0000000,9.9980000); //object(cn2_roadblock01ld) (2)
  613. CreateDynamicObject(851,-312.7000100,-2222.2000000,28.1000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_2) (1)
  614. CreateDynamicObject(3006,-318.1000100,-2224.7000000,27.8000000,0.0000000,0.0000000,0.0000000); //object(smash_box_brk) (1)
  615. CreateDynamicObject(2890,-309.8999900,-2231.3000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(kmb_skip) (1)
  616. CreateDynamicObject(1358,-307.0000000,-2222.7000000,29.4000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (2)
  617. CreateDynamicObject(1358,-295.8999900,-2241.8000000,29.9000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (3)
  618. CreateDynamicObject(12954,-308.5000000,-2240.6001000,28.8000000,0.0000000,0.0000000,0.0000000); //object(sw_furnipile01) (2)
  619. CreateDynamicObject(12957,-307.2999900,-2244.2000000,29.2000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (5)
  620. CreateDynamicObject(3594,-312.7000100,-2240.5000000,28.8000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (3)
  621. CreateDynamicObject(3593,-297.7999900,-2248.8999000,29.4000000,0.0000000,0.0000000,324.0000000); //object(la_fuckcar2) (1)
  622. CreateDynamicObject(3399,-301.2000100,-2222.7000000,30.9000000,0.0000000,0.0000000,298.0000000); //object(cxrf_a51_stairs) (1)
  623. // BAMBIS ABAIXO
  624. Bambi = CreateObject(19315, -448.4130,-2647.3594,155.5421,0.0000000,0.0000000,0.0000000,0.0000000); // bambi
  625. // ARVORES ABAIXO
  626. Arvores[0] = CreateDynamicObject(657,-748.5999800,-2453.7000000,68.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (1)
  627. Arvores[1] = CreateDynamicObject(657,-717.9000200,-2465.5000000,68.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (2)
  628. Arvores[2] = CreateDynamicObject(657,-718.5000000,-2431.6001000,62.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (3)
  629. Arvores[3] = CreateDynamicObject(657,-691.0999800,-2438.5000000,63.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (4)
  630. Arvores[4] = CreateDynamicObject(657,-701.7000100,-2382.8000000,49.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (5)
  631. Arvores[5] = CreateDynamicObject(657,-576.0999800,-2230.5000000,27.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (6)
  632. Arvores[6] = CreateDynamicObject(657,-689.2000100,-2351.1001000,36.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (7)
  633. Arvores[7] = CreateDynamicObject(657,-645.4000200,-2373.2000000,33.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (8)
  634. Arvores[8] = CreateDynamicObject(657,-663.7998000,-2349.5996000,34.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (9)
  635. Arvores[9] = CreateDynamicObject(657,-654.2998000,-2321.5996000,34.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (10)
  636. Arvores[10] = CreateDynamicObject(657,-671.5996100,-2298.0996000,28.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (11)
  637. Arvores[11] = CreateDynamicObject(657,-632.2998000,-2291.5000000,27.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (12)
  638. Arvores[12] = CreateDynamicObject(657,-599.5996100,-2264.7002000,24.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (13)
  639. Arvores[13] = CreateDynamicObject(657,-569.7999900,-2258.8000000,25.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (14)
  640. Arvores[14] = CreateDynamicObject(657,-1058.1000000,-2456.8000000,60.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (15)
  641. Arvores[15] = CreateDynamicObject(657,-1090.2000000,-2338.3999000,49.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (16)
  642. Arvores[16] = CreateDynamicObject(657,-1024.4004000,-2431.2998000,65.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (17)
  643. Arvores[17] = CreateDynamicObject(657,-1055.0996000,-2416.0996000,58.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (18)
  644. Arvores[18] = CreateDynamicObject(657,-1080.0996000,-2355.0996000,47.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (19)
  645. Arvores[19] = CreateDynamicObject(657,-1106.7000000,-2298.8999000,41.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (20)
  646. Arvores[20] = CreateDynamicObject(657,-1112.6000000,-2332.5000000,42.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (21)
  647. Arvores[21] = CreateDynamicObject(657,-1092.7998000,-2323.2998000,51.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (22)
  648. Arvores[22] = CreateDynamicObject(657,-1061.0000000,-2309.7000000,53.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (23)
  649. Arvores[23] = CreateDynamicObject(657,-995.2999900,-2311.0000000,61.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (24)
  650. Arvores[24] = CreateDynamicObject(657,-968.0999800,-2339.3999000,65.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (25)
  651. Arvores[25] = CreateDynamicObject(657,-976.2000100,-2288.0000000,58.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (26)
  652. Arvores[26] = CreateDynamicObject(657,-908.0000000,-2401.3999000,58.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (27)
  653. Arvores[27] = CreateDynamicObject(657,-943.7999900,-2499.8999000,103.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (28)
  654. Arvores[28] = CreateDynamicObject(657,-914.9003900,-2438.2002000,80.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (29)
  655. Arvores[29] = CreateDynamicObject(657,-945.7002000,-2477.7002000,99.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (30)
  656. Arvores[30] = CreateDynamicObject(657,-764.5000000,-2409.0000000,64.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (31)
  657. Arvores[31] = CreateDynamicObject(657,-690.4000200,-2191.7000000,19.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (32)
  658. Arvores[32] = CreateDynamicObject(657,-726.5000000,-2197.8994000,34.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (33)
  659. Arvores[33] = CreateDynamicObject(657,-736.7998000,-2213.0996000,36.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (34)
  660. Arvores[34] = CreateDynamicObject(657,-665.0000000,-2180.5000000,18.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (35)
  661. Arvores[35] = CreateDynamicObject(657,-680.5000000,-2166.5000000,22.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (36)
  662. Arvores[36] = CreateDynamicObject(657,-670.4000200,-2115.8000000,25.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (37)
  663. Arvores[37] = CreateDynamicObject(657,-659.0996100,-2126.5996000,26.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (38)
  664. Arvores[38] = CreateDynamicObject(657,-643.9000200,-2090.5000000,27.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (39)
  665. Arvores[39] = CreateDynamicObject(657,-690.7999900,-2137.0000000,24.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (40)
  666. Arvores[40] = CreateDynamicObject(657,-763.5999800,-2221.8000000,21.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (41)
  667. Arvores[41] = CreateDynamicObject(657,-863.4000200,-2274.2000000,25.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (42)
  668. Arvores[42] = CreateDynamicObject(657,-870.4003900,-2246.0000000,26.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (43)
  669. Arvores[43] = CreateDynamicObject(657,-902.9000200,-2259.5000000,37.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (44)
  670. Arvores[44] = CreateDynamicObject(657,-804.5000000,-2297.3999000,28.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (45)
  671. Arvores[45] = CreateDynamicObject(657,-792.2000100,-2343.2000000,43.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (46)
  672. Arvores[46] = CreateDynamicObject(657,-809.4003900,-2328.5000000,38.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (47)
  673. Arvores[47] = CreateDynamicObject(657,-845.2000100,-2362.2000000,57.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (48)
  674. Arvores[48] = CreateDynamicObject(657,-576.7000100,-1995.9000000,45.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (49)
  675. Arvores[49] = CreateDynamicObject(657,-607.5996100,-2047.4004000,40.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (50)
  676. Arvores[50] = CreateDynamicObject(657,-572.7998000,-2016.0000000,47.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (51)
  677. Arvores[51] = CreateDynamicObject(657,-587.5000000,-1980.0000000,42.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (52)
  678. Arvores[52] = CreateDynamicObject(657,-603.7999900,-1948.3000000,33.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (53)
  679. Arvores[53] = CreateDynamicObject(657,-571.7998000,-1952.5996000,38.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (54)
  680. Arvores[54] = CreateDynamicObject(657,-513.7999900,-2002.7000000,47.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (55)
  681. Arvores[55] = CreateDynamicObject(657,-519.2998000,-1965.7002000,41.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (56)
  682. Arvores[56] = CreateDynamicObject(657,-531.2998000,-1988.9004000,46.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (57)
  683. Arvores[57] = CreateDynamicObject(657,-657.2999900,-1838.5000000,20.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (58)
  684. Arvores[58] = CreateDynamicObject(657,-587.7999900,-1831.6000000,29.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (59)
  685. Arvores[59] = CreateDynamicObject(657,-613.7002000,-1868.7002000,16.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (60)
  686. Arvores[60] = CreateDynamicObject(657,-557.5999800,-1858.4000000,18.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (61)
  687. Arvores[61] = CreateDynamicObject(657,-540.5000000,-1843.0000000,21.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (62)
  688. Arvores[62] = CreateDynamicObject(657,-529.5000000,-1862.7000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (63)
  689. Arvores[63] = CreateDynamicObject(657,-505.5000000,-1854.0000000,14.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (64)
  690. Arvores[64] = CreateDynamicObject(657,-393.7999900,-1952.2000000,19.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (65)
  691. Arvores[65] = CreateDynamicObject(657,-398.1000100,-1971.5000000,24.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (66)
  692. Arvores[66] = CreateDynamicObject(657,-397.8999900,-2003.4000000,30.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (67)
  693. Arvores[67] = CreateDynamicObject(657,-423.2999900,-2083.8000000,77.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (68)
  694. Arvores[68] = CreateDynamicObject(657,-422.7000100,-2113.1001000,83.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (69)
  695. Arvores[69] = CreateDynamicObject(657,-456.1000100,-2094.7000000,85.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (70)
  696. Arvores[70] = CreateDynamicObject(657,-486.7999900,-2112.8999000,89.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (71)
  697. Arvores[71] = CreateDynamicObject(657,-453.0000000,-2141.7000000,87.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (72)
  698. Arvores[72] = CreateDynamicObject(657,-568.5000000,-2120.6001000,70.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (73)
  699. Arvores[73] = CreateDynamicObject(657,-537.0999800,-2126.1001000,78.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (74)
  700. Arvores[74] = CreateDynamicObject(657,-325.5000000,-2588.3000000,127.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (75)
  701. Arvores[75] = CreateDynamicObject(657,-473.2998000,-2203.0996000,74.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (76)
  702. Arvores[76] = CreateDynamicObject(657,-374.6000100,-2221.3999000,65.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (77)
  703. Arvores[77] = CreateDynamicObject(657,-348.2999900,-2301.8999000,67.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (78)
  704. Arvores[78] = CreateDynamicObject(657,-351.2000100,-2343.3999000,82.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (79)
  705. Arvores[79] = CreateDynamicObject(657,-295.7000100,-2380.5000000,65.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (80)
  706. Arvores[80] = CreateDynamicObject(657,-317.4003900,-2319.0996000,62.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (81)
  707. Arvores[81] = CreateDynamicObject(657,-313.6000100,-2364.1001000,72.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (82)
  708. Arvores[82] = CreateDynamicObject(657,-310.2000100,-2429.5000000,80.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (83)
  709. Arvores[83] = CreateDynamicObject(657,-208.5000000,-2571.3999000,47.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (84)
  710. Arvores[84] = CreateDynamicObject(657,-290.2002000,-2456.5996000,73.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (85)
  711. Arvores[85] = CreateDynamicObject(657,-230.9003900,-2440.0996000,41.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (86)
  712. Arvores[86] = CreateDynamicObject(657,-250.9003900,-2437.0996000,50.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (87)
  713. Arvores[87] = CreateDynamicObject(657,-190.2002000,-2473.0996000,34.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (88)
  714. Arvores[88] = CreateDynamicObject(657,-199.2002000,-2529.7998000,35.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (89)
  715. Arvores[89] = CreateDynamicObject(657,-137.0000000,-2598.6001000,63.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (90)
  716. Arvores[90] = CreateDynamicObject(657,-135.0000000,-2492.0000000,29.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (91)
  717. Arvores[91] = CreateDynamicObject(657,-150.2002000,-2514.5996000,28.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (92)
  718. Arvores[92] = CreateDynamicObject(657,-131.2998000,-2572.0996000,55.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (93)
  719. Arvores[93] = CreateDynamicObject(657,-105.5996100,-2576.7002000,62.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (94)
  720. Arvores[94] = CreateDynamicObject(657,-105.5996100,-2576.7002000,62.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (95)
  721. Arvores[95] = CreateDynamicObject(657,-115.4000000,-2631.1001000,70.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (96)
  722. Arvores[96] = CreateDynamicObject(657,-127.5000000,-2665.3000000,69.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (97)
  723. Arvores[97] = CreateDynamicObject(657,-143.5000000,-2628.6001000,63.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (98)
  724. Arvores[98] = CreateDynamicObject(657,-149.0000000,-2701.1001000,72.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (99)
  725. Arvores[99] = CreateDynamicObject(657,-137.0000000,-2752.8999000,60.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (100)
  726. Arvores[100] = CreateDynamicObject(657,-423.5000000,-2218.3994000,70.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (101)
  727. Arvores[101] = CreateDynamicObject(657,-315.2002000,-2560.7998000,118.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (102)
  728. Arvores[102] = CreateDynamicObject(657,-381.5000000,-2663.8000000,146.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (103)
  729. Arvores[103] = CreateDynamicObject(657,-302.2000100,-2606.2000000,128.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (104)
  730. Arvores[104] = CreateDynamicObject(657,-344.7002000,-2611.5996000,137.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (105)
  731. Arvores[105] = CreateDynamicObject(657,-323.6000100,-2664.2000000,119.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (106)
  732. Arvores[106] = CreateDynamicObject(657,-451.3999900,-2320.5000000,77.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (107)
  733. Arvores[107] = CreateDynamicObject(657,-479.1000100,-2313.8000000,63.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (108)
  734. Arvores[108] = CreateDynamicObject(657,-523.5999800,-2376.1001000,53.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (109)
  735. Arvores[109] = CreateDynamicObject(657,-470.2998000,-2356.2002000,71.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (110)
  736. Arvores[110] = CreateDynamicObject(657,-411.5000000,-2410.3000000,87.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (111)
  737. Arvores[111] = CreateDynamicObject(657,-426.2998000,-2368.7998000,86.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (112)
  738. Arvores[112] = CreateDynamicObject(657,-392.3999900,-2439.8000000,94.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (113)
  739. Arvores[113] = CreateDynamicObject(657,-372.1000100,-2419.1001000,96.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (114)
  740. Arvores[114] = CreateDynamicObject(657,-364.5000000,-2459.6001000,102.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (115)
  741. Arvores[115] = CreateDynamicObject(657,-390.1000100,-2504.3000000,109.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (116)
  742. Arvores[116] = CreateDynamicObject(657,-368.6000100,-2520.6001000,115.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (117)
  743. Arvores[117] = CreateDynamicObject(657,-403.2999900,-2604.8000000,144.6000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (118)
  744. Arvores[118] = CreateDynamicObject(657,-381.8999900,-2557.5000000,130.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (119)
  745. Arvores[119] = CreateDynamicObject(657,-410.8999900,-2536.7000000,121.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (120)
  746. Arvores[120] = CreateDynamicObject(657,-464.0000000,-2749.5000000,145.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (121)
  747. Arvores[121] = CreateDynamicObject(657,-444.2999900,-2787.1001000,115.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (122)
  748. Arvores[122] = CreateDynamicObject(657,-421.2998000,-2654.5996000,151.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (123)
  749. Arvores[123] = CreateDynamicObject(657,-463.8999900,-2600.3999000,139.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (124)
  750. Arvores[124] = CreateDynamicObject(657,-443.5000000,-2682.7998000,159.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (125)
  751. Arvores[125] = CreateDynamicObject(657,-464.0000000,-2657.8994000,156.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (126)
  752. Arvores[126] = CreateDynamicObject(657,-474.2999900,-2519.6001000,109.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (127)
  753. Arvores[127] = CreateDynamicObject(657,-461.2998000,-2539.8994000,115.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (128)
  754. Arvores[128] = CreateDynamicObject(657,-501.6000100,-2423.3999000,105.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (129)
  755. Arvores[129] = CreateDynamicObject(657,-479.7002000,-2474.0000000,111.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (130)
  756. Arvores[130] = CreateDynamicObject(657,-452.0000000,-2436.8000000,112.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (131)
  757. Arvores[131] = CreateDynamicObject(657,-380.0000000,-2726.6001000,128.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (132)
  758. Arvores[132] = CreateDynamicObject(657,-406.5000000,-2753.3999000,129.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (133)
  759. Arvores[133] = CreateDynamicObject(657,-370.7999900,-2771.5000000,98.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (134)
  760. Arvores[134] = CreateDynamicObject(657,-336.1000100,-2776.3000000,82.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (135)
  761. Arvores[135] = CreateDynamicObject(657,-431.4003900,-2724.8994000,158.6000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (136)
  762. Arvores[136] = CreateDynamicObject(657,-606.0999800,-2781.8999000,111.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (137)
  763. Arvores[137] = CreateDynamicObject(657,-510.5996100,-2778.2002000,123.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (138)
  764. Arvores[138] = CreateDynamicObject(657,-543.7998000,-2781.8994000,122.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (139)
  765. Arvores[139] = CreateDynamicObject(657,-577.0000000,-2786.7998000,115.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (140)
  766. Arvores[140] = CreateDynamicObject(657,-573.4000200,-2755.8999000,127.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (141)
  767. Arvores[141] = CreateDynamicObject(657,-605.2999900,-2745.6001000,117.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (142)
  768. Arvores[142] = CreateDynamicObject(657,-576.4000200,-2722.0000000,128.3999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (143)
  769. Arvores[143] = CreateDynamicObject(657,-526.9000200,-2726.5000000,142.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (144)
  770. Arvores[144] = CreateDynamicObject(657,-557.0996100,-2737.3994000,133.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (145)
  771. Arvores[145] = CreateDynamicObject(657,-481.3999900,-2707.2000000,157.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (146)
  772. Arvores[146] = CreateDynamicObject(657,-578.9000200,-2673.3999000,137.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (147)
  773. Arvores[147] = CreateDynamicObject(657,-608.7000100,-2615.6001000,132.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (148)
  774. Arvores[148] = CreateDynamicObject(657,-618.2998000,-2655.7998000,121.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (149)
  775. Arvores[149] = CreateDynamicObject(657,-565.5999800,-2625.8000000,146.1000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (150)
  776. Arvores[150] = CreateDynamicObject(657,-506.0000000,-2622.8999000,161.6000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (151)
  777. Arvores[151] = CreateDynamicObject(657,-578.9003900,-2579.2002000,130.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (152)
  778. Arvores[152] = CreateDynamicObject(657,-595.4003900,-2560.7002000,124.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (153)
  779. Arvores[153] = CreateDynamicObject(657,-554.7998000,-2549.2998000,135.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (154)
  780. Arvores[154] = CreateDynamicObject(657,-526.5996100,-2578.2002000,146.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (155)
  781. // TEXT'S ARVORS
  782. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -748.5999800,-2453.7000000,68.0000000, 20, 0);
  783. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -717.9000200,-2465.5000000,68.1000000, 20, 0);
  784. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -718.5000000,-2431.6001000,62.0000000, 20, 0);
  785. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -691.0999800,-2438.5000000,63.5000000, 20, 0);
  786. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -701.7000100,-2382.8000000,49.0000000, 20, 0);
  787. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -576.0999800,-2230.5000000,27.4000000, 20, 0);
  788. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -689.2000100,-2351.1001000,36.8000000, 20, 0);
  789. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -645.4000200,-2373.2000000,33.8000000, 20, 0);
  790. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -663.7998000,-2349.5996000,34.7000000, 20, 0);
  791. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -654.2998000,-2321.5996000,34.5000000, 20, 0);
  792. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -671.5996100,-2298.0996000,28.3000000, 20, 0);
  793. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -632.2998000,-2291.5000000,27.8000000, 20, 0);
  794. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -599.5996100,-2264.7002000,24.4000000, 20, 0);
  795. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -569.7999900,-2258.8000000,25.9000000, 20, 0);
  796. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1058.1000000,-2456.8000000,60.0000000, 20, 0);
  797. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1090.2000000,-2338.3999000,49.8000000, 20, 0);
  798. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1024.4004000,-2431.2998000,65.5000000, 20, 0);
  799. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1055.0996000,-2416.0996000,58.9000000, 20, 0);
  800. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1080.0996000,-2355.0996000,47.8000000, 20, 0);
  801. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1106.7000000,-2298.8999000,41.9000000, 20, 0);
  802. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1112.6000000,-2332.5000000,42.5000000, 20, 0);
  803. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1092.7998000,-2323.2998000,51.7000000, 20, 0);
  804. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1061.0000000,-2309.7000000,53.4000000, 20, 0);
  805. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -995.2999900,-2311.0000000,61.8000000, 20, 0);
  806. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -968.0999800,-2339.3999000,65.5000000, 20, 0);
  807. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -976.2000100,-2288.0000000,58.7000000, 20, 0);
  808. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -908.0000000,-2401.3999000,58.4000000, 20, 0);
  809. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -943.7999900,-2499.8999000,103.2000000, 20, 0);
  810. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -914.9003900,-2438.2002000,80.1000000, 20, 0);
  811. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -945.7002000,-2477.7002000,99.3000000, 20, 0);
  812. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -764.5000000,-2409.0000000,64.0000000, 20, 0);
  813. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -690.4000200,-2191.7000000,19.5000000, 20, 0);
  814. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -726.5000000,-2197.8994000,34.4000000, 20, 0);
  815. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -736.7998000,-2213.0996000,36.5000000, 20, 0);
  816. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -665.0000000,-2180.5000000,18.3000000, 20, 0);
  817. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -680.5000000,-2166.5000000,22.1000000, 20, 0);
  818. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -670.4000200,-2115.8000000,25.5000000, 20, 0);
  819. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -659.0996100,-2126.5996000,26.2000000, 20, 0);
  820. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -643.9000200,-2090.5000000,27.7000000, 20, 0);
  821. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -690.7999900,-2137.0000000,24.7000000, 20, 0);
  822. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -763.5999800,-2221.8000000,21.6000000, 20, 0);
  823. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -863.4000200,-2274.2000000,25.3000000, 20, 0);
  824. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -870.4003900,-2246.0000000,26.5000000, 20, 0);
  825. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -902.9000200,-2259.5000000,37.9000000, 20, 0);
  826. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -804.5000000,-2297.3999000,28.3000000, 20, 0);
  827. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -792.2000100,-2343.2000000,43.4000000, 20, 0);
  828. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -809.4003900,-2328.5000000,38.1000000, 20, 0);
  829. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -845.2000100,-2362.2000000,57.7000000, 20, 0);
  830. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -576.7000100,-1995.9000000,45.4000000, 20, 0);
  831. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -607.5996100,-2047.4004000,40.2000000, 20, 0);
  832. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -572.7998000,-2016.0000000,47.0000000, 20, 0);
  833. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -587.5000000,-1980.0000000,42.1000000, 20, 0);
  834. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -603.7999900,-1948.3000000,33.2000000, 20, 0);
  835. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -571.7998000,-1952.5996000,38.4000000, 20, 0);
  836. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -513.7999900,-2002.7000000,47.5000000, 20, 0);
  837. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -519.2998000,-1965.7002000,41.4000000, 20, 0);
  838. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -531.2998000,-1988.9004000,46.2000000, 20, 0);
  839. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -657.2999900,-1838.5000000,20.7000000, 20, 0);
  840. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -587.7999900,-1831.6000000,29.3000000, 20, 0);
  841. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -613.7002000,-1868.7002000,16.1000000, 20, 0);
  842. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -557.5999800,-1858.4000000,18.2000000, 20, 0);
  843. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -540.5000000,-1843.0000000,21.3000000, 20, 0);
  844. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -529.5000000,-1862.7000000,13.1000000, 20, 0);
  845. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -505.5000000,-1854.0000000,14.8000000, 20, 0);
  846. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -393.7999900,-1952.2000000,19.2000000, 20, 0);
  847. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -398.1000100,-1971.5000000,24.6000000, 20, 0);
  848. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -397.8999900,-2003.4000000,30.4000000, 20, 0);
  849. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -423.2999900,-2083.8000000,77.0000000, 20, 0);
  850. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -422.7000100,-2113.1001000,83.8000000, 20, 0);
  851. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -456.1000100,-2094.7000000,85.2000000, 20, 0);
  852. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -486.7999900,-2112.8999000,89.0000000, 20, 0);
  853. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -453.0000000,-2141.7000000,87.8000000, 20, 0);
  854. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -568.5000000,-2120.6001000,70.0000000, 20, 0);
  855. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -537.0999800,-2126.1001000,78.1000000, 20, 0);
  856. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -325.5000000,-2588.3000000,127.7000000, 20, 0);
  857. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -473.2998000,-2203.0996000,74.1000000, 20, 0);
  858. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -374.6000100,-2221.3999000,65.9000000, 20, 0);
  859. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -348.2999900,-2301.8999000,67.3000000, 20, 0);
  860. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -351.2000100,-2343.3999000,82.3000000, 20, 0);
  861. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -295.7000100,-2380.5000000,65.7000000, 20, 0);
  862. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -317.4003900,-2319.0996000,62.6000000, 20, 0);
  863. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -313.6000100,-2364.1001000,72.4000000, 20, 0);
  864. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -310.2000100,-2429.5000000,80.3000000, 20, 0);
  865. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -208.5000000,-2571.3999000,47.2000000, 20, 0);
  866. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -290.2002000,-2456.5996000,73.6000000, 20, 0);
  867. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -230.9003900,-2440.0996000,41.8000000, 20, 0);
  868. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -250.9003900,-2437.0996000,50.3000000, 20, 0);
  869. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -190.2002000,-2473.0996000,34.0000000, 20, 0);
  870. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -199.2002000,-2529.7998000,35.2000000, 20, 0);
  871. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -137.0000000,-2598.6001000,63.8000000, 20, 0);
  872. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -135.0000000,-2492.0000000,29.8000000, 20, 0);
  873. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -150.2002000,-2514.5996000,28.8000000, 20, 0);
  874. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -131.2998000,-2572.0996000,55.8000000, 20, 0);
  875. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -105.5996100,-2576.7002000,62.6000000, 20, 0);
  876. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -105.5996100,-2576.7002000,62.6000000, 20, 0);
  877. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -115.4000000,-2631.1001000,70.8000000, 20, 0);
  878. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -127.5000000,-2665.3000000,69.7000000, 20, 0);
  879. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -143.5000000,-2628.6001000,63.0000000, 20, 0);
  880. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -149.0000000,-2701.1001000,72.0000000, 20, 0);
  881. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -137.0000000,-2752.8999000,60.5000000, 20, 0);
  882. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -423.5000000,-2218.3994000,70.7000000, 20, 0);
  883. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -315.2002000,-2560.7998000,118.4000000, 20, 0);
  884. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -381.5000000,-2663.8000000,146.3000000, 20, 0);
  885. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -302.2000100,-2606.2000000,128.2000000, 20, 0);
  886. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -344.7002000,-2611.5996000,137.3000000, 20, 0);
  887. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -323.6000100,-2664.2000000,119.1000000, 20, 0);
  888. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -451.3999900,-2320.5000000,77.7000000, 20, 0);
  889. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -479.1000100,-2313.8000000,63.2000000, 20, 0);
  890. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -523.5999800,-2376.1001000,53.2000000, 20, 0);
  891. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -470.2998000,-2356.2002000,71.3000000, 20, 0);
  892. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -411.5000000,-2410.3000000,87.9000000, 20, 0);
  893. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -426.2998000,-2368.7998000,86.2000000, 20, 0);
  894. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -392.3999900,-2439.8000000,94.0000000, 20, 0);
  895. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -372.1000100,-2419.1001000,96.7000000, 20, 0);
  896. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -364.5000000,-2459.6001000,102.4000000, 20, 0);
  897. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -390.1000100,-2504.3000000,109.7000000, 20, 0);
  898. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -368.6000100,-2520.6001000,115.3000000, 20, 0);
  899. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -403.2999900,-2604.8000000,144.6000100, 20, 0);
  900. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -381.8999900,-2557.5000000,130.8000000, 20, 0);
  901. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -410.8999900,-2536.7000000,121.3000000, 20, 0);
  902. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -464.0000000,-2749.5000000,145.8999900, 20, 0);
  903. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -444.2999900,-2787.1001000,115.6000000, 20, 0);
  904. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -421.2998000,-2654.5996000,151.7000000, 20, 0);
  905. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -463.8999900,-2600.3999000,139.8999900, 20, 0);
  906. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -443.5000000,-2682.7998000,159.3000000, 20, 0);
  907. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -464.0000000,-2657.8994000,156.3000000, 20, 0);
  908. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -474.2999900,-2519.6001000,109.4000000, 20, 0);
  909. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -461.2998000,-2539.8994000,115.1000000, 20, 0);
  910. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -501.6000100,-2423.3999000,105.0000000, 20, 0);
  911. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -479.7002000,-2474.0000000,111.9000000, 20, 0);
  912. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -452.0000000,-2436.8000000,112.2000000, 20, 0);
  913. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -380.0000000,-2726.6001000,128.7000000, 20, 0);
  914. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -406.5000000,-2753.3999000,129.3000000, 20, 0);
  915. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -370.7999900,-2771.5000000,98.7000000, 20, 0);
  916. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -336.1000100,-2776.3000000,82.9000000, 20, 0);
  917. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -431.4003900,-2724.8994000,158.6000100, 20, 0);
  918. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -606.0999800,-2781.8999000,111.1000000, 20, 0);
  919. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -510.5996100,-2778.2002000,123.2000000, 20, 0);
  920. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -543.7998000,-2781.8994000,122.3000000, 20, 0);
  921. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -577.0000000,-2786.7998000,115.3000000, 20, 0);
  922. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -573.4000200,-2755.8999000,127.2000000, 20, 0);
  923. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -605.2999900,-2745.6001000,117.1000000, 20, 0);
  924. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -576.4000200,-2722.0000000,128.3999900, 20, 0);
  925. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -526.9000200,-2726.5000000,142.2000000, 20, 0);
  926. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -557.0996100,-2737.3994000,133.8999900, 20, 0);
  927. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -481.3999900,-2707.2000000,157.5000000, 20, 0);
  928. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -578.9000200,-2673.3999000,137.5000000, 20, 0);
  929. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -608.7000100,-2615.6001000,132.8000000, 20, 0);
  930. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -618.2998000,-2655.7998000,121.1000000, 20, 0);
  931. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -565.5999800,-2625.8000000,146.1000100, 20, 0);
  932. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -506.0000000,-2622.8999000,161.6000100, 20, 0);
  933. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -578.9003900,-2579.2002000,130.7000000, 20, 0);
  934. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -595.4003900,-2560.7002000,124.5000000, 20, 0);
  935. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -554.7998000,-2549.2998000,135.8999900, 20, 0);
  936. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -526.5996100,-2578.2002000,146.0000000, 20, 0);
  937. Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -748.5999800, -2453.7000000, 69.0000000, 20, 0);
  938. // PEDRAS
  939. CreateDynamicObject(897,-543.0999800,-2619.3999000,154.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (1)
  940. CreateDynamicObject(897,-651.2999900,-2649.6001000,102.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (2)
  941. CreateDynamicObject(897,-596.5000000,-2495.0000000,62.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (3)
  942. CreateDynamicObject(897,-750.2999900,-2473.3000000,75.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (4)
  943. CreateDynamicObject(897,-584.2999900,-1946.1000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (5)
  944. CreateDynamicObject(897,-855.2002000,-2290.2998000,26.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (6)
  945. CreateDynamicObject(897,-600.2002000,-2090.3994000,40.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (7)
  946. CreateDynamicObject(897,-431.6000100,-2107.8000000,88.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (8)
  947. CreateDynamicObject(897,-440.9003900,-1838.0000000,8.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (9)
  948. CreateDynamicObject(897,-297.6000100,-2406.3000000,74.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (10)
  949. CreateDynamicObject(897,-146.2000000,-2485.3999000,30.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (11)
  950. CreateDynamicObject(897,-126.7000000,-2601.5000000,69.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (12)
  951. CreateDynamicObject(897,-142.3999900,-2694.0000000,74.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (13)
  952. CreateDynamicObject(897,-584.2000100,-2267.7000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (14)
  953. CreateDynamicObject(897,-343.7002000,-2641.5000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (15)
  954. CreateDynamicObject(897,-418.7002000,-2705.8994000,162.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (16)
  955. CreateDynamicObject(897,-928.5996100,-2505.7998000,114.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (17)
  956. CreateDynamicObject(897,-1045.5996000,-2076.5000000,57.9000000,0.0000000,0.0000000,0.0000000); //object(searock01) (18)
  957. CreateDynamicObject(897,-899.7998000,-1870.5996000,88.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (19)
  958. CreateDynamicObject(897,-1083.7000000,-2193.0000000,41.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (20)
  959. // TEXT'S PEDRAS
  960.  
  961. // TEXT'S TODOS
  962. Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -722.4331,-2055.1331,6.3556, 20, 0);
  963. Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -782.6783,-2038.8295,6.6471, 20, 0);
  964. Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -805.0019,-1935.4814,6.3195, 20, 0);
  965. Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -724.8286,-1873.4583,6.8128, 20, 0);
  966. Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -706.3614,-1933.9801,6.4755, 20, 0);
  967. // APOCALYPSE
  968. CreateDynamicObject(791,-355.7000100,-2326.0000000,60.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
  969. CreateDynamicObject(791,-620.2002000,-1849.5000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
  970. CreateDynamicObject(791,-488.7999900,-2424.3999000,100.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (3)
  971. CreateDynamicObject(791,-363.5000000,-2554.2000000,120.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (4)
  972. CreateDynamicObject(791,-590.7000100,-2745.1001000,121.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (5)
  973. CreateDynamicObject(791,-451.9003900,-2698.2998000,163.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (6)
  974. CreateDynamicObject(791,-540.2002000,-2609.0996000,140.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (7)
  975. CreateDynamicObject(791,-391.5996100,-2435.2998000,93.6000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (8)
  976. CreateDynamicObject(791,-707.0000000,-2390.8999000,40.0000000,0.0000000,0.0000000,74.9980000); //object(vbg_fir_copse) (9)
  977. CreateDynamicObject(791,-1015.8000000,-2538.8000000,70.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (10)
  978. CreateDynamicObject(791,-1037.7000000,-2486.8999000,67.8000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (11)
  979. CreateDynamicObject(3920,-1055.0000000,-2520.3999000,77.6000000,0.0000000,0.0000000,0.0000000); //object(lib_veg3) (1)
  980. CreateDynamicObject(647,-1010.4000000,-2494.8000000,78.4000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (1)
  981. CreateDynamicObject(647,-1056.7000000,-2509.3000000,67.5000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (2)
  982. CreateDynamicObject(647,-1062.8000000,-2526.8999000,68.0000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (3)
  983. CreateDynamicObject(647,-1054.1000000,-2520.3999000,68.0000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (4)
  984. CreateDynamicObject(728,-1045.7000000,-2514.2000000,68.6000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly06) (1)
  985. CreateDynamicObject(759,-1039.3000000,-2519.5000000,70.7000000,0.0000000,0.0000000,0.0000000); //object(sm_bush_large_1) (1)
  986. CreateDynamicObject(762,-1029.2000000,-2522.2000000,79.3000000,0.0000000,0.0000000,0.0000000); //object(new_bushtest) (1)
  987. CreateDynamicObject(762,-1036.0000000,-2579.7000000,79.3000000,0.0000000,0.0000000,0.0000000); //object(new_bushtest) (2)
  988. CreateDynamicObject(803,-1015.9000000,-2574.6001000,83.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush09) (1)
  989. CreateDynamicObject(805,-1022.6000000,-2556.6001000,80.3000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush11) (1)
  990. CreateDynamicObject(817,-1056.1000000,-2535.3999000,69.1000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowers01) (1)
  991. CreateDynamicObject(819,-1037.3000000,-2530.3999000,74.2000000,0.0000000,0.0000000,0.0000000); //object(genveg_tallgrass03) (1)
  992. CreateDynamicObject(824,-299.3999900,-2231.2000000,30.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_tallgrass08) (1)
  993. CreateDynamicObject(824,-288.2000100,-2244.0000000,30.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_tallgrass08) (2)
  994. CreateDynamicObject(825,-321.7999900,-2224.8999000,29.9000000,0.0000000,0.0000000,0.0000000); //object(genveg_bushy) (1)
  995. CreateDynamicObject(874,-306.0000000,-2232.5000000,29.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (1)
  996. CreateDynamicObject(874,-303.8999900,-2251.7000000,30.3000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (2)
  997. CreateDynamicObject(874,-307.6000100,-2211.7000000,30.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (3)
  998. CreateDynamicObject(874,-285.2000100,-2281.3999000,31.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (4)
  999. CreateDynamicObject(9034,-277.7000100,-2223.8999000,29.6000000,0.0000000,0.0000000,0.0000000); //object(tikitrees01_lvs) (1)
  1000. CreateDynamicObject(13802,-996.5999800,-2475.1001000,79.1000000,0.0000000,0.0000000,0.0000000); //object(skateivy) (1)
  1001. CreateDynamicObject(13802,-996.2000100,-2471.3000000,78.7000000,0.0000000,0.0000000,0.0000000); //object(skateivy) (2)
  1002. CreateDynamicObject(13802,-1004.2000000,-2499.6001000,83.1000000,0.0000000,0.0000000,0.0000000); //object(skateivy) (3)
  1003. CreateDynamicObject(14400,-1001.5000000,-2504.7000000,81.0000000,0.0000000,0.0000000,0.0000000); //object(flower-bush08) (1)
  1004. CreateDynamicObject(16390,-1053.9000000,-2511.8000000,70.2000000,0.0000000,0.0000000,17.2500000); //object(desn2_studbush) (1)
  1005. CreateDynamicObject(874,-1071.7000000,-2518.0000000,67.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (5)
  1006. CreateDynamicObject(874,-1042.5000000,-2501.8999000,69.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (6)
  1007. CreateDynamicObject(874,-1037.3000000,-2520.0000000,73.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (7)
  1008. CreateDynamicObject(874,-1023.9000000,-2500.7000000,74.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (8)
  1009. CreateDynamicObject(874,-1032.1000000,-2498.3000000,72.1000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (9)
  1010. CreateDynamicObject(874,-1044.2000000,-2481.6001000,67.6000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (10)
  1011. CreateDynamicObject(874,-1005.9000000,-2554.3000000,83.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (11)
  1012. CreateDynamicObject(874,-1020.6000000,-2566.6001000,82.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (12)
  1013. CreateDynamicObject(874,-1031.7000000,-2592.3000000,84.4000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (13)
  1014. CreateDynamicObject(874,-1078.4000000,-2596.3000000,77.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (14)
  1015. CreateDynamicObject(874,-1071.7000000,-2601.3000000,82.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (15)
  1016. CreateDynamicObject(874,-1119.5000000,-2548.7000000,71.6000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (16)
  1017. CreateDynamicObject(874,-1082.6000000,-2540.6001000,69.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (17)
  1018. CreateDynamicObject(874,-1057.1000000,-2510.0000000,67.4000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (18)
  1019. CreateDynamicObject(874,-1002.3000000,-2484.6001000,80.1000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (19)
  1020. CreateDynamicObject(874,-1017.5000000,-2484.2000000,75.3000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (20)
  1021. CreateDynamicObject(874,-1003.8000000,-2530.0000000,82.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (21)
  1022. CreateDynamicObject(874,-1071.6000000,-2568.0000000,75.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (22)
  1023. CreateDynamicObject(874,-181.2000000,-2786.2000000,40.3000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (23)
  1024. CreateDynamicObject(874,-198.0000000,-2791.0000000,41.8000000,0.0000000,0.0000000,17.2500000); //object(veg_procgrasspatch) (24)
  1025. CreateDynamicObject(874,-219.3999900,-2794.0000000,44.1000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (25)
  1026. CreateDynamicObject(874,-214.8000000,-2778.8000000,41.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (26)
  1027. CreateDynamicObject(874,-198.3999900,-2777.8999000,39.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (27)
  1028. CreateDynamicObject(874,-161.8000000,-2777.3000000,43.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (28)
  1029. CreateDynamicObject(874,-152.6000100,-2798.2000000,45.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (29)
  1030. CreateDynamicObject(874,-167.7000000,-2817.8999000,42.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (30)
  1031. CreateDynamicObject(874,-206.3000000,-2820.0000000,45.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (31)
  1032. CreateDynamicObject(874,-176.1000100,-2763.8999000,40.6000000,0.0000000,0.0000000,18.2500000); //object(veg_procgrasspatch) (32)
  1033. CreateDynamicObject(874,-187.7000000,-2756.6001000,36.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (33)
  1034. CreateDynamicObject(8836,-184.8000000,-2764.2000000,39.1000000,0.0000000,0.0000000,0.0000000); //object(pirtetrees02_lvs) (1)
  1035. CreateDynamicObject(791,-236.6000100,-2813.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (12)
  1036. CreateDynamicObject(791,-227.8999900,-2753.3999000,30.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (13)
  1037. CreateDynamicObject(874,-591.0999800,-2750.1001000,67.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (34)
  1038. CreateDynamicObject(874,-577.4000200,-2747.5000000,67.2000000,0.0000000,0.0000000,54.0000000); //object(veg_procgrasspatch) (35)
  1039. CreateDynamicObject(874,-560.0000000,-2750.7000000,66.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (36)
  1040. CreateDynamicObject(874,-546.9000200,-2748.7000000,66.9000000,0.0000000,0.0000000,110.0000000); //object(veg_procgrasspatch) (37)
  1041. CreateDynamicObject(874,-533.7000100,-2754.3000000,66.9000000,0.0000000,0.0000000,297.9950000); //object(veg_procgrasspatch) (38)
  1042. CreateDynamicObject(874,-512.4000200,-2753.3000000,66.9000000,0.0000000,0.0000000,297.9930000); //object(veg_procgrasspatch) (39)
  1043. CreateDynamicObject(874,-500.8999900,-2755.8999000,66.7000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (40)
  1044. CreateDynamicObject(874,-484.7000100,-2757.3999000,66.7000000,0.0000000,0.0000000,288.0000000); //object(veg_procgrasspatch) (41)
  1045. CreateDynamicObject(874,-469.8999900,-2763.0000000,66.7000000,0.0000000,0.0000000,219.9960000); //object(veg_procgrasspatch) (42)
  1046. CreateDynamicObject(874,-459.7999900,-2765.8999000,66.7000000,0.0000000,0.0000000,351.9900000); //object(veg_procgrasspatch) (43)
  1047. CreateDynamicObject(874,-449.1000100,-2766.3000000,66.7000000,0.0000000,0.0000000,9.9850000); //object(veg_procgrasspatch) (44)
  1048. CreateDynamicObject(874,-436.7000100,-2766.3000000,66.7000000,0.0000000,0.0000000,309.9810000); //object(veg_procgrasspatch) (45)
  1049. CreateDynamicObject(874,-427.8999900,-2772.5000000,66.7000000,0.0000000,0.0000000,225.9790000); //object(veg_procgrasspatch) (46)
  1050. CreateDynamicObject(874,-415.2999900,-2775.7000000,66.7000000,0.0000000,0.0000000,225.9780000); //object(veg_procgrasspatch) (47)
  1051. CreateDynamicObject(18451,-591.7000100,-2745.0000000,66.6000000,0.0000000,0.0000000,0.0000000); //object(cs_oldcarjmp) (1)
  1052. CreateDynamicObject(4517,-585.4000200,-2750.0000000,69.2000000,0.0000000,0.0000000,268.0000000); //object(cn2_roadblock04ld) (1)
  1053. CreateDynamicObject(12957,-307.2998000,-2244.2002000,29.2000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (6)
  1054. CreateDynamicObject(12957,-562.2999900,-2749.8999000,66.0000000,0.0000000,0.0000000,326.0000000); //object(sw_pickupwreck01) (7)
  1055. CreateDynamicObject(12957,-532.7999900,-2748.1001000,66.0000000,0.0000000,0.0000000,11.9970000); //object(sw_pickupwreck01) (8)
  1056. CreateDynamicObject(3594,-382.5190100,-2780.1228000,63.5141300,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (4)
  1057. CreateDynamicObject(3594,-378.3999900,-2787.8000000,63.1000000,0.0000000,0.0000000,130.0000000); //object(la_fuckcar1) (5)
  1058. CreateDynamicObject(3593,-378.8999900,-2781.7000000,63.2000000,0.0000000,0.0000000,216.0000000); //object(la_fuckcar2) (2)
  1059. CreateDynamicObject(13591,-382.7999900,-2788.5000000,63.0000000,0.0000000,0.0000000,40.0000000); //object(kickcar28) (1)
  1060. CreateDynamicObject(3594,-375.0000000,-2781.8999000,62.9000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (6)
  1061. CreateDynamicObject(12957,-392.7000100,-2783.2000000,64.5000000,0.0000000,0.0000000,44.0000000); //object(sw_pickupwreck01) (9)
  1062. CreateDynamicObject(12957,-400.5000000,-2775.6001000,64.9000000,0.0000000,0.0000000,320.0000000); //object(sw_pickupwreck01) (10)
  1063. CreateDynamicObject(1327,-531.2999900,-2748.3000000,65.7000000,0.0000000,0.0000000,0.0000000); //object(junk_tyre) (1)
  1064. CreateDynamicObject(1327,-514.4000200,-2759.6001000,65.7000000,0.0000000,0.0000000,68.0000000); //object(junk_tyre) (2)
  1065. CreateDynamicObject(1358,-476.2000100,-2758.8000000,66.6000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (4)
  1066. CreateDynamicObject(1358,-419.7999900,-2774.3999000,66.1000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (5)
  1067. CreateDynamicObject(1358,-397.0000000,-2779.2998000,65.1000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (6)
  1068. CreateDynamicObject(1441,-409.7000100,-2772.0000000,65.1000000,0.0000000,0.0000000,0.0000000); //object(dyn_box_pile_4) (1)
  1069. CreateDynamicObject(874,-711.9000200,-2603.2000000,71.8000000,0.0000000,0.0000000,84.0000000); //object(veg_procgrasspatch) (48)
  1070. CreateDynamicObject(874,-725.5999800,-2606.3000000,71.8000000,0.0000000,0.0000000,83.9960000); //object(veg_procgrasspatch) (49)
  1071. CreateDynamicObject(874,-716.4000200,-2625.5000000,76.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (50)
  1072. CreateDynamicObject(874,-723.0000000,-2648.3000000,82.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (51)
  1073. CreateDynamicObject(874,-731.7999900,-2646.0000000,82.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (52)
  1074. // CARRO TESTES
  1075. AddStaticVehicleEx(568, -463.6782, -2663.1365, 157.5599, 0, 0, 0, 1, 0);
  1076. /* CREDITOS */
  1077. Info[0] = TextDrawCreate(437.000335, 101.055488, "usebox");
  1078. TextDrawLetterSize(Info[0], 0.000000, 22.265630);
  1079. TextDrawTextSize(Info[0], 202.444442, 0.000000);
  1080. TextDrawAlignment(Info[0], 1);
  1081. TextDrawColor(Info[0], 0);
  1082. TextDrawUseBox(Info[0], true);
  1083. TextDrawBoxColor(Info[0], 60);
  1084. TextDrawSetShadow(Info[0], 0);
  1085. TextDrawSetOutline(Info[0], 0);
  1086. TextDrawFont(Info[0], 0);
  1087.  
  1088. Info[1] = TextDrawCreate(212.555557, 100.537040, "usebox");
  1089. TextDrawLetterSize(Info[1], 0.000000, 22.323251);
  1090. TextDrawTextSize(Info[1], 202.444442, 0.000000);
  1091. TextDrawAlignment(Info[1], 1);
  1092. TextDrawColor(Info[1], 0);
  1093. TextDrawUseBox(Info[1], true);
  1094. TextDrawBoxColor(Info[1], -1979711386);
  1095. TextDrawSetShadow(Info[1], 0);
  1096. TextDrawSetOutline(Info[1], 0);
  1097. TextDrawFont(Info[1], 1);
  1098.  
  1099. Info[2] = TextDrawCreate(436.888793, 100.500007, "usebox");
  1100. TextDrawLetterSize(Info[2], 0.000000, 22.323251);
  1101. TextDrawTextSize(Info[2], 426.333190, 0.000000);
  1102. TextDrawAlignment(Info[2], 1);
  1103. TextDrawColor(Info[2], 0);
  1104. TextDrawUseBox(Info[2], true);
  1105. TextDrawBoxColor(Info[2], -1979711386);
  1106. TextDrawSetShadow(Info[2], 0);
  1107. TextDrawSetOutline(Info[2], 0);
  1108. TextDrawFont(Info[2], 0);
  1109.  
  1110. Info[3] = TextDrawCreate(430.665802, 100.462989, "usebox");
  1111. TextDrawLetterSize(Info[3], 0.000000, 0.045474);
  1112. TextDrawTextSize(Info[3], 207.999862, 0.000000);
  1113. TextDrawAlignment(Info[3], 1);
  1114. TextDrawColor(Info[3], 0);
  1115. TextDrawUseBox(Info[3], true);
  1116. TextDrawBoxColor(Info[3], -1979711386);
  1117. TextDrawSetShadow(Info[3], 0);
  1118. TextDrawSetOutline(Info[3], 0);
  1119. TextDrawFont(Info[3], 0);
  1120.  
  1121. Info[4] = TextDrawCreate(431.110229, 301.092620, "usebox");
  1122. TextDrawLetterSize(Info[4], 0.000000, 0.045474);
  1123. TextDrawTextSize(Info[4], 207.999847, 0.000000);
  1124. TextDrawAlignment(Info[4], 1);
  1125. TextDrawColor(Info[4], 0);
  1126. TextDrawUseBox(Info[4], true);
  1127. TextDrawBoxColor(Info[4], -1979711386);
  1128. TextDrawSetShadow(Info[4], 0);
  1129. TextDrawSetOutline(Info[4], 0);
  1130. TextDrawFont(Info[4], 0);
  1131.  
  1132. Info[5] = TextDrawCreate(430.999114, 126.314796, "usebox");
  1133. TextDrawLetterSize(Info[5], 0.000000, 0.045474);
  1134. TextDrawTextSize(Info[5], 207.999847, 0.000000);
  1135. TextDrawAlignment(Info[5], 1);
  1136. TextDrawColor(Info[5], 0);
  1137. TextDrawUseBox(Info[5], true);
  1138. TextDrawBoxColor(Info[5], -1979711386);
  1139. TextDrawSetShadow(Info[5], 0);
  1140. TextDrawSetOutline(Info[5], 0);
  1141. TextDrawFont(Info[5], 0);
  1142.  
  1143. Info[6] = TextDrawCreate(254.332412, 289.129577, "usebox");
  1144. TextDrawLetterSize(Info[6], 0.000000, 0.489918);
  1145. TextDrawTextSize(Info[6], 210.777587, 0.000000);
  1146. TextDrawAlignment(Info[6], 1);
  1147. TextDrawColor(Info[6], 0);
  1148. TextDrawUseBox(Info[6], true);
  1149. TextDrawBoxColor(Info[6], -1979711386);
  1150. TextDrawSetShadow(Info[6], 0);
  1151. TextDrawSetOutline(Info[6], 0);
  1152. TextDrawFont(Info[6], 0);
  1153.  
  1154. Info[7] = TextDrawCreate(265.555572, 106.814773, "creditos");
  1155. TextDrawLetterSize(Info[7], 0.512777, 1.408149);
  1156. TextDrawAlignment(Info[7], 1);
  1157. TextDrawColor(Info[7], -1);
  1158. TextDrawSetShadow(Info[7], 0);
  1159. TextDrawSetOutline(Info[7], 1);
  1160. TextDrawBackgroundColor(Info[7], 255);
  1161. TextDrawFont(Info[7], 2);
  1162. TextDrawSetProportional(Info[7], 1);
  1163.  
  1164. Info[8] = TextDrawCreate(222.666717, 133.222167, "fundador: Power_X");
  1165. TextDrawLetterSize(Info[8], 0.438333, 1.102223);
  1166. TextDrawAlignment(Info[8], 1);
  1167. TextDrawColor(Info[8], -1);
  1168. TextDrawSetShadow(Info[8], 0);
  1169. TextDrawSetOutline(Info[8], 1);
  1170. TextDrawBackgroundColor(Info[8], 255);
  1171. TextDrawFont(Info[8], 2);
  1172. TextDrawSetProportional(Info[8], 1);
  1173.  
  1174. Info[9] = TextDrawCreate(220.888931, 164.814971, "scripter's: Power_X e Carlos001");
  1175. TextDrawLetterSize(Info[9], 0.265554, 1.418519);
  1176. TextDrawAlignment(Info[9], 1);
  1177. TextDrawColor(Info[9], -1);
  1178. TextDrawSetShadow(Info[9], 0);
  1179. TextDrawSetOutline(Info[9], 1);
  1180. TextDrawBackgroundColor(Info[9], 255);
  1181. TextDrawFont(Info[9], 2);
  1182. TextDrawSetProportional(Info[9], 1);
  1183.  
  1184. Info[10] = TextDrawCreate(221.333389, 202.111160, "Donos: Power e Mozart");
  1185. TextDrawLetterSize(Info[10], 0.353887, 1.200740);
  1186. TextDrawAlignment(Info[10], 1);
  1187. TextDrawColor(Info[10], -1);
  1188. TextDrawSetShadow(Info[10], 0);
  1189. TextDrawSetOutline(Info[10], 1);
  1190. TextDrawBackgroundColor(Info[10], 255);
  1191. TextDrawFont(Info[10], 2);
  1192. TextDrawSetProportional(Info[10], 1);
  1193.  
  1194. Info[11] = TextDrawCreate(222.333389, 238.889038, "email: power.xev1@gmail.com");
  1195. TextDrawLetterSize(Info[11], 0.303887, 1.200740);
  1196. TextDrawAlignment(Info[11], 1);
  1197. TextDrawColor(Info[11], -1);
  1198. TextDrawSetShadow(Info[11], 0);
  1199. TextDrawSetOutline(Info[11], 1);
  1200. TextDrawBackgroundColor(Info[11], 255);
  1201. TextDrawFont(Info[11], 2);
  1202. TextDrawSetProportional(Info[11], 1);
  1203.  
  1204. Info[12] = TextDrawCreate(223.333374, 272.037139, "site: www.islandsurvival.forumeiros.com");
  1205. TextDrawLetterSize(Info[12], 0.204442, 1.423703);
  1206. TextDrawAlignment(Info[12], 1);
  1207. TextDrawColor(Info[12], -1);
  1208. TextDrawSetShadow(Info[12], 0);
  1209. TextDrawSetOutline(Info[12], 1);
  1210. TextDrawBackgroundColor(Info[12], 255);
  1211. TextDrawFont(Info[12], 2);
  1212. TextDrawSetProportional(Info[12], 1);
  1213.  
  1214. /* REGISTRO */
  1215. Registro[0] = TextDrawCreate(427.000061, 106.759269, "usebox");
  1216. TextDrawLetterSize(Registro[0], 0.000000, 21.230659);
  1217. TextDrawTextSize(Registro[0], 214.666625, 0.000000);
  1218. TextDrawAlignment(Registro[0], 1);
  1219. TextDrawColor(Registro[0], 0);
  1220. TextDrawUseBox(Registro[0], true);
  1221. TextDrawBoxColor(Registro[0], 50);
  1222. TextDrawSetShadow(Registro[0], 0);
  1223. TextDrawSetOutline(Registro[0], 0);
  1224. TextDrawFont(Registro[0], 0);
  1225.  
  1226. Registro[1] = TextDrawCreate(223.666625, 106.759262, "usebox");
  1227. TextDrawLetterSize(Registro[1], 0.000000, 21.240943);
  1228. TextDrawTextSize(Registro[1], 214.666656, 0.000000);
  1229. TextDrawAlignment(Registro[1], 1);
  1230. TextDrawColor(Registro[1], 0);
  1231. TextDrawUseBox(Registro[1], true);
  1232. TextDrawBoxColor(Registro[1], -1627389780);
  1233. TextDrawSetShadow(Registro[1], 0);
  1234. TextDrawSetOutline(Registro[1], 0);
  1235. TextDrawFont(Registro[1], 0);
  1236.  
  1237. Registro[2] = TextDrawCreate(426.888702, 106.722229, "usebox");
  1238. TextDrawLetterSize(Registro[2], 0.000000, 21.240943);
  1239. TextDrawTextSize(Registro[2], 416.888732, 0.000000);
  1240. TextDrawAlignment(Registro[2], 1);
  1241. TextDrawColor(Registro[2], 0);
  1242. TextDrawUseBox(Registro[2], true);
  1243. TextDrawBoxColor(Registro[2], -1627389780);
  1244. TextDrawSetShadow(Registro[2], 0);
  1245. TextDrawSetOutline(Registro[2], 0);
  1246. TextDrawFont(Registro[2], 0);
  1247.  
  1248. Registro[3] = TextDrawCreate(421.221801, 106.685211, "usebox");
  1249. TextDrawLetterSize(Registro[3], 0.000000, 0.018721);
  1250. TextDrawTextSize(Registro[3], 219.110885, 0.000000);
  1251. TextDrawAlignment(Registro[3], 1);
  1252. TextDrawColor(Registro[3], 0);
  1253. TextDrawUseBox(Registro[3], true);
  1254. TextDrawBoxColor(Registro[3], -1627389780);
  1255. TextDrawSetShadow(Registro[3], 0);
  1256. TextDrawSetOutline(Registro[3], 0);
  1257. TextDrawFont(Registro[3], 0);
  1258.  
  1259. Registro[4] = TextDrawCreate(422.221801, 297.463073, "usebox");
  1260. TextDrawLetterSize(Registro[4], 0.000000, 0.018721);
  1261. TextDrawTextSize(Registro[4], 219.110885, 0.000000);
  1262. TextDrawAlignment(Registro[4], 1);
  1263. TextDrawColor(Registro[4], 0);
  1264. TextDrawUseBox(Registro[4], true);
  1265. TextDrawBoxColor(Registro[4], -1627389780);
  1266. TextDrawSetShadow(Registro[4], 0);
  1267. TextDrawSetOutline(Registro[4], 0);
  1268. TextDrawFont(Registro[4], 0);
  1269.  
  1270. Registro[5] = TextDrawCreate(421.555175, 136.685302, "usebox");
  1271. TextDrawLetterSize(Registro[5], 0.000000, 0.018721);
  1272. TextDrawTextSize(Registro[5], 218.555328, 0.000000);
  1273. TextDrawAlignment(Registro[5], 1);
  1274. TextDrawColor(Registro[5], 0);
  1275. TextDrawUseBox(Registro[5], true);
  1276. TextDrawBoxColor(Registro[5], -1627389780);
  1277. TextDrawSetShadow(Registro[5], 0);
  1278. TextDrawSetOutline(Registro[5], 0);
  1279. TextDrawFont(Registro[5], 0);
  1280.  
  1281. Registro[6] = TextDrawCreate(392.555084, 152.203826, "usebox");
  1282. TextDrawLetterSize(Registro[6], 0.000000, 2.074277);
  1283. TextDrawTextSize(Registro[6], 246.888687, 0.000000);
  1284. TextDrawAlignment(Registro[6], 1);
  1285. TextDrawColor(Registro[6], 0);
  1286. TextDrawUseBox(Registro[6], true);
  1287. TextDrawBoxColor(Registro[6], -1627389780);
  1288. TextDrawSetShadow(Registro[6], 0);
  1289. TextDrawSetOutline(Registro[6], 0);
  1290. TextDrawFont(Registro[6], 0);
  1291.  
  1292. Registro[7] = TextDrawCreate(392.443878, 186.389007, "usebox");
  1293. TextDrawLetterSize(Registro[7], 0.000000, 2.129832);
  1294. TextDrawTextSize(Registro[7], 246.888687, 0.000000);
  1295. TextDrawAlignment(Registro[7], 1);
  1296. TextDrawColor(Registro[7], 0);
  1297. TextDrawUseBox(Registro[7], true);
  1298. TextDrawBoxColor(Registro[7], -1627389780);
  1299. TextDrawSetShadow(Registro[7], 0);
  1300. TextDrawSetOutline(Registro[7], 0);
  1301. TextDrawFont(Registro[7], 0);
  1302.  
  1303. Registro[8] = TextDrawCreate(221.666671, 70.000022, "Survival The Island");
  1304. TextDrawLetterSize(Registro[8], 0.709999, 3.316293);
  1305. TextDrawAlignment(Registro[8], 1);
  1306. TextDrawColor(Registro[8], -16776961);
  1307. TextDrawSetShadow(Registro[8], 0);
  1308. TextDrawSetOutline(Registro[8], 1);
  1309. TextDrawBackgroundColor(Registro[8], 255);
  1310. TextDrawFont(Registro[8], 0);
  1311. TextDrawSetProportional(Registro[8], 1);
  1312.  
  1313. Registro[9] = TextDrawCreate(391.777252, 222.129760, "usebox");
  1314. TextDrawLetterSize(Registro[9], 0.000000, 2.129832);
  1315. TextDrawTextSize(Registro[9], 246.888687, 0.000000);
  1316. TextDrawAlignment(Registro[9], 1);
  1317. TextDrawColor(Registro[9], 0);
  1318. TextDrawUseBox(Registro[9], true);
  1319. TextDrawBoxColor(Registro[9], -1627389780);
  1320. TextDrawSetShadow(Registro[9], 0);
  1321. TextDrawSetOutline(Registro[9], 0);
  1322. TextDrawFont(Registro[9], 0);
  1323.  
  1324. Registro[10] = TextDrawCreate(392.221740, 258.389038, "usebox");
  1325. TextDrawLetterSize(Registro[10], 0.000000, 2.129832);
  1326. TextDrawTextSize(Registro[10], 246.333129, 0.000000);
  1327. TextDrawAlignment(Registro[10], 1);
  1328. TextDrawColor(Registro[10], 0);
  1329. TextDrawUseBox(Registro[10], true);
  1330. TextDrawBoxColor(Registro[10], -1627389780);
  1331. TextDrawSetShadow(Registro[10], 0);
  1332. TextDrawSetOutline(Registro[10], 0);
  1333. TextDrawFont(Registro[10], 0);
  1334.  
  1335. Registro[11] = TextDrawCreate(257.777801, 114.592613, "Bem vindo");
  1336. TextDrawLetterSize(Registro[11], 0.551666, 1.646668);
  1337. TextDrawAlignment(Registro[11], 1);
  1338. TextDrawColor(Registro[11], -1);
  1339. TextDrawSetShadow(Registro[11], 0);
  1340. TextDrawSetOutline(Registro[11], 1);
  1341. TextDrawBackgroundColor(Registro[11], 255);
  1342. TextDrawFont(Registro[11], 2);
  1343. TextDrawSetProportional(Registro[11], 1);
  1344. //============================ TEXT DA TELA ==============================//
  1345. BlackRadar= GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
  1346. RadarPreto= GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
  1347.  
  1348. barrinha1 = TextDrawCreate(3.500000, 324.187500, "-");
  1349. TextDrawLetterSize(barrinha1, 11.464503, 1.061874);
  1350. TextDrawTextSize(barrinha1, -37.000000, -3.500000);
  1351. TextDrawAlignment(barrinha1, 1);
  1352. TextDrawColor(barrinha1, -1);
  1353. TextDrawSetShadow(barrinha1, 0);
  1354. TextDrawSetOutline(barrinha1, 1);
  1355. TextDrawBackgroundColor(barrinha1, 51);
  1356. TextDrawFont(barrinha1, 1);
  1357. TextDrawSetProportional(barrinha1, 1);
  1358.  
  1359. forum1 = TextDrawCreate(33.500000, 301.437500, "Survival The Island");
  1360. TextDrawLetterSize(forum1, 0.449999, 1.600000);
  1361. TextDrawAlignment(forum1, 1);
  1362. TextDrawColor(forum1, -16776961);
  1363. TextDrawSetShadow(forum1, 0);
  1364. TextDrawSetOutline(forum1, 1);
  1365. TextDrawBackgroundColor(forum1, 255);
  1366. TextDrawFont(forum1, 0);
  1367. TextDrawSetProportional(forum1, 1);
  1368.  
  1369. forum2 = TextDrawCreate(58.500000, 314.437500, "v.Beta");
  1370. TextDrawLetterSize(forum2, 0.449999, 1.600000);
  1371. TextDrawAlignment(forum2, 1);
  1372. TextDrawColor(forum2, 255);
  1373. TextDrawSetShadow(forum2, 0);
  1374. TextDrawSetOutline(forum2, 0);
  1375. TextDrawBackgroundColor(forum2, 255);
  1376. TextDrawFont(forum2, 1);
  1377. TextDrawSetProportional(forum2, 1);
  1378.  
  1379. barrinha2 = TextDrawCreate(8.500000, 292.375000, "-");
  1380. TextDrawLetterSize(barrinha2, 11.464503, 1.061874);
  1381. TextDrawTextSize(barrinha2, -37.000000, -3.500000);
  1382. TextDrawAlignment(barrinha2, 1);
  1383. TextDrawColor(barrinha2, -1);
  1384. TextDrawSetShadow(barrinha2, 0);
  1385. TextDrawSetOutline(barrinha2, 1);
  1386. TextDrawBackgroundColor(barrinha2, 51);
  1387. TextDrawFont(barrinha2, 1);
  1388. TextDrawSetProportional(barrinha2, 1);
  1389.  
  1390. forum3 = TextDrawCreate(2.500000, 430.937500, "Sugestoes, ideias, denuncias. Visite: www.inslandsurvival.forumeiros.com");
  1391. TextDrawLetterSize(forum3, 0.217998, 1.739999);
  1392. TextDrawAlignment(forum3, 1);
  1393. TextDrawColor(forum3, -16776961);
  1394. TextDrawSetShadow(forum3, 0);
  1395. TextDrawSetOutline(forum3, 1);
  1396. TextDrawBackgroundColor(forum3, 255);
  1397. TextDrawFont(forum3, 1);
  1398. TextDrawSetProportional(forum3, 1);
  1399.  
  1400. DataC = TextDrawCreate(500.000000, 9.000000, "");
  1401. TextDrawBackgroundColor(DataC, 255);
  1402. TextDrawFont(DataC, 3);
  1403. TextDrawLetterSize(DataC, 0.310000, 1.500000);
  1404. TextDrawColor(DataC, -1);
  1405. TextDrawSetOutline(DataC, 1);
  1406. TextDrawSetProportional(DataC, 1);
  1407. TextDrawSetSelectable(DataC, 0);
  1408. //============================================================================//
  1409. FrioT = TextDrawCreate(556, 429, "F");
  1410. TextDrawBackgroundColor(FrioT, 255);
  1411. TextDrawFont(FrioT, 1);
  1412. TextDrawLetterSize(FrioT, 0.320000, 1.100000);
  1413. TextDrawColor(FrioT, 0xFFFFFFFF);
  1414. TextDrawSetOutline(FrioT, 1);
  1415. TextDrawSetProportional(FrioT, 1);
  1416.  
  1417. Textdraw0 = TextDrawCreate(552.500000, 447.312500, "usebox");
  1418. TextDrawLetterSize(Textdraw0, 0.000000, -5.420833);
  1419. TextDrawTextSize(Textdraw0, 635.000000, 0.000000);
  1420. TextDrawAlignment(Textdraw0, 1);
  1421. TextDrawColor(Textdraw0, 0);
  1422. TextDrawUseBox(Textdraw0, true);
  1423. TextDrawBoxColor(Textdraw0, 102);
  1424. TextDrawSetShadow(Textdraw0, 0);
  1425. TextDrawSetOutline(Textdraw0, 0);
  1426. TextDrawFont(Textdraw0, 0);
  1427.  
  1428. sprite1 = TextDrawCreate(555, 405, "hud:radar_dateFood");
  1429. TextDrawFont(sprite1, 4); ///// aqui é a fonte
  1430. TextDrawTextSize(sprite1, 10.000, 10.000);////importante!!Está parte em definir o tamanho da imagem essa proporção será boa em caso você queria colocar do lado de seu status
  1431. TextDrawUseBox(sprite1, 1);
  1432.  
  1433. sprite2 = TextDrawCreate(555, 417, "hud:radar_diner");
  1434. TextDrawFont(sprite2, 4);
  1435. TextDrawTextSize(sprite2, 10.000, 10.000);
  1436. TextDrawUseBox(sprite2, 1);
  1437.  
  1438. TextCash1 = TextDrawCreate(600.000000, 99.937500, "usebox");
  1439. TextDrawLetterSize(TextCash1, 0.000000, 0.704164);
  1440. TextDrawTextSize(TextCash1, 514.000000, 0.000000);
  1441. TextDrawAlignment(TextCash1, 1);
  1442. TextDrawColor(TextCash1, 0);
  1443. TextDrawUseBox(TextCash1, true);
  1444. TextDrawBoxColor(TextCash1, 255);
  1445. TextDrawSetShadow(TextCash1, 0);
  1446. TextDrawSetOutline(TextCash1, 0);
  1447. TextDrawFont(TextCash1, 0);
  1448.  
  1449. TextCash2 = TextDrawCreate(542.500000, 99.312500, "Cash:");
  1450. TextDrawLetterSize(TextCash2, 0.215996, 0.755631);
  1451. TextDrawAlignment(TextCash2, 2);
  1452. TextDrawColor(TextCash2, -1061109505);
  1453. TextDrawSetShadow(TextCash2, 0);
  1454. TextDrawSetOutline(TextCash2, 0);
  1455. TextDrawBackgroundColor(TextCash2, 51);
  1456. TextDrawFont(TextCash2, 1);
  1457. TextDrawSetProportional(TextCash2, 1);
  1458.  
  1459. TextCash3 = TextDrawCreate(553.000000, 99.750000, "...");
  1460. TextDrawLetterSize(TextCash3, 0.177000, 0.738125);
  1461. TextDrawAlignment(TextCash3, 1);
  1462. TextDrawColor(TextCash3, -1061109505);
  1463. TextDrawSetShadow(TextCash3, 0);
  1464. TextDrawSetOutline(TextCash3, 1);
  1465. TextDrawBackgroundColor(TextCash3, 51);
  1466. TextDrawFont(TextCash3, 1);
  1467.  
  1468. TextDin0 = TextDrawCreate(627.000000, 78.500000, "usebox");
  1469. TextDrawLetterSize(TextDin0, 0.000000, 1.980555);
  1470. TextDrawTextSize(TextDin0, 486.500000, 0.000000);
  1471. TextDrawAlignment(TextDin0, 1);
  1472. TextDrawColor(TextDin0, 0);
  1473. TextDrawUseBox(TextDin0, true);
  1474. TextDrawBoxColor(TextDin0, -16776961);
  1475. TextDrawSetShadow(TextDin0, 0);
  1476. TextDrawSetOutline(TextDin0, 0);
  1477. TextDrawFont(TextDin0, 0);
  1478.  
  1479. TextDin1 = TextDrawCreate(520.000000, 80.500000, "...");
  1480. TextDrawLetterSize(TextDin1, 0.210997, 1.368126);
  1481. TextDrawAlignment(TextDin1, 1);
  1482. TextDrawColor(TextDin1, -1061109505);
  1483. TextDrawSetShadow(TextDin1, 0);
  1484. TextDrawSetOutline(TextDin1, -1);
  1485. TextDrawBackgroundColor(TextDin1, 255);
  1486. TextDrawFont(TextDin1, 2);
  1487. TextDrawSetProportional(TextDin1, 1);
  1488.  
  1489. TextDin2 = TextDrawCreate(626.000000, 79.375000, "usebox");
  1490. TextDrawLetterSize(TextDin2, 0.000000, 1.824998);
  1491. TextDrawTextSize(TextDin2, 487.500000, 0.000000);
  1492. TextDrawAlignment(TextDin2, 1);
  1493. TextDrawColor(TextDin2, 0);
  1494. TextDrawUseBox(TextDin2, true);
  1495. TextDrawBoxColor(TextDin2, 255);
  1496. TextDrawSetShadow(TextDin2, 0);
  1497. TextDrawSetOutline(TextDin2, 0);
  1498. TextDrawFont(TextDin2, 0);
  1499.  
  1500. TextGPS = TextDrawCreate(33.000000, 333.083404, "ld_pool:ball");
  1501. TextDrawLetterSize(TextGPS, 0.000000, 0.000000);
  1502. TextDrawTextSize(TextGPS, 107.500000, 99.166633);
  1503. TextDrawAlignment(TextGPS, 1);
  1504. TextDrawColor(TextGPS, 255);
  1505. TextDrawSetShadow(TextGPS, 0);
  1506. TextDrawSetOutline(TextGPS, 0);
  1507. TextDrawFont(TextGPS, 4);
  1508. //============================================================================//
  1509. FomeA = CreateProgressBar(570, 409, 60.55, 4.50, -8716033, 100.0);
  1510. SetProgressBarMaxValue(FomeA, 100);
  1511. SetProgressBarColor(FomeA, 0xFFA500FF);
  1512. SedeB = CreateProgressBar(570.00, 421.00, 60.55, 4.50, -8716033, 100.0);
  1513. SetProgressBarMaxValue(SedeB, 100);
  1514. SetProgressBarColor(SedeB, 0x00BFFFFF);
  1515. FrioD = CreateProgressBar(570.00, 433, 60.55, 4.50, -8716033, 100.0);
  1516. SetProgressBarMaxValue(FrioD, 100);
  1517. SetProgressBarColor(FrioD, 0x00FF00FF);
  1518. Exemplo = CreateProgressBar(53.000000, 400.00, 60.55, 3.699997, -1429936641, 100.0); //cria a bar
  1519. Exemplo2 = CreateProgressBar(53.000000, 400.00, 60.55, 3.699997, -1429936641, 100.0); //cria a bar
  1520. //============================================================================//
  1521. for ( new i ; i < MAX_PLAYERS ; ++i )
  1522. {
  1523. Wood[i] = TextDrawCreate(564.000000, 292.687500, "5 x Wood");
  1524. TextDrawLetterSize(Wood[i], 0.248500, 1.429373);
  1525. TextDrawAlignment(Wood[i], 1);
  1526. TextDrawColor(Wood[i], -2139062017);
  1527. TextDrawSetShadow(Wood[i], 0);
  1528. TextDrawSetOutline(Wood[i], 1);
  1529. TextDrawBackgroundColor(Wood[i], 51);
  1530. TextDrawFont(Wood[i], 1);
  1531. TextDrawSetProportional(Wood[i], 1);
  1532.  
  1533. Boxzin[i] = TextDrawCreate(621.000000, 292.000000, "usebox");
  1534. TextDrawLetterSize(Boxzin[i], 0.000000, 1.676388);
  1535. TextDrawTextSize(Boxzin[i], 553.500000, 0.000000);
  1536. TextDrawAlignment(Boxzin[i], 1);
  1537. TextDrawColor(Boxzin[i], 0);
  1538. TextDrawUseBox(Boxzin[i], true);
  1539. TextDrawBoxColor(Boxzin[i], 102);
  1540. TextDrawSetShadow(Boxzin[i], 0);
  1541. TextDrawSetOutline(Boxzin[i], 0);
  1542. TextDrawFont(Boxzin[i], 0);
  1543.  
  1544. Stone[i] = TextDrawCreate(564.000000, 292.687500, "5 x Pedra");
  1545. TextDrawLetterSize(Stone[i], 0.248500, 1.429373);
  1546. TextDrawAlignment(Stone[i], 1);
  1547. TextDrawColor(Stone[i], -2139062017);
  1548. TextDrawSetShadow(Stone[i], 0);
  1549. TextDrawSetOutline(Stone[i], 1);
  1550. TextDrawBackgroundColor(Stone[i], 51);
  1551. TextDrawFont(Stone[i], 1);
  1552. TextDrawSetProportional(Stone[i], 1);
  1553.  
  1554. Boxzin2[i] = TextDrawCreate(621.500000, 312.687500, "usebox");
  1555. TextDrawLetterSize(Boxzin2[i], 0.000000, 1.626387);
  1556. TextDrawTextSize(Boxzin2[i], 553.500000, 0.000000);
  1557. TextDrawAlignment(Boxzin2[i], 1);
  1558. TextDrawColor(Boxzin2[i], 0);
  1559. TextDrawUseBox(Boxzin2[i], true);
  1560. TextDrawBoxColor(Boxzin2[i], 102);
  1561. TextDrawSetShadow(Boxzin2[i], 0);
  1562. TextDrawSetOutline(Boxzin2[i], 0);
  1563. TextDrawFont(Boxzin2[i], 0);
  1564.  
  1565. MetalF[i] = TextDrawCreate(564.500000, 312.937500, "2 x Metal");
  1566. TextDrawLetterSize(MetalF[i], 0.248500, 1.429373);
  1567. TextDrawAlignment(MetalF[i], 1);
  1568. TextDrawColor(MetalF[i], -2139062017);
  1569. TextDrawSetShadow(MetalF[i], 0);
  1570. TextDrawSetOutline(MetalF[i], 1);
  1571. TextDrawBackgroundColor(MetalF[i], 51);
  1572. TextDrawFont(MetalF[i], 1);
  1573. TextDrawSetProportional(MetalF[i], 1);
  1574. }
  1575. //===============================================
  1576. for(new i; i < MAX_BASES; i++)
  1577. {
  1578. CarregarBases(i);
  1579. }
  1580. for(new i; i < MAX_BANCADAS; i++)
  1581. {
  1582. CarregarBancadas(i);
  1583. }
  1584. for(new i; i < MAX_PORTAS; i++)
  1585. {
  1586. CarregarPortas(i);
  1587. }
  1588. for(new i; i < MAX_BAU; i++)
  1589. {
  1590. CarregarBaus(i);
  1591. }
  1592. for(new i; i < MAX_RAMPAS; i++)
  1593. {
  1594. CarregarRampas(i);
  1595. }
  1596. for(new i; i < MAX_DOOR; i++)
  1597. {
  1598. CarregarDoor(i);
  1599. }
  1600. for(new i; i < MAX_CAMA; i++)
  1601. {
  1602. CarregarCama(i);
  1603. }
  1604. for(new i; i < MAX_WINDOWN; i++)
  1605. {
  1606. CarregarWindowns(i);
  1607. }
  1608. for(new i; i < MAX_FORNO; i++)
  1609. {
  1610. CarregarForno(i);
  1611. }
  1612. return 1;
  1613. }
  1614.  
  1615.  
  1616. CarregarTextPlayer(playerid)
  1617. {
  1618. PlayerRegistro[0] = CreatePlayerTextDraw(playerid, 263.777801, 153.962951, "Registrar");
  1619. PlayerTextDrawLetterSize(playerid, PlayerRegistro[0], 0.480555, 1.496297);
  1620. PlayerTextDrawAlignment(playerid, PlayerRegistro[0], 1);
  1621. PlayerTextDrawColor(playerid, PlayerRegistro[0], -1);
  1622. PlayerTextDrawSetShadow(playerid, PlayerRegistro[0], 0);
  1623. PlayerTextDrawSetOutline(playerid, PlayerRegistro[0], 1);
  1624. PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[0], 255);
  1625. PlayerTextDrawFont(playerid, PlayerRegistro[0], 2);
  1626. PlayerTextDrawSetProportional(playerid, PlayerRegistro[0], 1);
  1627.  
  1628. PlayerRegistro[1] = CreatePlayerTextDraw(playerid, 279.777709, 188.666687, "logar");
  1629. PlayerTextDrawLetterSize(playerid, PlayerRegistro[1], 0.480555, 1.496297);
  1630. PlayerTextDrawAlignment(playerid, PlayerRegistro[1], 1);
  1631. PlayerTextDrawColor(playerid, PlayerRegistro[1], -1);
  1632. PlayerTextDrawSetShadow(playerid, PlayerRegistro[1], 0);
  1633. PlayerTextDrawSetOutline(playerid, PlayerRegistro[1], 1);
  1634. PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[1], 255);
  1635. PlayerTextDrawFont(playerid, PlayerRegistro[1], 2);
  1636. PlayerTextDrawSetProportional(playerid, PlayerRegistro[1], 1);
  1637.  
  1638. PlayerRegistro[2] = CreatePlayerTextDraw(playerid, 269.666748, 224.925949, "creditos");
  1639. PlayerTextDrawLetterSize(playerid, PlayerRegistro[2], 0.480555, 1.496297);
  1640. PlayerTextDrawAlignment(playerid, PlayerRegistro[2], 1);
  1641. PlayerTextDrawColor(playerid, PlayerRegistro[2], -1);
  1642. PlayerTextDrawSetShadow(playerid, PlayerRegistro[2], 0);
  1643. PlayerTextDrawSetOutline(playerid, PlayerRegistro[2], 1);
  1644. PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[2], 255);
  1645. PlayerTextDrawFont(playerid, PlayerRegistro[2], 2);
  1646. PlayerTextDrawSetProportional(playerid, PlayerRegistro[2], 1);
  1647.  
  1648. PlayerRegistro[3] = CreatePlayerTextDraw(playerid, 292.333282, 261.185211, "sair");
  1649. PlayerTextDrawLetterSize(playerid, PlayerRegistro[3], 0.480555, 1.496297);
  1650. PlayerTextDrawAlignment(playerid, PlayerRegistro[3], 1);
  1651. PlayerTextDrawColor(playerid, PlayerRegistro[3], -1);
  1652. PlayerTextDrawSetShadow(playerid, PlayerRegistro[3], 0);
  1653. PlayerTextDrawSetOutline(playerid, PlayerRegistro[3], 1);
  1654. PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[3], 255);
  1655. PlayerTextDrawFont(playerid, PlayerRegistro[3], 2);
  1656. PlayerTextDrawSetProportional(playerid, PlayerRegistro[3], 1);
  1657.  
  1658. PlayerRegistro[4] = CreatePlayerTextDraw(playerid, 216.666641, 287.777770, "voltar");
  1659. PlayerTextDrawLetterSize(playerid, PlayerRegistro[4], 0.196666, 0.754816);
  1660. PlayerTextDrawAlignment(playerid, PlayerRegistro[4], 1);
  1661. PlayerTextDrawColor(playerid, PlayerRegistro[4], -1);
  1662. PlayerTextDrawSetShadow(playerid, PlayerRegistro[4], 0);
  1663. PlayerTextDrawSetOutline(playerid, PlayerRegistro[4], 1);
  1664. PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[4], 255);
  1665. PlayerTextDrawFont(playerid, PlayerRegistro[4], 2);
  1666. PlayerTextDrawSetProportional(playerid, PlayerRegistro[4], 1);
  1667. for(new a; a < sizeof(PlayerRegistro); ++a) PlayerTextDrawSetSelectable(playerid, PlayerText:PlayerRegistro[a], true);
  1668. return 1;
  1669. }
  1670.  
  1671. stock CarregarPlayerText(playerid)
  1672. {
  1673. INV_DESIGN[playerid][0] = CreatePlayerTextDraw(playerid,123.000000, 130.000000, "_");
  1674. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][0], 255);
  1675. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][0], 1);
  1676. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][0], 0.500000, 27.899990);
  1677. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][0], -1);
  1678. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][0], 0);
  1679. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][0], 1);
  1680. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][0], 1);
  1681. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][0], 1);
  1682. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][0], 117);
  1683. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][0], 477.000000, 0.000000);
  1684. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][0], 0);
  1685.  
  1686. INV_DESIGN[playerid][1] = CreatePlayerTextDraw(playerid,123.000000, 130.000000, "_");
  1687. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][1], 255);
  1688. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][1], 1);
  1689. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][1], 0.500000, -0.599998);
  1690. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][1], -1);
  1691. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][1], 0);
  1692. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][1], 1);
  1693. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][1], 1);
  1694. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][1], 1);
  1695. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][1], 144);
  1696. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][1], 477.000000, 0.000000);
  1697. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][1], 0);
  1698.  
  1699. INV_DESIGN[playerid][2] = CreatePlayerTextDraw(playerid,261.000000, 129.000000, "Inventario");
  1700. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][2], 255);
  1701. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][2], 3);
  1702. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][2], 0.500000, 1.000000);
  1703. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][2], -1);
  1704. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][2], 0);
  1705. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][2], 1);
  1706. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][2], 1);
  1707. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][2], 0);
  1708.  
  1709. INV_DESIGN[playerid][3] = CreatePlayerTextDraw(playerid,468.000000, 129.000000, "X");
  1710. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][3], 255);
  1711. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][3], 3);
  1712. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][3], 0.500000, 1.000000);
  1713. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][3], -16776961);
  1714. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][3], 1);
  1715. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][3], 1);
  1716. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][3], 1);
  1717. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][3], -2021161216);
  1718. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][3], 477.000000, 10.000000);
  1719. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][3], 1);
  1720.  
  1721. INV_DESIGN[playerid][4] = CreatePlayerTextDraw(playerid,126.000000, 148.000000, "_");
  1722. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][4], 255);
  1723. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][4], 1);
  1724. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][4], 0.500000, 17.999982);
  1725. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][4], -1);
  1726. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][4], 0);
  1727. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][4], 1);
  1728. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][4], 1);
  1729. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][4], 1);
  1730. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][4], -2021161184);
  1731. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][4], 474.000000, 0.000000);
  1732. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][4], 0);
  1733.  
  1734. INV_DESIGN[playerid][5] = CreatePlayerTextDraw(playerid,126.000000, 130.000000, "__");
  1735. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][5], 255);
  1736. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][5], 3);
  1737. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][5], 0.500000, 1.000000);
  1738. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][5], -2021160961);
  1739. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][5], 1);
  1740. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][5], 1);
  1741. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][5], 1);
  1742. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][5], -2021161216);
  1743. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][5], 202.000000, 10.000000);
  1744. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][5], 0);
  1745.  
  1746. INV_DESIGN[playerid][6] = CreatePlayerTextDraw(playerid,372.000000, 130.000000, "__");
  1747. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][6], 255);
  1748. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][6], 3);
  1749. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][6], 0.500000, 1.000000);
  1750. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][6], -2021160961);
  1751. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][6], 1);
  1752. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][6], 1);
  1753. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][6], 1);
  1754. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][6], -2021161216);
  1755. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][6], 443.000000, 10.000000);
  1756. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][6], 0);
  1757.  
  1758. INV_DESIGN[playerid][7] = CreatePlayerTextDraw(playerid,182.000000, 148.000000, "_");
  1759. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][7], 255);
  1760. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][7], 1);
  1761. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][7], 0.500000, 17.799995);
  1762. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][7], -1);
  1763. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][7], 0);
  1764. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][7], 1);
  1765. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][7], 1);
  1766. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][7], 1);
  1767. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][7], 255);
  1768. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][7], 177.000000, 0.000000);
  1769. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][7], 0);
  1770.  
  1771. INV_DESIGN[playerid][8] = CreatePlayerTextDraw(playerid,241.000000, 148.000000, "_");
  1772. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][8], 255);
  1773. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][8], 1);
  1774. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][8], 0.500000, 17.799999);
  1775. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][8], -1);
  1776. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][8], 0);
  1777. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][8], 1);
  1778. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][8], 1);
  1779. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][8], 1);
  1780. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][8], 255);
  1781. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][8], 236.000000, 0.000000);
  1782. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][8], 0);
  1783.  
  1784. INV_DESIGN[playerid][9] = CreatePlayerTextDraw(playerid,301.000000, 148.000000, "_");
  1785. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][9], 255);
  1786. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][9], 1);
  1787. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][9], 0.500000, 17.899999);
  1788. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][9], -1);
  1789. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][9], 0);
  1790. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][9], 1);
  1791. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][9], 1);
  1792. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][9], 1);
  1793. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][9], 255);
  1794. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][9], 296.000000, 0.000000);
  1795. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][9], 0);
  1796.  
  1797. INV_DESIGN[playerid][10] = CreatePlayerTextDraw(playerid,361.000000, 148.000000, "_");
  1798. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][10], 255);
  1799. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][10], 1);
  1800. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][10], 0.500000, 17.799999);
  1801. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][10], -1);
  1802. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][10], 0);
  1803. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][10], 1);
  1804. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][10], 1);
  1805. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][10], 1);
  1806. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][10], 255);
  1807. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][10], 356.000000, 0.000000);
  1808. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][10], 0);
  1809.  
  1810. INV_DESIGN[playerid][11] = CreatePlayerTextDraw(playerid,420.000000, 148.000000, "_");
  1811. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][11], 255);
  1812. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][11], 1);
  1813. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][11], 0.500000, 17.999992);
  1814. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][11], -1);
  1815. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][11], 0);
  1816. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][11], 1);
  1817. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][11], 1);
  1818. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][11], 1);
  1819. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][11], 255);
  1820. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][11], 415.000000, 0.000000);
  1821. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][11], 0);
  1822.  
  1823. INV_DESIGN[playerid][12] = CreatePlayerTextDraw(playerid,126.000000, 188.000000, "_");
  1824. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][12], 255);
  1825. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][12], 1);
  1826. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][12], 0.500000, -0.200000);
  1827. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][12], -1);
  1828. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][12], 0);
  1829. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][12], 1);
  1830. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][12], 1);
  1831. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][12], 1);
  1832. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][12], 255);
  1833. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][12], 475.000000, -3.000000);
  1834. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][12], 0);
  1835.  
  1836. INV_DESIGN[playerid][13] = CreatePlayerTextDraw(playerid,126.000000, 229.000000, "_");
  1837. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][13], 255);
  1838. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][13], 1);
  1839. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][13], 0.500000, -0.200000);
  1840. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][13], -1);
  1841. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][13], 0);
  1842. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][13], 1);
  1843. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][13], 1);
  1844. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][13], 1);
  1845. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][13], 255);
  1846. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][13], 475.000000, -3.000000);
  1847. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][13], 0);
  1848.  
  1849. INV_DESIGN[playerid][14] = CreatePlayerTextDraw(playerid,126.000000, 270.000000, "_");
  1850. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][14], 255);
  1851. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][14], 1);
  1852. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][14], 0.500000, -0.200000);
  1853. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][14], -1);
  1854. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][14], 0);
  1855. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][14], 1);
  1856. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][14], 1);
  1857. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][14], 1);
  1858. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][14], 255);
  1859. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][14], 475.000000, -3.000000);
  1860. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][14], 0);
  1861.  
  1862. INV_DESIGN[playerid][15] = CreatePlayerTextDraw(playerid,126.000000, 312.000000, "_");
  1863. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][15], 255);
  1864. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][15], 1);
  1865. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][15], 0.500000, -0.200000);
  1866. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][15], -1);
  1867. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][15], 0);
  1868. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][15], 1);
  1869. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][15], 1);
  1870. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][15], 1);
  1871. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][15], 255);
  1872. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][15], 475.000000, -3.000000);
  1873. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][15], 0);
  1874.  
  1875. INV_DESIGN[playerid][16] = CreatePlayerTextDraw(playerid,131.000000, 316.000000, "Maos");
  1876. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][16], -2021161104);
  1877. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][16], 5);
  1878. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][16], 0.500000, 1.000000);
  1879. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][16], -1);
  1880. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][16], 0);
  1881. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][16], 1);
  1882. PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][16], 1);
  1883. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][16], 1);
  1884. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][16], 255);
  1885. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][16], 79.000000, 61.000000);
  1886. PlayerTextDrawSetPreviewModel(playerid, INV_DESIGN[playerid][16], 60000);
  1887. PlayerTextDrawSetPreviewRot(playerid, INV_DESIGN[playerid][16], 1.000000, 1.000000, 1.000000, 1.000000);
  1888. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][16], 1);
  1889.  
  1890. INV_DESIGN[playerid][17] = CreatePlayerTextDraw(playerid,428.000000, 321.000000, "USAR");
  1891. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][17], 255);
  1892. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][17], 3);
  1893. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][17], 0.410000, 1.500000);
  1894. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][17], -2021160961);
  1895. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][17], 1);
  1896. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][17], 1);
  1897. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][17], 1);
  1898. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][17], -2021161216);
  1899. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][17], 460.000000, 10.000000);
  1900. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][17], 1);
  1901.  
  1902. INV_DESIGN[playerid][18] = CreatePlayerTextDraw(playerid,428.000000, 357.000000, "DROP");
  1903. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][18], 255);
  1904. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][18], 3);
  1905. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][18], 0.410000, 1.500000);
  1906. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][18], -2021160961);
  1907. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][18], 1);
  1908. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][18], 1);
  1909. PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][18], 1);
  1910. PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][18], -2021161216);
  1911. PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][18], 460.000000, 10.000000);
  1912. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][18], 1);
  1913.  
  1914. INV_DESIGN[playerid][19] = CreatePlayerTextDraw(playerid,415.000000, 339.000000, "[]");
  1915. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][19], 255);
  1916. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][19], 0);
  1917. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][19], 0.410000, 1.500000);
  1918. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][19], -2021160961);
  1919. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][19], 1);
  1920. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][19], 1);
  1921. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][19], 0);
  1922.  
  1923. INV_DESIGN[playerid][20] = CreatePlayerTextDraw(playerid,436.000000, 339.000000, "[]");
  1924. PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][20], 255);
  1925. PlayerTextDrawFont(playerid,INV_DESIGN[playerid][20], 0);
  1926. PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][20], 0.410000, 1.500000);
  1927. PlayerTextDrawColor(playerid,INV_DESIGN[playerid][20], -2021160961);
  1928. PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][20], 1);
  1929. PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][20], 1);
  1930. PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][20], 0);
  1931.  
  1932. INV_SLOTS[playerid][0] = CreatePlayerTextDraw(playerid,112.000000, 133.000000, "Item00");
  1933. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][0], -2021161216);
  1934. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][0], 5);
  1935. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][0], 0.500000, 1.000000);
  1936. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][0], -1);
  1937. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][0], 0);
  1938. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][0], 1);
  1939. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][0], 1);
  1940. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][0], 1);
  1941. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][0], 255);
  1942. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][0], 79.000000, 61.000000);
  1943. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][0], 11738);
  1944. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][0], 1.000000, 1.000000, 1.000000, 1.000000);
  1945. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][0], 1);
  1946.  
  1947. INV_SLOTS[playerid][1] = CreatePlayerTextDraw(playerid,170.000000, 133.000000, "Item01");
  1948. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][1], -2021161216);
  1949. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][1], 5);
  1950. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][1], 0.500000, 1.000000);
  1951. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][1], -1);
  1952. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][1], 0);
  1953. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][1], 1);
  1954. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][1], 1);
  1955. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][1], 1);
  1956. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][1], 255);
  1957. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][1], 79.000000, 61.000000);
  1958. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][1], 11738);
  1959. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][1], 1.000000, 1.000000, 1.000000, 1.000000);
  1960. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][1], 1);
  1961.  
  1962. INV_SLOTS[playerid][2] = CreatePlayerTextDraw(playerid,229.000000, 133.000000, "Item02");
  1963. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][2], -2021161216);
  1964. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][2], 5);
  1965. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][2], 0.500000, 1.000000);
  1966. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][2], -1);
  1967. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][2], 0);
  1968. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][2], 1);
  1969. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][2], 1);
  1970. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][2], 1);
  1971. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][2], 255);
  1972. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][2], 79.000000, 61.000000);
  1973. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][2], 11738);
  1974. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][2], 1.000000, 1.000000, 1.000000, 1.000000);
  1975. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][2], 1);
  1976.  
  1977. INV_SLOTS[playerid][3] = CreatePlayerTextDraw(playerid,290.000000, 133.000000, "Item03");
  1978. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][3], -2021161216);
  1979. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][3], 5);
  1980. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][3], 0.500000, 1.000000);
  1981. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][3], -1);
  1982. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][3], 0);
  1983. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][3], 1);
  1984. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][3], 1);
  1985. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][3], 1);
  1986. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][3], 255);
  1987. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][3], 79.000000, 61.000000);
  1988. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][3], 11738);
  1989. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][3], 1.000000, 1.000000, 1.000000, 1.000000);
  1990. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][3], 1);
  1991.  
  1992. INV_SLOTS[playerid][4] = CreatePlayerTextDraw(playerid,348.000000, 133.000000, "Item04");
  1993. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][4], -2021161216);
  1994. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][4], 5);
  1995. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][4], 0.500000, 1.000000);
  1996. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][4], -1);
  1997. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][4], 0);
  1998. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][4], 1);
  1999. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][4], 1);
  2000. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][4], 1);
  2001. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][4], 255);
  2002. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][4], 79.000000, 61.000000);
  2003. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][4], 11738);
  2004. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][4], 1.000000, 1.000000, 1.000000, 1.000000);
  2005. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][4], 1);
  2006.  
  2007. INV_SLOTS[playerid][5] = CreatePlayerTextDraw(playerid,408.000000, 133.000000, "Item05");
  2008. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][5], -2021161216);
  2009. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][5], 5);
  2010. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][5], 0.500000, 1.000000);
  2011. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][5], -1);
  2012. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][5], 0);
  2013. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][5], 1);
  2014. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][5], 1);
  2015. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][5], 1);
  2016. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][5], 255);
  2017. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][5], 79.000000, 61.000000);
  2018. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][5], 11738);
  2019. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][5], 1.000000, 1.000000, 1.000000, 1.000000);
  2020. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][5], 1);
  2021.  
  2022. INV_SLOTS[playerid][6] = CreatePlayerTextDraw(playerid,112.000000, 175.000000, "Item06");
  2023. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][6], -2021161216);
  2024. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][6], 5);
  2025. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][6], 0.500000, 1.000000);
  2026. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][6], -1);
  2027. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][6], 0);
  2028. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][6], 1);
  2029. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][6], 1);
  2030. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][6], 1);
  2031. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][6], 255);
  2032. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][6], 79.000000, 61.000000);
  2033. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][6], 11738);
  2034. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][6], 1.000000, 1.000000, 1.000000, 1.000000);
  2035. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][6], 1);
  2036.  
  2037. INV_SLOTS[playerid][7] = CreatePlayerTextDraw(playerid,112.000000, 216.000000, "Item07");
  2038. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][7], -2021161216);
  2039. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][7], 5);
  2040. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][7], 0.500000, 1.000000);
  2041. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][7], -1);
  2042. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][7], 0);
  2043. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][7], 1);
  2044. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][7], 1);
  2045. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][7], 1);
  2046. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][7], 255);
  2047. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][7], 79.000000, 61.000000);
  2048. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][7], 11738);
  2049. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][7], 1.000000, 1.000000, 1.000000, 1.000000);
  2050. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][7], 1);
  2051.  
  2052. INV_SLOTS[playerid][8] = CreatePlayerTextDraw(playerid,112.000000, 258.000000, "Item08");
  2053. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][8], -2021161216);
  2054. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][8], 5);
  2055. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][8], 0.500000, 1.000000);
  2056. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][8], -1);
  2057. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][8], 0);
  2058. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][8], 1);
  2059. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][8], 1);
  2060. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][8], 1);
  2061. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][8], 255);
  2062. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][8], 79.000000, 61.000000);
  2063. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][8], 11738);
  2064. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][8], 1.000000, 1.000000, 1.000000, 1.000000);
  2065. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][8], 1);
  2066.  
  2067. INV_SLOTS[playerid][9] = CreatePlayerTextDraw(playerid,170.000000, 258.000000, "Item09");
  2068. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][9], -2021161216);
  2069. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][9], 5);
  2070. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][9], 0.500000, 1.000000);
  2071. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][9], -1);
  2072. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][9], 0);
  2073. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][9], 1);
  2074. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][9], 1);
  2075. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][9], 1);
  2076. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][9], 255);
  2077. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][9], 79.000000, 61.000000);
  2078. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][9], 11738);
  2079. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][9], 1.000000, 1.000000, 1.000000, 1.000000);
  2080. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][9], 1);
  2081.  
  2082. INV_SLOTS[playerid][10] = CreatePlayerTextDraw(playerid,229.000000, 258.000000, "Item10");
  2083. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][10], -2021161216);
  2084. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][10], 5);
  2085. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][10], 0.500000, 1.000000);
  2086. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][10], -1);
  2087. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][10], 0);
  2088. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][10], 1);
  2089. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][10], 1);
  2090. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][10], 1);
  2091. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][10], 255);
  2092. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][10], 79.000000, 61.000000);
  2093. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][10], 11738);
  2094. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][10], 1.000000, 1.000000, 1.000000, 1.000000);
  2095. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][10], 1);
  2096.  
  2097. INV_SLOTS[playerid][11] = CreatePlayerTextDraw(playerid,287.000000, 258.000000, "Item11");
  2098. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][11], -2021161216);
  2099. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][11], 5);
  2100. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][11], 0.500000, 1.000000);
  2101. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][11], -1);
  2102. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][11], 0);
  2103. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][11], 1);
  2104. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][11], 1);
  2105. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][11], 1);
  2106. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][11], 255);
  2107. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][11], 79.000000, 61.000000);
  2108. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][11], 11738);
  2109. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][11], 1.000000, 1.000000, 1.000000, 1.000000);
  2110. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][11], 1);
  2111.  
  2112. INV_SLOTS[playerid][12] = CreatePlayerTextDraw(playerid,348.000000, 258.000000, "Item12");
  2113. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][12], -2021161216);
  2114. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][12], 5);
  2115. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][12], 0.500000, 1.000000);
  2116. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][12], -1);
  2117. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][12], 0);
  2118. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][12], 1);
  2119. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][12], 1);
  2120. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][12], 1);
  2121. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][12], 255);
  2122. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][12], 79.000000, 61.000000);
  2123. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][12], 11738);
  2124. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][12], 1.000000, 1.000000, 1.000000, 1.000000);
  2125. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][12], 1);
  2126.  
  2127. INV_SLOTS[playerid][13] = CreatePlayerTextDraw(playerid,407.000000, 258.000000, "Item13");
  2128. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][13], -2021161216);
  2129. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][13], 5);
  2130. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][13], 0.500000, 1.000000);
  2131. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][13], -1);
  2132. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][13], 0);
  2133. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][13], 1);
  2134. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][13], 1);
  2135. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][13], 1);
  2136. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][13], 255);
  2137. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][13], 79.000000, 61.000000);
  2138. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][13], 11738);
  2139. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][13], 1.000000, 1.000000, 1.000000, 1.000000);
  2140. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][13], 1);
  2141.  
  2142. INV_SLOTS[playerid][14] = CreatePlayerTextDraw(playerid,407.000000, 215.000000, "Item14");
  2143. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][14], -2021161216);
  2144. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][14], 5);
  2145. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][14], 0.500000, 1.000000);
  2146. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][14], -1);
  2147. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][14], 0);
  2148. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][14], 1);
  2149. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][14], 1);
  2150. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][14], 1);
  2151. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][14], 255);
  2152. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][14], 79.000000, 61.000000);
  2153. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][14], 11738);
  2154. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][14], 1.000000, 1.000000, 1.000000, 1.000000);
  2155. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][14], 1);
  2156.  
  2157. INV_SLOTS[playerid][15] = CreatePlayerTextDraw(playerid,347.000000, 215.000000, "Item15");
  2158. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][15], -2021161216);
  2159. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][15], 5);
  2160. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][15], 0.500000, 1.000000);
  2161. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][15], -1);
  2162. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][15], 0);
  2163. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][15], 1);
  2164. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][15], 1);
  2165. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][15], 1);
  2166. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][15], 255);
  2167. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][15], 79.000000, 61.000000);
  2168. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][15], 11738);
  2169. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][15], 1.000000, 1.000000, 1.000000, 1.000000);
  2170. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][15], 1);
  2171.  
  2172. INV_SLOTS[playerid][16] = CreatePlayerTextDraw(playerid,289.000000, 215.000000, "Item16");
  2173. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][16], -2021161216);
  2174. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][16], 5);
  2175. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][16], 0.500000, 1.000000);
  2176. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][16], -1);
  2177. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][16], 0);
  2178. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][16], 1);
  2179. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][16], 1);
  2180. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][16], 1);
  2181. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][16], 255);
  2182. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][16], 79.000000, 61.000000);
  2183. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][16], 11738);
  2184. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][16], 1.000000, 1.000000, 1.000000, 1.000000);
  2185. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][16], 1);
  2186.  
  2187. INV_SLOTS[playerid][17] = CreatePlayerTextDraw(playerid,229.000000, 215.000000, "Item17");
  2188. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][17], -2021161216);
  2189. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][17], 5);
  2190. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][17], 0.500000, 1.000000);
  2191. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][17], -1);
  2192. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][17], 0);
  2193. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][17], 1);
  2194. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][17], 1);
  2195. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][17], 1);
  2196. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][17], 255);
  2197. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][17], 79.000000, 61.000000);
  2198. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][17], 11738);
  2199. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][17], 1.000000, 1.000000, 1.000000, 1.000000);
  2200. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][17], 1);
  2201.  
  2202. INV_SLOTS[playerid][18] = CreatePlayerTextDraw(playerid,169.000000, 215.000000, "Item18");
  2203. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][18], -2021161216);
  2204. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][18], 5);
  2205. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][18], 0.500000, 1.000000);
  2206. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][18], -1);
  2207. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][18], 0);
  2208. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][18], 1);
  2209. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][18], 1);
  2210. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][18], 1);
  2211. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][18], 255);
  2212. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][18], 79.000000, 61.000000);
  2213. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][18], 11738);
  2214. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][18], 1.000000, 1.000000, 1.000000, 1.000000);
  2215. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][18], 1);
  2216.  
  2217. INV_SLOTS[playerid][19] = CreatePlayerTextDraw(playerid,169.000000, 176.000000, "Item19");
  2218. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][19], -2021161216);
  2219. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][19], 5);
  2220. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][19], 0.500000, 1.000000);
  2221. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][19], -1);
  2222. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][19], 0);
  2223. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][19], 1);
  2224. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][19], 1);
  2225. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][19], 1);
  2226. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][19], 255);
  2227. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][19], 79.000000, 61.000000);
  2228. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][19], 11738);
  2229. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][19], 1.000000, 1.000000, 1.000000, 1.000000);
  2230. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][19], 1);
  2231.  
  2232. INV_SLOTS[playerid][20] = CreatePlayerTextDraw(playerid,228.000000, 176.000000, "Item20");
  2233. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][20], -2021161216);
  2234. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][20], 5);
  2235. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][20], 0.500000, 1.000000);
  2236. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][20], -1);
  2237. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][20], 0);
  2238. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][20], 1);
  2239. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][20], 1);
  2240. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][20], 1);
  2241. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][20], 255);
  2242. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][20], 79.000000, 61.000000);
  2243. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][20], 11738);
  2244. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][20], 1.000000, 1.000000, 1.000000, 1.000000);
  2245. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][20], 1);
  2246.  
  2247. INV_SLOTS[playerid][21] = CreatePlayerTextDraw(playerid,289.000000, 176.000000, "Item21");
  2248. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][21], -2021161216);
  2249. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][21], 5);
  2250. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][21], 0.500000, 1.000000);
  2251. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][21], -1);
  2252. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][21], 0);
  2253. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][21], 1);
  2254. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][21], 1);
  2255. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][21], 1);
  2256. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][21], 255);
  2257. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][21], 79.000000, 61.000000);
  2258. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][21], 11738);
  2259. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][21], 1.000000, 1.000000, 1.000000, 1.000000);
  2260. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][21], 1);
  2261.  
  2262. INV_SLOTS[playerid][22] = CreatePlayerTextDraw(playerid,348.000000, 176.000000, "Item22");
  2263. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][22], -2021161216);
  2264. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][22], 5);
  2265. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][22], 0.500000, 1.000000);
  2266. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][22], -1);
  2267. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][22], 0);
  2268. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][22], 1);
  2269. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][22], 1);
  2270. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][22], 1);
  2271. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][22], 255);
  2272. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][22], 79.000000, 61.000000);
  2273. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][22], 11738);
  2274. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][22], 1.000000, 1.000000, 1.000000, 1.000000);
  2275. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][22], 1);
  2276.  
  2277. INV_SLOTS[playerid][23] = CreatePlayerTextDraw(playerid,407.000000, 176.000000, "Item23");
  2278. PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][23], -2021161216);
  2279. PlayerTextDrawFont(playerid,INV_SLOTS[playerid][23], 5);
  2280. PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][23], 0.500000, 1.000000);
  2281. PlayerTextDrawColor(playerid,INV_SLOTS[playerid][23], -1);
  2282. PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][23], 0);
  2283. PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][23], 1);
  2284. PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][23], 1);
  2285. PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][23], 1);
  2286. PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][23], 255);
  2287. PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][23], 79.000000, 61.000000);
  2288. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][23], 11738);
  2289. PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][23], 1.000000, 1.000000, 1.000000, 1.000000);
  2290. PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][23], 1);
  2291. return 1;
  2292. }
  2293.  
  2294. public OnGameModeExit()
  2295. {
  2296. for(new i; i < MAX_BASES; i++)
  2297. {
  2298. if(Base[i][Existe]) SalvarBases(i);
  2299. }
  2300. for(new i; i < MAX_BANCADAS; i++)
  2301. {
  2302. if(Bancada[i][Existe]) SalvarBancadas(i);
  2303. }
  2304. for(new i; i < MAX_PORTAS; i++)
  2305. {
  2306. if(Porta[i][Existe]) SalvarPortas(i);
  2307. }
  2308. for(new i; i < MAX_BAU; i++)
  2309. {
  2310. if(Bau[i][Existe]) SalvarBaus(i);
  2311. }
  2312. for(new i; i < MAX_RAMPAS; i++)
  2313. {
  2314. if(Rampa[i][Existe]) SalvarRampas(i);
  2315. }
  2316. for(new i; i < MAX_DOOR; i++)
  2317. {
  2318. if(Door[i][Existe]) SalvarDoor(i);
  2319. }
  2320. for(new i; i < MAX_CAMA; i++)
  2321. {
  2322. if(Cama[i][Existe]) SalvarCama(i);
  2323. }
  2324. for(new i; i < MAX_WINDOWN; i++)
  2325. {
  2326. if(Windown[i][Existe]) SalvarWindowns(i);
  2327. }
  2328. for(new i; i < MAX_FORNO; i++)
  2329. {
  2330. if(Forno[i][Existe]) SalvarForno(i);
  2331. }
  2332. HideProgressBarForAll(FomeA);
  2333. HideProgressBarForAll(SedeB);
  2334. HideProgressBarForAll(FrioD);
  2335. DOF2_Exit();
  2336. return 1;
  2337. }
  2338.  
  2339. public OnPlayerRequestClass(playerid, classid)
  2340. {
  2341. TogglePlayerSpectating(playerid, 1);
  2342. InterpolateCameraPos(playerid, -2397.553710, 1436.038452, 140.798019, -2876.055175, 1382.189697, 159.150161, 17000);
  2343. InterpolateCameraLookAt(playerid, -2401.776855, 1438.431640, 139.599197, -2872.188964, 1384.818359, 157.377395, 17000);
  2344. return 1;
  2345. }
  2346.  
  2347. public OnPlayerConnect(playerid)
  2348. {
  2349. SetPlayerColor(playerid, 0xFFFFFFAA);
  2350. TogglePlayerClock(playerid, 1);
  2351. SetPlayerTime(playerid, 0, 0);
  2352. EditBaseID[playerid] = -1;
  2353. EditBancadaID[playerid] = -1;
  2354. EditPortaID[playerid] = -1;
  2355. EditBauID[playerid] = -1;
  2356. EditRampaID[playerid] = -1;
  2357. EditDoorID[playerid] = -1;
  2358. EditCamaID[playerid] = -1;
  2359. EditWindownID[playerid] = -1;
  2360. EditFornoID[playerid] = -1;
  2361. PortaAberta[playerid] = false;
  2362. pInfo[playerid][pSlots] = 0;
  2363. pInfo[playerid][pBackpack] = 24;
  2364. new strdialog[512];
  2365. format(arquivo1, sizeof arquivo1, "lang/%s.ini",Nome(playerid));
  2366. idioma[playerid] = DOF2_GetInt(arquivo1,"Idioma"); // Puxa o idioma do arquivo
  2367. if(idioma[playerid]==0)
  2368. {
  2369. format(strdialog, sizeof(strdialog),"%s%s",strdialog, "Selecione seu idioma/Select your langague");
  2370. return ShowPlayerDialog(playerid, 9548, DIALOG_STYLE_MSGBOX, "Idioma/Langague", strdialog, "Português", "English");
  2371. }
  2372. if(idioma[playerid]==PT)format(string1, sizeof string1,"%s logou", Nome(playerid)); // String em português
  2373. if(idioma[playerid]==EN)format(string1, sizeof string1,"%s login", Nome(playerid)); // String em inglês
  2374. SendClientMessageToAll(verde,string1);
  2375. //================================================
  2376. SedeT[playerid] = CreatePlayerTextDraw(playerid,564.000000, 111.000000, "");
  2377. PlayerTextDrawBackgroundColor(playerid, SedeT[playerid], 255);
  2378. PlayerTextDrawFont(playerid, SedeT[playerid], 0);
  2379. PlayerTextDrawLetterSize(playerid, SedeT[playerid], 0.320000, 1.100000);
  2380. PlayerTextDrawColor(playerid, SedeT[playerid], 0xFFFFFFFF);
  2381. PlayerTextDrawSetOutline(playerid, SedeT[playerid], 1);
  2382. PlayerTextDrawSetProportional(playerid, SedeT[playerid], 1);
  2383. return 1;
  2384. }
  2385.  
  2386. public OnPlayerDisconnect(playerid, reason)
  2387. {
  2388. SalvarPlayer(playerid);
  2389. return 1;
  2390. }
  2391.  
  2392. public OnPlayerSpawn(playerid)
  2393. {
  2394. SetPlayerPos(playerid, -601.9653,-2654.6538,136.7200);
  2395. SetPlayerAttachedObject(playerid, 1,371,1,0.01,-0.1,0.0,0.0,90.0,0.0,0.9,1.0,0.9,-1,0);
  2396. GivePlayerWeapon(playerid, 4, 1);
  2397. GangZoneShowForPlayer(playerid, BlackRadar, 0x000000FF);
  2398. GangZoneShowForPlayer(playerid, RadarPreto, 0x000000FF);
  2399. SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
  2400. PlayerTextDrawShow(playerid, SedeT[playerid]);
  2401. TextDrawShowForPlayer(playerid, FrioT);
  2402. TextDrawShowForPlayer(playerid, DataC);
  2403. TextDrawShowForPlayer(playerid, forum1);
  2404. TextDrawShowForPlayer(playerid, forum2);
  2405. TextDrawShowForPlayer(playerid, forum3);
  2406. TextDrawShowForPlayer(playerid, barrinha1);
  2407. TextDrawShowForPlayer(playerid, barrinha2);
  2408. TextDrawShowForPlayer(playerid, Textdraw0);
  2409. TextDrawShowForPlayer(playerid, TextGPS);
  2410. TextDrawShowForPlayer(playerid, TextCash1);
  2411. TextDrawShowForPlayer(playerid, TextCash2);
  2412. TextDrawShowForPlayer(playerid, TextCash3);
  2413. TextDrawShowForPlayer(playerid, TextDin0);
  2414. TextDrawShowForPlayer(playerid, TextDin1);
  2415. TextDrawShowForPlayer(playerid, TextDin2);
  2416. TextDrawShowForPlayer(playerid, sprite1);
  2417. TextDrawShowForPlayer(playerid, sprite2);
  2418. PlayerTextDrawHide(playerid,PlayerRegistro[0]);
  2419. SetPVarInt(playerid,"Fome", 99);
  2420. ShowProgressBarForPlayer(playerid, FomeA);
  2421. SetPVarInt(playerid,"Sede", 99);
  2422. ShowProgressBarForPlayer(playerid, SedeB);
  2423. SetPVarInt(playerid,"Frio", 99);
  2424. ShowProgressBarForPlayer(playerid, FrioD);
  2425. new Nami[24];
  2426. format(Nami,sizeof(Nami),"%s", Nome(playerid));
  2427. TextDrawSetString(TextDin1, Nami);
  2428. //============================================================================//
  2429. SetTimerEx("Fome",FomeTempo, 120000, "i", playerid);
  2430. SetTimerEx("Sede",SedeTempo, 60000, "i", playerid);
  2431. SetTimerEx("Frio",FrioTempo, 180000, "i", playerid);
  2432. SetTimerEx("Correction", 1000, true, "i", playerid);
  2433. SetTimer("Relogio",1000,true);
  2434. return 1;
  2435. }
  2436.  
  2437. public OnPlayerDeath(playerid, killerid, reason)
  2438. {
  2439. if(killerid != INVALID_PLAYER_ID)
  2440. {
  2441. SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
  2442. PlayerInfo[playerid][Cash] += 1;
  2443. SalvarPlayer(playerid);
  2444. }
  2445. GameTextForPlayer(playerid, "~r~Voce Morreu", 5000, 1);
  2446. SetProgressBarValue(FomeA, 100);
  2447. UpdateProgressBar(FomeA,playerid);
  2448. SetPVarInt(playerid,"Fome", 100);
  2449. SetProgressBarValue(SedeB, 100);
  2450. UpdateProgressBar(SedeB,playerid);
  2451. SetPVarInt(playerid,"Sede", 100);
  2452. SetProgressBarValue(FrioD, 100);
  2453. UpdateProgressBar(FrioD,playerid);
  2454. SetPVarInt(playerid,"Frio", 100);
  2455. return 1;
  2456. }
  2457.  
  2458. public OnVehicleSpawn(vehicleid)
  2459. {
  2460. return 1;
  2461. }
  2462.  
  2463. public OnVehicleDeath(vehicleid, killerid)
  2464. {
  2465. return 1;
  2466. }
  2467.  
  2468. public OnPlayerText(playerid, text[])
  2469. {
  2470. if(PlayerInfo[playerid][Logado] == false) return 0;
  2471.  
  2472. if(calado[playerid] == true)
  2473. {
  2474. SendClientMessage(playerid,fail,"[!] Você foi calado e não poderá mais falar.");
  2475. return 0;
  2476. }
  2477. return 1;
  2478. }
  2479.  
  2480. public OnPlayerCommandText(playerid, cmdtext[])
  2481. {
  2482. if (strcmp(cmdtext, "/camera", true) == 0)
  2483. {
  2484. if(pUsarCamera[playerid] == 0)
  2485. {
  2486. SendClientMessage(playerid, -1, "Pronto! Agora você podera usar camera em primeira pessoa!");
  2487. SendClientMessage(playerid, -1, "Para usar pressione e tecla de barra invertida ou use /primeiro.");
  2488. pUsarCamera[playerid] = 1;
  2489. }
  2490. else if(pUsarCamera[playerid] == 1)
  2491. {
  2492. if(pPrimeiro[playerid] == 0)//camera desligada
  2493. {
  2494. SendClientMessage(playerid, VERMELHO, "Ativação desligada! Você desabilitou a camera em primeira pessoa.");
  2495. pUsarCamera[playerid] = 0;
  2496. }
  2497. else
  2498. {
  2499. SendClientMessage(playerid, VERDE, " Sua camera esta ativada, desative-a antes.");
  2500. }
  2501. }
  2502. return true;
  2503. }
  2504. if(strcmp(cmdtext, "/primeira", true) == 0)
  2505. {
  2506. if(pUsarCamera[playerid] == 1)
  2507. {
  2508. if(IsPlayerInAnyVehicle(playerid))
  2509. {
  2510. SendClientMessage(playerid,VERDE,"Você não pode usar essa camêra em um veiculo!");
  2511. }
  2512. if(pPrimeiro[playerid] == 0)
  2513. {
  2514. CameraPrimeira(playerid,1);
  2515. GameTextForPlayer(playerid, "~w~camera~g~ ligada", 5000, 6);
  2516. pPrimeiro[playerid] = 1;//ligou a camera
  2517. }
  2518. else
  2519. {
  2520. pPrimeiro[playerid] = 0;
  2521. GameTextForPlayer(playerid, "~w~camera~r~ desligada", 5000, 6);
  2522. CameraPrimeira(playerid,0);
  2523. }
  2524. }
  2525. else
  2526. {
  2527. SendClientMessage(playerid, VERDE, "Para poder usar camera em primeira pessoa tera que usar /camera antes!");
  2528. }
  2529. return 1;
  2530. }
  2531. if(strcmp(cmdtext, "/bandito", true) == 0)
  2532. {
  2533. if(PlayerInfo[playerid][Madeira] >= 1)
  2534. {
  2535. new Float:X, Float:Y, Float:Z, Float:A;
  2536. GetPlayerPos(playerid, X, Y, Z);
  2537. GetPlayerFacingAngle(playerid, A);
  2538. CreateVehicle(568, X, Y+2, Z+1, A+180, -1, -1, 60);
  2539. GameTextForPlayer(playerid, "~b~BANDITAO", 200, 0);
  2540. PlayerInfo[playerid][Madeira] -= 1;
  2541. }
  2542. return 1;
  2543. }
  2544. if(strcmp(cmdtext, "/inv", true) == 0 || strcmp(cmdtext, "/inventario", true) == 0)
  2545. {
  2546. MostrarInventario(playerid);
  2547. return 1;
  2548. }
  2549. if(strcmp(cmdtext, "/kit basico", true) == 0 || strcmp(cmdtext, "/kit basic", true) == 0)
  2550. {
  2551. if(PegouPresente[playerid] == 0)
  2552. {
  2553. SetPlayerArmour(playerid, 25.0);
  2554. GivePlayerWeapon(playerid, 33, 10);
  2555. GivePlayerWeapon(playerid, 1, 1);
  2556. GivePlayerWeapon(playerid, 4, 1);
  2557. PegouPresente[playerid] = 1;
  2558. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] O Player {FFFFFF}%s {FF6600}acabou de pegar seu kit basico, pegue você tambem digite: {FFFFFF}/kit basico", Nome(playerid)); // String em português
  2559. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Player {FFFFFF}%s {FF6600}just got his kit basic, get you also type: {FFFFFF}/kit basic", Nome(playerid)); // String em inglês
  2560. SendClientMessageToAll(LARANJA, string1);
  2561. SetTimer("Payday", 1800000, 0);
  2562. }
  2563. else if(PegouPresente[playerid] == 1)
  2564. {
  2565. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você já pegou seu kit basico, espere 20 minutos para pegar de novo!"); // String em português
  2566. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You already got your kit basics, wait 20 minutes to get it again!"); // String em inglês
  2567. SendClientMessageToAll(fail, string1);
  2568. }
  2569. return 1;
  2570. }
  2571. if(strcmp(cmdtext, "/editar bau", true) == 0)
  2572. {
  2573. if(EditBauID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2574. new id = GetPlayerRangeBau(playerid);
  2575. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2576. if(strcmp(Bau[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2577. EditBauID[playerid] = id;
  2578. EditDynamicObject(playerid, Bau[id][ObjectD]);
  2579. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2580. return 1;
  2581. }
  2582. if(strcmp(cmdtext, "/editar cama", true) == 0)
  2583. {
  2584. if(EditCamaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2585. new id = GetPlayerRangeCama(playerid);
  2586. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2587. if(strcmp(Cama[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2588. EditCamaID[playerid] = id;
  2589. EditDynamicObject(playerid, Cama[id][ObjectG]);
  2590. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2591. return 1;
  2592. }
  2593. if(strcmp(cmdtext, "/editar forno", true) == 0)
  2594. {
  2595. if(EditFornoID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2596. new id = GetPlayerRangeForno(playerid);
  2597. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2598. if(strcmp(Forno[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2599. EditFornoID[playerid] = id;
  2600. EditDynamicObject(playerid, Forno[id][ObjectJ]);
  2601. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2602. return 1;
  2603. }
  2604. if(strcmp(cmdtext, "/editar windown", true) == 0)
  2605. {
  2606. if(EditWindownID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2607. new id = GetPlayerRangeWindown(playerid);
  2608. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2609. if(strcmp(Windown[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2610. EditWindownID[playerid] = id;
  2611. EditDynamicObject(playerid, Windown[id][ObjectH]);
  2612. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2613. return 1;
  2614. }
  2615. if(strcmp(cmdtext, "/editar door", true) == 0)
  2616. {
  2617. if(EditDoorID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2618. new id = GetPlayerRangeDoor(playerid);
  2619. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2620. if(strcmp(Door[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2621. EditDoorID[playerid] = id;
  2622. EditDynamicObject(playerid, Door[id][ObjectF]);
  2623. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2624. return 1;
  2625. }
  2626. if(strcmp(cmdtext, "/editar rampa", true) == 0)
  2627. {
  2628. if(EditRampaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2629. new id = GetPlayerRangeRampa(playerid);
  2630. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2631. if(strcmp(Rampa[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2632. EditRampaID[playerid] = id;
  2633. EditDynamicObject(playerid, Rampa[id][ObjectE]);
  2634. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2635. return 1;
  2636. }
  2637. if(strcmp(cmdtext, "/editar porta", true) == 0)
  2638. {
  2639. if(EditPortaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2640. new id = GetPlayerRangePorta(playerid);
  2641. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2642. if(strcmp(Porta[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2643. EditPortaID[playerid] = id;
  2644. EditDynamicObject(playerid, Porta[id][ObjectC]);
  2645. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2646. return 1;
  2647. }
  2648. if(strcmp(cmdtext, "/editar bancada", true) == 0)
  2649. {
  2650. if(EditBancadaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2651. new id = GetPlayerRangeBancada(playerid);
  2652. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2653. if(strcmp(Bancada[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2654. EditBancadaID[playerid] = id;
  2655. EditDynamicObject(playerid, Bancada[id][ObjectA]);
  2656. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2657. return 1;
  2658. }
  2659. if(strcmp(cmdtext, "/editar base", true) == 0)
  2660. {
  2661. if(EditBaseID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  2662. new id = GetPlayerRangeBase(playerid);
  2663. if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  2664. if(strcmp(Base[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  2665. EditBaseID[playerid] = id;
  2666. EditDynamicObject(playerid, Base[id][ObjectB]);
  2667. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  2668. return 1;
  2669. }
  2670. if(strcmp(cmdtext, "/beber agua", true) == 0)
  2671. {
  2672. if(PlayerInfo[playerid][Agua] >= 1)
  2673. {
  2674. PlayerInfo[playerid][Agua] -= 1;
  2675. SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+15);
  2676. SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
  2677. UpdateProgressBar(SedeB,playerid);
  2678. ApplyAnimation(playerid, "VENDING", "VEND_Drink2_P", 4.1, 0, 1, 1, 1, 1, 1);
  2679. SendClientMessage(playerid, COR_VERDE, "Você acabou de beber uma água e sua sede diminuiu.");
  2680. }
  2681. else if(PlayerInfo[playerid][Agua] == 0)
  2682. {
  2683. SendClientMessage(playerid, COR_VERMELHO, "Você não tem água para beber, vá buscar em um lago!");
  2684. }
  2685. return 1;
  2686. }
  2687. if(strcmp(cmdtext, "/comer fruta", true) == 0)
  2688. {
  2689. if(PlayerInfo[playerid][Frutas] >= 1)
  2690. {
  2691. PlayerInfo[playerid][Frutas] -= 1;
  2692. SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
  2693. SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
  2694. UpdateProgressBar(FomeA,playerid);
  2695. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  2696. SendClientMessage(playerid, COR_VERDE, "[!] Você comeu uma fruta e sua fome diminuiu.");
  2697. }
  2698. else if(PlayerInfo[playerid][Frutas] == 0)
  2699. {
  2700. SendClientMessage(playerid, COR_VERMELHO, "[!]Você não tem nenhuma fruta para comer!");
  2701. }
  2702. return 1;
  2703. }
  2704. if(strcmp(cmdtext, "/comer carne", true) == 0)
  2705. {
  2706. if(PlayerInfo[playerid][Carne] >= 1)
  2707. {
  2708. PlayerInfo[playerid][Carne] -= 1;
  2709. SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+20);
  2710. SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
  2711. UpdateProgressBar(FomeA,playerid);
  2712. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  2713. SendClientMessage(playerid, COR_VERDE, "Você comeu uma carne e sua fome diminuiu.");
  2714. }
  2715. else if(PlayerInfo[playerid][Carne] == 0)
  2716. {
  2717. SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhuma carne para comer!");
  2718. }
  2719. return 1;
  2720. }
  2721. if(strcmp(cmdtext, "/comer peixe", true) == 0)
  2722. {
  2723. if(PlayerInfo[playerid][Peixe] >= 1)
  2724. {
  2725. PlayerInfo[playerid][Peixe] -= 1;
  2726. SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+15);
  2727. SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
  2728. UpdateProgressBar(FomeA,playerid);
  2729. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  2730. SendClientMessage(playerid, COR_VERDE, "Você comeu um peixe e sua fome diminuiu.");
  2731. }
  2732. else if(PlayerInfo[playerid][Peixe] == 0)
  2733. {
  2734. SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhum peixe para comer!");
  2735. }
  2736. return 1;
  2737. }
  2738. if(strcmp(cmdtext, "/aquecer", true) == 0)
  2739. {
  2740. new Float:x, Float:y, Float:z;
  2741. Streamer_GetFloatData(STREAMER_TYPE_OBJECT, Fogarel, E_STREAMER_X, x);
  2742. Streamer_GetFloatData(STREAMER_TYPE_OBJECT, Fogarel, E_STREAMER_Y, y);
  2743. Streamer_GetFloatData(STREAMER_TYPE_OBJECT, Fogarel, E_STREAMER_Z, z);
  2744. if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, 0xFF0000FF, "Você não está perto de uma campfire!");
  2745. {
  2746. SetPVarInt(playerid,"Frio",GetPVarInt(playerid,"Frio")+100);
  2747. SetProgressBarValue(FrioD, GetPVarInt(playerid,"Frio"));
  2748. UpdateProgressBar(FrioD,playerid);
  2749. SendClientMessage(playerid,-1,"{FFFF00}Você se esquentou e por isso não está mais com frio!");
  2750. return 1;
  2751. }
  2752. }
  2753. if(strcmp(cmdtext, "/bandagem", true) == 0)
  2754. {
  2755. if(Bandagem[playerid] >= 1)
  2756. {
  2757. new Float:health;
  2758. GetPlayerHealth(playerid, health);
  2759. Bandagem[playerid] = Bandagem[playerid] -= 1;
  2760. SetPlayerHealth(playerid, health + 10);
  2761. SendClientMessage(playerid, COR_VERDE, "Você usou uma bandagem e curou 10 da sua vida!");
  2762. }
  2763. else if(Bandagem[playerid] == 0)
  2764. {
  2765. SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhuma bandagem!!");
  2766. }
  2767. return 1;
  2768. }
  2769. if(strcmp(cmdtext, "/remedio", true) == 0)
  2770. {
  2771. if(Remedio[playerid] >= 1)
  2772. {
  2773. new Float:health;
  2774. GetPlayerHealth(playerid, health);
  2775. Remedio[playerid] = Remedio[playerid] -= 1;
  2776. SetPlayerHealth(playerid, health + 30);
  2777. SendClientMessage(playerid, COR_VERDE, "Você usou um analgésico e curou 30 de sua vida!");
  2778. }
  2779. else if(Remedio[playerid] == 0)
  2780. {
  2781. SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhum analgésico!!");
  2782. }
  2783. return 1;
  2784. }
  2785. if(strcmp(cmdtext, "/pegar agua", true) == 0)
  2786. {
  2787. if(PlayerNoLugar(playerid,3.0,-722.4331,-2055.1331,6.3556) || PlayerNoLugar(playerid,3.0,-782.6783,-2038.8295,6.6471) || PlayerNoLugar(playerid,3.0,-805.0019,-1935.4814,6.3195) ||
  2788. PlayerNoLugar(playerid,3.0,-724.8286,-1873.4583,6.8128) || PlayerNoLugar(playerid,3.0, -706.3614,-1933.9801,6.4755))
  2789. {
  2790. GameTextForPlayer(playerid, "~w~Pegando ~n~~b~Agua", 1000, 1);
  2791. ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  2792. Valor2 [playerid] = 0 ;
  2793. ShowProgressBarForPlayer(playerid, Exemplo2); //mostra a bar pro player
  2794. SetProgressBarValue ( Exemplo, Valor2[playerid] ) ; //seta o valor dela
  2795. Baru2[playerid] = SetTimerEx("pegandoagua", 500, true, "i" , playerid) ;//inicia o timer
  2796. }
  2797. else
  2798. {
  2799. SendClientMessage(playerid, COR_VERMELHO, "[!] Você não pode pegar água aqui, procure por um lago!");
  2800. }
  2801. return 1;
  2802. }
  2803. if(strcmp(cmdtext, "/degolar", true) == 0)
  2804. {
  2805. if(BambiDead[playerid] == 1)
  2806. {
  2807. ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  2808. SetTimer("Degolado", 5000, 0);
  2809. }
  2810. else if(BambiDead[playerid] == 0)
  2811. {
  2812. SendClientMessage(playerid, COR_VERMELHO, "[!] Você não matou nenhum bambi!");
  2813. }
  2814. return 1;
  2815. }
  2816. if(strcmp(cmdtext, "/pescar", true) == 0)
  2817. {
  2818. if(PlayerNoLugar(playerid,3.0,-722.4331,-2055.1331,6.3556) || PlayerNoLugar(playerid,3.0,-782.6783,-2038.8295,6.6471) || PlayerNoLugar(playerid,3.0,-805.0019,-1935.4814,6.3195) ||
  2819. PlayerNoLugar(playerid,3.0,-724.8286,-1873.4583,6.8128) || PlayerNoLugar(playerid,3.0, -706.3614,-1933.9801,6.4755))
  2820. {
  2821. if(pPescando[playerid] == 1)
  2822. {
  2823. SetPlayerAttachedObject(playerid, 2, 18632, 6, 0.1, 0.05, 0.02, 270.0, 270.0, 0.0, 1.0, 1.0, 1.0);
  2824. GameTextForPlayer(playerid, "~w~Pescando ~n~~b~Aguarde...", 100, 1);
  2825. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  2826. SetTimer("Pescando", 10000, 0);
  2827. } else
  2828. {
  2829. SendClientMessage(playerid, COR_VERMELHO, "[!] Você já está pescando!");
  2830. }
  2831. }
  2832. else
  2833. {
  2834. SendClientMessage(playerid, COR_VERMELHO, "[!] Você não pode pescar aqui, procure por um lago!");
  2835. }
  2836. return 1;
  2837. }
  2838. if(strcmp(cmdtext, "/colher frutas", true) == 0)
  2839. {
  2840. if(PlayerNoLugar(playerid, 2.0, -748.5999800,-2453.7000,68.0000) || PlayerNoLugar(playerid, 2.0, -717.9000200,-2465.5000,68.1000) || PlayerNoLugar(playerid, 2.0, -718.5000,-2431.6001,62.0000) || PlayerNoLugar(playerid, 2.0, -691.0999800,-2438.5000,63.5000) ||
  2841. PlayerNoLugar(playerid, 2.0, -701.7000100,-2382.8000,49.0000) || PlayerNoLugar(playerid, 2.0, -576.0999800,-2230.5000,27.4000) || PlayerNoLugar(playerid, 2.0, -689.2000100,-2351.1001,36.8000) || PlayerNoLugar(playerid, 2.0, -645.4000200,-2373.2000,33.8000) ||
  2842. PlayerNoLugar(playerid, 2.0, -663.7998,-2349.5996,34.7000) || PlayerNoLugar(playerid, 2.0, -654.2998,-2321.5996,34.5000) || PlayerNoLugar(playerid, 2.0, -671.5996100,-2298.0996,28.3000) || PlayerNoLugar(playerid, 2.0, -632.2998,-2291.5000,27.8000) ||
  2843. PlayerNoLugar(playerid, 2.0, -599.5996100,-2264.7002,24.4000) || PlayerNoLugar(playerid, 2.0, -569.7999900,-2258.8000,25.9000) || PlayerNoLugar(playerid, 2.0, -1058.1000,-2456.8000,60.0000) || PlayerNoLugar(playerid, 2.0, -1090.2000,-2338.3999,49.8000) ||
  2844. PlayerNoLugar(playerid, 2.0, -1024.4004,-2431.2998,65.5000) || PlayerNoLugar(playerid, 2.0, -1055.0996,-2416.0996,58.9000) || PlayerNoLugar(playerid, 2.0, -1080.0996,-2355.0996,47.8000) || PlayerNoLugar(playerid, 2.0, -1106.7000,-2298.8999,41.9000) ||
  2845. PlayerNoLugar(playerid, 2.0, -1112.6000,-2332.5000,42.5000) || PlayerNoLugar(playerid, 2.0, -1092.7998,-2323.2998,51.7000) || PlayerNoLugar(playerid, 2.0, -1061.0000,-2309.7000,53.4000) || PlayerNoLugar(playerid, 2.0, -995.2999900,-2311.0000,61.8000) ||
  2846. PlayerNoLugar(playerid, 2.0, -968.0999800,-2339.3999,65.5000) || PlayerNoLugar(playerid, 2.0, -976.2000100,-2288.0000,58.7000) || PlayerNoLugar(playerid, 2.0, -908.0000,-2401.3999,58.4000) || PlayerNoLugar(playerid, 2.0, -943.7999900,-2499.8999,103.2000) ||
  2847. PlayerNoLugar(playerid, 2.0, -914.9003900,-2438.2002,80.1000) || PlayerNoLugar(playerid, 2.0, -945.7002,-2477.7002,99.3000) || PlayerNoLugar(playerid, 2.0, -764.5000,-2409.0000,64.0000) || PlayerNoLugar(playerid, 2.0, -690.4000200,-2191.7000,19.5000) ||
  2848. PlayerNoLugar(playerid, 2.0, -726.5000,-2197.8994,34.4000) || PlayerNoLugar(playerid, 2.0, -736.7998,-2213.0996,36.5000) || PlayerNoLugar(playerid, 2.0, -665.0000,-2180.5000,18.3000) || PlayerNoLugar(playerid, 2.0, -680.5000,-2166.5000,22.1000) ||
  2849. PlayerNoLugar(playerid, 2.0, -670.4000200,-2115.8000,25.5000) || PlayerNoLugar(playerid, 2.0, -659.0996100,-2126.5996,26.2000) || PlayerNoLugar(playerid, 2.0, -643.9000200,-2090.5000,27.7000) || PlayerNoLugar(playerid, 2.0, -690.7999900,-2137.0000,24.7000) ||
  2850. PlayerNoLugar(playerid, 2.0, -763.5999800,-2221.8000,21.6000) || PlayerNoLugar(playerid, 2.0, -863.4000200,-2274.2000,25.3000) || PlayerNoLugar(playerid, 2.0, -870.4003900,-2246.0000,26.5000) || PlayerNoLugar(playerid, 2.0, -902.9000200,-2259.5000,37.9000) ||
  2851. PlayerNoLugar(playerid, 2.0, -804.5000,-2297.3999,28.3000) || PlayerNoLugar(playerid, 2.0, -792.2000100,-2343.2000,43.4000) || PlayerNoLugar(playerid, 2.0, -809.4003900,-2328.5000,38.1000) || PlayerNoLugar(playerid, 2.0, -845.2000100,-2362.2000,57.7000) ||
  2852. PlayerNoLugar(playerid, 2.0, -576.7000100,-1995.9000,45.4000) || PlayerNoLugar(playerid, 2.0, -607.5996100,-2047.4004,40.2000) || PlayerNoLugar(playerid, 2.0, -572.7998,-2016.0000,47.0000) || PlayerNoLugar(playerid, 2.0, -587.5000,-1980.0000,42.1000) ||
  2853. PlayerNoLugar(playerid, 2.0, -603.7999900,-1948.3000,33.2000) || PlayerNoLugar(playerid, 2.0, -571.7998,-1952.5996,38.4000) || PlayerNoLugar(playerid, 2.0, -513.7999900,-2002.7000,47.5000) || PlayerNoLugar(playerid, 2.0, -519.2998,-1965.7002,41.4000) ||
  2854. PlayerNoLugar(playerid, 2.0, -531.2998,-1988.9004,46.2000) || PlayerNoLugar(playerid, 2.0, -657.2999900,-1838.5000,20.7000) || PlayerNoLugar(playerid, 2.0, -587.7999900,-1831.6000,29.3000) || PlayerNoLugar(playerid, 2.0, -613.7002,-1868.7002,16.1000) ||
  2855. PlayerNoLugar(playerid, 2.0, -557.5999800,-1858.4000,18.2000) || PlayerNoLugar(playerid, 2.0, -540.5000,-1843.0000,21.3000) || PlayerNoLugar(playerid, 2.0, -529.5000,-1862.7000,13.1000) || PlayerNoLugar(playerid, 2.0, -505.5000,-1854.0000,14.8000) ||
  2856. PlayerNoLugar(playerid, 2.0, -393.7999900,-1952.2000,19.2000) || PlayerNoLugar(playerid, 2.0, -398.1000100,-1971.5000,24.6000) || PlayerNoLugar(playerid, 2.0, -397.8999900,-2003.4000,30.4000) || PlayerNoLugar(playerid, 2.0, -423.2999900,-2083.8000,77.0000) ||
  2857. PlayerNoLugar(playerid, 2.0, -422.7000100,-2113.1001,83.8000) || PlayerNoLugar(playerid, 2.0, -456.1000100,-2094.7000,85.2000) || PlayerNoLugar(playerid, 2.0, -486.7999900,-2112.8999,89.0000) || PlayerNoLugar(playerid, 2.0, -453.0000,-2141.7000,87.8000) ||
  2858. PlayerNoLugar(playerid, 2.0, -568.5000,-2120.6001,70.0000) || PlayerNoLugar(playerid, 2.0, -537.0999800,-2126.1001,78.1000) || PlayerNoLugar(playerid, 2.0, -325.5000,-2588.3000,127.7000) || PlayerNoLugar(playerid, 2.0, -473.2998,-2203.0996,74.1000) ||
  2859. PlayerNoLugar(playerid, 2.0, -374.6000100,-2221.3999,65.9000) || PlayerNoLugar(playerid, 2.0, -348.2999900,-2301.8999,67.3000) || PlayerNoLugar(playerid, 2.0, -351.2000100,-2343.3999,82.3000) || PlayerNoLugar(playerid, 2.0, -295.7000100,-2380.5000,65.7000))
  2860. {
  2861. PlayerInfo[playerid][Frutas] += 5;
  2862. SendClientMessage(playerid, AZUL_AGUA, "[!] Você acabou de colher algumas frutas!");
  2863. }
  2864. else
  2865. {
  2866. SendClientMessage(playerid, COR_VERMELHO, "[!] Você não está perto de uma árvore de frutas!");
  2867. }
  2868. return 1;
  2869. }
  2870. if(strcmp(cmdtext, "/cmds", true) == 0 || strcmp(cmdtext, "/comandos", true) == 0)
  2871. {
  2872. if(IsPlayerConnected(playerid))
  2873. {
  2874. new meudialog[500];
  2875. strins(meudialog, "{33FF00} => Olá caro jogador, desejamos lhe um ótimo jogo no servidor, seja muito bem vindo aqui!\n", strlen(meudialog));
  2876. strins(meudialog, "{33FF00} => Abaixo iremos mostrar-lhe algums comandos do servidor!\n\n", strlen(meudialog));
  2877. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Materiais:{43BBDE} /cortar madeira, /pegar pedras, /procurar parafusos,\n", strlen(meudialog));
  2878. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Materiais:{43BBDE} /cozinhar stone [Produzir Ferro].\n", strlen(meudialog));
  2879. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Crafting:{43BBDE} /construir [Base/Cama/Bancada/Baú], /fabricar vara,\n", strlen(meudialog));
  2880. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Crafting:{43BBDE} /campfire, /fabricar rifle, /fabricar faca, /fabricar colete.\n", strlen(meudialog));
  2881. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Fome:{43BBDE} /colher [frutas], /comer [Fruta/Carne/Peixe].\n", strlen(meudialog));
  2882. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Fome:{43BBDE} /assar [Peixe/Carne].\n", strlen(meudialog));
  2883. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Sede:{43BBDE} /pegar agua /fazer suco, /beber [agua/suco].\n", strlen(meudialog));
  2884. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Frio:{43BBDE} /aquecer, /casaco.\n", strlen(meudialog));
  2885. strins(meudialog, "{43BBDE} =>{33FF00}Comandos Úteis:{43BBDE} /infocash, /admins, /bug, /cmds, /relatorio, /forum!\n", strlen(meudialog));
  2886. ShowPlayerDialog(playerid, 1281, DIALOG_STYLE_MSGBOX, "Comandos Island Survival", meudialog, "Entendido", "");
  2887. }
  2888. return 1;
  2889. }
  2890. if(strcmp(cmdtext, "/info", true) == 0)
  2891. {
  2892. new coordsstring[300];
  2893. new DialogStatus[2000];
  2894. format(coordsstring, sizeof(coordsstring), "{33FFFF}Social: {FFFFFF}Nome: {33FFFF}[%s] {FFFFFF}Level: {33FFFF}[%d] {FFFFFF}Cash: {33FFFF}[%d].\n", Nome(playerid), PlayerInfo[playerid][Level], PlayerInfo[playerid][Cash]);
  2895. strcat(DialogStatus,coordsstring);
  2896. format(coordsstring, sizeof(coordsstring), "{33FFFF}Materiais: {FFFFFF}Madeiras:{33FFFF}[%d] {FFFFFF}Pedras:{33FFFF}[%d] {FFFFFF}Metais:{33FFFF}[%d]\n", PlayerInfo[playerid][Madeira], PlayerInfo[playerid][Pedra], PlayerInfo[playerid][Metal]);
  2897. strcat(DialogStatus,coordsstring);
  2898. format(coordsstring, sizeof(coordsstring), "{33FFFF}Materiais: {FFFFFF}Cloth{33FFFF}[%d] {FFFFFF}Parafusos{33FFFF}[%d]\n", PlayerInfo[playerid][Cloth], PlayerInfo[playerid][Parafuso]);
  2899. strcat(DialogStatus,coordsstring);
  2900. format(coordsstring, sizeof(coordsstring), "{33FFFF}Alimentos: {FFFFFF}Peixes:{33FFFF}[%d] {FFFFFF}Carne:{33FFFF}[%d] {FFFFFF}Frutas:{33FFFF}[%d]\n", PlayerInfo[playerid][Peixe], PlayerInfo[playerid][Carne], PlayerInfo[playerid][Frutas]);
  2901. strcat(DialogStatus,coordsstring);
  2902. format(coordsstring, sizeof(coordsstring), "{33FFFF}Alimentos: {FFFFFF}Laranjas:{33FFFF}[%d] {FFFFFF}Aguas:{33FFFF}[%d] {FFFFFF}Sucos:{33FFFF}[%s]\n ", PlayerInfo[playerid][Level], PlayerInfo[playerid][Agua], PlayerInfo[playerid][Cash]);
  2903. strcat(DialogStatus,coordsstring);
  2904. ShowPlayerDialog(playerid, 8789, DIALOG_STYLE_MSGBOX, "{00F6F6}Informações\n", DialogStatus, "Fechar", "");
  2905. return 1;
  2906. }
  2907. if(strcmp(cmdtext, "/creditos", true) == 0)
  2908. {
  2909. new frank[500];
  2910. strins(frank, "{FFFFFF}================= Créditos do Survival the Island =================\n\n", strlen(frank));
  2911. strins(frank, "{FF0000}•{FFFFFF} GameMode criado totalmente do zero por: {FF0000}Power.\n", strlen(frank));
  2912. strins(frank, "{FF0000}•{FFFFFF} Fundadores do Survival the Island: {FF0000}Power e Mozart.\n", strlen(frank));
  2913. strins(frank, "{FF0000}•{FFFFFF} Mapper do Survival the Island: {FF0000}Power.\n", strlen(frank));
  2914. strins(frank, "{FF0000}•{FFFFFF} Agradecimentos por ajudas e tutoriais: {FF0000} Fórum SA-MP e Carlos001.\n", strlen(frank));
  2915. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Créditos do Survival the Island\n", frank, "Fechar", "");
  2916. return 1;
  2917. }
  2918. if(strcmp(cmdtext, "/infocash", true) == 0)
  2919. {
  2920. new frank2[410];
  2921. strins(frank2, "{00FF00} Plano 20 de Cash = {FF0000}R$ 5. {00FF00}Use: /forum e confira.\n", strlen(frank2));
  2922. strins(frank2, "{00FF00} Plano 50 de Cash = {FF0000}R$ 10. {00FF00}Use: /forum e confira.\n", strlen(frank2));
  2923. strins(frank2, "{00FF00} Plano 75 de Cash = {FF0000}R$ 15. {00FF00}Use: /forum e confira.\n", strlen(frank2));
  2924. strins(frank2, "{00FF00} Plano 100 de Cash = {FF0000}R$ 20. {00FF00}Use: /forum e confira.\n", strlen(frank2));
  2925. strins(frank2, "{00FFFF} Veja outros valores e promoções no nosso fórum. Use: /forum.\n", strlen(frank2));
  2926. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Planos Cash do Survival the Island\n", frank2, "Fechar", "");
  2927. return 1;
  2928. }
  2929. if(strcmp(cmdtext, "/loja", true) == 0)
  2930. {
  2931. if(PlayerInfo[playerid][Cash] < 1)
  2932. {
  2933. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem cash para acessar a loja!");
  2934. }
  2935. ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Loja de Cash","Armamentos\nMedicamentos\n","Aceitar","Cancelar");
  2936. return 1;
  2937. }
  2938. /* COMANDOS CRAFTING */
  2939. if(strcmp(cmdtext, "/construir", true) == 0 || strcmp(cmdtext, "/craft", true) == 0)
  2940. {
  2941. ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar");
  2942. return 1;
  2943. }
  2944. if(strcmp(cmdtext, "/construir tenda", true) == 0)
  2945. {
  2946. CreateTentP(playerid);
  2947. return 1;
  2948. }
  2949. if(strcmp(cmdtext, "/bancada", true) == 0)
  2950. {
  2951. for(new i; i < MAX_BANCADAS; i++)
  2952. {
  2953. if(IsPlayerInRangeOfPoint(playerid, 3.0, Bancada[i][PosX], Bancada[i][PosY], Bancada[i][PosZ]))
  2954. {
  2955. ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\n","Aceitar","Cancelar");
  2956. }
  2957. }
  2958. return 1;
  2959. }
  2960. if(strcmp(cmdtext, "/construir forno", true) == 0)
  2961. {
  2962. new id = -1;
  2963. for(new i; i < MAX_FORNO; i++)
  2964. {
  2965. if(!Forno[i][Existe])
  2966. {
  2967. id = i;
  2968. break;
  2969. }
  2970. }
  2971. new Float:X, Float:Y, Float:Z, Float: A;
  2972. GetPlayerPos(playerid, X, Y, Z);
  2973. GetPlayerFacingAngle(playerid, A);
  2974.  
  2975. Forno[id][Dono] = pName(playerid);
  2976. Forno[id][Existe] = 1;
  2977. Forno[id][PosX] = X;
  2978. Forno[id][PosY] = Y;
  2979. Forno[id][PosZ] = Z;
  2980. Forno[id][RZ] = A + 180;
  2981. Forno[id][ObjectJ] = CreateDynamicObject(forno, Forno[id][PosX], Forno[id][PosY], Forno[id][PosZ], Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
  2982. SendClientMessage(playerid, -1, "Forno criado com Sucesso");
  2983. SalvarForno(id);
  2984. return 1;
  2985. }
  2986. if(strcmp(cmdtext, "/construir cama", true) == 0)
  2987. {
  2988. new id = -1;
  2989. for(new i; i < MAX_CAMA; i++)
  2990. {
  2991. if(!Cama[i][Existe])
  2992. {
  2993. id = i;
  2994. break;
  2995. }
  2996. }
  2997. new Float:X, Float:Y, Float:Z, Float: A;
  2998. GetPlayerPos(playerid, X, Y, Z);
  2999. GetPlayerFacingAngle(playerid, A);
  3000.  
  3001. Cama[id][Dono] = pName(playerid);
  3002. Cama[id][Existe] = 1;
  3003. Cama[id][PosX] = X;
  3004. Cama[id][PosY] = Y;
  3005. Cama[id][PosZ] = Z;
  3006. Cama[id][RZ] = A + 180;
  3007. Cama[id][ObjectG] = CreateDynamicObject(cama, Cama[id][PosX], Cama[id][PosY], Cama[id][PosZ], Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
  3008. SendClientMessage(playerid, -1, "Cama criado com Sucesso");
  3009. SalvarCama(id);
  3010. return 1;
  3011. }
  3012. if(strcmp(cmdtext, "/construir windown", true) == 0)
  3013. {
  3014. new id = -1;
  3015. for(new i; i < MAX_WINDOWN; i++)
  3016. {
  3017. if(!Windown[i][Existe])
  3018. {
  3019. id = i;
  3020. break;
  3021. }
  3022. }
  3023. new Float:X, Float:Y, Float:Z, Float: A;
  3024. GetPlayerPos(playerid, X, Y, Z);
  3025. GetPlayerFacingAngle(playerid, A);
  3026.  
  3027. Windown[id][Dono] = pName(playerid);
  3028. Windown[id][Existe] = 1;
  3029. Windown[id][PosX] = X;
  3030. Windown[id][PosY] = Y;
  3031. Windown[id][PosZ] = Z;
  3032. Windown[id][RZ] = A + 180;
  3033. Windown[id][ObjectH] = CreateDynamicObject(windown1, Windown[id][PosX], Windown[id][PosY], Windown[id][PosZ], Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
  3034. SendClientMessage(playerid, -1, "windown criado com Sucesso");
  3035. SalvarWindowns(id);
  3036. return 1;
  3037. }
  3038. if(strcmp(cmdtext, "/construir walldoor", true) == 0)
  3039. {
  3040. new id = -1;
  3041. for(new i; i < MAX_DOOR; i++)
  3042. {
  3043. if(!Door[i][Existe])
  3044. {
  3045. id = i;
  3046. break;
  3047. }
  3048. }
  3049. new Float:X, Float:Y, Float:Z, Float: A;
  3050. GetPlayerPos(playerid, X, Y, Z);
  3051. GetPlayerFacingAngle(playerid, A);
  3052.  
  3053. Door[id][Dono] = pName(playerid);
  3054. Door[id][Existe] = 1;
  3055. Door[id][PosX] = X;
  3056. Door[id][PosY] = Y;
  3057. Door[id][PosZ] = Z;
  3058. Door[id][RZ] = A + 180;
  3059. Door[id][ObjectF] = CreateDynamicObject(walldoor, Door[id][PosX], Door[id][PosY], Door[id][PosZ], Door[id][RX], Door[id][RY], Door[id][RZ]);
  3060. SendClientMessage(playerid, -1, "Door criado com Sucesso");
  3061. SalvarDoor(id);
  3062. return 1;
  3063. }
  3064. if(strcmp(cmdtext, "/construir rampa", true) == 0)
  3065. {
  3066. new id = -1;
  3067. for(new i; i < MAX_RAMPAS; i++)
  3068. {
  3069. if(!Rampa[i][Existe])
  3070. {
  3071. id = i;
  3072. break;
  3073. }
  3074. }
  3075. new Float:X, Float:Y, Float:Z, Float: A;
  3076. GetPlayerPos(playerid, X, Y, Z);
  3077. GetPlayerFacingAngle(playerid, A);
  3078.  
  3079. Rampa[id][Dono] = pName(playerid);
  3080. Rampa[id][Existe] = 1;
  3081. Rampa[id][PosX] = X;
  3082. Rampa[id][PosY] = Y;
  3083. Rampa[id][PosZ] = Z;
  3084. Rampa[id][RZ] = A + 180;
  3085. Rampa[id][ObjectE] = CreateDynamicObject(rampa, Rampa[id][PosX], Rampa[id][PosY], Rampa[id][PosZ], Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
  3086. SendClientMessage(playerid, -1, "Rampa criado com Sucesso");
  3087. SalvarRampas(id);
  3088. return 1;
  3089. }
  3090. if(strcmp(cmdtext, "/construir bau", true) == 0)
  3091. {
  3092. new id = -1;
  3093. for(new i; i < MAX_BAU; i++)
  3094. {
  3095. if(!Bau[i][Existe])
  3096. {
  3097. id = i;
  3098. break;
  3099. }
  3100. }
  3101. new Float:X, Float:Y, Float:Z, Float: A;
  3102. GetPlayerPos(playerid, X, Y, Z);
  3103. GetPlayerFacingAngle(playerid, A);
  3104.  
  3105. Bau[id][Dono] = pName(playerid);
  3106. Bau[id][Existe] = 1;
  3107. Bau[id][PosX] = X;
  3108. Bau[id][PosY] = Y;
  3109. Bau[id][PosZ] = Z;
  3110. Bau[id][RZ] = A + 180;
  3111. Bau[id][ObjectD] = CreateDynamicObject(bau, Bau[id][PosX], Bau[id][PosY], Bau[id][PosZ], Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
  3112. SendClientMessage(playerid, -1, "Bau criado com Sucesso");
  3113. SalvarBaus(id);
  3114. return 1;
  3115. }
  3116. if(strcmp(cmdtext, "/construir porta", true) == 0)
  3117. {
  3118. new id = -1;
  3119. for(new i; i < MAX_PORTAS; i++)
  3120. {
  3121. if(!Porta[i][Existe])
  3122. {
  3123. id = i;
  3124. break;
  3125. }
  3126. }
  3127. new Float:X, Float:Y, Float:Z, Float: A;
  3128. GetPlayerPos(playerid, X, Y, Z);
  3129. GetPlayerFacingAngle(playerid, A);
  3130.  
  3131. Porta[id][Dono] = pName(playerid);
  3132. Porta[id][Existe] = 1;
  3133. Porta[id][PosX] = X;
  3134. Porta[id][PosY] = Y;
  3135. Porta[id][PosZ] = Z;
  3136. Porta[id][RZ] = A + 180;
  3137. Porta[id][ObjectC] = CreateDynamicObject(porta, Porta[id][PosX], Porta[id][PosY], Porta[id][PosZ], Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
  3138. SendClientMessage(playerid, -1, "Porta criada com Sucesso");
  3139. SalvarPortas(id);
  3140. return 1;
  3141. }
  3142. if(strcmp(cmdtext, "/construir bancada", true) == 0)
  3143. {
  3144. new id = -1;
  3145. for(new i; i < MAX_BANCADAS; i++)
  3146. {
  3147. if(!Bancada[i][Existe])
  3148. {
  3149. id = i;
  3150. break;
  3151. }
  3152. }
  3153. new Float:X, Float:Y, Float:Z, Float: A;
  3154. GetPlayerPos(playerid, X, Y, Z);
  3155. GetPlayerFacingAngle(playerid, A);
  3156.  
  3157. Bancada[id][Dono] = pName(playerid);
  3158. Bancada[id][Existe] = 1;
  3159. Bancada[id][PosX] = X;
  3160. Bancada[id][PosY] = Y;
  3161. Bancada[id][PosZ] = Z -1;
  3162. Bancada[id][RZ] = A + 180;
  3163. Bancada[id][ObjectA] = CreateDynamicObject(bancada, Bancada[id][PosX], Bancada[id][PosY], Bancada[id][PosZ], Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
  3164. SendClientMessage(playerid, -1, "Bancada criada com Sucesso");
  3165. SalvarBancadas(id);
  3166. return 1;
  3167. }
  3168. if(strcmp(cmdtext, "/construir base", true) == 0)
  3169. {
  3170. new id = -1;
  3171. for(new i; i < MAX_BASES; i++)
  3172. {
  3173. if(!Base[i][Existe])
  3174. {
  3175. id = i;
  3176. break;
  3177. }
  3178. }
  3179. new Float:X, Float:Y, Float:Z, Float: A;
  3180. GetPlayerPos(playerid, X, Y, Z);
  3181. GetPlayerFacingAngle(playerid, A);
  3182.  
  3183. Base[id][Dono] = pName(playerid);
  3184. Base[id][Existe] = 1;
  3185. Base[id][PosX] = X;
  3186. Base[id][PosY] = Y;
  3187. Base[id][PosZ] = Z+1;
  3188. Base[id][RZ] = A + 180;
  3189. Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX], Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
  3190. SendClientMessage(playerid, verde, "[!] Base criada com Sucesso");
  3191. SalvarBases(id);
  3192. return 1;
  3193. }
  3194. if(strcmp(cmdtext, "/campfire", true) == 0)
  3195. {
  3196. if(PlayerInfo[playerid][Madeira] >= 5)
  3197. {
  3198. if(Fogo[playerid] == 0)
  3199. {
  3200. GameTextForPlayer(playerid, "~r~Fazendo ~n~~w~campfire", 100, 1);
  3201. ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  3202. TogglePlayerControllable(playerid, 0);
  3203. SetTimer("campfire", 10000, 0);
  3204. }
  3205. else if(Fogo[playerid] == 1)
  3206. {
  3207. SendClientMessage(playerid, COR_VERMELHO, "Você já tem uma CampFire, espere até que ela apague!");
  3208. }
  3209. else if(PlayerInfo[playerid][Madeira] == 0)
  3210. {
  3211. SendClientMessage(playerid, COR_VERMELHO, "Você não tem as Madeira necessarias!");
  3212. }
  3213. }
  3214. return 1;
  3215. }
  3216. if(strcmp(cmdtext, "/usar tocha", true) == 0)
  3217. {
  3218. if(Tocha[playerid] >= 1)
  3219. {
  3220. SetPlayerAttachedObject(playerid, 1, 3525, 6, 0.1, 0.05, 0.02, 360.0, 360.0, 0.0, 1.0, 1.0, 1.0);
  3221. SendClientMessage(playerid, COR_VERDE, "Você usou sua tocha!");
  3222. SetTimer("ApagarTocha", 300000, 0);
  3223. }
  3224. else if(Tocha[playerid] == 0)
  3225. {
  3226. SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhuma tocha!!");
  3227. }
  3228. return 1;
  3229. }
  3230. if(strcmp(cmdtext, "/fazer tocha", true) == 0)
  3231. {
  3232. if(IsPlayerConnected(playerid))
  3233. {
  3234. if(Tocha[playerid] == 0)
  3235. {
  3236. if(PlayerInfo[playerid][Madeira] >= 1)
  3237. {
  3238. PlayerInfo[playerid][Madeira] -= 1;
  3239. SendClientMessage(playerid, COR_VERDE, "Você fez uma tocha para usa-la digite /usar tocha");
  3240. Tocha[playerid] += 1;
  3241. } else {
  3242. SendClientMessage(playerid, COR_VERMELHO, "Você não tem madira suficiente. Use: /ajuda.");
  3243. }
  3244. } else if(Tocha[playerid] >= 1){
  3245. SendClientMessage(playerid, COR_VERMELHO, "Você ja tem 1 tocha!");
  3246. }
  3247. }
  3248. return 1;
  3249. }
  3250. //comandos para destruir
  3251. if(strcmp(cmdtext, "/destruir forno", true) == 0)
  3252. {
  3253. new id = GetPlayerRangeForno(playerid);
  3254. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Forno!");
  3255. if(strcmp(Forno[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta Forno não é sua!");
  3256. DestroyDynamicObject(Forno[id][ObjectJ]);
  3257. Forno[id][Existe] = 0;
  3258. Forno[id][PosX] = 0;
  3259. Forno[id][PosY] = 0;
  3260. Forno[id][PosZ] = 0;
  3261. Forno[id][RX] = 0;
  3262. Forno[id][RY] = 0;
  3263. Forno[id][RZ] = 0;
  3264.  
  3265. new file[64];
  3266. format(file, sizeof(file), "Saves/Fornalhas/%d.ini", id);
  3267. if(DOF2_FileExists(file))
  3268. DOF2_RemoveFile(file);
  3269. SendClientMessage(playerid, -1, "Forno Apagada");
  3270. return 1;
  3271. }
  3272. if(strcmp(cmdtext, "/destruir cama", true) == 0)
  3273. {
  3274. new id = GetPlayerRangeCama(playerid);
  3275. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Cama!");
  3276. if(strcmp(Cama[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta cama não é sua!");
  3277. DestroyDynamicObject(Cama[id][ObjectG]);
  3278. Cama[id][Existe] = 0;
  3279. Cama[id][PosX] = 0;
  3280. Cama[id][PosY] = 0;
  3281. Cama[id][PosZ] = 0;
  3282. Cama[id][RX] = 0;
  3283. Cama[id][RY] = 0;
  3284. Cama[id][RZ] = 0;
  3285.  
  3286. new file[64];
  3287. format(file, sizeof(file), "Saves/Cama/%d.ini", id);
  3288. if(DOF2_FileExists(file))
  3289. DOF2_RemoveFile(file);
  3290. SendClientMessage(playerid, -1, "Cama Apagada");
  3291. return 1;
  3292. }
  3293. if(strcmp(cmdtext, "/destruir walldoor", true) == 0)
  3294. {
  3295. new id = GetPlayerRangeDoor(playerid);
  3296. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua WallDoor!");
  3297. if(strcmp(Door[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta WallDoor não é sua!");
  3298. DestroyDynamicObject(Door[id][ObjectF]);
  3299. Door[id][Existe] = 0;
  3300. Door[id][PosX] = 0;
  3301. Door[id][PosY] = 0;
  3302. Door[id][PosZ] = 0;
  3303. Door[id][RX] = 0;
  3304. Door[id][RY] = 0;
  3305. Door[id][RZ] = 0;
  3306.  
  3307. new file[64];
  3308. format(file, sizeof(file), "Saves/Door/%d.ini", id);
  3309. if(DOF2_FileExists(file))
  3310. DOF2_RemoveFile(file);
  3311. SendClientMessage(playerid, -1, "Door Apagada");
  3312. return 1;
  3313. }
  3314. if(strcmp(cmdtext, "/destruir rampa", true) == 0)
  3315. {
  3316. new id = GetPlayerRangeRampa(playerid);
  3317. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Rampa!");
  3318. if(strcmp(Rampa[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta rampa não é sua!");
  3319. DestroyDynamicObject(Rampa[id][ObjectE]);
  3320. Rampa[id][Existe] = 0;
  3321. Rampa[id][PosX] = 0;
  3322. Rampa[id][PosY] = 0;
  3323. Rampa[id][PosZ] = 0;
  3324. Rampa[id][RX] = 0;
  3325. Rampa[id][RY] = 0;
  3326. Rampa[id][RZ] = 0;
  3327.  
  3328. new file[64];
  3329. format(file, sizeof(file), "Saves/Rampas/%d.ini", id);
  3330. if(DOF2_FileExists(file))
  3331. DOF2_RemoveFile(file);
  3332. SendClientMessage(playerid, -1, "Rampa Apagada");
  3333. return 1;
  3334. }
  3335. if(strcmp(cmdtext, "/destruir bau", true) == 0)
  3336. {
  3337. new id = GetPlayerRangeBau(playerid);
  3338. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto do seu Baú!");
  3339. if(strcmp(Bau[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Este baú não é seu!");
  3340. DestroyDynamicObject(Bau[id][ObjectD]);
  3341. Bau[id][Existe] = 0;
  3342. Bau[id][PosX] = 0;
  3343. Bau[id][PosY] = 0;
  3344. Bau[id][PosZ] = 0;
  3345. Bau[id][RX] = 0;
  3346. Bau[id][RY] = 0;
  3347. Bau[id][RZ] = 0;
  3348.  
  3349. new file[64];
  3350. format(file, sizeof(file), "Saves/Baus/%d.ini", id);
  3351. if(DOF2_FileExists(file))
  3352. DOF2_RemoveFile(file);
  3353. SendClientMessage(playerid, -1, "Bau Apagada");
  3354. return 1;
  3355. }
  3356. if(strcmp(cmdtext, "/destruir porta", true) == 0)
  3357. {
  3358. new id = GetPlayerRangePorta(playerid);
  3359. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Porta!");
  3360. if(strcmp(Porta[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta porta não é sua!");
  3361. DestroyDynamicObject(Porta[id][ObjectC]);
  3362. Porta[id][Existe] = 0;
  3363. Porta[id][PosX] = 0;
  3364. Porta[id][PosY] = 0;
  3365. Porta[id][PosZ] = 0;
  3366. Porta[id][RX] = 0;
  3367. Porta[id][RY] = 0;
  3368. Porta[id][RZ] = 0;
  3369.  
  3370. new file[64];
  3371. format(file, sizeof(file), "Saves/Portas/%d.ini", id);
  3372. if(DOF2_FileExists(file))
  3373. DOF2_RemoveFile(file);
  3374. SendClientMessage(playerid, -1, "Porta Apagada");
  3375. return 1;
  3376. }
  3377. if(strcmp(cmdtext, "/destruir base", true) == 0)
  3378. {
  3379. new id = GetPlayerRangeBase(playerid);
  3380. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Base!");
  3381. if(strcmp(Base[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta base não é sua!");
  3382. DestroyDynamicObject(Base[id][ObjectB]);
  3383. Base[id][Existe] = 0;
  3384. Base[id][PosX] = 0;
  3385. Base[id][PosY] = 0;
  3386. Base[id][PosZ] = 0;
  3387. Base[id][RX] = 0;
  3388. Base[id][RY] = 0;
  3389. Base[id][RZ] = 0;
  3390.  
  3391. new file[64];
  3392. format(file, sizeof(file), "Saves/Bases/%d.ini", id);
  3393. if(DOF2_FileExists(file))
  3394. DOF2_RemoveFile(file);
  3395. SendClientMessage(playerid, -1, "Base Apagada");
  3396. return 1;
  3397. }
  3398. if(strcmp(cmdtext, "/destruir bancada", true) == 0)
  3399. {
  3400. new id = GetPlayerRangeBancada(playerid);
  3401. if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Bancada!");
  3402. if(strcmp(Bancada[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta bancada não é sua!");
  3403. DestroyDynamicObject(Bancada[id][ObjectA]);
  3404. Bancada[id][Existe] = 0;
  3405. Bancada[id][PosX] = 0;
  3406. Bancada[id][PosY] = 0;
  3407. Bancada[id][PosZ] = 0;
  3408. Bancada[id][RX] = 0;
  3409. Bancada[id][RY] = 0;
  3410. Bancada[id][RZ] = 0;
  3411.  
  3412. new file[64];
  3413. format(file, sizeof(file), "Saves/Bancadas/%d.ini", id);
  3414. if(DOF2_FileExists(file))
  3415. DOF2_RemoveFile(file);
  3416. SendClientMessage(playerid, -1, "Bancada Apagada");
  3417. return 1;
  3418. }
  3419. if(strcmp(cmdtext, "/admins", true) == 0 || strcmp(cmdtext, "/administradores", true) == 0)
  3420. {
  3421. SendClientMessage(playerid, 0x2DFFFFFF, "||- Online no Survival The Island -||");
  3422. paramount(i,MAX_PLAYERS)
  3423. {
  3424. new lolz[20];
  3425. if(PlayerInfo[playerid][Administrador] == 1)
  3426. {
  3427. lolz = "[1] Iniciante";
  3428. }
  3429. if(PlayerInfo[playerid][Administrador] == 2)
  3430. {
  3431. lolz = "[2] Moderador";
  3432. }
  3433. if(PlayerInfo[playerid][Administrador] == 3)
  3434. {
  3435. lolz = "[3] Master";
  3436. }
  3437. if(PlayerInfo[playerid][Administrador] == 4)
  3438. {
  3439. lolz = "[4] Sub-Dono";
  3440. }
  3441. if(PlayerInfo[playerid][Administrador] == 5)
  3442. {
  3443. lolz = "[5] Dono/Fundador";
  3444. }
  3445. if(PlayerInfo[playerid][Administrador] >= 1 && PlayerInfo[playerid][Administrador] >= 5)
  3446. {
  3447. format(string_,sizeof(string_), "{00FFFF} %s {FF7F00}|| %s || ", Nome(playerid), lolz);
  3448. SendClientMessage(playerid, 0x3366FFFF, string_);
  3449. }
  3450. }
  3451. return 1;
  3452. }
  3453. if(strcmp(cmdtext,"/skin", true, 5) == 0)
  3454. {
  3455. if(PlayerInfo[playerid][Cloth] >= 1)
  3456. {
  3457. static
  3458. string[128],
  3459. skinid
  3460. ;
  3461. if(sscanf(cmdtext[6],"i",skinid)) return SendClientMessage(playerid, 0xF60000AA, "Erro: Tu deves escrever o numero da skin!");
  3462. SetPlayerSkin(playerid, skinid);
  3463. PlayerInfo[playerid][Skin] = skinid;
  3464. format(string, 128, "Tu mudaste o teu skin para: %i" ,skinid);
  3465. SendClientMessage(playerid, 0xF60000AA, string);
  3466. }
  3467. else if(PlayerInfo[playerid][Cloth] == 0)
  3468. {
  3469. SendClientMessage(playerid, 0xFFFFFFFF, "Você não tem Clouth suficiente!");
  3470. }
  3471. return 1;
  3472. }
  3473. // comandos admin apartir daqui
  3474. if(strcmp(cmdtext, "/gmx", true) == 0 || strcmp(cmdtext, "/reiniciar", true) == 0)
  3475. {
  3476. if(PlayerInfo[playerid][Administrador] >= 5)
  3477. {
  3478. GameTextForPlayer(playerid, "~b~GMX ~w~AGUARDE", 200, 0);
  3479. SendRconCommand("Gmx");
  3480. }
  3481. else return SendClientMessage(playerid,fail,NAOADM);
  3482. return 1;
  3483. }
  3484. if(strcmp(cmdtext, "/setskin", true, 7) == 0)
  3485. {
  3486. if(PlayerInfo[playerid][Administrador] >= 2)
  3487. {
  3488. new
  3489. idx,
  3490. skinid;
  3491. if(sscanf(cmdtext[8],"ud",idx,skinid)) return SendClientMessage(playerid,-1,"use /mudarskin [playerid] [skinid]");
  3492. if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,-1,"Jogador Off-line.");
  3493. if(skinid < 0 || skinid > 311) return SendClientMessage(playerid,-1,"use de 0-311");
  3494. SetPlayerSkin(idx,skinid);
  3495. SendClientMessage(playerid,-1,"Você setou uma skin com sucesso.");
  3496. SendClientMessage(playerid,-1,"O administrador mudou sua skin.");
  3497. PlayerInfo[playerid][Skin] = skinid;
  3498. SalvarPlayer(playerid);
  3499. }
  3500. else return SendClientMessage(playerid,fail,NAOADM);
  3501. return 1;
  3502. }
  3503. if(strcmp(cmdtext, "/darnivel", true, 8) == 0)
  3504. {
  3505. if(PlayerInfo[playerid][Administrador] >= 5)
  3506. {
  3507. new
  3508. String[64],
  3509. idx,
  3510. nivel;
  3511. if(sscanf(cmdtext[9], "dd",idx,nivel)) return SendClientMessage(playerid, COR_BRANCO, "USE: /darnivel [id] [Quantidade]");
  3512. if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,fail,"Jogador Off-line.");
  3513. SetPlayerScore(idx, nivel);
  3514. PlayerInfo[playerid][Level] += nivel;
  3515. format(String, sizeof(String), "Você recebeu [%d] de niveis do Admin [%s]", nivel, Nome(playerid));
  3516. SendClientMessage(idx, COR_AZUL, String);
  3517. format(String, sizeof(String), "Você deu [%d] de niveis para [%s]", nivel, Nome(idx));
  3518. SendClientMessage(playerid, COR_AZUL, String);
  3519. SalvarPlayer(playerid);
  3520. }
  3521. else return SendClientMessage(playerid,fail,NAOADM);
  3522. return 1;
  3523. }
  3524. if(strcmp(cmdtext, "/darcash", true, 8) == 0)
  3525. {
  3526. if(PlayerInfo[playerid][Administrador] >= 5)
  3527. {
  3528. new
  3529. String[64],
  3530. idx,
  3531. cash;
  3532. if(sscanf(cmdtext[9], "dd",idx,cash)) return SendClientMessage(playerid, COR_BRANCO, "USE: /darcash [id] [Quantidade]");
  3533. if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,fail,"Jogador Off-line.");
  3534. PlayerInfo[playerid][Cash] += cash;
  3535. format(String, sizeof(String), "Você recebeu [%d] de cash do Admin [%s]", cash, Nome(playerid));
  3536. SendClientMessage(idx, COR_AZUL, String);
  3537. format(String, sizeof(String), "Você deu [%d] de cash para [%s]", cash, Nome(idx));
  3538. SendClientMessage(playerid, COR_AZUL, String);
  3539. SalvarPlayer(playerid);
  3540. }
  3541. else return SendClientMessage(playerid,fail,NAOADM);
  3542. return 1;
  3543. }
  3544. if(strcmp(cmdtext, "/autorizar", true) == 0)
  3545. {
  3546. if(PlayerInfo[playerid][Administrador] >= 4)
  3547. {
  3548. new
  3549. idx;
  3550. if(sscanf(cmdtext,"jj",idx)) return SendClientMessage(playerid,COR_BRANCO,"/autorizar [playerid]");
  3551. if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,fail,"Jogador Off-line.");
  3552. pInfo2[idx][pAutorizado] = 1;
  3553. SendClientMessage(idx,verde,"foi autorizado a mudar de nick.");
  3554. }
  3555. else return SendClientMessage(playerid,fail,NAOADM);
  3556. return 1;
  3557. }
  3558. if(strcmp(cmdtext, "/mudarnick", true) == 0)
  3559. {
  3560. if(pInfo2[playerid][pAutorizado] == 1)
  3561. {
  3562. if(sscanf(cmdtext,"s[24]",string_)) return SendClientMessage(playerid,verde,"use /mudarnick [nome_novo]");
  3563. SetPlayerName(playerid,string_);
  3564. SendClientMessage(playerid,verde,"nick alterado com sucesso.");
  3565. pInfo2[playerid][pAutorizado] = 0;
  3566. }
  3567. else return SendClientMessage(playerid,verde,"não está autorizado.");
  3568. return 1;
  3569. }
  3570. if(strcmp(cmdtext, "/descalar", true) == 0)
  3571. {
  3572. if(PlayerInfo[playerid][Administrador] >= 2)
  3573. {
  3574. new
  3575. idx;
  3576. if(sscanf(cmdtext,"uu",idx)) return SendClientMessage(playerid,verde,"/calar [id/ou nome do individuo] ");
  3577. calado[idx] = false;
  3578. SendClientMessage(playerid,verde,"individuo descalado com sucesso.");
  3579. SendClientMessage(idx,fail,"foi descalado pelo admin!");
  3580. }
  3581. else return SendClientMessage(playerid,fail,NAOADM);
  3582. return 1;
  3583. }
  3584. if(strcmp(cmdtext, "/calar", true) == 0)
  3585. {
  3586. if(PlayerInfo[playerid][Administrador] >= 2)
  3587. {
  3588. new
  3589. idx;
  3590. if(sscanf(cmdtext,"ls",idx)) return SendClientMessage(playerid,verde,"/calar [id/ou nome do individuo] ");
  3591. calado[idx] = true;
  3592. SendClientMessage(playerid,verde,"individuo calado com sucesso.");
  3593. SendClientMessage(idx,fail,"foi calado pelo admin seu noob, cala boca um pouco!");
  3594. }
  3595. else return SendClientMessage(playerid,fail,NAOADM);
  3596. return 1;
  3597. }
  3598. if(strcmp(cmdtext, "/votacao", true) == 0)
  3599. {
  3600. if(PlayerInfo[playerid][Administrador] >= 1)
  3601. {
  3602. new
  3603. pergunta[128]
  3604. ;
  3605. if(sscanf(cmdtext,"s[128]",pergunta)) return SendClientMessage(playerid,0xFFFFFFAA, "Use: /votacao [pergunta]");
  3606. SendClientMessageToAll(LARANJA,"====================================");
  3607. format(string_, sizeof string_, "==> [%s] Votação: %s?", Nome(playerid), pergunta);
  3608. SendClientMessageToAll(VERDECLARO, string_);
  3609. SendClientMessageToAll(LARANJA," ");
  3610. SendClientMessageToAll(LARANJA," > Para votar digite:");
  3611. SendClientMessageToAll(VERDEMEDIO, "* /sim - Se você concorda digite.");
  3612. SendClientMessageToAll(VERDEMEDIO, "* /não - Se você discorda digite.");
  3613. SendClientMessageToAll(LARANJA,"====================================");
  3614. GameTextForAll("~w~Nova ~r~votacao~w~ foi~b~ iniciada!",6000,3);
  3615. enquete = true;
  3616. }
  3617. else return SendClientMessage(playerid, fail, NAOADM);
  3618. return 1;
  3619. }
  3620. if(strcmp(cmdtext, "/sim", true) == 0)
  3621. {
  3622. if(enquete == true)
  3623. {
  3624. if(votou[playerid] == false)
  3625. {
  3626. sim++;
  3627. SendClientMessage(playerid,verde,"voto computado com sucesso.");
  3628. votou[playerid] = true;
  3629. }
  3630. else return SendClientMessage(playerid,fail,"já votou");
  3631. }
  3632. else return SendClientMessage(playerid,fail,"não há votação em andamento.");
  3633. return 1;
  3634. }
  3635. if(strcmp(cmdtext, "/nao", true) == 0)
  3636. {
  3637. if(enquete == true)
  3638. {
  3639. if(votou[playerid] == false)
  3640. {
  3641. SendClientMessage(playerid,LARANJA, "Seu voto foi computado com sucesso!");
  3642. nao++;
  3643. votou[playerid] = true;
  3644. return 1;
  3645. }
  3646. }
  3647. return 1;
  3648. }
  3649. if(strcmp(cmdtext, "/encerrar", true) == 0)
  3650. {
  3651. if(PlayerInfo[playerid][Administrador] >= 1)
  3652. {
  3653. if(enquete == true)
  3654. {
  3655. enquete = false;
  3656. SendClientMessageToAll(LARANJA,"====================================");
  3657. SendClientMessageToAll(LARANJA, "==> Votacâo encerrada! <<==");
  3658. format(string_, sizeof string_, "* %d jogador(es) concordaram com a pergunta.", sim);
  3659. SendClientMessageToAll(VERDEMEDIO, string_);
  3660. format(string_, sizeof string_, "* %d jogador(es) discordaram com a pergunta.", nao);
  3661. SendClientMessageToAll(VERDEMEDIO, string_);
  3662. paramount(i,MAX_PLAYERS) return votou[i] = false;
  3663. if(sim == nao)
  3664. {
  3665. SendClientMessageToAll(VERMELHO, "==> Houve um empate!");
  3666. } else if(sim > nao)
  3667. {
  3668. SendClientMessageToAll(VERMELHO, "==> A maioria CONCORDA com a pergunta.");
  3669. } else if(sim > nao)
  3670. {
  3671. SendClientMessageToAll(VERMELHO, "==> A maioria DISCORDA com a pergunta.");
  3672. }
  3673. SendClientMessageToAll(LARANJA,"====================================");
  3674. }
  3675. else return SendClientMessage(playerid,fail,"Não há uma votação em andamento");
  3676. }
  3677. else SendClientMessage(playerid,fail,NAOADM);
  3678. return 1;
  3679. }
  3680. if(strcmp(cmdtext, "/lchat", true) == 0)
  3681. {
  3682. if(PlayerInfo[playerid][Administrador] >= 1)
  3683. {
  3684. for(new a = 0; a < 100; a++)
  3685. SendClientMessageToAll(-1,"");
  3686. }
  3687. else SendClientMessage(playerid,fail,NAOADM);
  3688. return 1;
  3689. }
  3690. // comandos admin rcon
  3691. if(strcmp(cmdtext, "/virar admin", true) == 0)
  3692. {
  3693. if(!IsPlayerAdmin(playerid)) return 1;
  3694. PlayerInfo[playerid][Administrador] = 5;
  3695. SalvarPlayer(playerid);
  3696. return 1;
  3697. }
  3698. if(strcmp(cmdtext, "/kill", true) == 0)
  3699. {
  3700. if (!IsPlayerAdmin(playerid))
  3701. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3702. SetPlayerHealth(playerid, 0);
  3703. return 1;
  3704. }
  3705. if(strcmp(cmdtext, "/cash", true) == 0)
  3706. {
  3707. if (!IsPlayerAdmin(playerid))
  3708. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3709. PlayerInfo[playerid][Cash] += 999999999;
  3710. PlayerPlaySound(playerid, 1084, 0.0, 0.0, 0.0);
  3711. return 1;
  3712. }
  3713. if(strcmp(cmdtext, "/cloth", true) == 0)
  3714. {
  3715. if (!IsPlayerAdmin(playerid))
  3716. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3717. PlayerInfo[playerid][Cloth] += 100;
  3718. return 1;
  3719. }
  3720. if(strcmp(cmdtext, "/parafuso", true) == 0)
  3721. {
  3722. if (!IsPlayerAdmin(playerid))
  3723. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3724. PlayerInfo[playerid][Parafuso] += 100;
  3725. return 1;
  3726. }
  3727. if(strcmp(cmdtext, "/borracha", true) == 0)
  3728. {
  3729. if (!IsPlayerAdmin(playerid))
  3730. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3731. PlayerInfo[playerid][Borracha] += 100;
  3732. return 1;
  3733. }
  3734. if(strcmp(cmdtext, "/metal", true) == 0)
  3735. {
  3736. if (!IsPlayerAdmin(playerid))
  3737. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3738. PlayerInfo[playerid][Metal] += 100;
  3739. return 1;
  3740. }
  3741. if(strcmp(cmdtext, "/pegar rifle", true) == 0)
  3742. {
  3743. if (!IsPlayerAdmin(playerid))
  3744. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3745. GivePlayerWeapon(playerid, 33, 20);
  3746. SendClientMessageToAll(-1,"Você pegou seu rifle");
  3747. return 1;
  3748. }
  3749. if(strcmp(cmdtext, "/pegar sniper", true) == 0)
  3750. {
  3751. if (!IsPlayerAdmin(playerid))
  3752. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3753. GivePlayerWeapon(playerid, 34, 20);
  3754. SendClientMessageToAll(-1,"Você pegou sua sniper");
  3755. return 1;
  3756. }
  3757. if(strcmp(cmdtext, "/pegar shot", true) == 0)
  3758. {
  3759. if (!IsPlayerAdmin(playerid))
  3760. return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
  3761. GivePlayerWeapon(playerid, 25, 20);
  3762. SendClientMessageToAll(-1,"Você pegou sua shotgun");
  3763. return 1;
  3764. }
  3765. return SendClientMessage(playerid, COR_VERMELHO, "Esse comando não existe, digite: /ajuda ou chame um administrador no /duvida");
  3766. }
  3767.  
  3768. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  3769. {
  3770. return 1;
  3771. }
  3772.  
  3773. public OnPlayerExitVehicle(playerid, vehicleid)
  3774. {
  3775. return 1;
  3776. }
  3777.  
  3778. public OnPlayerStateChange(playerid, newstate, oldstate)
  3779. {
  3780. return 1;
  3781. }
  3782.  
  3783. public OnPlayerEnterCheckpoint(playerid)
  3784. {
  3785. return 1;
  3786. }
  3787.  
  3788. public OnPlayerLeaveCheckpoint(playerid)
  3789. {
  3790. return 1;
  3791. }
  3792.  
  3793. public OnPlayerEnterRaceCheckpoint(playerid)
  3794. {
  3795. return 1;
  3796. }
  3797.  
  3798. public OnPlayerLeaveRaceCheckpoint(playerid)
  3799. {
  3800. return 1;
  3801. }
  3802.  
  3803. public OnRconCommand(cmd[])
  3804. {
  3805. return 1;
  3806. }
  3807.  
  3808.  
  3809. public OnPlayerRequestSpawn(playerid)
  3810. {
  3811. TogglePlayerSpectating(playerid, 1);
  3812. InterpolateCameraPos(playerid, -2397.553710, 1436.038452, 140.798019, -2876.055175, 1382.189697, 159.150161, 17000);
  3813. InterpolateCameraLookAt(playerid, -2401.776855, 1438.431640, 139.599197, -2872.188964, 1384.818359, 157.377395, 17000);
  3814. return 1;
  3815. }
  3816.  
  3817. public OnObjectMoved(objectid)
  3818. {
  3819. return 1;
  3820. }
  3821.  
  3822. public OnPlayerObjectMoved(playerid, objectid)
  3823. {
  3824. return 1;
  3825. }
  3826.  
  3827. public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
  3828. {
  3829. if(response == EDIT_RESPONSE_FINAL) {
  3830. new id = EditBaseID[playerid];
  3831. if(id != -1)
  3832. {
  3833. Base[id][PosX] = x;
  3834. Base[id][PosY] = y;
  3835. Base[id][PosZ] = z;
  3836. Base[id][RX] = rx;
  3837. Base[id][RY] = ry;
  3838. Base[id][RZ] = rz;
  3839. SetDynamicObjectPos(objectid, x, y, z);
  3840. SetDynamicObjectRot(objectid, rx, ry, rz);
  3841. EditBaseID[playerid] = -1;
  3842. SalvarBases(id);
  3843. }
  3844. }else if(response == EDIT_RESPONSE_CANCEL) {
  3845. new id = EditBaseID[playerid];
  3846. if(id != -1)
  3847. {
  3848. SetDynamicObjectPos(objectid, Base[id][PosX], Base[id][PosY], Base[id][PosZ]);
  3849. SetDynamicObjectRot(objectid, Base[id][RX], Base[id][RY], Base[id][RZ]);
  3850. EditBaseID[playerid] = -1;
  3851. }
  3852. }
  3853. if(response == EDIT_RESPONSE_FINAL) {
  3854. new id = EditBancadaID[playerid];
  3855. if(id != -1)
  3856. {
  3857. Bancada[id][PosX] = x;
  3858. Bancada[id][PosY] = y;
  3859. Bancada[id][PosZ] = z;
  3860. Bancada[id][RX] = rx;
  3861. Bancada[id][RY] = ry;
  3862. Bancada[id][RZ] = rz;
  3863. SetDynamicObjectPos(objectid, x, y, z);
  3864. SetDynamicObjectRot(objectid, rx, ry, rz);
  3865. EditBancadaID[playerid] = -1;
  3866. SalvarBancadas(id);
  3867. }
  3868. }else if(response == EDIT_RESPONSE_CANCEL) {
  3869. new id = EditBancadaID[playerid];
  3870. if(id != -1)
  3871. {
  3872. SetDynamicObjectPos(objectid, Bancada[id][PosX], Bancada[id][PosY], Bancada[id][PosZ]);
  3873. SetDynamicObjectRot(objectid, Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
  3874. EditBancadaID[playerid] = -1;
  3875. }
  3876. }
  3877. if(response == EDIT_RESPONSE_FINAL) {
  3878. new id = EditPortaID[playerid];
  3879. if(id != -1)
  3880. {
  3881. Porta[id][PosX] = x;
  3882. Porta[id][PosY] = y;
  3883. Porta[id][PosZ] = z;
  3884. Porta[id][RX] = rx;
  3885. Porta[id][RY] = ry;
  3886. Porta[id][RZ] = rz;
  3887. SetDynamicObjectPos(objectid, x, y, z);
  3888. SetDynamicObjectRot(objectid, rx, ry, rz);
  3889. EditPortaID[playerid] = -1;
  3890. SalvarPortas(id);
  3891. }
  3892. }else if(response == EDIT_RESPONSE_CANCEL) {
  3893. new id = EditPortaID[playerid];
  3894. if(id != -1)
  3895. {
  3896. SetDynamicObjectPos(objectid, Porta[id][PosX], Porta[id][PosY], Porta[id][PosZ]);
  3897. SetDynamicObjectRot(objectid, Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
  3898. EditPortaID[playerid] = -1;
  3899. }
  3900. }
  3901. if(response == EDIT_RESPONSE_FINAL) {
  3902. new id = EditBauID[playerid];
  3903. if(id != -1)
  3904. {
  3905. Bau[id][PosX] = x;
  3906. Bau[id][PosY] = y;
  3907. Bau[id][PosZ] = z;
  3908. Bau[id][RX] = rx;
  3909. Bau[id][RY] = ry;
  3910. Bau[id][RZ] = rz;
  3911. SetDynamicObjectPos(objectid, x, y, z);
  3912. SetDynamicObjectRot(objectid, rx, ry, rz);
  3913. EditBauID[playerid] = -1;
  3914. SalvarBaus(id);
  3915. }
  3916. }else if(response == EDIT_RESPONSE_CANCEL) {
  3917. new id = EditBauID[playerid];
  3918. if(id != -1)
  3919. {
  3920. SetDynamicObjectPos(objectid, Bau[id][PosX], Bau[id][PosY], Bau[id][PosZ]);
  3921. SetDynamicObjectRot(objectid, Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
  3922. EditBauID[playerid] = -1;
  3923. }
  3924. }
  3925. if(response == EDIT_RESPONSE_FINAL) {
  3926. new id = EditRampaID[playerid];
  3927. if(id != -1)
  3928. {
  3929. Rampa[id][PosX] = x;
  3930. Rampa[id][PosY] = y;
  3931. Rampa[id][PosZ] = z;
  3932. Rampa[id][RX] = rx;
  3933. Rampa[id][RY] = ry;
  3934. Rampa[id][RZ] = rz;
  3935. SetDynamicObjectPos(objectid, x, y, z);
  3936. SetDynamicObjectRot(objectid, rx, ry, rz);
  3937. EditRampaID[playerid] = -1;
  3938. SalvarRampas(id);
  3939. }
  3940. }else if(response == EDIT_RESPONSE_CANCEL) {
  3941. new id = EditRampaID[playerid];
  3942. if(id != -1)
  3943. {
  3944. SetDynamicObjectPos(objectid, Rampa[id][PosX], Rampa[id][PosY], Rampa[id][PosZ]);
  3945. SetDynamicObjectRot(objectid, Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
  3946. EditRampaID[playerid] = -1;
  3947. }
  3948. }
  3949. if(response == EDIT_RESPONSE_FINAL) {
  3950. new id = EditDoorID[playerid];
  3951. if(id != -1)
  3952. {
  3953. Door[id][PosX] = x;
  3954. Door[id][PosY] = y;
  3955. Door[id][PosZ] = z;
  3956. Door[id][RX] = rx;
  3957. Door[id][RY] = ry;
  3958. Door[id][RZ] = rz;
  3959. SetDynamicObjectPos(objectid, x, y, z);
  3960. SetDynamicObjectRot(objectid, rx, ry, rz);
  3961. EditDoorID[playerid] = -1;
  3962. SalvarDoor(id);
  3963. }
  3964. }else if(response == EDIT_RESPONSE_CANCEL) {
  3965. new id = EditDoorID[playerid];
  3966. if(id != -1)
  3967. {
  3968. SetDynamicObjectPos(objectid, Door[id][PosX], Door[id][PosY], Door[id][PosZ]);
  3969. SetDynamicObjectRot(objectid, Door[id][RX], Door[id][RY], Door[id][RZ]);
  3970. EditDoorID[playerid] = -1;
  3971. }
  3972. }
  3973. if(response == EDIT_RESPONSE_FINAL) {
  3974. new id = EditCamaID[playerid];
  3975. if(id != -1)
  3976. {
  3977. Cama[id][PosX] = x;
  3978. Cama[id][PosY] = y;
  3979. Cama[id][PosZ] = z;
  3980. Cama[id][RX] = rx;
  3981. Cama[id][RY] = ry;
  3982. Cama[id][RZ] = rz;
  3983. SetDynamicObjectPos(objectid, x, y, z);
  3984. SetDynamicObjectRot(objectid, rx, ry, rz);
  3985. EditCamaID[playerid] = -1;
  3986. SalvarCama(id);
  3987. }
  3988. }else if(response == EDIT_RESPONSE_CANCEL) {
  3989. new id = EditCamaID[playerid];
  3990. if(id != -1)
  3991. {
  3992. SetDynamicObjectPos(objectid, Cama[id][PosX], Cama[id][PosY], Cama[id][PosZ]);
  3993. SetDynamicObjectRot(objectid, Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
  3994. EditCamaID[playerid] = -1;
  3995. }
  3996. }
  3997. if(response == EDIT_RESPONSE_FINAL) {
  3998. new id = EditWindownID[playerid];
  3999. if(id != -1)
  4000. {
  4001. Windown[id][PosX] = x;
  4002. Windown[id][PosY] = y;
  4003. Windown[id][PosZ] = z;
  4004. Windown[id][RX] = rx;
  4005. Windown[id][RY] = ry;
  4006. Windown[id][RZ] = rz;
  4007. SetDynamicObjectPos(objectid, x, y, z);
  4008. SetDynamicObjectRot(objectid, rx, ry, rz);
  4009. EditWindownID[playerid] = -1;
  4010. SalvarWindowns(id);
  4011. }
  4012. }else if(response == EDIT_RESPONSE_CANCEL) {
  4013. new id = EditWindownID[playerid];
  4014. if(id != -1)
  4015. {
  4016. SetDynamicObjectPos(objectid, Windown[id][PosX], Windown[id][PosY], Windown[id][PosZ]);
  4017. SetDynamicObjectRot(objectid, Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
  4018. EditWindownID[playerid] = -1;
  4019. }
  4020. }
  4021. if(response == EDIT_RESPONSE_FINAL) {
  4022. new id = EditFornoID[playerid];
  4023. if(id != -1)
  4024. {
  4025. Forno[id][PosX] = x;
  4026. Forno[id][PosY] = y;
  4027. Forno[id][PosZ] = z;
  4028. Forno[id][RX] = rx;
  4029. Forno[id][RY] = ry;
  4030. Forno[id][RZ] = rz;
  4031. SetDynamicObjectPos(objectid, x, y, z);
  4032. SetDynamicObjectRot(objectid, rx, ry, rz);
  4033. EditFornoID[playerid] = -1;
  4034. SalvarForno(id);
  4035. }
  4036. }else if(response == EDIT_RESPONSE_CANCEL) {
  4037. new id = EditFornoID[playerid];
  4038. if(id != -1)
  4039. {
  4040. SetDynamicObjectPos(objectid, Forno[id][PosX], Forno[id][PosY], Forno[id][PosZ]);
  4041. SetDynamicObjectRot(objectid, Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
  4042. EditFornoID[playerid] = -1;
  4043. }
  4044. }
  4045. return 1;
  4046. }
  4047.  
  4048.  
  4049. public OnPlayerPickUpPickup(playerid, pickupid)
  4050. {
  4051. return 1;
  4052. }
  4053.  
  4054. public OnVehicleMod(playerid, vehicleid, componentid)
  4055. {
  4056. return 1;
  4057. }
  4058.  
  4059. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  4060. {
  4061. return 1;
  4062. }
  4063.  
  4064. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  4065. {
  4066. return 1;
  4067. }
  4068.  
  4069. public OnPlayerSelectedMenuRow(playerid, row)
  4070. {
  4071. return 1;
  4072. }
  4073.  
  4074. public OnPlayerExitedMenu(playerid)
  4075. {
  4076. return 1;
  4077. }
  4078.  
  4079. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  4080. {
  4081. return 1;
  4082. }
  4083.  
  4084. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  4085. {
  4086. if(PRESSED(KEY_FIRE))
  4087. {
  4088. if(PlayerNoLugar(playerid, 2.0, -748.5999800,-2453.7000,68.0000) || PlayerNoLugar(playerid, 2.0, -717.9000200,-2465.5000,68.1000) || PlayerNoLugar(playerid, 2.0, -718.5000,-2431.6001,62.0000) || PlayerNoLugar(playerid, 2.0, -691.0999800,-2438.5000,63.5000) ||
  4089. PlayerNoLugar(playerid, 2.0, -701.7000100,-2382.8000,49.0000) || PlayerNoLugar(playerid, 2.0, -576.0999800,-2230.5000,27.4000) || PlayerNoLugar(playerid, 2.0, -689.2000100,-2351.1001,36.8000) || PlayerNoLugar(playerid, 2.0, -645.4000200,-2373.2000,33.8000) ||
  4090. PlayerNoLugar(playerid, 2.0, -663.7998,-2349.5996,34.7000) || PlayerNoLugar(playerid, 2.0, -654.2998,-2321.5996,34.5000) || PlayerNoLugar(playerid, 2.0, -671.5996100,-2298.0996,28.3000) || PlayerNoLugar(playerid, 2.0, -632.2998,-2291.5000,27.8000) ||
  4091. PlayerNoLugar(playerid, 2.0, -599.5996100,-2264.7002,24.4000) || PlayerNoLugar(playerid, 2.0, -569.7999900,-2258.8000,25.9000) || PlayerNoLugar(playerid, 2.0, -1058.1000,-2456.8000,60.0000) || PlayerNoLugar(playerid, 2.0, -1090.2000,-2338.3999,49.8000) ||
  4092. PlayerNoLugar(playerid, 2.0, -1024.4004,-2431.2998,65.5000) || PlayerNoLugar(playerid, 2.0, -1055.0996,-2416.0996,58.9000) || PlayerNoLugar(playerid, 2.0, -1080.0996,-2355.0996,47.8000) || PlayerNoLugar(playerid, 2.0, -1106.7000,-2298.8999,41.9000) ||
  4093. PlayerNoLugar(playerid, 2.0, -1112.6000,-2332.5000,42.5000) || PlayerNoLugar(playerid, 2.0, -1092.7998,-2323.2998,51.7000) || PlayerNoLugar(playerid, 2.0, -1061.0000,-2309.7000,53.4000) || PlayerNoLugar(playerid, 2.0, -995.2999900,-2311.0000,61.8000) ||
  4094. PlayerNoLugar(playerid, 2.0, -968.0999800,-2339.3999,65.5000) || PlayerNoLugar(playerid, 2.0, -976.2000100,-2288.0000,58.7000) || PlayerNoLugar(playerid, 2.0, -908.0000,-2401.3999,58.4000) || PlayerNoLugar(playerid, 2.0, -943.7999900,-2499.8999,103.2000) ||
  4095. PlayerNoLugar(playerid, 2.0, -914.9003900,-2438.2002,80.1000) || PlayerNoLugar(playerid, 2.0, -945.7002,-2477.7002,99.3000) || PlayerNoLugar(playerid, 2.0, -764.5000,-2409.0000,64.0000) || PlayerNoLugar(playerid, 2.0, -690.4000200,-2191.7000,19.5000) ||
  4096. PlayerNoLugar(playerid, 2.0, -726.5000,-2197.8994,34.4000) || PlayerNoLugar(playerid, 2.0, -736.7998,-2213.0996,36.5000) || PlayerNoLugar(playerid, 2.0, -665.0000,-2180.5000,18.3000) || PlayerNoLugar(playerid, 2.0, -680.5000,-2166.5000,22.1000) ||
  4097. PlayerNoLugar(playerid, 2.0, -670.4000200,-2115.8000,25.5000) || PlayerNoLugar(playerid, 2.0, -659.0996100,-2126.5996,26.2000) || PlayerNoLugar(playerid, 2.0, -643.9000200,-2090.5000,27.7000) || PlayerNoLugar(playerid, 2.0, -690.7999900,-2137.0000,24.7000) ||
  4098. PlayerNoLugar(playerid, 2.0, -763.5999800,-2221.8000,21.6000) || PlayerNoLugar(playerid, 2.0, -863.4000200,-2274.2000,25.3000) || PlayerNoLugar(playerid, 2.0, -870.4003900,-2246.0000,26.5000) || PlayerNoLugar(playerid, 2.0, -902.9000200,-2259.5000,37.9000) ||
  4099. PlayerNoLugar(playerid, 2.0, -804.5000,-2297.3999,28.3000) || PlayerNoLugar(playerid, 2.0, -792.2000100,-2343.2000,43.4000) || PlayerNoLugar(playerid, 2.0, -809.4003900,-2328.5000,38.1000) || PlayerNoLugar(playerid, 2.0, -845.2000100,-2362.2000,57.7000) ||
  4100. PlayerNoLugar(playerid, 2.0, -576.7000100,-1995.9000,45.4000) || PlayerNoLugar(playerid, 2.0, -607.5996100,-2047.4004,40.2000) || PlayerNoLugar(playerid, 2.0, -572.7998,-2016.0000,47.0000) || PlayerNoLugar(playerid, 2.0, -587.5000,-1980.0000,42.1000) ||
  4101. PlayerNoLugar(playerid, 2.0, -603.7999900,-1948.3000,33.2000) || PlayerNoLugar(playerid, 2.0, -571.7998,-1952.5996,38.4000) || PlayerNoLugar(playerid, 2.0, -513.7999900,-2002.7000,47.5000) || PlayerNoLugar(playerid, 2.0, -519.2998,-1965.7002,41.4000) ||
  4102. PlayerNoLugar(playerid, 2.0, -531.2998,-1988.9004,46.2000) || PlayerNoLugar(playerid, 2.0, -657.2999900,-1838.5000,20.7000) || PlayerNoLugar(playerid, 2.0, -587.7999900,-1831.6000,29.3000) || PlayerNoLugar(playerid, 2.0, -613.7002,-1868.7002,16.1000) ||
  4103. PlayerNoLugar(playerid, 2.0, -557.5999800,-1858.4000,18.2000) || PlayerNoLugar(playerid, 2.0, -540.5000,-1843.0000,21.3000) || PlayerNoLugar(playerid, 2.0, -529.5000,-1862.7000,13.1000) || PlayerNoLugar(playerid, 2.0, -505.5000,-1854.0000,14.8000) ||
  4104. PlayerNoLugar(playerid, 2.0, -393.7999900,-1952.2000,19.2000) || PlayerNoLugar(playerid, 2.0, -398.1000100,-1971.5000,24.6000) || PlayerNoLugar(playerid, 2.0, -397.8999900,-2003.4000,30.4000) || PlayerNoLugar(playerid, 2.0, -423.2999900,-2083.8000,77.0000) ||
  4105. PlayerNoLugar(playerid, 2.0, -422.7000100,-2113.1001,83.8000) || PlayerNoLugar(playerid, 2.0, -456.1000100,-2094.7000,85.2000) || PlayerNoLugar(playerid, 2.0, -486.7999900,-2112.8999,89.0000) || PlayerNoLugar(playerid, 2.0, -453.0000,-2141.7000,87.8000) ||
  4106. PlayerNoLugar(playerid, 2.0, -568.5000,-2120.6001,70.0000) || PlayerNoLugar(playerid, 2.0, -537.0999800,-2126.1001,78.1000) || PlayerNoLugar(playerid, 2.0, -325.5000,-2588.3000,127.7000) || PlayerNoLugar(playerid, 2.0, -473.2998,-2203.0996,74.1000) ||
  4107. PlayerNoLugar(playerid, 2.0, -374.6000100,-2221.3999,65.9000) || PlayerNoLugar(playerid, 2.0, -348.2999900,-2301.8999,67.3000) || PlayerNoLugar(playerid, 2.0, -351.2000100,-2343.3999,82.3000) || PlayerNoLugar(playerid, 2.0, -295.7000100,-2380.5000,65.7000)) {
  4108. if(GetPlayerWeapon(playerid) == 4)
  4109. {
  4110. TextDrawShowForPlayer(playerid, Boxzin[playerid]);
  4111. TextDrawShowForPlayer(playerid, Wood[playerid]);
  4112. SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
  4113. PlayerInfo[playerid][Madeira] += 5;
  4114. }
  4115. }
  4116. }
  4117. if(PRESSED(KEY_FIRE))
  4118. {
  4119. if(PlayerNoLugar(playerid, 2.0, -317.4003900,-2319.0996,62.6000) || PlayerNoLugar(playerid, 2.0, -313.6000100,-2364.1001,72.4000) || PlayerNoLugar(playerid, 2.0, -310.2000100,-2429.5000,80.3000) || PlayerNoLugar(playerid, 2.0, -208.5000,-2571.3999,47.2000) ||
  4120. PlayerNoLugar(playerid, 2.0, -290.2002,-2456.5996,73.6000) || PlayerNoLugar(playerid, 2.0, -230.9003900,-2440.0996,41.8000) || PlayerNoLugar(playerid, 2.0, -250.9003900,-2437.0996,50.3000) || PlayerNoLugar(playerid, 2.0, -190.2002,-2473.0996,34.0000) ||
  4121. PlayerNoLugar(playerid, 2.0, -199.2002,-2529.7998,35.2000) || PlayerNoLugar(playerid, 2.0, -137.0000,-2598.6001,63.8000) || PlayerNoLugar(playerid, 2.0, -135.0000,-2492.0000,29.8000) || PlayerNoLugar(playerid, 2.0, -150.2002,-2514.5996,28.8000) ||
  4122. PlayerNoLugar(playerid, 2.0, -131.2998,-2572.0996,55.8000) || PlayerNoLugar(playerid, 2.0, -105.5996100,-2576.7002,62.6000) || PlayerNoLugar(playerid, 2.0, -105.5996100,-2576.7002,62.6000) || PlayerNoLugar(playerid, 2.0, -115.4000,-2631.1001,70.8000) ||
  4123. PlayerNoLugar(playerid, 2.0, -127.5000,-2665.3000,69.7000) || PlayerNoLugar(playerid, 2.0, -143.5000,-2628.6001,63.0000) || PlayerNoLugar(playerid, 2.0, -149.0000,-2701.1001,72.0000) || PlayerNoLugar(playerid, 2.0, -137.0000,-2752.8999,60.5000) ||
  4124. PlayerNoLugar(playerid, 2.0, -423.5000,-2218.3994,70.7000) || PlayerNoLugar(playerid, 2.0, -315.2002,-2560.7998,118.4000) || PlayerNoLugar(playerid, 2.0, -381.5000,-2663.8000,146.3000) || PlayerNoLugar(playerid, 2.0, -302.2000100,-2606.2000,128.2000) ||
  4125. PlayerNoLugar(playerid, 2.0, -344.7002,-2611.5996,137.3000) || PlayerNoLugar(playerid, 2.0, -323.6000100,-2664.2000,119.1000) || PlayerNoLugar(playerid, 2.0, -451.3999900,-2320.5000,77.7000) || PlayerNoLugar(playerid, 2.0, -479.1000100,-2313.8000,63.2000) ||
  4126. PlayerNoLugar(playerid, 2.0, -523.5999800,-2376.1001,53.2000) || PlayerNoLugar(playerid, 2.0, -470.2998,-2356.2002,71.3000) || PlayerNoLugar(playerid, 2.0, -411.5000,-2410.3000,87.9000) || PlayerNoLugar(playerid, 2.0, -426.2998,-2368.7998,86.2000) ||
  4127. PlayerNoLugar(playerid, 2.0, -392.3999900,-2439.8000,94.0000) || PlayerNoLugar(playerid, 2.0, -372.1000100,-2419.1001,96.7000) || PlayerNoLugar(playerid, 2.0, -364.5000,-2459.6001,102.4000) || PlayerNoLugar(playerid, 2.0, -390.1000100,-2504.3000,109.7000) ||
  4128. PlayerNoLugar(playerid, 2.0, -368.6000100,-2520.6001,115.3000) || PlayerNoLugar(playerid, 2.0, -403.2999900,-2604.8000,144.6000100) || PlayerNoLugar(playerid, 2.0, -381.8999900,-2557.5000,130.8000) || PlayerNoLugar(playerid, 2.0, -410.8999900,-2536.7000,121.3000) ||
  4129. PlayerNoLugar(playerid, 2.0, -464.0000,-2749.5000,145.8999900) || PlayerNoLugar(playerid, 2.0, -444.2999900,-2787.1001,115.6000) || PlayerNoLugar(playerid, 2.0, -421.2998,-2654.5996,151.7000) || PlayerNoLugar(playerid, 2.0, -463.8999900,-2600.3999,139.8999900) ||
  4130. PlayerNoLugar(playerid, 2.0, -443.5000,-2682.7998,159.3000) || PlayerNoLugar(playerid, 2.0, -464.0000,-2657.8994,156.3000) || PlayerNoLugar(playerid, 2.0, -474.2999900,-2519.6001,109.4000) || PlayerNoLugar(playerid, 2.0, -461.2998,-2539.8994,115.1000) ||
  4131. PlayerNoLugar(playerid, 2.0, -501.6000100,-2423.3999,105.0000) || PlayerNoLugar(playerid, 2.0, -479.7002,-2474.0000,111.9000) || PlayerNoLugar(playerid, 2.0, -452.0000,-2436.8000,112.2000) || PlayerNoLugar(playerid, 2.0, -380.0000,-2726.6001,128.7000) ||
  4132. PlayerNoLugar(playerid, 2.0, -406.5000,-2753.3999,129.3000) || PlayerNoLugar(playerid, 2.0, -370.7999900,-2771.5000,98.7000) || PlayerNoLugar(playerid, 2.0, -336.1000100,-2776.3000,82.9000) || PlayerNoLugar(playerid, 2.0, -431.4003900,-2724.8994,158.6000100) ||
  4133. PlayerNoLugar(playerid, 2.0, -606.0999800,-2781.8999,111.1000) || PlayerNoLugar(playerid, 2.0, -510.5996100,-2778.2002,123.2000) || PlayerNoLugar(playerid, 2.0, -543.7998,-2781.8994,122.3000) || PlayerNoLugar(playerid, 2.0, -577.0000,-2786.7998,115.3000) ||
  4134. PlayerNoLugar(playerid, 2.0, -573.4000200,-2755.8999,127.2000) || PlayerNoLugar(playerid, 2.0, -605.2999900,-2745.6001,117.1000) || PlayerNoLugar(playerid, 2.0, -576.4000200,-2722.0000,128.3999900) || PlayerNoLugar(playerid, 2.0, -526.9000200,-2726.5000,142.2000) ||
  4135. PlayerNoLugar(playerid, 2.0, -557.0996100,-2737.3994,133.8999900) || PlayerNoLugar(playerid, 2.0, -481.3999900,-2707.2000,157.5000) || PlayerNoLugar(playerid, 2.0, -578.9000200,-2673.3999,137.5000) || PlayerNoLugar(playerid, 2.0, -608.7000100,-2615.6001,132.8000) ||
  4136. PlayerNoLugar(playerid, 2.0, -618.2998,-2655.7998,121.1000) || PlayerNoLugar(playerid, 2.0, -565.5999800,-2625.8000,146.1000100) || PlayerNoLugar(playerid, 2.0, -506.0000,-2622.8999,161.6000100) || PlayerNoLugar(playerid, 2.0, -578.9003900,-2579.2002,130.7000) ||
  4137. PlayerNoLugar(playerid, 2.0, -595.4003900,-2560.7002,124.5000) || PlayerNoLugar(playerid, 2.0, -554.7998,-2549.2998,135.8999900) ||
  4138. PlayerNoLugar(playerid, 2.0, -526.5996100,-2578.2002,146.0000))
  4139. if(GetPlayerWeapon(playerid) == 4)
  4140. {
  4141. TextDrawShowForPlayer(playerid, Boxzin[playerid]);
  4142. TextDrawShowForPlayer(playerid, Wood[playerid]);
  4143. SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
  4144. PlayerInfo[playerid][Madeira] += 5;
  4145. }
  4146. }
  4147. if(PRESSED(KEY_FIRE))
  4148. {
  4149. if(PlayerNoLugar(playerid, 8.0,-543.0999800,-2619.3999000,154.0000000) || PlayerNoLugar(playerid, 8.0,-651.2999900,-2649.6001000,102.0000000) || PlayerNoLugar(playerid, 8.0,-596.5000000,-2495.0000000,62.0000000) ||
  4150. PlayerNoLugar(playerid, 8.0,-750.2999900,-2473.3000000,75.0000000) || PlayerNoLugar(playerid, 8.0,-584.2999900,-1946.1000000,40.0000000) || PlayerNoLugar(playerid, 8.0,-855.2002000,-2290.2998000,26.0000000) ||
  4151. PlayerNoLugar(playerid, 8.0,-600.2002000,-2090.3994000,40.0000000) || PlayerNoLugar(playerid, 8.0,-431.6000100,-2107.8000000,88.0000000) || PlayerNoLugar(playerid, 8.0,-440.9003900,-1838.0000000,8.0000000) ||
  4152. PlayerNoLugar(playerid, 8.0,-297.6000100,-2406.3000000,74.0000000) || PlayerNoLugar(playerid, 8.0, -146.2000000,-2485.3999000,30.0000000) || PlayerNoLugar(playerid, 8.0, -126.7000000,-2601.5000000,69.0000000) ||
  4153. PlayerNoLugar(playerid, 8.0,-142.3999900,-2694.0000000,74.0000000) || PlayerNoLugar(playerid, 8.0, -584.2000100,-2267.7000000,27.0000000) || PlayerNoLugar(playerid, 8.0, -343.7002000,-2641.5000000,135.0000000) ||
  4154. PlayerNoLugar(playerid, 8.0,-418.7002000,-2705.8994000,162.0000000) || PlayerNoLugar(playerid, 8.0, -928.5996100,-2505.7998000,114.0000000) || PlayerNoLugar(playerid, 8.0, -1045.5996000,-2076.5000000,57.9000000) ||
  4155. PlayerNoLugar(playerid, 8.0,-899.7998000,-1870.5996000,88.0000000) || PlayerNoLugar(playerid, 8.0, -1083.7000000,-2193.0000000,41.0000000))
  4156. {
  4157. if(GetPlayerWeapon(playerid) == 0)
  4158. {
  4159. TextDrawShowForPlayer(playerid, Boxzin[playerid]);
  4160. TextDrawShowForPlayer(playerid, Boxzin2[playerid]);
  4161. TextDrawShowForPlayer(playerid, Stone[playerid]);
  4162. TextDrawShowForPlayer(playerid, MetalF[playerid]);
  4163. SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
  4164. PlayerInfo[playerid][Pedra] += 5;
  4165. PlayerInfo[playerid][Metal] += 2;
  4166. }
  4167. }
  4168. }
  4169. if(newkeys == 1 && GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  4170. {
  4171. if(pUsarCamera[playerid] == 1)
  4172. {
  4173. if(pPrimeiro[playerid] == 0)
  4174. {
  4175. CameraPrimeira(playerid,1);
  4176. pPrimeiro[playerid] = 1;
  4177. GameTextForPlayer(playerid, "~w~camera~g~ ligada", 5000, 6);
  4178. }
  4179. else if(pPrimeiro[playerid] == 1)
  4180. {
  4181. pPrimeiro[playerid] = 0;
  4182. CameraPrimeira(playerid,0);
  4183. GameTextForPlayer(playerid, "~w~camera~r~ desligada", 5000, 6);
  4184. }
  4185. }
  4186. }
  4187. if(PRESSED(KEY_NO))
  4188. {
  4189. for(new i; i < MAX_BANCADAS; i++)
  4190. {
  4191. if(IsPlayerInRangeOfPoint(playerid, 2.0, Bancada[i][PosX], Bancada[i][PosY], Bancada[i][PosZ]))
  4192. {
  4193. ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\n","Aceitar","Cancelar");
  4194. }
  4195. }
  4196. }
  4197. if(PRESSED(KEY_YES))
  4198. {
  4199. OnPlayerCommandText(playerid,"/inv");
  4200. }
  4201. Item_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
  4202. return 1;
  4203. }
  4204.  
  4205. public OnRconLoginAttempt(ip[], password[], success)
  4206. {
  4207. return 1;
  4208. }
  4209.  
  4210. public OnPlayerUpdate(playerid)
  4211. {
  4212. static armedbody_pTick[MAX_PLAYERS];
  4213. if(GetTickCount() - armedbody_pTick[playerid] > 113)
  4214. {
  4215.  
  4216. new weaponid[13],weaponammo[13],pArmedWeapon;
  4217. pArmedWeapon = GetPlayerWeapon(playerid);
  4218. GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]);
  4219. GetPlayerWeaponData(playerid,6,weaponid[6],weaponammo[6]);
  4220. if(weaponid[1] && weaponammo[1] > 0){
  4221. if(pArmedWeapon != weaponid[1]){
  4222. if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){
  4223. SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),8, 0.10000, 0.03000, 0.10000, -90.900006, 90.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  4224. }
  4225. }
  4226. else {
  4227. if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
  4228. RemovePlayerAttachedObject(playerid,0);
  4229. }
  4230. }
  4231. }
  4232. else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
  4233. RemovePlayerAttachedObject(playerid,0);
  4234. }
  4235. if(weaponid[6] && weaponammo[6] > 0){
  4236. if(pArmedWeapon != weaponid[6]){
  4237. if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){
  4238. SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[6]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  4239. }
  4240. }
  4241. else {
  4242. if(IsPlayerAttachedObjectSlotUsed(playerid,3)){
  4243. RemovePlayerAttachedObject(playerid,3);
  4244. }
  4245. }
  4246. }
  4247. else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){
  4248. RemovePlayerAttachedObject(playerid,3);
  4249. }
  4250. armedbody_pTick[playerid] = GetTickCount();
  4251. }
  4252. //============================================================================//
  4253. new Cashe[15];
  4254. format(Cashe,sizeof(Cashe),"%d", PlayerInfo[playerid][Cash]);
  4255. TextDrawSetString(TextCash3, Cashe);
  4256. //============================================================================//
  4257. return 1;
  4258. }
  4259.  
  4260. stock GetWeaponModel(weaponid)
  4261. {
  4262. switch(weaponid)
  4263. {
  4264. case 1:
  4265. return 331;
  4266.  
  4267. case 2..8:
  4268. return weaponid+331;
  4269.  
  4270. case 9:
  4271. return 341;
  4272.  
  4273. case 10..15:
  4274. return weaponid+311;
  4275.  
  4276. case 16..18:
  4277. return weaponid+326;
  4278.  
  4279. case 22..29:
  4280. return weaponid+324;
  4281.  
  4282. case 30,31:
  4283. return weaponid+325;
  4284.  
  4285. case 32:
  4286. return 372;
  4287.  
  4288. case 33..45:
  4289. return weaponid+324;
  4290.  
  4291. case 46:
  4292. return 371;
  4293. }
  4294. return 0;
  4295. }
  4296.  
  4297. public OnPlayerStreamIn(playerid, forplayerid)
  4298. {
  4299. return 1;
  4300. }
  4301.  
  4302. public OnPlayerStreamOut(playerid, forplayerid)
  4303. {
  4304. return 1;
  4305. }
  4306.  
  4307. public OnVehicleStreamIn(vehicleid, forplayerid)
  4308. {
  4309. return 1;
  4310. }
  4311.  
  4312. public OnVehicleStreamOut(vehicleid, forplayerid)
  4313. {
  4314. return 1;
  4315. }
  4316.  
  4317. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  4318. {
  4319. new cmdString[200];
  4320.  
  4321. switch (dialogid)
  4322. {
  4323. case DIALOG_REGISTRO:
  4324. {
  4325. if(response)
  4326. {
  4327. if(strlen(inputtext) < 5 || strlen(inputtext) > 16 || !strlen(inputtext))
  4328. {
  4329. SendClientMessage(playerid, COR_AVISO, "• Digite uma Senha com no Minimo 5 caracteres ou no Maximo 16");
  4330. format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê não tem uma Conta registrada\n\nDigite uma senha para Registrar\n\nStatus: {EE3B3B}N/A Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
  4331. return ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "~ REGISTRANDO ~", cmdString, "Registrar", "Cancelar");
  4332. }
  4333.  
  4334. DOF2_CreateFile(GetArquivo(playerid));
  4335. DOF2_SetString(GetArquivo(playerid), "Nome", Nome(playerid));
  4336. DOF2_SetString(GetArquivo(playerid), "Senha", inputtext);
  4337. DOF2_SetInt(GetArquivo(playerid), "Administrador", 0);
  4338. DOF2_SetInt(GetArquivo(playerid), "Level", 0);
  4339. DOF2_SetInt(GetArquivo(playerid), "Skin", 162);
  4340. DOF2_SetInt(GetArquivo(playerid), "Matou", 0);
  4341. DOF2_SetInt(GetArquivo(playerid), "Morreu", 0);
  4342. DOF2_SetInt(GetArquivo(playerid), "Dinheiro", 0);
  4343. DOF2_SetInt(GetArquivo(playerid), "Cash", 0);
  4344. DOF2_SetInt(GetArquivo(playerid), "CmdJaUsado", 0);
  4345. DOF2_SetInt(GetArquivo(playerid), "Madeira", 0);
  4346. DOF2_SetInt(GetArquivo(playerid), "Pedra", 0);
  4347. DOF2_SetInt(GetArquivo(playerid), "Metal", 0);
  4348. DOF2_SetInt(GetArquivo(playerid), "Parafuso", 0);
  4349. DOF2_SetInt(GetArquivo(playerid), "Borracha", 0);
  4350. DOF2_SetInt(GetArquivo(playerid), "Frutas", 0);
  4351. DOF2_SetInt(GetArquivo(playerid), "Peixe", 0);
  4352. DOF2_SetInt(GetArquivo(playerid), "Carne", 0);
  4353. DOF2_SetInt(GetArquivo(playerid), "Cloth", 0);
  4354. DOF2_SetInt(GetArquivo(playerid), "Agua", 0);
  4355. DOF2_SaveFile();
  4356.  
  4357. SendClientMessage(playerid, COR_SUCESSO, "• Registrado Com Sucesso Digite sua Senha para Logar.");
  4358. format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
  4359. return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
  4360. }
  4361. else
  4362. {
  4363. SelectTextDraw(playerid,0xFFFFFFFF);
  4364. for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
  4365. for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
  4366. }
  4367. }
  4368. case DIALOG_LOGIN:
  4369. {
  4370. if(response)
  4371. {
  4372. if(!strlen(inputtext))
  4373. {
  4374. SendClientMessage(playerid, COR_AVISO, "• Você precisa digitar Sua Senha para Logar.");
  4375. format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
  4376. return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
  4377. }
  4378.  
  4379. if(strcmp(inputtext, DOF2_GetString(GetArquivo(playerid), "Senha"), false) == 0)
  4380. {
  4381. return CarregarPlayer(playerid);
  4382. }
  4383. else
  4384. {
  4385.  
  4386. SendClientMessage(playerid, COR_AVISO, "• Atenção você digitou sua senha Errado, Digite-a Novamente.");
  4387. format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
  4388. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
  4389.  
  4390. PlayerInfo[playerid][ERRO]++;
  4391. if(PlayerInfo[playerid][ERRO] == 3)
  4392. {
  4393. format(cmdString, sizeof(cmdString),"• O Jogador(a) %s foi Kickado do Servidor | Motivo: Limite de Erro |", Nome(playerid), IP(playerid));
  4394. SendClientMessageToAll(COR_ADMIN, cmdString);
  4395. return Kick(playerid);
  4396. }
  4397. }
  4398. }
  4399. else
  4400. {
  4401. SelectTextDraw(playerid,0xFFFFFFFF);
  4402. for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
  4403. for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
  4404. }
  4405. }
  4406. }
  4407. if(dialogid == 9548)
  4408. {
  4409. format(arquivo1, sizeof arquivo1, "lang/%s.ini",nome);
  4410. if(response == 0)
  4411. { // Inglês
  4412. idioma[playerid]=EN; // seta o idioma do player para Inglês (=2/EN)
  4413. DOF2_SetInt(arquivo1,"Idioma",idioma[playerid]); // salva idioma escolhido no arquivo
  4414. DOF2_SaveFile();
  4415. CarregarTextPlayer(playerid);
  4416. CarregarPlayerText(playerid);
  4417. SelectTextDraw(playerid,0xFFFFFFFF);
  4418. for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
  4419. for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
  4420. }
  4421. if(response == 1)
  4422. { // Português
  4423. idioma[playerid]=PT; // seta o idioma do player para Português (=1/PT)
  4424. DOF2_SetInt(arquivo1,"Idioma",idioma[playerid]); // salva idioma escolhido no arquivo
  4425. DOF2_SaveFile();
  4426. CarregarTextPlayer(playerid);
  4427. CarregarPlayerText(playerid);
  4428. SelectTextDraw(playerid,0xFFFFFFFF);
  4429. for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
  4430. for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
  4431. }
  4432. }
  4433. if(dialogid == 9798)
  4434. {
  4435. if(!response) { return 1; }
  4436. switch(listitem)
  4437. {
  4438. case 0:
  4439. {
  4440. ShowPlayerDialog(playerid,9799,DIALOG_STYLE_LIST,"Armamentos","Rifle\nPistola\n","Selecionar","Voltar");
  4441. }
  4442. case 1:
  4443. {
  4444. ShowPlayerDialog(playerid,9795,DIALOG_STYLE_LIST,"Medicamentos","Bandagem - 3 Cloth's\nAnalgésico - 2 Águas + 1 Cloth\nMed KIT - 1 Bandagem + 1 Analgésico\n","Selecionar","Voltar");
  4445. }
  4446. }
  4447. }
  4448. if(dialogid == 9799)
  4449. {
  4450. if(!response) { return ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\nOutros","Aceitar","Cancelar"); }
  4451. {
  4452. if(listitem == 0)
  4453. {
  4454. if(PlayerInfo[playerid][Madeira] >= 5)
  4455. {
  4456. if(PlayerInfo[playerid][Metal] >= 10)
  4457. {
  4458. SendClientMessage(playerid, COR_VERMELHO, "Espere enquanto você faz seu rifle.");
  4459. ApplyAnimation(playerid, "SCRATCHING", "scshrtl", 4.0, 1, 0, 0, 0, 0, 1);
  4460. Valor [playerid] = 0 ;
  4461. ShowProgressBarForPlayer(playerid, Exemplo); //mostra a bar pro player
  4462. SetProgressBarValue ( Exemplo, Valor[playerid] ) ; //seta o valor dela
  4463. Baru[playerid] = SetTimerEx("Almentar", 500, true, "i" , playerid) ;//inicia o timer
  4464. }
  4465. else if(PlayerInfo[playerid][Metal] == 0)
  4466. {
  4467. SendClientMessage(playerid, COR_VERMELHO, "Você não tem os metais necessarios");
  4468. }
  4469. else if(PlayerInfo[playerid][Madeira] == 0)
  4470. {
  4471. SendClientMessage(playerid, COR_VERMELHO, "Você não tem madeira suficiente. Use: /ajuda.");
  4472. }
  4473. }
  4474. }
  4475. }
  4476. if(listitem == 1)
  4477. {
  4478. if(PlayerInfo[playerid][Parafuso] >= 5)
  4479. {
  4480. if(PlayerInfo[playerid][Metal] >= 10)
  4481. {
  4482. SendClientMessage(playerid, COR_VERMELHO, "Espere enquanto você faz sua pistola.");
  4483. ApplyAnimation(playerid, "SCRATCHING", "scshrtl", 4.0, 1, 0, 0, 0, 0, 1);
  4484. SetTimer("FazendoPistola", 10000, 0);
  4485. }
  4486. else if(PlayerInfo[playerid][Metal] == 0)
  4487. {
  4488. SendClientMessage(playerid, COR_VERMELHO, "Você não tem os metais necessarios!");
  4489. }
  4490. else if(PlayerInfo[playerid][Parafuso] == 0)
  4491. {
  4492. SendClientMessage(playerid, COR_VERMELHO, "Você não tem os parafusos necessarios!");
  4493. }
  4494. }
  4495. }
  4496. }
  4497. if(dialogid == 9795)
  4498. {
  4499. if(!response) { return ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\nOutros","Aceitar","Cancelar"); }
  4500. {
  4501. if(listitem == 0)
  4502. {
  4503. if(Bandagem[playerid] == 0)
  4504. {
  4505. if(PlayerInfo[playerid][Cloth] >= 3)
  4506. {
  4507. PlayerInfo[playerid][Cloth] -= 5;
  4508. SendClientMessage(playerid, COR_VERDE, "Você fez um bandagem ela cura até 10 da sua vida, para usa-la digite /usar bandagem");
  4509. Bandagem[playerid] += 1;
  4510. }
  4511. else
  4512. {
  4513. SendClientMessage(playerid, COR_VERMELHO, "Você não tem Cloth suficiente. Use: /ajuda.");
  4514. }
  4515. }
  4516. }
  4517. }
  4518. if(listitem == 1)
  4519. {
  4520. if(Remedio[playerid] == 0)
  4521. {
  4522. if(PlayerInfo[playerid][Agua] >= 2)
  4523. {
  4524. if(PlayerInfo[playerid][Cloth] >= 1)
  4525. {
  4526. PlayerInfo[playerid][Cloth] -= 1;
  4527. PlayerInfo[playerid][Agua] -= 2;
  4528. SendClientMessage(playerid, COR_VERDE, "Você fez um Analgésico ele cura até 30 da sua vida, para usa-lo digite /tomar remedio");
  4529. Remedio[playerid] += 1;
  4530. } else
  4531. {
  4532. SendClientMessage(playerid, COR_VERMELHO, "Você não tem Cloth suficiente. Use: /ajuda.");
  4533. }
  4534. }
  4535. else
  4536. {
  4537. SendClientMessage(playerid, COR_VERMELHO, "Você não tem água suficiente. Use: /ajuda.");
  4538. }
  4539. }
  4540. }
  4541. if(listitem == 2)
  4542. {
  4543. if(Medkit[playerid] == 0)
  4544. {
  4545. if(Remedio[playerid] >= 1)
  4546. {
  4547. if(Bandagem[playerid] >= 1)
  4548. {
  4549. Bandagem[playerid] = Bandagem[playerid]-1;
  4550. Remedio[playerid] = Remedio[playerid]-1;
  4551. SendClientMessage(playerid, COR_VERDE, "Você fez um Med KIT ele cura 100 da sua vida, para usa-lo digite /medkit");
  4552. Medkit[playerid] += 1;
  4553. } else
  4554. {
  4555. SendClientMessage(playerid, COR_VERMELHO, "Você não tem 1 bandagem suficiente. Use: /ajuda.");
  4556. }
  4557. }
  4558. else
  4559. {
  4560. SendClientMessage(playerid, COR_VERMELHO, "Você não tem 1 analgésico. Use: /ajuda.");
  4561. }
  4562. }
  4563. }
  4564. }
  4565. if(dialogid == 123)
  4566. {
  4567. if(!response) { return 1; }
  4568. switch(listitem)
  4569. {
  4570. case 0:
  4571. {
  4572. ShowPlayerDialog(playerid,1234,DIALOG_STYLE_LIST,"Armamentos","Espingarda\nPistola\nSniper\nRifle\nShotgum\n","Selecionar","Voltar");
  4573. }
  4574. case 1:
  4575. {
  4576. ShowPlayerDialog(playerid,12345,DIALOG_STYLE_LIST,"Medicamentos","Bandagem\nAnalgésico\nMed Kit\n","Selecionar","Voltar");
  4577. }
  4578. }
  4579. }
  4580. if(dialogid == 1234)
  4581. {
  4582. if(!response) { return ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Loja de Cash","Armamentos\nMedicamentos\n","Aceitar","Cancelar"); }
  4583. {
  4584. if(listitem == 0)
  4585. {
  4586. if(PlayerInfo[playerid][Cash] >= 20)
  4587. {
  4588. if(PlayerInfo[playerid][Cash] < 20)
  4589. {
  4590. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 20 de cash para comprar!");
  4591. }
  4592. GivePlayerWeapon(playerid, 33, 20);
  4593. PlayerInfo[playerid][Cash] -= 20;
  4594. SendClientMessage(playerid, COR_VERDE, "Você comprou uma espingarda por 20 Cash's.");
  4595. }
  4596. }
  4597. }
  4598. if(listitem == 1)
  4599. {
  4600. if(PlayerInfo[playerid][Cash] >= 30)
  4601. {
  4602. if(PlayerInfo[playerid][Cash] < 20)
  4603. {
  4604. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 20 de cash para comprar!");
  4605. }
  4606. GivePlayerWeapon(playerid, 24, 49);
  4607. PlayerInfo[playerid][Cash] -= 30;
  4608. SendClientMessage(playerid, COR_VERDE, "Você comprou uma pistola por 30 Cash's.");
  4609. }
  4610. }
  4611. if(listitem == 2)
  4612. {
  4613. if(PlayerInfo[playerid][Cash] >= 50)
  4614. {
  4615. if(PlayerInfo[playerid][Cash] < 50)
  4616. {
  4617. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 50 de cash para comprar!");
  4618. }
  4619. GivePlayerWeapon(playerid, 34, 10);
  4620. PlayerInfo[playerid][Cash] -= 50;
  4621. SendClientMessage(playerid, COR_VERDE, "Você comprou uma Sniper por 50 Cash's.");
  4622. }
  4623. }
  4624. if(listitem == 3)
  4625. {
  4626. if(PlayerInfo[playerid][Cash] >= 40)
  4627. {
  4628. if(PlayerInfo[playerid][Cash] < 40)
  4629. {
  4630. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 40 de cash para comprar!");
  4631. }
  4632. GivePlayerWeapon(playerid, 31, 100);
  4633. PlayerInfo[playerid][Cash] -= 40;
  4634. SendClientMessage(playerid, COR_VERDE, "Você comprou um Rifle por 40 Cash's.");
  4635. }
  4636. }
  4637. if(listitem == 4)
  4638. {
  4639. if(PlayerInfo[playerid][Cash] >= 30)
  4640. {
  4641. if(PlayerInfo[playerid][Cash] < 30)
  4642. {
  4643. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 30 de cash para comprar!");
  4644. }
  4645. GivePlayerWeapon(playerid, 25, 24);
  4646. PlayerInfo[playerid][Cash] -= 30;
  4647. SendClientMessage(playerid, COR_VERDE, "Você comprou uma Shotgum por 30 Cash's.");
  4648. }
  4649. }
  4650. }
  4651. if(dialogid == 12345)
  4652. {
  4653. if(!response) { return ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Loja de Cash","Armamentos\nMedicamentos\n","Aceitar","Cancelar"); }
  4654. {
  4655. if(listitem == 0)
  4656. {
  4657. if(PlayerInfo[playerid][Cash] >= 3)
  4658. {
  4659. if(PlayerInfo[playerid][Cash] < 3)
  4660. {
  4661. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 3 de cash para comprar!");
  4662. }
  4663. Bandagem[playerid] += 1;
  4664. PlayerInfo[playerid][Cash] -= 3;
  4665. SendClientMessage(playerid, COR_VERDE, "Você comprou uma bandagem por 3 Cash's.");
  4666. }
  4667. }
  4668. }
  4669. if(listitem == 1)
  4670. {
  4671. if(PlayerInfo[playerid][Cash] >= 5)
  4672. {
  4673. if(PlayerInfo[playerid][Cash] < 5)
  4674. {
  4675. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 5 de cash para comprar!");
  4676. }
  4677. Remedio[playerid] += 1;
  4678. PlayerInfo[playerid][Cash] -= 5;
  4679. SendClientMessage(playerid, COR_VERDE, "Você comprou um analgésico por 5 Cash's.");
  4680. }
  4681. }
  4682. if(listitem == 2)
  4683. {
  4684. if(PlayerInfo[playerid][Cash] >= 10)
  4685. {
  4686. if(PlayerInfo[playerid][Cash] < 10)
  4687. {
  4688. return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 50 de cash para comprar!");
  4689. }
  4690. Medkit[playerid] += 1;
  4691. PlayerInfo[playerid][Cash] -= 10;
  4692. SendClientMessage(playerid, COR_VERDE, "Você comprou um MedKit por 10 Cash's.");
  4693. }
  4694. }
  4695. }
  4696. if(dialogid == 9964)
  4697. {
  4698. if(!response) { return 1; }
  4699. switch(listitem)
  4700. {
  4701. case 0:
  4702. {
  4703. ShowPlayerDialog(playerid,9965,DIALOG_STYLE_LIST,"Crafting Casa/House","Foundation [Fundação]\nWall [Parede]\nWallDoor [Parede para Porta]\nDoor [Porta]\nWindown [Parede com Janela]\nRamp [Rampa]\n","Selecionar","Voltar");
  4704. }
  4705. case 1:
  4706. {
  4707. ShowPlayerDialog(playerid,9952,DIALOG_STYLE_LIST,"Crafting Mobilias/Furniture","Workbench [Bancada de Trabalho]\nBed [Cama]\nChest [Baú]\nFurnace [Fornalha]","Selecionar","Voltar");
  4708. }
  4709. case 2:
  4710. {
  4711. ShowPlayerDialog(playerid,9948,DIALOG_STYLE_LIST,"Crafting Veiculos/Vehicles","Motorcycle Sanchez [Moto Sanchez]\nQuadricycle [Quadriciculo]\nBandito Car [Carro Bandito]\nPatriot Jeep Car [Carro Patriot Jeep]","Selecionar","Voltar");
  4712. }
  4713. }
  4714. }
  4715. if(dialogid == 9965)
  4716. {
  4717. if(!response) { return ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar"); }
  4718. {
  4719. if(listitem == 0)
  4720. {
  4721. if(PlayerInfo[playerid][Madeira] >= 20)
  4722. {
  4723. new id = -1;
  4724. for(new i; i < MAX_BASES; i++)
  4725. {
  4726. if(!Base[i][Existe])
  4727. {
  4728. id = i;
  4729. break;
  4730. }
  4731. }
  4732. new Float:X, Float:Y, Float:Z, Float: A;
  4733. GetPlayerPos(playerid, X, Y, Z);
  4734. GetPlayerFacingAngle(playerid, A);
  4735.  
  4736. Base[id][Dono] = pName(playerid);
  4737. Base[id][Existe] = 1;
  4738. Base[id][PosX] = X;
  4739. Base[id][PosY] = Y;
  4740. Base[id][PosZ] = Z+1;
  4741. Base[id][RZ] = A + 180;
  4742. Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX] +1, Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
  4743.  
  4744. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Fundação criada com sucesso."); // String em português
  4745. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Foundation created successfully."); // String em inglês
  4746. SendClientMessage(playerid, verde, string1);
  4747.  
  4748. if(EditBaseID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  4749. new id1 = GetPlayerRangeBase(playerid);
  4750. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  4751. if(strcmp(Base[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  4752. EditBaseID[playerid] = id1;
  4753. EditDynamicObject(playerid, Base[id1][ObjectB]);
  4754. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  4755. SalvarBases(id);
  4756. }
  4757. else if(PlayerInfo[playerid][Madeira] == 0)
  4758. {
  4759. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  4760. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  4761. SendClientMessage(playerid, fail, string1);
  4762. }
  4763. }
  4764. }
  4765. if(listitem == 1)
  4766. {
  4767. if(PlayerInfo[playerid][Madeira] >= 20)
  4768. {
  4769. new id = -1;
  4770. for(new i; i < MAX_BASES; i++)
  4771. {
  4772. if(!Base[i][Existe])
  4773. {
  4774. id = i;
  4775. break;
  4776. }
  4777. }
  4778. new Float:X, Float:Y, Float:Z, Float: A;
  4779. GetPlayerPos(playerid, X, Y, Z);
  4780. GetPlayerFacingAngle(playerid, A);
  4781.  
  4782. Base[id][Dono] = pName(playerid);
  4783. Base[id][Existe] = 1;
  4784. Base[id][PosX] = X;
  4785. Base[id][PosY] = Y;
  4786. Base[id][PosZ] = Z+1;
  4787. Base[id][RZ] = A + 180;
  4788. Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX] +1, Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
  4789.  
  4790. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Parede criada com sucesso!"); // String em português
  4791. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Wall created successfully!"); // String em inglês
  4792. SendClientMessage(playerid, verde, string1);
  4793.  
  4794. if(EditBaseID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  4795. new id1 = GetPlayerRangeBase(playerid);
  4796. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  4797. if(strcmp(Base[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  4798. EditBaseID[playerid] = id1;
  4799. EditDynamicObject(playerid, Base[id1][ObjectB]);
  4800. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  4801. SalvarBases(id);
  4802. }
  4803. else if(PlayerInfo[playerid][Madeira] == 0)
  4804. {
  4805. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  4806. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  4807. SendClientMessage(playerid, fail, string1);
  4808. }
  4809. }
  4810. if(listitem == 2)
  4811. {
  4812. if(PlayerInfo[playerid][Madeira] >= 15)
  4813. {
  4814. new id = -1;
  4815. for(new i; i < MAX_DOOR; i++)
  4816. {
  4817. if(!Door[i][Existe])
  4818. {
  4819. id = i;
  4820. break;
  4821. }
  4822. }
  4823. new Float:X, Float:Y, Float:Z, Float: A;
  4824. GetPlayerPos(playerid, X, Y, Z);
  4825. GetPlayerFacingAngle(playerid, A);
  4826.  
  4827. Door[id][Dono] = pName(playerid);
  4828. Door[id][Existe] = 1;
  4829. Door[id][PosX] = X;
  4830. Door[id][PosY] = Y;
  4831. Door[id][PosZ] = Z;
  4832. Door[id][RZ] = A + 180;
  4833. Door[id][ObjectF] = CreateDynamicObject(walldoor, Door[id][PosX] +1, Door[id][PosY], Door[id][PosZ], Door[id][RX], Door[id][RY], Door[id][RZ]);
  4834.  
  4835. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] 'Parede para porta' criada com sucesso!"); // String em português
  4836. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Walldoor created successfully!"); // String em inglês
  4837. SendClientMessage(playerid, verde, string1);
  4838.  
  4839. if(EditDoorID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  4840. new id1 = GetPlayerRangeDoor(playerid);
  4841. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  4842. if(strcmp(Door[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  4843. EditDoorID[playerid] = id1;
  4844. EditDynamicObject(playerid, Door[id1][ObjectF]);
  4845. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  4846. SalvarDoor(id);
  4847. }
  4848. else if(PlayerInfo[playerid][Madeira] == 0)
  4849. {
  4850. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  4851. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  4852. SendClientMessage(playerid, fail, string1);
  4853. }
  4854. }
  4855. if(listitem == 3)
  4856. {
  4857. if(PlayerInfo[playerid][Madeira] >= 10)
  4858. {
  4859. new id = -1;
  4860. for(new i; i < MAX_DOOR; i++)
  4861. {
  4862. if(!Door[i][Existe])
  4863. {
  4864. id = i;
  4865. break;
  4866. }
  4867. }
  4868. new Float:X, Float:Y, Float:Z, Float: A;
  4869. GetPlayerPos(playerid, X, Y, Z);
  4870. GetPlayerFacingAngle(playerid, A);
  4871.  
  4872. Porta[id][Dono] = pName(playerid);
  4873. Porta[id][Existe] = 1;
  4874. Porta[id][PosX] = X;
  4875. Porta[id][PosY] = Y;
  4876. Porta[id][PosZ] = Z;
  4877. Porta[id][RZ] = A + 180;
  4878. Porta[id][ObjectC] = CreateDynamicObject(porta, Porta[id][PosX] +1, Porta[id][PosY], Porta[id][PosZ], Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
  4879.  
  4880. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Porta criada com sucesso!"); // String em português
  4881. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Door created successfully!"); // String em inglês
  4882. SendClientMessage(playerid, verde, string1);
  4883.  
  4884. if(EditPortaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  4885. new id1 = GetPlayerRangePorta(playerid);
  4886. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  4887. if(strcmp(Porta[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  4888. EditPortaID[playerid] = id1;
  4889. EditDynamicObject(playerid, Porta[id1][ObjectC]);
  4890. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  4891. SalvarPortas(id);
  4892. }
  4893. else if(PlayerInfo[playerid][Madeira] == 0)
  4894. {
  4895. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  4896. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  4897. SendClientMessage(playerid, fail, string1);
  4898. }
  4899. }
  4900. if(listitem == 4)
  4901. {
  4902. if(PlayerInfo[playerid][Madeira] >= 15)
  4903. {
  4904. new id = -1;
  4905. for(new i; i < MAX_WINDOWN; i++)
  4906. {
  4907. if(!Windown[i][Existe])
  4908. {
  4909. id = i;
  4910. break;
  4911. }
  4912. }
  4913. new Float:X, Float:Y, Float:Z, Float: A;
  4914. GetPlayerPos(playerid, X, Y, Z);
  4915. GetPlayerFacingAngle(playerid, A);
  4916.  
  4917. Windown[id][Dono] = pName(playerid);
  4918. Windown[id][Existe] = 1;
  4919. Windown[id][PosX] = X;
  4920. Windown[id][PosY] = Y;
  4921. Windown[id][PosZ] = Z;
  4922. Windown[id][RZ] = A + 180;
  4923. Windown[id][ObjectH] = CreateDynamicObject(windown1, Windown[id][PosX] +1, Windown[id][PosY], Windown[id][PosZ], Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
  4924.  
  4925. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] 'Parede para janela' criada com sucesso!"); // String em português
  4926. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Windown created successfully!"); // String em inglês
  4927. SendClientMessage(playerid, verde, string1);
  4928.  
  4929. if(EditWindownID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  4930. new id1 = GetPlayerRangeWindown(playerid);
  4931. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  4932. if(strcmp(Windown[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  4933. EditWindownID[playerid] = id1;
  4934. EditDynamicObject(playerid, Windown[id1][ObjectH]);
  4935. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  4936. SalvarWindowns(id);
  4937. }
  4938. else if(PlayerInfo[playerid][Madeira] == 0)
  4939. {
  4940. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  4941. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  4942. SendClientMessage(playerid, fail, string1);
  4943. }
  4944. }
  4945. if(listitem == 5)
  4946. {
  4947. if(PlayerInfo[playerid][Madeira] >= 20)
  4948. {
  4949. new id = -1;
  4950. for(new i; i < MAX_RAMPAS; i++)
  4951. {
  4952. if(!Rampa[i][Existe])
  4953. {
  4954. id = i;
  4955. break;
  4956. }
  4957. }
  4958. new Float:X, Float:Y, Float:Z, Float: A;
  4959. GetPlayerPos(playerid, X, Y, Z);
  4960. GetPlayerFacingAngle(playerid, A);
  4961.  
  4962. Rampa[id][Dono] = pName(playerid);
  4963. Rampa[id][Existe] = 1;
  4964. Rampa[id][PosX] = X;
  4965. Rampa[id][PosY] = Y;
  4966. Rampa[id][PosZ] = Z;
  4967. Rampa[id][RZ] = A + 180;
  4968. Rampa[id][ObjectE] = CreateDynamicObject(rampa, Rampa[id][PosX] +1, Rampa[id][PosY], Rampa[id][PosZ], Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
  4969.  
  4970. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Rampa criada com sucesso!"); // String em português
  4971. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Ramp created successfully!"); // String em inglês
  4972. SendClientMessage(playerid, verde, string1);
  4973.  
  4974. if(EditRampaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  4975. new id1 = GetPlayerRangeRampa(playerid);
  4976. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  4977. if(strcmp(Rampa[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua / This is not your base.");
  4978. EditRampaID[playerid] = id1;
  4979. EditDynamicObject(playerid, Rampa[id1][ObjectE]);
  4980. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  4981. SalvarRampas(id);
  4982. }
  4983. else if(PlayerInfo[playerid][Madeira] == 0)
  4984. {
  4985. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  4986. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  4987. SendClientMessage(playerid, fail, string1);
  4988. }
  4989. }
  4990. }
  4991. if(dialogid == 9952)
  4992. {
  4993. if(!response) { return ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar"); }
  4994. {
  4995. if(listitem == 0)
  4996. {
  4997. if(PlayerInfo[playerid][Madeira] >= 15)
  4998. {
  4999. new id = -1;
  5000. for(new i; i < MAX_BANCADAS; i++)
  5001. {
  5002. if(!Bancada[i][Existe])
  5003. {
  5004. id = i;
  5005. break;
  5006. }
  5007. }
  5008. new Float:X, Float:Y, Float:Z, Float: A;
  5009. GetPlayerPos(playerid, X, Y, Z);
  5010. GetPlayerFacingAngle(playerid, A);
  5011.  
  5012. Bancada[id][Dono] = pName(playerid);
  5013. Bancada[id][Existe] = 1;
  5014. Bancada[id][PosX] = X;
  5015. Bancada[id][PosY] = Y;
  5016. Bancada[id][PosZ] = Z -1;
  5017. Bancada[id][RZ] = A + 180;
  5018. Bancada[id][ObjectA] = CreateDynamicObject(bancada, Bancada[id][PosX] +1, Bancada[id][PosY], Bancada[id][PosZ], Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
  5019.  
  5020. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Bancada de Trabalho criada com sucesso!"); // String em português
  5021. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Workbench created successfully!"); // String em inglês
  5022. SendClientMessage(playerid, verde, string1);
  5023.  
  5024. if(EditBancadaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  5025. new id1 = GetPlayerRangeBancada(playerid);
  5026. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  5027. if(strcmp(Bancada[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  5028. EditBancadaID[playerid] = id1;
  5029. EditDynamicObject(playerid, Bancada[id1][ObjectA]);
  5030. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  5031. SalvarBancadas(id);
  5032. }
  5033. else if(PlayerInfo[playerid][Madeira] == 0)
  5034. {
  5035. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  5036. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  5037. SendClientMessage(playerid, fail, string1);
  5038. }
  5039. }
  5040. }
  5041. if(listitem == 1)
  5042. {
  5043. if(PlayerInfo[playerid][Madeira] >= 15)
  5044. {
  5045. if(PlayerInfo[playerid][Cloth] >= 10)
  5046. {
  5047. new id = -1;
  5048. for(new i; i < MAX_CAMA; i++)
  5049. {
  5050. if(!Cama[i][Existe])
  5051. {
  5052. id = i;
  5053. break;
  5054. }
  5055. }
  5056. new Float:X, Float:Y, Float:Z, Float: A;
  5057. GetPlayerPos(playerid, X, Y, Z);
  5058. GetPlayerFacingAngle(playerid, A);
  5059.  
  5060. Cama[id][Dono] = pName(playerid);
  5061. Cama[id][Existe] = 1;
  5062. Cama[id][PosX] = X;
  5063. Cama[id][PosY] = Y;
  5064. Cama[id][PosZ] = Z;
  5065. Cama[id][RZ] = A + 180;
  5066. Cama[id][ObjectG] = CreateDynamicObject(cama, Cama[id][PosX] +1, Cama[id][PosY], Cama[id][PosZ], Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
  5067.  
  5068. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Cama criada com sucesso!"); // String em português
  5069. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Sleeping Bed created successfully!"); // String em inglês
  5070. SendClientMessage(playerid, verde, string1);
  5071.  
  5072. if(EditCamaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  5073. new id1 = GetPlayerRangeCama(playerid);
  5074. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  5075. if(strcmp(Cama[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  5076. EditCamaID[playerid] = id1;
  5077. EditDynamicObject(playerid, Cama[id1][ObjectG]);
  5078. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  5079. SalvarCama(id);
  5080. }
  5081. else if(PlayerInfo[playerid][Madeira] == 0)
  5082. {
  5083. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  5084. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  5085. SendClientMessage(playerid, fail, string1);
  5086. }
  5087. else if(PlayerInfo[playerid][Cloth] == 0)
  5088. {
  5089. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  5090. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  5091. SendClientMessage(playerid, fail, string1);
  5092. }
  5093. }
  5094. }
  5095. if(listitem == 2)
  5096. {
  5097. if(PlayerInfo[playerid][Madeira] >= 15)
  5098. {
  5099. new id = -1;
  5100. for(new i; i < MAX_BAU; i++)
  5101. {
  5102. if(!Bau[i][Existe])
  5103. {
  5104. id = i;
  5105. break;
  5106. }
  5107. }
  5108. new Float:X, Float:Y, Float:Z, Float: A;
  5109. GetPlayerPos(playerid, X, Y, Z);
  5110. GetPlayerFacingAngle(playerid, A);
  5111.  
  5112. Bau[id][Dono] = pName(playerid);
  5113. Bau[id][Existe] = 1;
  5114. Bau[id][PosX] = X;
  5115. Bau[id][PosY] = Y;
  5116. Bau[id][PosZ] = Z;
  5117. Bau[id][RZ] = A + 180;
  5118. Bau[id][ObjectD] = CreateDynamicObject(bau, Bau[id][PosX] +1, Bau[id][PosY], Bau[id][PosZ], Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
  5119.  
  5120. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Baú criada com sucesso!"); // String em português
  5121. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Chest created successfully!"); // String em inglês
  5122. SendClientMessage(playerid, verde, string1);
  5123.  
  5124. if(EditBauID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  5125. new id1 = GetPlayerRangeBau(playerid);
  5126. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  5127. if(strcmp(Bau[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  5128. EditBauID[playerid] = id1;
  5129. EditDynamicObject(playerid, Bau[id1][ObjectD]);
  5130. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  5131. SalvarBaus(id);
  5132. }
  5133. else if(PlayerInfo[playerid][Madeira] == 0)
  5134. {
  5135. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  5136. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
  5137. SendClientMessage(playerid, fail, string1);
  5138. }
  5139. }
  5140. if(listitem == 3)
  5141. {
  5142. if(PlayerInfo[playerid][Pedra] >= 60)
  5143. {
  5144. new id = -1;
  5145. for(new i; i < MAX_FORNO; i++)
  5146. {
  5147. if(!Forno[i][Existe])
  5148. {
  5149. id = i;
  5150. break;
  5151. }
  5152. }
  5153. new Float:X, Float:Y, Float:Z, Float: A;
  5154. GetPlayerPos(playerid, X, Y, Z);
  5155. GetPlayerFacingAngle(playerid, A);
  5156.  
  5157. Forno[id][Dono] = pName(playerid);
  5158. Forno[id][Existe] = 1;
  5159. Forno[id][PosX] = X;
  5160. Forno[id][PosY] = Y;
  5161. Forno[id][PosZ] = Z;
  5162. Forno[id][RZ] = A + 180;
  5163. Forno[id][ObjectJ] = CreateDynamicObject(forno, Forno[id][PosX] +1, Forno[id][PosY], Forno[id][PosZ], Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
  5164.  
  5165. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Fornalha criada com sucesso!"); // String em português
  5166. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Furnace created successfully!"); // String em inglês
  5167. SendClientMessage(playerid, verde, string1);
  5168.  
  5169. if(EditFornoID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
  5170. new id1 = GetPlayerRangeForno(playerid);
  5171. if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
  5172. if(strcmp(Forno[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
  5173. EditFornoID[playerid] = id1;
  5174. EditDynamicObject(playerid, Forno[id1][ObjectJ]);
  5175. SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
  5176. SalvarForno(id);
  5177. }
  5178. else if(PlayerInfo[playerid][Pedra] == 0)
  5179. {
  5180. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem pedras suficiente, use: /ajuda - Crafting - Contruções."); // String em português
  5181. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough stones, use: /help - Crafting - Construções."); // String em inglês
  5182. SendClientMessage(playerid, fail, string1);
  5183. }
  5184. }
  5185. }
  5186. if(dialogid == 9948)
  5187. {
  5188. if(!response) { return ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar"); }
  5189. {
  5190. if(listitem == 0)
  5191. {
  5192. if(PlayerInfo[playerid][Borracha] >= 25)
  5193. {
  5194. if(PlayerInfo[playerid][Parafuso] >= 50)
  5195. {
  5196. if(PlayerInfo[playerid][Metal] >= 100)
  5197. {
  5198. new Float:X, Float:Y, Float:Z, Float:A;
  5199. GetPlayerPos(playerid, X, Y, Z);
  5200. GetPlayerFacingAngle(playerid, A);
  5201. CreateVehicle(468, X+5, Y, Z+1, A+180, -1, -1, 60);
  5202. PlayerInfo[playerid][Borracha] -= 25;
  5203. PlayerInfo[playerid][Metal] -= 100;
  5204. PlayerInfo[playerid][Parafuso] -= 50;
  5205. }
  5206. else
  5207. {
  5208. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem metais suficientes, use: /ajuda - Crafting - Contruções."); // String em português
  5209. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough, metals use: /help - Crafting - Construções."); // String em inglês
  5210. SendClientMessage(playerid, fail, string1);
  5211. }
  5212. }
  5213. else
  5214. {
  5215. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem parafusos suficientes, use: /ajuda - Crafting - Contruções."); // String em português
  5216. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough screw, use: /help - Crafting - Construções."); // String em inglês
  5217. SendClientMessage(playerid, fail, string1);
  5218. }
  5219. }
  5220. else
  5221. {
  5222. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem borrachas suficientes, use: /ajuda - Crafting - Contruções."); // String em português
  5223. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough rubbers, use: /help - Crafting - Construções."); // String em inglês
  5224. SendClientMessage(playerid, fail, string1);
  5225. }
  5226. }
  5227. }
  5228. if(listitem == 1)
  5229. {
  5230. if(PlayerInfo[playerid][Borracha] >= 25)
  5231. {
  5232. if(PlayerInfo[playerid][Parafuso] >= 50)
  5233. {
  5234. if(PlayerInfo[playerid][Metal] >= 100)
  5235. {
  5236. new Float:X, Float:Y, Float:Z, Float:A;
  5237. GetPlayerPos(playerid, X, Y, Z);
  5238. GetPlayerFacingAngle(playerid, A);
  5239. CreateVehicle(470, X+5, Y, Z+1, A+180, -1, -1, 60);
  5240. PlayerInfo[playerid][Borracha] -= 50;
  5241. PlayerInfo[playerid][Metal] -= 250;
  5242. PlayerInfo[playerid][Parafuso] -= 100;
  5243. }
  5244. else
  5245. {
  5246. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem metais suficientes, use: /ajuda - Crafting - Contruções."); // String em português
  5247. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough, metals use: /help - Crafting - Construções."); // String em inglês
  5248. SendClientMessage(playerid, fail, string1);
  5249. }
  5250. }
  5251. else
  5252. {
  5253. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem parafusos suficientes, use: /ajuda - Crafting - Contruções."); // String em português
  5254. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough screw, use: /help - Crafting - Construções."); // String em inglês
  5255. SendClientMessage(playerid, fail, string1);
  5256. }
  5257. }
  5258. else
  5259. {
  5260. if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem borrachas suficientes, use: /ajuda - Crafting - Contruções."); // String em português
  5261. if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough rubbers, use: /help - Crafting - Construções."); // String em inglês
  5262. SendClientMessage(playerid, fail, string1);
  5263. }
  5264. }
  5265. }
  5266. Item_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[0]);
  5267. return 1;
  5268. }
  5269.  
  5270. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  5271. {
  5272. if(clickedid == Text: INVALID_TEXT_DRAW && PlayerInfo[playerid][Logado] == false)
  5273. {
  5274. SelectTextDraw(playerid,0xFFFFFFFF);
  5275. }
  5276. if(Inv[playerid][InvOpen] == true)
  5277. {
  5278. if(clickedid == Text:INVALID_TEXT_DRAW)
  5279. {
  5280. EsconderInventario(playerid);
  5281. }
  5282. }
  5283. return 1;
  5284. }
  5285.  
  5286. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  5287. {
  5288. new cmdString[200];
  5289.  
  5290. if(playertextid == PlayerRegistro[0])
  5291. {
  5292. if(DOF2_FileExists(GetArquivo(playerid)))
  5293. {
  5294. SendClientMessage(playerid, COR_AVISO, "• Você ja tem uma Conta, Clique em Logar para Logar.");
  5295. }
  5296. else
  5297. {
  5298. for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
  5299. for(new i; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
  5300.  
  5301. format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê não tem uma Conta registrada\n\nDigite uma senha para Registrar\n\nStatus: {EE3B3B}N/A Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
  5302. ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "~ REGISTRANDO ~", cmdString, "Registrar", "Cancelar");
  5303. }
  5304. }
  5305. if(playertextid == PlayerRegistro[1])
  5306. {
  5307.  
  5308. if(DOF2_FileExists(GetArquivo(playerid)))
  5309. {
  5310. for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
  5311. for(new i; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
  5312.  
  5313. format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
  5314. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
  5315. }
  5316. else
  5317. {
  5318. SendClientMessage(playerid, COR_AVISO, "• Você não tem uma Conta, Clique em Registrar para Registrar.");
  5319. }
  5320. }
  5321. if(playertextid == PlayerRegistro[2])
  5322. {
  5323.  
  5324. for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
  5325. for(new i; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
  5326.  
  5327. for(new i = 0; i < sizeof(Info); i++) { TextDrawShowForPlayer(playerid, Info[i]); }
  5328. PlayerTextDrawShow(playerid, PlayerRegistro[4]);
  5329.  
  5330. }
  5331. if(playertextid == PlayerRegistro[3])
  5332. {
  5333. format(cmdString, sizeof(cmdString), "O Jogador %s Resolveu sair do Servidor", Nome(playerid));
  5334. SendClientMessageToAll(COR_ADMIN, cmdString);
  5335. for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
  5336. for(new i; i < sizeof(PlayerRegistro) - 1; i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
  5337. GameTextForPlayer(playerid, "~", 1000, 6);
  5338. }
  5339. if(playertextid == PlayerRegistro[4])
  5340. {
  5341. for(new i; i < sizeof(Registro); i++) { TextDrawShowForPlayer(playerid, Registro[i]); }
  5342. for(new i; i < sizeof(PlayerRegistro) - 1; i++) { PlayerTextDrawShow(playerid, PlayerRegistro[i]); }
  5343.  
  5344. for(new i = 0; i < sizeof(Info); i++) { TextDrawHideForPlayer(playerid, Info[i]); }
  5345. PlayerTextDrawHide(playerid, PlayerRegistro[4]);
  5346. }
  5347. INV_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
  5348. return 1;
  5349. }
  5350.  
  5351. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  5352. {
  5353. return 1;
  5354. }
  5355.  
  5356. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  5357. {
  5358. if(hittype == 3)
  5359. {
  5360. if(IsValidObject(Bambi) && hitid == Bambi)
  5361. {
  5362. SendClientMessage(playerid, -1, "Você acertou o bambi, digite /degolar para mata-lo!");
  5363. BambiDead[playerid] = 1;
  5364. }
  5365. }
  5366. return 1;
  5367. }
  5368.  
  5369. forward Degolado(playerid);
  5370. public Degolado(playerid)
  5371. {
  5372. StopLoopingAnim(playerid);
  5373. PlayerInfo[playerid][Cloth] += 3;
  5374. PlayerInfo[playerid][Carne] += 3;
  5375. SendClientMessage(playerid, verde, "Você degolou o bambi e conseguiu 3 carnes e 3 cloth's!");
  5376. BambiDead[playerid] = 0;
  5377. DestroyObject(Bambi);
  5378. SetTimer("BambiVoltou", 30000, true);
  5379. }
  5380.  
  5381. public BambiVoltou(playerid)
  5382. {
  5383. Bambi = CreateObject(19315, -448.4130,-2647.3594,155.0000,0.0000000,0.0000000,0.0000000,0.0000000); // bambi
  5384. return 1;
  5385. }
  5386.  
  5387. public DestruirTextoDraw(playerid)
  5388. {
  5389. TextDrawHideForPlayer(playerid, Wood[playerid]);
  5390. TextDrawHideForPlayer(playerid, Boxzin[playerid]);
  5391. TextDrawHideForPlayer(playerid, Stone[playerid]);
  5392. TextDrawHideForPlayer(playerid, Boxzin2[playerid]);
  5393. TextDrawHideForPlayer(playerid, MetalF[playerid]);
  5394. return 1;
  5395. }
  5396.  
  5397. public pegandoagua(playerid)
  5398. {
  5399. Valor2 [playerid] +=20; //almentará a bar de 5 em 5
  5400. SetProgressBarValue(Exemplo2, Valor2[playerid]);//seta o valor da bar para o valor da variavel
  5401. UpdateProgressBar(Exemplo2, playerid); // atualiza a bar
  5402. if (Valor2[playerid] == 100)
  5403. { //quando chegar a 100
  5404. HideProgressBarForPlayer(playerid, Exemplo2); //sumira a bar
  5405. SetProgressBarValue (Exemplo2, 0) ;//setara o valor dela para 0
  5406. Valor2 [playerid] = 0; //o da variavel também
  5407. KillTimer (Baru2[playerid]) ; //e destruira o timer.
  5408. PlayerInfo[playerid][Agua]+= 5;
  5409. SendClientMessage(playerid, AZUL_AGUA, "Você acabou de pegar 5 litros de água!");
  5410. StopLoopingAnim(playerid);
  5411. }
  5412. return 1;
  5413. }
  5414.  
  5415. forward Almentar (playerid);
  5416. public Almentar (playerid)
  5417. {
  5418. Valor [playerid] +=5 ; //almentará a bar de 5 em 5
  5419. SetProgressBarValue(Exemplo, Valor[playerid]) ;//seta o valor da bar para o valor da variavel
  5420. UpdateProgressBar(Exemplo, playerid) ; // atualiza a bar
  5421. if (Valor[playerid] == 100)
  5422. { //quando chegar a 100
  5423. HideProgressBarForPlayer(playerid, Exemplo); //sumira a bar
  5424. SetProgressBarValue (Exemplo, 0) ;//setara o valor dela para 0
  5425. Valor [playerid] = 0; //o da variavel também
  5426. KillTimer (Baru[playerid]) ; //e destruira o timer.
  5427. GivePlayerWeapon(playerid, 33, 5);
  5428. SendClientMessage(playerid, AZUL_AGUA, "Você fez um rifle com 5 balas.");
  5429. PlayerInfo[playerid][Madeira] -= 5;
  5430. PlayerInfo[playerid][Metal] -= 10;
  5431. TogglePlayerControllable(playerid, 1);
  5432. StopLoopingAnim(playerid);
  5433. }
  5434. return 1;
  5435. }
  5436.  
  5437.  
  5438.  
  5439. public FazendoPistola(playerid)
  5440. {
  5441. GivePlayerWeapon(playerid, 24, 7);
  5442. SendClientMessage(playerid, AZUL_AGUA, "Você fez uma pistola com 7 balas.");
  5443. PlayerInfo[playerid][Parafuso] -= 5;
  5444. PlayerInfo[playerid][Metal] -= 10;
  5445. StopLoopingAnim(playerid);
  5446. return 1;
  5447. }
  5448.  
  5449. public Pescando(playerid)
  5450. {
  5451. SendClientMessage(playerid, AZUL_AGUA, "Você conseguiu pegar um peixe!");
  5452. StopLoopingAnim(playerid);
  5453. RemovePlayerAttachedObject(playerid, 2);
  5454. PlayerInfo[playerid][Peixe] += 1;
  5455. pPescando[playerid] = 0;
  5456. return 1;
  5457. }
  5458.  
  5459. public campfire(playerid)
  5460. {
  5461. new Float:X, Float:Y, Float:Z, Float:A;
  5462. GetPlayerPos(playerid, X, Y, Z);
  5463. GetPlayerFacingAngle(playerid, A);
  5464. GameTextForPlayer(playerid, "~r~Fogo Feito", 200, 0);
  5465. Fogarel = CreateDynamicObject(19632, X, Y, Z-1, 0.0, 0.0, A+180);
  5466. PlayerInfo[playerid][Madeira] -= 5;
  5467. StopLoopingAnim(playerid);
  5468. TogglePlayerControllable(playerid, 1);
  5469. SetTimer("ApagarFogo", 500000, 0);
  5470. }
  5471.  
  5472. public ApagarFogo(playerid)
  5473. {
  5474. DestroyDynamicObject(Fogarel);
  5475. SendClientMessage(playerid, VERDE_ESCURO, "Sua CampFire apagou!");
  5476. Fogo[playerid] = 0;
  5477. }
  5478.  
  5479. public ApagarTocha(playerid)
  5480. {
  5481. RemovePlayerAttachedObject(playerid, 1);
  5482. SetPlayerAttachedObject(playerid, 1,3026 ,1,-0.16,-0.08,0.0,0.5,0.5,0.0,1.0,1.3,1.0,-1,0);
  5483. SendClientMessage(playerid, VERDE_ESCURO, "Sua Tocha apagou!");
  5484. Tocha[playerid] = 0;
  5485. }
  5486.  
  5487. public Fome(playerid)
  5488. {
  5489. SetPVarInt(playerid,"Fome", GetPVarInt(playerid,"Fome")-1);
  5490. SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
  5491. UpdateProgressBar(FomeA,playerid);
  5492. if(GetPVarInt(playerid,"Fome") <= 5)
  5493. {
  5494. new Float:Vida;
  5495. GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida - 20);
  5496. SendClientMessage(playerid, 0xFF0000FF,"[!] Vá até a lanchonete comer ou irá morrer de fome!");
  5497. }
  5498. if(GetPVarInt(playerid,"Fome") <= 0)
  5499. {
  5500. SetPlayerHealth(playerid, 0);
  5501. SendClientMessage(playerid, 0xFF0000FF, "[!] Você morreu de fome!");
  5502. }
  5503. return 1;
  5504. }
  5505.  
  5506. public Correction(playerid)
  5507. {
  5508. if(GetPVarInt(playerid,"Sede") > 100)
  5509. {
  5510. SetPVarInt(playerid,"Sede", 100);
  5511. SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
  5512. UpdateProgressBar(SedeB, playerid);
  5513. }
  5514. if(GetPVarInt(playerid,"Fome") > 100)
  5515. {
  5516. SetPVarInt(playerid,"Fome", 100);
  5517. SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
  5518. UpdateProgressBar(FomeA, playerid);
  5519. }
  5520. if(GetPVarInt(playerid,"Frio") > 100)
  5521. {
  5522. SetPVarInt(playerid,"Frio", 100);
  5523. SetProgressBarValue(FrioD, GetPVarInt(playerid,"Frio"));
  5524. UpdateProgressBar(FrioD, playerid);
  5525. }
  5526. return 0;
  5527. }
  5528.  
  5529. public Sede(playerid)
  5530. {
  5531. SetPVarInt(playerid,"Sede", GetPVarInt(playerid,"Sede")-1);
  5532. SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
  5533. UpdateProgressBar(SedeB,playerid);
  5534. if(GetPVarInt(playerid,"Sede") <= 5)
  5535. {
  5536. new Float:Vida;
  5537. GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida - 20);
  5538. SendClientMessage(playerid, 0xFF0000FF,"[!] Você está com muita sede, beba algo ou morrerá!");
  5539. }
  5540. if(GetPVarInt(playerid,"Sede") <= 0)
  5541. {
  5542. SetPlayerHealth(playerid, 0);
  5543. SendClientMessage(playerid, 0xFF0000FF, "[!] Você morreu de Sede!");
  5544. }
  5545. return 1;
  5546. }
  5547.  
  5548. public Frio(playerid)
  5549. {
  5550. SetPVarInt(playerid,"Frio", GetPVarInt(playerid,"Frio")-3);
  5551. SetProgressBarValue(FrioD, GetPVarInt(playerid,"Frio"));
  5552. UpdateProgressBar(FrioD,playerid);
  5553. if(GetPVarInt(playerid,"Frio") <= 6)
  5554. {
  5555. new Float:Vida;
  5556. GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida - 20);
  5557. SendClientMessage(playerid, 0xFF0000FF,"[!] Você está com muito Frio, crie uma campfire para se aquecer!");
  5558. }
  5559. if(GetPVarInt(playerid,"Frio") <= 0)
  5560. {
  5561. SetPlayerHealth(playerid, 0);
  5562. SendClientMessage(playerid, 0xFF0000FF, "[!] Você morreu de Frio!");
  5563. }
  5564. return 1;
  5565. }
  5566.  
  5567. public Payday(playerid)
  5568. {
  5569. PegouPresente[playerid] = 0;
  5570. SendClientMessageToAll(0xFF0000AA, "[INFO] {00FF7C}PayDay iniciado, use /presente para pegar sua promoção.");
  5571. return 1;
  5572. }
  5573.  
  5574. public Acordar(playerid)
  5575. {
  5576. new Float:x, Float:y, Float:z;
  5577. GetPlayerPos(playerid,x,y,z);
  5578.  
  5579. DOF2_SetFloat(GetArquivo(playerid),"PosX",x);
  5580. DOF2_SetFloat(GetArquivo(playerid),"PosY",y);
  5581. DOF2_SetFloat(GetArquivo(playerid),"PosZ",z);
  5582. DOF2_SaveFile();
  5583. StopLoopingAnim(playerid);
  5584. return 1;
  5585. }
  5586.  
  5587. public SendMSG()
  5588. {
  5589. new string[256];
  5590. new randMSG = random(sizeof(RandomServerName));
  5591. format(string,sizeof(string),"hostname %s",RandomServerName[randMSG]);
  5592. SendRconCommand(string);
  5593. }
  5594.  
  5595. public mMensagens()
  5596. {
  5597.  
  5598. new random2 = random(sizeof(RandomColors));
  5599. new randMSG = random(sizeof(Mensagens));
  5600. SendClientMessageToAll(RandomColors[random2], Mensagens[randMSG]);
  5601. }
  5602.  
  5603. stock Items_Industriais(items)
  5604. {
  5605. switch(items)
  5606. {
  5607. case 0: items = 1;
  5608. case 1: items = 2;
  5609. case 2: items = 3;
  5610. case 3: items = 4;
  5611. case 4: items = 5;
  5612. case 5: items = 6;
  5613. case 6: items = 7;
  5614. case 7: items = 8;
  5615. case 8: items = 9;
  5616. case 9: items = 10;
  5617. case 10: items = 11;
  5618. }
  5619. return items;
  5620. }
  5621.  
  5622. forward CriarLoots();
  5623. public CriarLoots()
  5624. {
  5625. new i;
  5626. for(i = 0; i < sizeof(Industrial_Spawns); i++)
  5627. {
  5628. CriarItem(Items_Industriais(random(12)), Industrial_Spawns[i][0], Industrial_Spawns[i][1], Industrial_Spawns[i][2]);
  5629. }
  5630. printf("| INFO |: %i ITEMS TOTAIS.", sizeof(Industrial_Spawns));
  5631. return 1;
  5632. }
  5633.  
  5634. public OnPlayerUseItem(playerid, itemid)
  5635. {
  5636. switch(itemid)
  5637. {
  5638. case 1:
  5639. {
  5640. RemoverItem(playerid, 1, 1);
  5641. SetPlayerHealth(playerid, 100);
  5642. SendClientMessage(playerid, COR_VERDE, "Você usou um MedKit e curou 100 de sua vida!");
  5643. }
  5644. case 2:
  5645. {
  5646. RemoverItem(playerid, 2, 1);
  5647. SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
  5648. SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
  5649. UpdateProgressBar(FomeA,playerid);
  5650. SendClientMessage(playerid, COR_VERDE, "Você comeu uma fruta e sua fome diminuiu.");
  5651. }
  5652. case 3:
  5653. {
  5654. RemoverItem(playerid, 3, 1);
  5655. }
  5656. case 4:
  5657. {
  5658. RemoverItem(playerid, 4, 1);
  5659. }
  5660. case 5:
  5661. {
  5662. RemoverItem(playerid, 5, 1);
  5663. }
  5664. case 6:
  5665. {
  5666. RemoverItem(playerid, 6, 1);
  5667. }
  5668. case 7:
  5669. {
  5670. RemoverItem(playerid, 7, 1);
  5671. }
  5672. case 8:
  5673. {
  5674. RemoverItem(playerid, 8, 1);
  5675. }
  5676. case 9:
  5677. {
  5678. RemoverItem(playerid, 9, 1);
  5679. }
  5680. case 10:
  5681. {
  5682. RemoverItem(playerid, 10, 1);
  5683. }
  5684. case 11:
  5685. {
  5686. RemoverItem(playerid, 11, 1);
  5687. }
  5688. }
  5689. return 1;
  5690. }
  5691.  
  5692. stock GetNearestItemID(playerid, Float:range = 1.5)
  5693. {
  5694. for(new i; i < MAX_DROPS; i++)
  5695. {
  5696. if(IsPlayerInRangeOfPoint(playerid, range, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
  5697. {
  5698. return i;
  5699. }
  5700. }
  5701. return -1;
  5702. }
  5703.  
  5704. public OnPlayerDropItem(playerid, itemid)
  5705. {
  5706. static Float:X, Float:Y, Float:Z;
  5707. GetPlayerPos(playerid, X, Y, Z);
  5708. switch(itemid)
  5709. {
  5710. default:
  5711. {
  5712. RemoverItem(playerid, itemid, 1);
  5713. CriarItem(itemid, X, Y, Z);
  5714. }
  5715. }
  5716. return 1;
  5717. }
  5718.  
  5719. public PickUPItemDrop(playerid)
  5720. {
  5721. new i = GetNearestItemID(playerid);
  5722. if(i != -1)
  5723. {
  5724. if(IsPlayerInRangeOfPoint(playerid, 1.5, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
  5725. {
  5726. new itemid = DropInfo[i][DropItemID];
  5727.  
  5728. AdicionarItem(playerid, ItemInfo[itemid][Item_ID], 1);
  5729. DestroirItem(i);
  5730. }
  5731. }
  5732. return 1;
  5733. }
  5734.  
  5735. public Item_OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  5736. {
  5737. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  5738. {
  5739. if(PRESSED(KEY_NO))
  5740. {
  5741. new i = GetNearestItemID(playerid);
  5742. if(i != -1)
  5743. {
  5744. if(IsPlayerInRangeOfPoint(playerid, 1.5, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
  5745. {
  5746. new str[45],
  5747. itemid = DropInfo[i][DropItemID];
  5748.  
  5749. format(str, sizeof(str), "{FFFFFF}>> %s", ItemInfo[itemid][Item_Name]);
  5750.  
  5751. ShowPlayerDialog(playerid, DialogPegarItem, DIALOG_STYLE_MSGBOX,"Looting", str, "Pegar", "Fechar");
  5752. }
  5753. }
  5754. }
  5755. }
  5756. return 1;
  5757. }
  5758.  
  5759. public Item_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  5760. {
  5761. switch(dialogid)
  5762. {
  5763. case DialogPegarItem:
  5764. {
  5765. if(response)
  5766. {
  5767. if(pInfo[playerid][pSlots] == pInfo[playerid][pBackpack])
  5768. {
  5769. GameTextForPlayer(playerid,"~r~Inventario Cheio",1000,4);
  5770. return 1;
  5771. }
  5772. ApplyAnimation(playerid, "CARRY", "liftup05", 4.0, 0, 0, 0, 0, -1);
  5773. PickUPItemDrop(playerid);
  5774. }
  5775. }
  5776. }
  5777. return 1;
  5778. }
  5779.  
  5780. stock DestroirItem(dropid)
  5781. {
  5782. DropInfo[dropid][dPosX] = 0.0;
  5783. DropInfo[dropid][dPosY] = 0.0;
  5784. DropInfo[dropid][dPosZ] = 0.0;
  5785.  
  5786. DropInfo[dropid][DropItemID] = -1;
  5787.  
  5788. DestroyDynamicObject(DropInfo[dropid][DropObj]);
  5789. DestroyDynamic3DTextLabel(DropInfo[dropid][DropLabel]);
  5790. return 1;
  5791. }
  5792.  
  5793. stock CriarItem(itemid, Float:X, Float:Y, Float:Z)
  5794. {
  5795. if(itemid != 0)
  5796. {
  5797. for(new i; i < MAX_DROPS; i++)
  5798. {
  5799. if(DropInfo[i][dPosX] == 0.0 && DropInfo[i][dPosY] == 0.0 && DropInfo[i][dPosZ] == 0.0)
  5800. {
  5801.  
  5802. DropInfo[i][dPosX] = X, DropInfo[i][dPosY] = Y, DropInfo[i][dPosZ] = Z-0.92;
  5803.  
  5804. DropInfo[i][DropItemID] = itemid;
  5805.  
  5806. DropInfo[i][DropLabel] = CreateDynamic3DTextLabel(ItemInfo[itemid][Item_Name], ItemInfo[itemid][Item_Color], DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ], 1.5);
  5807. DropInfo[i][DropObj] = CreateDynamicObject(ItemInfo[itemid][Item_Obj], DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ], ItemInfo[itemid][Item_RotX], ItemInfo[itemid][Item_RotY], ItemInfo[itemid][Item_RotZ]);
  5808. return 1;
  5809. }
  5810. }
  5811. }
  5812. return 0;
  5813. }
  5814.  
  5815. forward INV_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
  5816. public INV_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  5817. {
  5818. for(new i; i < 24; i++)
  5819. {
  5820. if(playertextid == INV_SLOTS[playerid][i])
  5821. {
  5822. new index = (24 * Inv[playerid][invPage]) + i;
  5823.  
  5824. if(Inv[playerid][Item][index] != 0)
  5825. {
  5826. Inv[playerid][ItemSelected] = Inv[playerid][Item][index];
  5827. PlayerTextDrawHide(playerid, INV_DESIGN[playerid][16]);
  5828. PlayerTextDrawSetPreviewModel(playerid, INV_DESIGN[playerid][16], ItemInfo[Inv[playerid][Item][index]][Item_Obj]);
  5829. PlayerTextDrawShow(playerid, INV_DESIGN[playerid][16]);
  5830. }
  5831. break;
  5832. }
  5833. }
  5834. if(playertextid == INV_DESIGN[playerid][3])
  5835. {
  5836. EsconderInventario(playerid);
  5837. }
  5838. if(playertextid == INV_DESIGN[playerid][17])
  5839. {
  5840. if(Inv[playerid][ItemSelected] != 0)
  5841. {
  5842. CallLocalFunction("OnPlayerUseItem","ii",playerid, ItemInfo[Inv[playerid][ItemSelected]][Item_ID]);
  5843. EsconderInventario(playerid);
  5844. }
  5845. }
  5846.  
  5847. if(playertextid == INV_DESIGN[playerid][18])
  5848. {
  5849. if(Inv[playerid][ItemSelected] != 0)
  5850. {
  5851. CallLocalFunction("OnPlayerDropItem","ii",playerid, ItemInfo[Inv[playerid][ItemSelected]][Item_ID]);
  5852. ApplyAnimation(playerid, "GRENADE", "WEAPON_throwu", 4.0, 0, 0, 0, 0, -1);
  5853. EsconderInventario(playerid);
  5854. }
  5855. }
  5856. return 1;
  5857. }
  5858. stock AdicionarItem(playerid, itemid, amount)
  5859. {
  5860. pInfo[playerid][pSlots] += amount;
  5861. for(new i; i < MAX_SLOTS; i++)
  5862. {
  5863. if(amount > 0)
  5864. {
  5865. if(Inv[playerid][Item][i] == 0)
  5866. {
  5867. Inv[playerid][Item][i] = itemid;
  5868. //_SetItemAmountPVar(playerid,itemid,amount);
  5869. amount--;
  5870. }
  5871. }
  5872. else break;
  5873. }
  5874. return 1;
  5875. }
  5876. stock RemoverItem(playerid, itemid, amount)
  5877. {
  5878. pInfo[playerid][pSlots] -= amount;
  5879. for(new i; i < MAX_SLOTS; i++)
  5880. {
  5881. if(amount > 0)
  5882. {
  5883. if(Inv[playerid][Item][i] == itemid)
  5884. {
  5885. Inv[playerid][Item][i] = 0;
  5886. amount--;
  5887. }
  5888. }
  5889. else break;
  5890. }
  5891. return 1;
  5892. }
  5893.  
  5894. stock ResetarPlayerInventario(playerid)
  5895. {
  5896. pInfo[playerid][pSlots] = 0;
  5897. for(new i; i < MAX_SLOTS; i++)
  5898. {
  5899. if(Inv[playerid][Item][i] != 0)
  5900. {
  5901. Inv[playerid][Item][i] = 0;
  5902. }
  5903. }
  5904. return 1;
  5905. }
  5906.  
  5907. stock PlayerHasItem(playerid, itemid)
  5908. {
  5909. new amount;
  5910.  
  5911. for(new i; i < MAX_SLOTS; i++) // faz o loop em todos os slots
  5912. {
  5913. if(Inv[playerid][Item][i] == itemid) amount++;
  5914. }
  5915. return amount;
  5916. }
  5917.  
  5918. stock MostrarInventarioPagina(playerid, pageid)
  5919. {
  5920. new index;
  5921.  
  5922. for(new i; i < 24; i++)
  5923. {
  5924. index = (24 * pageid) + i;
  5925.  
  5926. PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][i], ItemInfo[Inv[playerid][Item][index]][Item_Obj]);
  5927. PlayerTextDrawShow(playerid, INV_SLOTS[playerid][i]);
  5928. }
  5929. Inv[playerid][invPage] = pageid;
  5930. //format(str, sizeof(str), "%02i/01", Inv[playerid][invPage]);
  5931. //PlayerTextDrawSetString(playerid, INV_DESIGN[playerid][2], str);
  5932. }
  5933.  
  5934. stock MostrarInventario(playerid)
  5935. {
  5936. Inv[playerid][InvOpen] = true;
  5937. PlayerTextDrawSetPreviewModel(playerid, INV_DESIGN[playerid][16], 60000);
  5938. new i;
  5939. for(i = 0; i < 21; i++) { PlayerTextDrawShow(playerid, INV_DESIGN[playerid][i]); }
  5940. for(i = 0; i < 24; i++) { PlayerTextDrawShow(playerid, INV_SLOTS[playerid][i]); }
  5941. MostrarInventarioPagina(playerid, 0);
  5942. Inv[playerid][ItemSelected] = 0;
  5943. SelectTextDraw(playerid, 0xFF0000FF);
  5944. return 1;
  5945. }
  5946.  
  5947. stock EsconderInventario(playerid)
  5948. {
  5949. Inv[playerid][InvOpen] = false;
  5950. new i;
  5951. for(i = 0; i < 21; i++) { PlayerTextDrawHide(playerid, INV_DESIGN[playerid][i]); }
  5952. for(i = 0; i < 24; i++) { PlayerTextDrawHide(playerid, INV_SLOTS[playerid][i]); }
  5953. CancelSelectTextDraw(playerid);
  5954. return 1;
  5955. }
  5956.  
  5957. public Relogio()
  5958. {
  5959. new string[128];
  5960. new dia, mes, ano;
  5961. getdate(ano, mes, dia);
  5962. new convertermes[20];
  5963.  
  5964. if(mes == 1) { convertermes = "Janeiro"; }
  5965. else if(mes == 2) { convertermes = "Fevereiro"; }
  5966. else if(mes == 3) { convertermes = "Marco"; }
  5967. else if(mes == 4) { convertermes = "Abril"; }
  5968. else if(mes == 5) { convertermes = "Maio"; }
  5969. else if(mes == 6) { convertermes = "Junho"; }
  5970. else if(mes == 7) { convertermes = "Julho"; }
  5971. else if(mes == 8) { convertermes = "Agosto"; }
  5972. else if(mes == 9) { convertermes = "Setembro"; }
  5973. else if(mes == 10) { convertermes = "Outubro"; }
  5974. else if(mes == 11) { convertermes = "Novembro"; }
  5975. else if(mes == 12) { convertermes = "Dezembro"; }
  5976.  
  5977. format(string, sizeof(string), "%d de %s de %d", dia, convertermes, ano);
  5978. TextDrawSetString(DataC, string);
  5979. return 1;
  5980. }
  5981.  
  5982. stock SalvarPlayer(playerid)
  5983. {
  5984. if(DOF2_FileExists(GetArquivo(playerid)))
  5985. {
  5986. PlayerInfo[playerid][Level] = GetPlayerScore(playerid);
  5987.  
  5988. DOF2_SetInt(GetArquivo(playerid), "Administrador", PlayerInfo[playerid][Administrador]);
  5989. DOF2_SetInt(GetArquivo(playerid), "Level", PlayerInfo[playerid][Level]);
  5990. DOF2_SetInt(GetArquivo(playerid), "Skin", PlayerInfo[playerid][Skin]);
  5991. DOF2_SetInt(GetArquivo(playerid), "Matou", PlayerInfo[playerid][Matou]);
  5992. DOF2_SetInt(GetArquivo(playerid), "Morreu", PlayerInfo[playerid][Morreu]);
  5993. DOF2_SetInt(GetArquivo(playerid), "Dinheiro", GetPlayerMoney(playerid));
  5994. DOF2_SetInt(GetArquivo(playerid), "Cash", PlayerInfo[playerid][Cash]);
  5995. DOF2_SetInt(GetArquivo(playerid), "CmdJaUsado", PlayerInfo[playerid][CmdJaUsado]);
  5996. DOF2_SetInt(GetArquivo(playerid), "Madeira", PlayerInfo[playerid][Madeira]);
  5997. DOF2_SetInt(GetArquivo(playerid), "Pedra", PlayerInfo[playerid][Pedra]);
  5998. DOF2_SetInt(GetArquivo(playerid), "Metal", PlayerInfo[playerid][Metal]);
  5999. DOF2_SetInt(GetArquivo(playerid), "Parafuso", PlayerInfo[playerid][Parafuso]);
  6000. DOF2_SetInt(GetArquivo(playerid), "Borracha", PlayerInfo[playerid][Borracha]);
  6001. DOF2_SetInt(GetArquivo(playerid), "Frutas", PlayerInfo[playerid][Frutas]);
  6002. DOF2_SetInt(GetArquivo(playerid), "Peixe", PlayerInfo[playerid][Peixe]);
  6003. DOF2_SetInt(GetArquivo(playerid), "Carne", PlayerInfo[playerid][Carne]);
  6004. DOF2_SetInt(GetArquivo(playerid), "Cloth", PlayerInfo[playerid][Cloth]);
  6005. DOF2_SetInt(GetArquivo(playerid), "Agua", PlayerInfo[playerid][Agua]);
  6006. DOF2_SaveFile();
  6007. }
  6008. return 1;
  6009. }
  6010.  
  6011. stock CarregarPlayer(playerid)
  6012. {
  6013. if(DOF2_FileExists(GetArquivo(playerid)))
  6014. {
  6015.  
  6016. PlayerInfo[playerid][Administrador] = DOF2_GetInt(GetArquivo(playerid), "Administrador");
  6017. PlayerInfo[playerid][Level] = DOF2_GetInt(GetArquivo(playerid), "Level");
  6018. PlayerInfo[playerid][Skin] = DOF2_GetInt(GetArquivo(playerid), "Skin");
  6019. PlayerInfo[playerid][Matou] = DOF2_GetInt(GetArquivo(playerid), "Matou");
  6020. PlayerInfo[playerid][Morreu] = DOF2_GetInt(GetArquivo(playerid), "Morreu");
  6021. PlayerInfo[playerid][Dinheiro] = DOF2_GetInt(GetArquivo(playerid), "Dinheiro");
  6022. PlayerInfo[playerid][Cash] = DOF2_GetInt(GetArquivo(playerid), "Cash");
  6023. PlayerInfo[playerid][CmdJaUsado] = DOF2_GetInt(GetArquivo(playerid), "CmdJaUsado");
  6024. PlayerInfo[playerid][Madeira] = DOF2_GetInt(GetArquivo(playerid), "Madeira");
  6025. PlayerInfo[playerid][Pedra] = DOF2_GetInt(GetArquivo(playerid), "Pedra");
  6026. PlayerInfo[playerid][Metal] = DOF2_GetInt(GetArquivo(playerid), "Metal");
  6027. PlayerInfo[playerid][Parafuso] = DOF2_GetInt(GetArquivo(playerid), "Parafuso");
  6028. PlayerInfo[playerid][Borracha] = DOF2_GetInt(GetArquivo(playerid), "Borracha");
  6029. PlayerInfo[playerid][Frutas] = DOF2_GetInt(GetArquivo(playerid), "Frutas");
  6030. PlayerInfo[playerid][Peixe] = DOF2_GetInt(GetArquivo(playerid), "Peixe");
  6031. PlayerInfo[playerid][Carne] = DOF2_GetInt(GetArquivo(playerid), "Carne");
  6032. PlayerInfo[playerid][Cloth] = DOF2_GetInt(GetArquivo(playerid), "Cloth");
  6033. PlayerInfo[playerid][Agua] = DOF2_GetInt(GetArquivo(playerid), "Agua");
  6034. PlayerInfo[playerid][PosX] = DOF2_GetFloat(GetArquivo(playerid), "PosX");
  6035. PlayerInfo[playerid][PosY] = DOF2_GetFloat(GetArquivo(playerid), "PosY");
  6036. PlayerInfo[playerid][PosZ] = DOF2_GetFloat(GetArquivo(playerid), "PosZ");
  6037. for(new i = 0; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]);}
  6038. for(new i = 0; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]);}
  6039.  
  6040. PlayerInfo[playerid][Logado] = true;
  6041.  
  6042. TogglePlayerSpectating(playerid, 0);
  6043. CancelSelectTextDraw(playerid);
  6044.  
  6045. SpawnPlayer(playerid);
  6046.  
  6047. GivePlayerMoney(playerid, PlayerInfo[playerid][Dinheiro]);
  6048. SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
  6049. SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
  6050. }
  6051. return 1;
  6052. }
  6053.  
  6054. stock IP(playerid)
  6055. {
  6056. static pIP[26];
  6057. GetPlayerIp(playerid, pIP, sizeof(pIP));
  6058. return pIP;
  6059. }
  6060.  
  6061. stock Nome(playerid)
  6062. {
  6063. static ANome[MAX_PLAYER_NAME];
  6064. GetPlayerName(playerid, ANome, sizeof(ANome));
  6065. return ANome;
  6066. }
  6067.  
  6068. stock GetArquivo(playerid)
  6069. {
  6070. static arquivo[50];
  6071. format(arquivo, sizeof(arquivo), "Contas/%s.ini", Nome(playerid));
  6072. return arquivo;
  6073. }
  6074.  
  6075. stock pName(playerid)
  6076. {
  6077. new name[MAX_PLAYER_NAME + 1];
  6078. GetPlayerName(playerid,name,sizeof(name));
  6079. for(new i = 0; i < MAX_PLAYER_NAME; i++)
  6080. {
  6081. if(name[i] == '_') name[i] = ' ';
  6082. }
  6083. return name;
  6084. }
  6085.  
  6086. stock SalvarBases(id)
  6087. {
  6088. new file[64];
  6089. format(file, sizeof(file), "Saves/Bases/%d.ini", id);
  6090.  
  6091. DOF2_CreateFile(file);
  6092. DOF2_SetString(file,"Dono",Base[id][Dono]);
  6093.  
  6094. DOF2_SetFloat(file, "PosX", Base[id][PosX]);
  6095. DOF2_SetFloat(file, "PosY", Base[id][PosY]);
  6096. DOF2_SetFloat(file, "PosZ", Base[id][PosZ]);
  6097. DOF2_SetFloat(file, "RX", Base[id][RX]);
  6098. DOF2_SetFloat(file, "RY", Base[id][RY]);
  6099. DOF2_SetFloat(file, "RZ", Base[id][RZ]);
  6100. DOF2_SaveFile();
  6101. return 1;
  6102. }
  6103.  
  6104. stock CarregarBases(id)
  6105. {
  6106. new file[64];
  6107. format(file, sizeof(file), "Saves/Bases/%d.ini", id);
  6108. if(DOF2_FileExists(file))
  6109. {
  6110. DOF2_GetString(file,"Dono", Base[id][Dono]);
  6111.  
  6112. Base[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6113. Base[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6114. Base[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6115. Base[id][RX] = DOF2_GetFloat(file, "RX" );
  6116. Base[id][RY] = DOF2_GetFloat(file, "RY" );
  6117. Base[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6118. Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX], Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
  6119. Base[id][Existe] = 1;
  6120. }
  6121. return 1;
  6122. }
  6123.  
  6124. stock GetPlayerRangeBase(playerid)
  6125. {
  6126. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6127. for(new i; i < MAX_BASES; i++)
  6128. {
  6129. if(!Base[i][Existe]) continue;
  6130. distanciaB = GetPlayerDistanceFromPoint(playerid, Base[i][PosX], Base[i][PosY], Base[i][PosZ]);
  6131.  
  6132. if(distanciaB <= distanciaA)
  6133. {
  6134. distanciaA = distanciaB;
  6135. id = i;
  6136. break;
  6137. }
  6138. }
  6139. return id;
  6140. }
  6141.  
  6142. stock GetPlayerRangeBancada(playerid)
  6143. {
  6144. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6145. for(new i; i < MAX_BANCADAS; i++)
  6146. {
  6147. if(!Bancada[i][Existe]) continue;
  6148. distanciaB = GetPlayerDistanceFromPoint(playerid, Bancada[i][PosX], Bancada[i][PosY], Bancada[i][PosZ]);
  6149.  
  6150. if(distanciaB <= distanciaA)
  6151. {
  6152. distanciaA = distanciaB;
  6153. id = i;
  6154. break;
  6155. }
  6156. }
  6157. return id;
  6158. }
  6159.  
  6160. stock GetPlayerRangePorta(playerid)
  6161. {
  6162. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6163. for(new i; i < MAX_PORTAS; i++)
  6164. {
  6165. if(!Porta[i][Existe]) continue;
  6166. distanciaB = GetPlayerDistanceFromPoint(playerid, Porta[i][PosX], Porta[i][PosY], Porta[i][PosZ]);
  6167.  
  6168. if(distanciaB <= distanciaA)
  6169. {
  6170. distanciaA = distanciaB;
  6171. id = i;
  6172. break;
  6173. }
  6174. }
  6175. return id;
  6176. }
  6177.  
  6178. stock GetPlayerRangeBau(playerid)
  6179. {
  6180. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6181. for(new i; i < MAX_BAU; i++)
  6182. {
  6183. if(!Bau[i][Existe]) continue;
  6184. distanciaB = GetPlayerDistanceFromPoint(playerid, Bau[i][PosX], Bau[i][PosY], Bau[i][PosZ]);
  6185.  
  6186. if(distanciaB <= distanciaA)
  6187. {
  6188. distanciaA = distanciaB;
  6189. id = i;
  6190. break;
  6191. }
  6192. }
  6193. return id;
  6194. }
  6195.  
  6196. stock GetPlayerRangeRampa(playerid)
  6197. {
  6198. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6199. for(new i; i < MAX_RAMPAS; i++)
  6200. {
  6201. if(!Rampa[i][Existe]) continue;
  6202. distanciaB = GetPlayerDistanceFromPoint(playerid, Rampa[i][PosX], Rampa[i][PosY], Rampa[i][PosZ]);
  6203.  
  6204. if(distanciaB <= distanciaA)
  6205. {
  6206. distanciaA = distanciaB;
  6207. id = i;
  6208. break;
  6209. }
  6210. }
  6211. return id;
  6212. }
  6213.  
  6214. stock GetPlayerRangeDoor(playerid)
  6215. {
  6216. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6217. for(new i; i < MAX_DOOR; i++)
  6218. {
  6219. if(!Door[i][Existe]) continue;
  6220. distanciaB = GetPlayerDistanceFromPoint(playerid, Door[i][PosX], Door[i][PosY], Door[i][PosZ]);
  6221.  
  6222. if(distanciaB <= distanciaA)
  6223. {
  6224. distanciaA = distanciaB;
  6225. id = i;
  6226. break;
  6227. }
  6228. }
  6229. return id;
  6230. }
  6231.  
  6232. stock GetPlayerRangeCama(playerid)
  6233. {
  6234. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6235. for(new i; i < MAX_CAMA; i++)
  6236. {
  6237. if(!Cama[i][Existe]) continue;
  6238. distanciaB = GetPlayerDistanceFromPoint(playerid, Cama[i][PosX], Cama[i][PosY], Cama[i][PosZ]);
  6239.  
  6240. if(distanciaB <= distanciaA)
  6241. {
  6242. distanciaA = distanciaB;
  6243. id = i;
  6244. break;
  6245. }
  6246. }
  6247. return id;
  6248. }
  6249.  
  6250. stock GetPlayerRangeWindown(playerid)
  6251. {
  6252. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6253. for(new i; i < MAX_WINDOWN; i++)
  6254. {
  6255. if(!Windown[i][Existe]) continue;
  6256. distanciaB = GetPlayerDistanceFromPoint(playerid, Windown[i][PosX], Windown[i][PosY], Windown[i][PosZ]);
  6257.  
  6258. if(distanciaB <= distanciaA)
  6259. {
  6260. distanciaA = distanciaB;
  6261. id = i;
  6262. break;
  6263. }
  6264. }
  6265. return id;
  6266. }
  6267.  
  6268. stock GetPlayerRangeForno(playerid)
  6269. {
  6270. new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
  6271. for(new i; i < MAX_FORNO; i++)
  6272. {
  6273. if(!Forno[i][Existe]) continue;
  6274. distanciaB = GetPlayerDistanceFromPoint(playerid, Forno[i][PosX], Forno[i][PosY], Forno[i][PosZ]);
  6275.  
  6276. if(distanciaB <= distanciaA)
  6277. {
  6278. distanciaA = distanciaB;
  6279. id = i;
  6280. break;
  6281. }
  6282. }
  6283. return id;
  6284. }
  6285.  
  6286. stock SalvarBancadas(id)
  6287. {
  6288. new file[64];
  6289. format(file, sizeof(file), "Saves/Bancadas/%d.ini", id);
  6290.  
  6291. DOF2_CreateFile(file);
  6292. DOF2_SetString(file,"Dono",Bancada[id][Dono]);
  6293.  
  6294. DOF2_SetFloat(file, "PosX", Bancada[id][PosX]);
  6295. DOF2_SetFloat(file, "PosY", Bancada[id][PosY]);
  6296. DOF2_SetFloat(file, "PosZ", Bancada[id][PosZ]);
  6297. DOF2_SetFloat(file, "RX", Bancada[id][RX]);
  6298. DOF2_SetFloat(file, "RY", Bancada[id][RY]);
  6299. DOF2_SetFloat(file, "RZ", Bancada[id][RZ]);
  6300. DOF2_SaveFile();
  6301. return 1;
  6302. }
  6303.  
  6304. stock CarregarBancadas(id)
  6305. {
  6306. new file[64];
  6307. format(file, sizeof(file), "Saves/Bancadas/%d.ini", id);
  6308. if(DOF2_FileExists(file))
  6309. {
  6310. DOF2_GetString(file,"Dono", Bancada[id][Dono]);
  6311.  
  6312. Bancada[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6313. Bancada[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6314. Bancada[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6315. Bancada[id][RX] = DOF2_GetFloat(file, "RX" );
  6316. Bancada[id][RY] = DOF2_GetFloat(file, "RY" );
  6317. Bancada[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6318. Bancada[id][ObjectA] = CreateDynamicObject(bancada, Bancada[id][PosX], Bancada[id][PosY], Bancada[id][PosZ], Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
  6319. Bancada[id][Existe] = 1;
  6320. }
  6321. return 1;
  6322. }
  6323.  
  6324. stock SalvarPortas(id)
  6325. {
  6326. new file[64];
  6327. format(file, sizeof(file), "Saves/Portas/%d.ini", id);
  6328.  
  6329. DOF2_CreateFile(file);
  6330. DOF2_SetString(file,"Dono",Porta[id][Dono]);
  6331.  
  6332. DOF2_SetFloat(file, "PosX", Porta[id][PosX]);
  6333. DOF2_SetFloat(file, "PosY", Porta[id][PosY]);
  6334. DOF2_SetFloat(file, "PosZ", Porta[id][PosZ]);
  6335. DOF2_SetFloat(file, "RX", Porta[id][RX]);
  6336. DOF2_SetFloat(file, "RY", Porta[id][RY]);
  6337. DOF2_SetFloat(file, "RZ", Porta[id][RZ]);
  6338. DOF2_SaveFile();
  6339. return 1;
  6340. }
  6341.  
  6342. stock CarregarPortas(id)
  6343. {
  6344. new file[64];
  6345. format(file, sizeof(file), "Saves/Portas/%d.ini", id);
  6346. if(DOF2_FileExists(file))
  6347. {
  6348. DOF2_GetString(file,"Dono", Porta[id][Dono]);
  6349.  
  6350. Porta[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6351. Porta[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6352. Porta[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6353. Porta[id][RX] = DOF2_GetFloat(file, "RX" );
  6354. Porta[id][RY] = DOF2_GetFloat(file, "RY" );
  6355. Porta[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6356. Porta[id][ObjectC] = CreateDynamicObject(porta, Porta[id][PosX], Porta[id][PosY], Porta[id][PosZ], Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
  6357. Porta[id][Existe] = 1;
  6358. }
  6359. return 1;
  6360. }
  6361.  
  6362. stock SalvarBaus(id)
  6363. {
  6364. new file[64];
  6365. format(file, sizeof(file), "Saves/Baus/%d.ini", id);
  6366.  
  6367. DOF2_CreateFile(file);
  6368. DOF2_SetString(file,"Dono",Bau[id][Dono]);
  6369.  
  6370. DOF2_SetFloat(file, "PosX", Bau[id][PosX]);
  6371. DOF2_SetFloat(file, "PosY", Bau[id][PosY]);
  6372. DOF2_SetFloat(file, "PosZ", Bau[id][PosZ]);
  6373. DOF2_SetFloat(file, "RX", Bau[id][RX]);
  6374. DOF2_SetFloat(file, "RY", Bau[id][RY]);
  6375. DOF2_SetFloat(file, "RZ", Bau[id][RZ]);
  6376. DOF2_SaveFile();
  6377. return 1;
  6378. }
  6379.  
  6380. stock CarregarBaus(id)
  6381. {
  6382. new file[64];
  6383. format(file, sizeof(file), "Saves/Baus/%d.ini", id);
  6384. if(DOF2_FileExists(file))
  6385. {
  6386. DOF2_GetString(file,"Dono", Bau[id][Dono]);
  6387.  
  6388. Bau[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6389. Bau[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6390. Bau[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6391. Bau[id][RX] = DOF2_GetFloat(file, "RX" );
  6392. Bau[id][RY] = DOF2_GetFloat(file, "RY" );
  6393. Bau[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6394. Bau[id][ObjectD] = CreateDynamicObject(bau, Bau[id][PosX], Bau[id][PosY], Bau[id][PosZ], Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
  6395. Bau[id][Existe] = 1;
  6396. }
  6397. return 1;
  6398. }
  6399.  
  6400. stock SalvarRampas(id)
  6401. {
  6402. new file[64];
  6403. format(file, sizeof(file), "Saves/Rampas/%d.ini", id);
  6404.  
  6405. DOF2_CreateFile(file);
  6406. DOF2_SetString(file,"Dono",Rampa[id][Dono]);
  6407.  
  6408. DOF2_SetFloat(file, "PosX", Rampa[id][PosX]);
  6409. DOF2_SetFloat(file, "PosY", Rampa[id][PosY]);
  6410. DOF2_SetFloat(file, "PosZ", Rampa[id][PosZ]);
  6411. DOF2_SetFloat(file, "RX", Rampa[id][RX]);
  6412. DOF2_SetFloat(file, "RY", Rampa[id][RY]);
  6413. DOF2_SetFloat(file, "RZ", Rampa[id][RZ]);
  6414. DOF2_SaveFile();
  6415. return 1;
  6416. }
  6417.  
  6418. stock CarregarRampas(id)
  6419. {
  6420. new file[64];
  6421. format(file, sizeof(file), "Saves/Rampas/%d.ini", id);
  6422. if(DOF2_FileExists(file))
  6423. {
  6424. DOF2_GetString(file,"Dono", Rampa[id][Dono]);
  6425.  
  6426. Rampa[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6427. Rampa[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6428. Rampa[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6429. Rampa[id][RX] = DOF2_GetFloat(file, "RX" );
  6430. Rampa[id][RY] = DOF2_GetFloat(file, "RY" );
  6431. Rampa[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6432. Rampa[id][ObjectE] = CreateDynamicObject(rampa, Rampa[id][PosX], Rampa[id][PosY], Rampa[id][PosZ], Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
  6433. Rampa[id][Existe] = 1;
  6434. }
  6435. return 1;
  6436. }
  6437.  
  6438. stock SalvarWindowns(id)
  6439. {
  6440. new file[64];
  6441. format(file, sizeof(file), "Saves/Windowns/%d.ini", id);
  6442.  
  6443. DOF2_CreateFile(file);
  6444. DOF2_SetString(file,"Dono", Windown[id][Dono]);
  6445.  
  6446. DOF2_SetFloat(file, "PosX", Windown[id][PosX]);
  6447. DOF2_SetFloat(file, "PosY", Windown[id][PosY]);
  6448. DOF2_SetFloat(file, "PosZ", Windown[id][PosZ]);
  6449. DOF2_SetFloat(file, "RX", Windown[id][RX]);
  6450. DOF2_SetFloat(file, "RY", Windown[id][RY]);
  6451. DOF2_SetFloat(file, "RZ", Windown[id][RZ]);
  6452. DOF2_SaveFile();
  6453. return 1;
  6454. }
  6455.  
  6456. stock CarregarWindowns(id)
  6457. {
  6458. new file[64];
  6459. format(file, sizeof(file), "Saves/Windowns/%d.ini", id);
  6460. if(DOF2_FileExists(file))
  6461. {
  6462. DOF2_GetString(file,"Dono", Windown[id][Dono]);
  6463.  
  6464. Windown[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6465. Windown[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6466. Windown[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6467. Windown[id][RX] = DOF2_GetFloat(file, "RX" );
  6468. Windown[id][RY] = DOF2_GetFloat(file, "RY" );
  6469. Windown[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6470. Windown[id][ObjectH] = CreateDynamicObject(windown1, Windown[id][PosX], Windown[id][PosY], Windown[id][PosZ], Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
  6471. Windown[id][Existe] = 1;
  6472. }
  6473. return 1;
  6474. }
  6475.  
  6476. stock SalvarDoor(id)
  6477. {
  6478. new file[64];
  6479. format(file, sizeof(file), "Saves/Door/%d.ini", id);
  6480.  
  6481. DOF2_CreateFile(file);
  6482. DOF2_SetString(file,"Dono",Door[id][Dono]);
  6483.  
  6484. DOF2_SetFloat(file, "PosX", Door[id][PosX]);
  6485. DOF2_SetFloat(file, "PosY", Door[id][PosY]);
  6486. DOF2_SetFloat(file, "PosZ", Door[id][PosZ]);
  6487. DOF2_SetFloat(file, "RX", Door[id][RX]);
  6488. DOF2_SetFloat(file, "RY", Door[id][RY]);
  6489. DOF2_SetFloat(file, "RZ", Door[id][RZ]);
  6490. DOF2_SaveFile();
  6491. return 1;
  6492. }
  6493.  
  6494. stock CarregarDoor(id)
  6495. {
  6496. new file[64];
  6497. format(file, sizeof(file), "Saves/Door/%d.ini", id);
  6498. if(DOF2_FileExists(file))
  6499. {
  6500. DOF2_GetString(file,"Dono", Door[id][Dono]);
  6501.  
  6502. Door[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6503. Door[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6504. Door[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6505. Door[id][RX] = DOF2_GetFloat(file, "RX" );
  6506. Door[id][RY] = DOF2_GetFloat(file, "RY" );
  6507. Door[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6508. Door[id][ObjectF] = CreateDynamicObject(walldoor, Door[id][PosX], Door[id][PosY], Door[id][PosZ], Door[id][RX], Door[id][RY], Door[id][RZ]);
  6509. Door[id][Existe] = 1;
  6510. }
  6511. return 1;
  6512. }
  6513.  
  6514. stock SalvarForno(id)
  6515. {
  6516. new file[64];
  6517. format(file, sizeof(file), "Saves/Fornalhas/%d.ini", id);
  6518.  
  6519. DOF2_CreateFile(file);
  6520. DOF2_SetString(file,"Dono",Forno[id][Dono]);
  6521.  
  6522. DOF2_SetFloat(file, "PosX", Forno[id][PosX]);
  6523. DOF2_SetFloat(file, "PosY", Forno[id][PosY]);
  6524. DOF2_SetFloat(file, "PosZ", Forno[id][PosZ]);
  6525. DOF2_SetFloat(file, "RX", Forno[id][RX]);
  6526. DOF2_SetFloat(file, "RY", Forno[id][RY]);
  6527. DOF2_SetFloat(file, "RZ", Forno[id][RZ]);
  6528. DOF2_SaveFile();
  6529. return 1;
  6530. }
  6531.  
  6532. stock CarregarForno(id)
  6533. {
  6534. new file[64];
  6535. format(file, sizeof(file), "Saves/Fornalhas/%d.ini", id);
  6536. if(DOF2_FileExists(file))
  6537. {
  6538. DOF2_GetString(file,"Dono", Forno[id][Dono]);
  6539.  
  6540. Forno[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6541. Forno[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6542. Forno[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6543. Forno[id][RX] = DOF2_GetFloat(file, "RX" );
  6544. Forno[id][RY] = DOF2_GetFloat(file, "RY" );
  6545. Forno[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6546. Forno[id][ObjectJ] = CreateDynamicObject(forno, Forno[id][PosX], Forno[id][PosY], Forno[id][PosZ], Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
  6547. Forno[id][Existe] = 1;
  6548. }
  6549. return 1;
  6550. }
  6551.  
  6552. stock SalvarCama(id)
  6553. {
  6554. new file[64];
  6555. format(file, sizeof(file), "Saves/Cama/%d.ini", id);
  6556.  
  6557. DOF2_CreateFile(file);
  6558. DOF2_SetString(file,"Dono",Cama[id][Dono]);
  6559.  
  6560. DOF2_SetFloat(file, "PosX", Cama[id][PosX]);
  6561. DOF2_SetFloat(file, "PosY", Cama[id][PosY]);
  6562. DOF2_SetFloat(file, "PosZ", Cama[id][PosZ]);
  6563. DOF2_SetFloat(file, "RX", Cama[id][RX]);
  6564. DOF2_SetFloat(file, "RY", Cama[id][RY]);
  6565. DOF2_SetFloat(file, "RZ", Cama[id][RZ]);
  6566. DOF2_SaveFile();
  6567. return 1;
  6568. }
  6569.  
  6570. stock CarregarCama(id)
  6571. {
  6572. new file[64];
  6573. format(file, sizeof(file), "Saves/Cama/%d.ini", id);
  6574. if(DOF2_FileExists(file))
  6575. {
  6576. DOF2_GetString(file,"Dono", Cama[id][Dono]);
  6577.  
  6578. Cama[id][PosX] = DOF2_GetFloat(file, "PosX" );
  6579. Cama[id][PosY] = DOF2_GetFloat(file, "PosY" );
  6580. Cama[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
  6581. Cama[id][RX] = DOF2_GetFloat(file, "RX" );
  6582. Cama[id][RY] = DOF2_GetFloat(file, "RY" );
  6583. Cama[id][RZ] = DOF2_GetFloat(file, "RZ" );
  6584. Cama[id][ObjectG] = CreateDynamicObject(cama, Cama[id][PosX], Cama[id][PosY], Cama[id][PosZ], Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
  6585. Cama[id][Existe] = 1;
  6586. }
  6587. return 1;
  6588. }
  6589.  
  6590. stock CameraPrimeira(playerid,type)
  6591. {
  6592. if(type == 0)
  6593. {
  6594. SetCameraBehindPlayer(playerid);
  6595. DestroyObject(firstperson[playerid]);
  6596. }
  6597. else if(type == 1)
  6598. {
  6599. firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  6600. AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.0, 0.6, 0.0, 0.0, 0.0);
  6601. AttachCameraToObject(playerid, firstperson[playerid]);
  6602. }
  6603. return type;
  6604. }
  6605.  
  6606. stock CreateTentP(playerid)
  6607. {
  6608. tentCount += 1;
  6609. new Float:tentx,Float:tenty,Float:tentz, Float:a;
  6610. GetPlayerPos(playerid,tentx,tenty,tentz);
  6611. GetPlayerFacingAngle(playerid, a);
  6612. Tent[tentCount][xTent] = tentx;
  6613. Tent[tentCount][yTent] = tenty;
  6614. Tent[tentCount][zTent] = tentz;
  6615.  
  6616. Tent[tentCount][TentID] = CreateTent(tentx, tenty, tentz - 0.5,50.0);
  6617. return 1;
  6618. }
  6619.  
  6620. CreateTent(Float:x, Float:y, Float:z, Float:rz)
  6621. {
  6622. Tent[tentCount][tent_SideR1] = CreateDynamicObject(19477,
  6623. x + (0.49 * floatsin(-rz + 270.0, degrees)),
  6624. y + (0.49 * floatcos(-rz + 270.0, degrees)),
  6625. z,
  6626. 0.0, 45.0, rz);
  6627.  
  6628. Tent[tentCount][tent_SideR2] = CreateDynamicObject(19477,
  6629. x + (0.48 * floatsin(-rz + 270.0, degrees)),
  6630. y + (0.48 * floatcos(-rz + 270.0, degrees)),
  6631. z,
  6632. 0.0, 45.0, rz);
  6633.  
  6634. Tent[tentCount][tent_SideL1] = CreateDynamicObject(19477,
  6635. x + (0.49 * floatsin(-rz + 90.0, degrees)),
  6636. y + (0.49 * floatcos(-rz + 90.0, degrees)),
  6637. z,
  6638. 0.0, -45.0, rz);
  6639.  
  6640. Tent[tentCount][tent_SideL2] = CreateDynamicObject(19477,
  6641. x + (0.48 * floatsin(-rz + 90.0, degrees)),
  6642. y + (0.48 * floatcos(-rz + 90.0, degrees)),
  6643. z,
  6644. 0.0, -45.0, rz);
  6645.  
  6646. Tent[tentCount][tent_EndF] = CreateDynamicObject(19475,
  6647. x + (1.3 * floatsin(-rz, degrees)),
  6648. y + (1.3 * floatcos(-rz, degrees)),
  6649. z + 0.17,
  6650. 45.0, 0.0, rz + 90);
  6651.  
  6652. Tent[tentCount][tent_EndB] = CreateDynamicObject(19475,
  6653. x - (1.3 * floatsin(-rz, degrees)),
  6654. y - (1.3 * floatcos(-rz, degrees)),
  6655. z + 0.17,
  6656. 45.0, 0.0, rz + 90);
  6657.  
  6658. Tent[tentCount][tent_PoleF] = CreateDynamicObject(19087,
  6659. x + (1.3 * floatsin(-rz, degrees)),
  6660. y + (1.3 * floatcos(-rz, degrees)),
  6661. z + 0.48,
  6662. 0.0, 0.0, rz);
  6663.  
  6664. Tent[tentCount][tent_PoleB] = CreateDynamicObject(19087,
  6665. x - (1.3 * floatsin(-rz, degrees)),
  6666. y - (1.3 * floatcos(-rz, degrees)),
  6667. z + 0.48,
  6668. 0.0, 0.0, rz);
  6669.  
  6670. SetDynamicObjectMaterial(Tent[tentCount][tent_SideR1], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
  6671. SetDynamicObjectMaterial(Tent[tentCount][tent_SideR2], 0, 3095, "a51jdrx", "sam_camo", 0);
  6672. SetDynamicObjectMaterial(Tent[tentCount][tent_SideL1], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
  6673. SetDynamicObjectMaterial(Tent[tentCount][tent_SideL2], 0, 3095, "a51jdrx", "sam_camo", 0);
  6674.  
  6675. SetDynamicObjectMaterial(Tent[tentCount][tent_EndF], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
  6676. SetDynamicObjectMaterial(Tent[tentCount][tent_EndB], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
  6677. SetDynamicObjectMaterial(Tent[tentCount][tent_PoleF], 0, 1270, "signs", "lamppost", 0);
  6678. SetDynamicObjectMaterial(Tent[tentCount][tent_PoleB], 0, 1270, "signs", "lamppost", 0);
  6679. }
  6680.  
  6681. /* COISAS PARA FAZER:
  6682. MUDAR TODOS OS COMANDOS PARA STRCMP - 100%
  6683.  
  6684. NOVO MAPA - 100%
  6685.  
  6686. ITENS PARA O INVENTARIO -
  6687.  
  6688. NO MAPA CRIAR A ZONA DE RADIAÇÃO -
  6689.  
  6690. NOVO LOGIN/REGISTRO -
  6691.  
  6692. ARRUMAR PREÇOS, QUANTIDADES DE ITENS, ETC.. -
  6693.  
  6694. CRIAR BAMBIS COM SISTEMA DE DEGOLAR -
  6695.  
  6696. SISTEMA DE /CONSTRUIR EM DIALOG - 100%
  6697.  
  6698. QUANDO CONSTRUIR ENTRAR DIRETO NO EDITOBJECT -
  6699.  
  6700. CRIAR SISTEMA DE COLETE -
  6701.  
  6702. CRIAR FORNALHA -
  6703.  
  6704. CRIAR QUANDO MORRER AS OPÇÕES "AT A CAMP" OU "RESPAWN" -
  6705.  
  6706. ARRUMAR OS PROGRESSBAR -
  6707.  
  6708. ARRUMAS AS ESCRITAS "X5 WOOD" ETC.. -
  6709.  
  6710. COLOCAR OS SONS DO RUST "DE COMER" -
  6711.  
  6712. FAZER DINAMITES -
  6713. */
Add Comment
Please, Sign In to add comment