Advertisement
Guest User

Untitled

a guest
Mar 21st, 2021
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.33 KB | None | 0 0
  1. #include a_samp
  2. #include zcmd
  3. #include streamer
  4.  
  5. new Sementes[MAX_PLAYERS], Plantando[MAX_PLAYERS], Drogas[MAX_PLAYERS], Embalado[MAX_PLAYERS], Embalando[MAX_PLAYERS];
  6. new Float:P[MAX_PLAYERS][4], Text3D:TextLabel[MAX_PLAYERS], Remocao[16];
  7.  
  8. CMD:comprarsementes(playerid)
  9. {
  10. if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2254.4675,-1699.1292,13.7476)) return SendClientMessage(playerid, -1, "Você não está no local que compra sementes.");
  11. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Você precisa estar fora do veiculo pra poder usa este comando.");
  12. Sementes[playerid] = 5;
  13. GivePlayerMoney(playerid, -25000);
  14. SendClientMessage(playerid, -1, "Você comprou 5 sementes para plantar drogas.");
  15. return 1;
  16. }
  17.  
  18. CMD:plantar(playerid)
  19. {
  20. if(Sementes[playerid] <=0) return SendClientMessage(playerid, -1, "Você não pode plantar sem sementes.");
  21. if(Plantando[playerid] == 1) return SendClientMessage(playerid, -1, "Você já está plantando.");
  22. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Você precisa estar fora do veiculo pra poder usa este comando.");
  23. if(IsPlayerInRangeOfPoint(playerid, 2.0, 1067.9816,-289.0009,73.9922) || IsPlayerInRangeOfPoint(playerid, 2.0, 1064.9008,-288.9860,73.9922) || IsPlayerInRangeOfPoint(playerid, 2.0, 1061.0771,-289.0986,73.9922) ||
  24. IsPlayerInRangeOfPoint(playerid, 2.0, 1056.6691,-289.2285,73.9922) || IsPlayerInRangeOfPoint(playerid, 2.0, 1067.9731,-292.1593,73.9851) || IsPlayerInRangeOfPoint(playerid, 2.0, 1065.0957,-292.1340,73.9851) ||
  25. IsPlayerInRangeOfPoint(playerid, 2.0, 1061.1887,-292.0998,73.9922) || IsPlayerInRangeOfPoint(playerid, 2.0, 1056.8352,-292.0615,73.9922) || IsPlayerInRangeOfPoint(playerid, 2.0, 1068.1044,-294.5178,73.9851) ||
  26. IsPlayerInRangeOfPoint(playerid, 2.0, 1065.4271,-294.5991,73.9851) || IsPlayerInRangeOfPoint(playerid, 2.0, 1061.3285,-294.7237,73.9851) || IsPlayerInRangeOfPoint(playerid, 2.0, 1056.8835,-294.8588,73.9851) ||
  27. IsPlayerInRangeOfPoint(playerid, 2.0, 1068.2195,-296.9081,73.9851) || IsPlayerInRangeOfPoint(playerid, 2.0, 1065.8510,-297.0544,73.9851) || IsPlayerInRangeOfPoint(playerid, 2.0, 1061.7727,-297.5237,73.9851) ||
  28. IsPlayerInRangeOfPoint(playerid, 2.0, 1057.3954,-298.0271,73.9922))
  29. {
  30. if(Plantando[playerid] == 0)
  31. {
  32. new string[50];
  33. Sementes[playerid] --;
  34. Plantando[playerid] = true;
  35. Plantacao(playerid);
  36. format(string, sizeof(string), "Plantação pertencente á: %s.", PlayerName(playerid));
  37. GetPlayerPos(playerid, P[playerid][0], P[playerid][1], P[playerid][2]);
  38. TextLabel[playerid] = Create3DTextLabel(string, 0xFF0000AA, P[playerid][0], P[playerid][1], P[playerid][2], 20, 0, 0);
  39. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);
  40. SendClientMessage(playerid, -1, "Você iniciou sua plantação, aguarde um tempo para colher.");
  41. }
  42. }
  43. else{
  44. SendClientMessage(playerid, -1, "Você não está no local correto.");
  45. }
  46. return 1;
  47. }
  48.  
  49. CMD:colher(playerid)
  50. {
  51. if(Plantando[playerid] <=0) return SendClientMessage(playerid, -1, "Você não pode colher, o que não está plantando.");
  52. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Você precisa estar fora do veiculo pra poder usa este comando.");
  53. if(IsPlayerInRangeOfPoint(playerid, 2, P[playerid][0], P[playerid][1], P[playerid][2]))
  54. {
  55. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);
  56. SendClientMessage(playerid, -1, "Você colheu uma droga.");
  57. Delete3DTextLabel(TextLabel[playerid]);
  58. Drogas[playerid] ++;
  59. Remover(playerid);
  60. Plantando[playerid] = false;
  61. }
  62. else{
  63. SendClientMessage(playerid, -1, "Você não está no local correto.");
  64. }
  65. return 1;
  66. }
  67.  
  68. CMD:embalar(playerid)
  69. {
  70. if(Drogas[playerid] <=0) return SendClientMessage(playerid, -1, "Você não tem drogas para embalar.");
  71. if(Plantando[playerid] == 1) return SendClientMessage(playerid, -1, "Você não pode embalar drogas, enquanto estiver plantando.");
  72. if(Embalando[playerid] == 1) return SendClientMessage(playerid, -1, "Você já está embalando.");
  73. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Você precisa estar fora do veiculo pra poder usa este comando.");
  74. if(IsPlayerInRangeOfPoint(playerid, 2.0, 1055.2350,-301.1908,79.0718) || IsPlayerInRangeOfPoint(playerid, 2.0, 1058.7205,-301.0574,79.0377) ||
  75. IsPlayerInRangeOfPoint(playerid, 2.0, 1062.7438,-301.0537,79.0377) || IsPlayerInRangeOfPoint(playerid, 2.0, 1066.5061,-301.2105,79.0277) ||
  76. IsPlayerInRangeOfPoint(playerid, 2.0, 1069.6200,-302.1325,79.0277) || IsPlayerInRangeOfPoint(playerid, 2.0, 1069.6385,-306.2584,79.0277) ||
  77. IsPlayerInRangeOfPoint(playerid, 2.0, 1069.6552,-310.7587,79.0218) || IsPlayerInRangeOfPoint(playerid, 2.0, 1069.1132,-313.9928,79.0218) ||
  78. IsPlayerInRangeOfPoint(playerid, 2.0, 1063.8151,-314.0785,79.0218) || IsPlayerInRangeOfPoint(playerid, 2.0, 1058.9000,-314.1403,79.0159) ||
  79. IsPlayerInRangeOfPoint(playerid, 2.0, 1055.5009,-314.1674,79.0159))
  80. {
  81. Embalando[playerid] = true;
  82. Contar(5);
  83. ApplyAnimation(playerid, "INT_SHOP", "shop_loop", 4.0, 1, 0, 0, 1, 0, 1);
  84. SendClientMessage(playerid, -1, "Você está embalando sua droga...");
  85. return 1;
  86. }
  87. else{
  88. SendClientMessage(playerid, -1, "Você não está no lugar certo.");
  89. }
  90. return 1;
  91. }
  92.  
  93. CMD:produtos(playerid)
  94. {
  95. new string[50];
  96. format(string, sizeof(string), "Sementes: %d | Drogas: %d | Embalados: %d", Sementes[playerid], Drogas[playerid], Embalado[playerid]);
  97. SendClientMessage(playerid, -1, string);
  98. return 1;
  99. }
  100.  
  101. CMD:comandos(playerid)
  102. {
  103. new string[100];
  104. format(string, sizeof(string), "/ComprarSementes | /Plantar | /Colher | /Embalar | /Produtos");
  105. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Comandos", string, "Fechar", "");
  106. return 1;
  107. }
  108.  
  109. CMD:creditos(playerid)
  110. {
  111. SendClientMessage(playerid, -1, "Creditos: SkolPlay.");
  112. return 1;
  113. }
  114.  
  115. // Fim dos comandos.
  116.  
  117. forward Contar(Contagem);
  118. public Contar(Contagem)
  119. {
  120. new iString2[130];
  121. new i;
  122. new playerid;
  123. format(iString2,3, "%d", Contagem);
  124. if(Contagem > 0)
  125. {
  126. GameTextForPlayer(i, iString2, 700, 4);
  127. SetTimerEx ("Contar", 1000, false, "i" , Contagem-1);
  128. }
  129. if(Contagem == 0)
  130. {
  131. ClearAnimations(playerid);
  132. Embalado[playerid] ++;
  133. Drogas[playerid] --;
  134. Embalando[playerid] = false;
  135. SendClientMessage(playerid, -1, "Você acabou de embalar sua droga.");
  136. }
  137. return 1;
  138. }
  139.  
  140. public OnPlayerSpawn(playerid)
  141. {
  142. RemoveBuildingForPlayer(playerid, 13206, 1072.949, -289.179, 72.734, 0.250);
  143. SetPlayerPos(playerid, 1061.1964,-328.8647,73.9922);
  144. return 1;
  145. }
  146.  
  147. stock PlayerName(playerid)
  148. {
  149. new name[MAX_PLAYER_NAME];
  150. GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  151. return name;
  152. }
  153.  
  154. public OnGameModeInit()
  155. {
  156. new tmpobjid;
  157. tmpobjid = CreateDynamicObject(19464, 1056.608764, -315.574768, 75.482116, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  158. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  159. tmpobjid = CreateDynamicObject(19465, 1062.450805, -315.567291, 75.482154, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  160. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  161. tmpobjid = CreateDynamicObject(19464, 1068.242065, -315.557403, 75.482162, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  162. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  163. tmpobjid = CreateDynamicObject(19464, 1071.080322, -312.592254, 75.472152, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  164. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  165. tmpobjid = CreateDynamicObject(19464, 1071.078979, -306.752044, 75.462181, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  166. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  167. tmpobjid = CreateDynamicObject(19464, 1071.071044, -302.488586, 75.455055, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  168. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  169. tmpobjid = CreateDynamicObject(19464, 1068.220581, -299.651458, 75.465042, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  170. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  171. tmpobjid = CreateDynamicObject(19465, 1062.433471, -299.666656, 75.454994, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  172. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  173. tmpobjid = CreateDynamicObject(19464, 1056.570434, -299.682342, 75.452171, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  174. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  175. tmpobjid = CreateDynamicObject(19464, 1053.736816, -312.528961, 75.482170, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  176. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  177. tmpobjid = CreateDynamicObject(19464, 1053.728881, -306.627868, 75.472145, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  178. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  179. tmpobjid = CreateDynamicObject(19464, 1053.726684, -302.582855, 75.472129, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  180. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  181. tmpobjid = CreateDynamicObject(19464, 1071.058471, -296.588409, 75.455017, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  182. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  183. tmpobjid = CreateDynamicObject(19464, 1071.052856, -290.712951, 75.444999, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  184. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  185. tmpobjid = CreateDynamicObject(19464, 1053.733154, -296.638458, 75.442131, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  186. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  187. tmpobjid = CreateDynamicObject(19464, 1053.716674, -290.807769, 75.442169, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  188. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  189. tmpobjid = CreateDynamicObject(19464, 1053.706542, -288.598785, 75.442161, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  190. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  191. tmpobjid = CreateDynamicObject(19464, 1056.540527, -285.741363, 75.432151, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  192. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  193. tmpobjid = CreateDynamicObject(19464, 1062.366821, -285.750213, 75.442184, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  194. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  195. tmpobjid = CreateDynamicObject(19464, 1068.217285, -285.740753, 75.432106, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  196. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  197. tmpobjid = CreateDynamicObject(19464, 1071.067382, -288.790252, 75.432189, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  198. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  199. tmpobjid = CreateDynamicObject(19376, 1058.959594, -310.808441, 77.929916, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  200. SetDynamicObjectMaterial(tmpobjid, 0, 10370, "alleys_sfs", "ws_asphalt", 0x00000000);
  201. tmpobjid = CreateDynamicObject(19376, 1065.730346, -310.814544, 77.935874, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  202. SetDynamicObjectMaterial(tmpobjid, 0, 10370, "alleys_sfs", "ws_asphalt", 0x00000000);
  203. tmpobjid = CreateDynamicObject(19376, 1065.864013, -304.386596, 77.941795, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  204. SetDynamicObjectMaterial(tmpobjid, 0, 10370, "alleys_sfs", "ws_asphalt", 0x00000000);
  205. tmpobjid = CreateDynamicObject(19452, 1059.001831, -304.356628, 77.945838, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  206. SetDynamicObjectMaterial(tmpobjid, 0, 10370, "alleys_sfs", "ws_asphalt", 0x00000000);
  207. tmpobjid = CreateDynamicObject(19452, 1058.670654, -301.333282, 77.951759, 0.000000, 90.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  208. SetDynamicObjectMaterial(tmpobjid, 0, 10370, "alleys_sfs", "ws_asphalt", 0x00000000);
  209. tmpobjid = CreateDynamicObject(19452, 1056.946899, -304.389862, 77.985832, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  210. SetDynamicObjectMaterial(tmpobjid, 0, 10370, "alleys_sfs", "ws_asphalt", 0x00000000);
  211. tmpobjid = CreateDynamicObject(19464, 1056.818603, -299.657928, 80.481750, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  212. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  213. tmpobjid = CreateDynamicObject(19464, 1062.706176, -299.670715, 80.497718, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  214. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  215. tmpobjid = CreateDynamicObject(19464, 1068.055664, -299.684112, 80.507690, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  216. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  217. tmpobjid = CreateDynamicObject(19464, 1071.029785, -302.537536, 80.497734, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  218. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  219. tmpobjid = CreateDynamicObject(19464, 1071.028320, -308.351959, 80.497680, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  220. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  221. tmpobjid = CreateDynamicObject(19464, 1071.047729, -312.712188, 80.501792, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  222. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  223. tmpobjid = CreateDynamicObject(19464, 1068.009887, -315.549774, 80.491813, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  224. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  225. tmpobjid = CreateDynamicObject(19464, 1062.190673, -315.562286, 80.491783, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  226. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  227. tmpobjid = CreateDynamicObject(19464, 1056.589233, -315.570404, 80.485809, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  228. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  229. tmpobjid = CreateDynamicObject(19464, 1053.743041, -312.493957, 80.495826, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  230. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  231. tmpobjid = CreateDynamicObject(19464, 1053.744506, -307.077026, 80.491729, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  232. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  233. tmpobjid = CreateDynamicObject(19464, 1053.720458, -302.517303, 80.501762, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  234. SetDynamicObjectMaterial(tmpobjid, 0, 2023, "bitsnbobs", "CJ_LIGHTWOOD", 0x00000000);
  235. tmpobjid = CreateDynamicObject(19376, 1058.935791, -294.772979, 77.895042, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  236. SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0x00000000);
  237. tmpobjid = CreateDynamicObject(19376, 1065.797851, -294.778350, 77.890991, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  238. SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0x00000000);
  239. tmpobjid = CreateDynamicObject(19376, 1059.059204, -290.491180, 77.881004, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  240. SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0x00000000);
  241. tmpobjid = CreateDynamicObject(19376, 1065.697875, -290.483673, 77.866935, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  242. SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0x00000000);
  243. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  244. tmpobjid = CreateDynamicObject(19376, 1065.857421, -304.618377, 72.992187, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  245. tmpobjid = CreateDynamicObject(19376, 1065.841674, -310.619689, 72.988121, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  246. tmpobjid = CreateDynamicObject(19376, 1058.935913, -304.617126, 72.998123, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  247. tmpobjid = CreateDynamicObject(19376, 1058.895874, -310.618591, 72.994018, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  248. tmpobjid = CreateDynamicObject(12950, 1054.413330, -302.685668, 74.753974, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  249. tmpobjid = CreateDynamicObject(1502, 1063.215209, -315.564849, 72.992187, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  250. tmpobjid = CreateDynamicObject(19376, 1065.829711, -310.853759, 82.921775, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  251. tmpobjid = CreateDynamicObject(19376, 1058.999389, -310.880523, 82.927696, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  252. tmpobjid = CreateDynamicObject(19376, 1058.985595, -304.571899, 82.933631, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  253. tmpobjid = CreateDynamicObject(19376, 1065.774902, -304.573455, 82.929512, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  254. tmpobjid = CreateDynamicObject(2115, 1058.345336, -300.227874, 78.051773, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  255. tmpobjid = CreateDynamicObject(2115, 1062.323852, -300.223815, 78.037696, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  256. tmpobjid = CreateDynamicObject(2115, 1066.009521, -300.374267, 78.027732, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  257. tmpobjid = CreateDynamicObject(2115, 1070.462402, -302.682586, 78.027732, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  258. tmpobjid = CreateDynamicObject(2115, 1070.481201, -306.918914, 78.027732, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  259. tmpobjid = CreateDynamicObject(2115, 1070.496826, -311.355163, 78.021812, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  260. tmpobjid = CreateDynamicObject(2115, 1068.506958, -314.835449, 78.021812, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  261. tmpobjid = CreateDynamicObject(2115, 1063.202636, -314.922271, 78.021812, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  262. tmpobjid = CreateDynamicObject(2115, 1058.349487, -314.985565, 78.015853, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  263. tmpobjid = CreateDynamicObject(2115, 1055.936645, -314.997619, 78.015853, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  264. tmpobjid = CreateDynamicObject(2115, 1054.772949, -300.358123, 78.071769, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  265. tmpobjid = CreateDynamicObject(1578, 1054.826904, -300.407714, 78.831741, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  266. tmpobjid = CreateDynamicObject(1578, 1055.613525, -300.408447, 78.861770, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  267. tmpobjid = CreateDynamicObject(1578, 1058.426025, -300.318939, 78.827682, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  268. tmpobjid = CreateDynamicObject(1578, 1059.097534, -300.289276, 78.767662, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  269. tmpobjid = CreateDynamicObject(1578, 1062.357788, -300.393218, 78.857658, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  270. tmpobjid = CreateDynamicObject(1578, 1063.211791, -300.328338, 78.787658, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  271. tmpobjid = CreateDynamicObject(1578, 1066.188842, -300.552856, 78.747695, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  272. tmpobjid = CreateDynamicObject(1578, 1066.857299, -300.545562, 78.777725, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  273. tmpobjid = CreateDynamicObject(1578, 1070.285644, -301.724914, 78.767669, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  274. tmpobjid = CreateDynamicObject(1578, 1070.314331, -302.506011, 78.757736, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  275. tmpobjid = CreateDynamicObject(1578, 1070.275024, -305.951293, 78.827674, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  276. tmpobjid = CreateDynamicObject(1578, 1070.285156, -306.697662, 78.777732, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  277. tmpobjid = CreateDynamicObject(1578, 1070.296020, -310.364929, 78.797798, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  278. tmpobjid = CreateDynamicObject(1578, 1070.292846, -311.227661, 78.831817, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  279. tmpobjid = CreateDynamicObject(1578, 1069.393676, -314.654724, 78.831802, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  280. tmpobjid = CreateDynamicObject(1578, 1068.773071, -314.654724, 78.831794, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  281. tmpobjid = CreateDynamicObject(1578, 1064.175659, -314.697082, 78.831794, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  282. tmpobjid = CreateDynamicObject(1578, 1063.458129, -314.669189, 78.841781, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  283. tmpobjid = CreateDynamicObject(1578, 1059.229125, -314.856811, 78.725852, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  284. tmpobjid = CreateDynamicObject(1578, 1058.427856, -314.800048, 78.771812, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  285. tmpobjid = CreateDynamicObject(1578, 1055.893920, -314.748779, 78.775779, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  286. tmpobjid = CreateDynamicObject(1578, 1055.063964, -314.743408, 78.765808, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  287. tmpobjid = CreateDynamicObject(3761, 1070.199829, -304.173828, 74.998115, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  288. tmpobjid = CreateDynamicObject(3577, 1069.562133, -309.327697, 73.714057, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  289. tmpobjid = CreateDynamicObject(3015, 1070.191772, -311.900573, 73.224090, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  290. tmpobjid = CreateDynamicObject(3015, 1069.259887, -311.872924, 73.104049, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  291. tmpobjid = CreateDynamicObject(3576, 1069.058105, -313.757141, 74.534049, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  292. tmpobjid = CreateDynamicObject(922, 1058.004394, -314.738006, 73.979919, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  293. tmpobjid = CreateDynamicObject(1685, 1067.134521, -314.653106, 73.724044, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  294. tmpobjid = CreateDynamicObject(1685, 1065.401367, -314.623535, 73.724075, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  295. tmpobjid = CreateDynamicObject(922, 1054.723144, -310.728973, 74.029960, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  296. tmpobjid = CreateDynamicObject(19942, 1055.954223, -300.060089, 78.951766, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  297. tmpobjid = CreateDynamicObject(19942, 1059.646606, -300.309509, 78.937629, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  298. tmpobjid = CreateDynamicObject(19942, 1063.691894, -300.361694, 78.947692, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  299. tmpobjid = CreateDynamicObject(19942, 1067.317382, -300.212066, 78.917709, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  300. tmpobjid = CreateDynamicObject(19942, 1070.618652, -302.955261, 78.947715, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  301. tmpobjid = CreateDynamicObject(19942, 1070.434692, -307.158081, 78.907737, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  302. tmpobjid = CreateDynamicObject(19942, 1070.322509, -311.686523, 78.991783, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  303. tmpobjid = CreateDynamicObject(19942, 1068.345703, -314.949707, 78.941810, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  304. tmpobjid = CreateDynamicObject(19942, 1062.938598, -314.873748, 78.911796, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  305. tmpobjid = CreateDynamicObject(19942, 1058.060302, -314.831481, 78.945846, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  306. tmpobjid = CreateDynamicObject(19942, 1054.676513, -315.011871, 78.895851, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  307. tmpobjid = CreateDynamicObject(2036, 1065.369628, -314.361938, 74.494064, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  308. tmpobjid = CreateDynamicObject(2035, 1069.004028, -309.029174, 74.528114, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  309. tmpobjid = CreateDynamicObject(2035, 1055.500244, -315.156829, 78.835884, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  310. tmpobjid = CreateDynamicObject(2035, 1058.811035, -315.236877, 78.875839, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  311. tmpobjid = CreateDynamicObject(2035, 1063.706298, -315.188079, 78.831817, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  312. tmpobjid = CreateDynamicObject(2035, 1068.966308, -315.055511, 78.851791, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  313. tmpobjid = CreateDynamicObject(2036, 1055.263305, -300.066772, 78.901771, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  314. tmpobjid = CreateDynamicObject(2036, 1058.955688, -299.987518, 78.857704, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  315. tmpobjid = CreateDynamicObject(2036, 1062.884155, -300.057373, 78.837699, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  316. tmpobjid = CreateDynamicObject(2036, 1066.570068, -300.147338, 78.847709, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  317. tmpobjid = CreateDynamicObject(2036, 1070.618530, -302.071166, 78.857749, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  318. tmpobjid = CreateDynamicObject(2035, 1070.645385, -306.424346, 78.837707, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  319. tmpobjid = CreateDynamicObject(2035, 1070.756103, -310.817810, 78.861808, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  320. tmpobjid = CreateDynamicObject(2035, 1066.965332, -314.387573, 74.492393, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  321. tmpobjid = CreateDynamicObject(1550, 1057.155395, -315.225372, 78.385848, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  322. tmpobjid = CreateDynamicObject(1550, 1061.193359, -315.229431, 78.391815, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  323. tmpobjid = CreateDynamicObject(1550, 1066.211914, -315.283447, 78.441787, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  324. tmpobjid = CreateDynamicObject(1550, 1070.663818, -308.509643, 78.377716, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  325. tmpobjid = CreateDynamicObject(1550, 1070.738525, -304.495819, 78.357727, 0.000000, 0.000000, 900.000000, -1, -1, -1, 300.00, 300.00);
  326. tmpobjid = CreateDynamicObject(1550, 1064.661499, -300.032928, 78.407722, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  327. tmpobjid = CreateDynamicObject(1550, 1060.997192, -300.045593, 78.357696, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  328. tmpobjid = CreateDynamicObject(1550, 1057.026367, -300.030456, 78.411773, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  329. tmpobjid = CreateDynamicObject(1222, 1070.041748, -300.345825, 73.648124, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  330. tmpobjid = CreateDynamicObject(19618, 1066.322143, -300.207366, 73.518112, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  331. tmpobjid = CreateDynamicObject(19618, 1064.420654, -300.237823, 73.508110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  332. tmpobjid = CreateDynamicObject(19618, 1068.051513, -300.235626, 73.518096, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  333. tmpobjid = CreateDynamicObject(19619, 1064.011108, -300.469573, 73.508140, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  334. tmpobjid = CreateDynamicObject(19619, 1065.924194, -300.426605, 73.528121, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  335. tmpobjid = CreateDynamicObject(19619, 1067.646118, -300.461090, 73.518104, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  336. tmpobjid = CreateDynamicObject(2034, 1064.332763, -300.278961, 74.038131, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  337. tmpobjid = CreateDynamicObject(2044, 1066.292236, -300.268127, 74.058059, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  338. tmpobjid = CreateDynamicObject(2033, 1067.966186, -300.243438, 73.988113, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  339.  
  340. //Pickup plantação.
  341. CreatePickup(1254, 23,1067.9816,-289.0009,73.9922); CreatePickup(1254, 23,1064.9008,-288.9860,73.9922); CreatePickup(1254, 23,1061.0771,-289.0986,73.9922);
  342. CreatePickup(1254, 23,1056.6691,-289.2285,73.9922); CreatePickup(1254, 23,1067.9731,-292.1593,73.9851); CreatePickup(1254, 23,1065.0957,-292.1340,73.9851);
  343. CreatePickup(1254, 23,1061.1887,-292.0998,73.9922); CreatePickup(1254, 23,1056.8352,-292.0615,73.9922); CreatePickup(1254, 23,1068.1044,-294.5178,73.9851);
  344. CreatePickup(1254, 23,1065.4271,-294.5991,73.9851); CreatePickup(1254, 23,1061.3285,-294.7237,73.9851); CreatePickup(1254, 23,1056.8835,-294.8588,73.9851);
  345. CreatePickup(1254, 23,1068.2195,-296.9081,73.9851); CreatePickup(1254, 23,1065.8510,-297.0544,73.9851); CreatePickup(1254, 23,1061.7727,-297.5237,73.9851);
  346. CreatePickup(1254, 23,1057.3954,-298.0271,73.9922); CreatePickup(1254, 23, 2254.4675,-1699.1292,13.7476);
  347. Create3DTextLabel("Sementes de drogas, aqui!", 0xFFFFFFFF, 2254.4675,-1699.1292,13.7476, 50, 0, 0);
  348.  
  349. //Pickup de embalar
  350. CreatePickup(1239, 23, 1055.2350,-301.1908,79.0718); CreatePickup(1239, 23, 1058.7205,-301.0574,79.0377); CreatePickup(1239, 23, 1062.7438,-301.0537,79.0377);
  351. CreatePickup(1239, 23, 1066.5061,-301.2105,79.0277); CreatePickup(1239, 23, 1069.6200,-302.1325,79.0277); CreatePickup(1239, 23, 1069.6385,-306.2584,79.0277);
  352. CreatePickup(1239, 23, 1069.6552,-310.7587,79.0218); CreatePickup(1239, 23, 1069.1132,-313.9928,79.0218); CreatePickup(1239, 23, 1063.8151,-314.0785,79.0218);
  353. CreatePickup(1239, 23, 1058.9000,-314.1403,79.0159); CreatePickup(1239, 23, 1055.5009,-314.1674,79.0159);
  354. return 1;
  355. }
  356.  
  357. forward Objetos(playerid);
  358. public Objetos(playerid)
  359. {
  360. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1057.2780,-297.8922,73.9922))
  361. {
  362. Remocao[0] = CreateDynamicObject(19473, 1057.301147, -298.113006, 72.432189, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  363. }
  364. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.8649,-294.7257,73.9851))
  365. {
  366. Remocao[1] = CreateDynamicObject(19473, 1056.882080, -294.751800, 72.275070, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  367. }
  368. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.7786,-291.8760,73.9922))
  369. {
  370. Remocao[2] = CreateDynamicObject(19473, 1056.745117, -291.912658, 72.342185, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  371. }
  372. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.7496,-289.1698,73.9922))
  373. {
  374. Remocao[3] = CreateDynamicObject(19473, 1056.609130, -288.922241, 72.432205, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  375. }
  376. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.0464,-288.8317,73.9922))
  377. {
  378. Remocao[4] = CreateDynamicObject(19473, 1061.021972, -289.067413, 72.452217, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  379. }
  380. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.0260,-292.0007,73.9922))
  381. {
  382. Remocao[5] = CreateDynamicObject(19473, 1061.229858, -292.049530, 72.462203, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  383. }
  384. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.2888,-294.5310,73.9851))
  385. {
  386. Remocao[6] = CreateDynamicObject(19473, 1061.217041, -294.840637, 72.495063, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  387. }
  388. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.7322,-297.3013,73.9851))
  389. {
  390. Remocao[7] = CreateDynamicObject(19473, 1061.804565, -297.718719, 72.415069, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  391. }
  392. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1065.6115,-296.9664,73.9851))
  393. {
  394. Remocao[8] = CreateDynamicObject(19473, 1065.825683, -297.040924, 72.335090, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  395. }
  396. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1065.2069,-294.4120,73.9851))
  397. {
  398. Remocao[9] = CreateDynamicObject(19473, 1065.369506, -294.512268, 72.395072, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  399. }
  400. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1064.9475,-292.2710,73.9851))
  401. {
  402. Remocao[10] = CreateDynamicObject(19473, 1065.011596, -292.180175, 72.455078, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  403. }
  404. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1064.8839,-288.8146,73.9922))
  405. {
  406. Remocao[11] = CreateDynamicObject(19473, 1064.886352, -288.891204, 72.512214, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  407. }
  408. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1067.8370,-288.9097,73.9922))
  409. {
  410. Remocao[12] = CreateDynamicObject(19473, 1067.918701, -288.999603, 72.302215, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  411. }
  412. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1067.7855,-292.1423,73.9851))
  413. {
  414. Remocao[13] = CreateDynamicObject(19473, 1067.926757, -292.199279, 72.275047, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  415. }
  416. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1067.9957,-294.4928,73.9851))
  417. {
  418. Remocao[14] = CreateDynamicObject(19473, 1068.091796, -294.538452, 72.175086, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  419. }
  420. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1068.0853,-296.8463,73.9851))
  421. {
  422. Remocao[15] = CreateDynamicObject(19473, 1068.043212, -296.944091, 72.245063, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  423. }
  424. return 1;
  425. }
  426.  
  427. forward Remover(playerid);
  428. public Remover(playerid)
  429. {
  430. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1057.2780,-297.8922,73.9922))
  431. {
  432. DestroyDynamicObject(Remocao[0]);
  433. }
  434. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.8649,-294.7257,73.9851))
  435. {
  436. DestroyDynamicObject(Remocao[1]);
  437. }
  438. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.7786,-291.8760,73.9922))
  439. {
  440. DestroyDynamicObject(Remocao[2]);
  441. }
  442. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.7496,-289.1698,73.9922))
  443. {
  444. DestroyDynamicObject(Remocao[3]);
  445. }
  446. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.0464,-288.8317,73.9922))
  447. {
  448. DestroyDynamicObject(Remocao[4]);
  449. }
  450. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.0260,-292.0007,73.9922))
  451. {
  452. DestroyDynamicObject(Remocao[5]);
  453. }
  454. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.2888,-294.5310,73.9851))
  455. {
  456. DestroyDynamicObject(Remocao[6]);
  457. }
  458. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1061.7322,-297.3013,73.9851))
  459. {
  460. DestroyDynamicObject(Remocao[7]);
  461. }
  462. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1065.6115,-296.9664,73.9851))
  463. {
  464. DestroyDynamicObject(Remocao[8]);
  465. }
  466. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1065.2069,-294.4120,73.9851))
  467. {
  468. DestroyDynamicObject(Remocao[9]);
  469. }
  470. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1064.9475,-292.2710,73.9851))
  471. {
  472. DestroyDynamicObject(Remocao[10]);
  473. }
  474. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1064.8839,-288.8146,73.9922))
  475. {
  476. DestroyDynamicObject(Remocao[11]);
  477. }
  478. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1067.8370,-288.9097,73.9922))
  479. {
  480. DestroyDynamicObject(Remocao[12]);
  481. }
  482. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1067.7855,-292.1423,73.9851))
  483. {
  484. DestroyDynamicObject(Remocao[13]);
  485. }
  486. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1067.9957,-294.4928,73.9851))
  487. {
  488. DestroyDynamicObject(Remocao[14]);
  489. }
  490. if(IsPlayerInRangeOfPoint(playerid, 1.0, 1068.0853,-296.8463,73.9851))
  491. {
  492. DestroyDynamicObject(Remocao[15]);
  493. }
  494. return 1;
  495. }
  496.  
  497. forward Plantacao(playerid);
  498. public Plantacao(playerid)
  499. {
  500. SetTimerEx("Objetos", 1000, false, "i", playerid);
  501. SendClientMessage(playerid, -1, "Sua plantação está pronta, colha ela.");
  502. return 1;
  503. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement