Advertisement
Guest User

Spawn at the same place bug - samp

a guest
Aug 29th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.50 KB | None | 0 0
  1. public OnPlayerSpawn(playerid)
  2. {
  3. if(IsPlayerNPC(playerid))
  4. {
  5. new npcname[MAX_PLAYER_NAME];
  6. GetPlayerName(playerid, npcname, sizeof(npcname));
  7. if(!strcmp(npcname, "Zombie_1", true))
  8. {
  9. SetPlayerSkin(playerid, 162);
  10. SetPlayerPos(playerid, 1776.4562,-1895.7217,13.3867);
  11. TogglePlayerControllable(playerid, true);
  12. SetPlayerColor(playerid, BLANCO2);
  13. gTeam[playerid] = EZOMBIE;
  14. }
  15. if(!strcmp(npcname, "Zombie_2", true))
  16. {
  17. SetPlayerSkin(playerid, 162);
  18. SetPlayerPos(playerid, 1507.4354,-1730.9388,13.3828);
  19. TogglePlayerControllable(playerid, true);
  20. SetPlayerColor(playerid, BLANCO2);
  21. gTeam[playerid] = EZOMBIE;
  22. }
  23. if(!strcmp(npcname, "Zombie_3", true))
  24. {
  25. SetPlayerSkin(playerid, 162);
  26. SetPlayerPos(playerid, 1776.4562,-1895.7217,13.3867);
  27. TogglePlayerControllable(playerid, true);
  28. SetPlayerColor(playerid, BLANCO2);
  29. gTeam[playerid] = EZOMBIE;
  30. }
  31. if(!strcmp(npcname,"Bot_intro",true))
  32. {
  33. PutPlayerInVehicle(playerid,63, 0);
  34. new coche = GetPlayerVehicleID(playerid);
  35. SetVehicleParamsEx(coche, 1, 0, -1, 0, 0, 0, 0);
  36. TogglePlayerControllable(playerid, true);
  37. SetPlayerColor(playerid, BLANCO2);
  38. gTeam[playerid] = EHUMANO;
  39. }
  40. else
  41. {
  42. new which_spawn = random(4);
  43. if(which_spawn == 0)
  44. {
  45. SetPlayerSkin(playerid, 162);
  46. SetPlayerPos(playerid,1138.4512,-1385.9067,13.7797);
  47. SetPlayerInterior(playerid,0);
  48. TogglePlayerControllable(playerid, true);
  49. }
  50. else if(which_spawn == 1)
  51. {
  52. SetPlayerSkin(playerid, 162);
  53. SetPlayerPos(playerid,1543.7426,-1305.9878,16.1152);
  54. SetPlayerInterior(playerid,0);
  55. TogglePlayerControllable(playerid, true);
  56. }
  57. else if(which_spawn == 2)
  58. {
  59. SetPlayerSkin(playerid, 162);
  60. SetPlayerPos(playerid,2578.9900,-1412.2079,24.4618);
  61. SetPlayerInterior(playerid,0);
  62. TogglePlayerControllable(playerid, true);
  63. }
  64. else if(which_spawn == 3)
  65. {
  66. SetPlayerSkin(playerid, 162);
  67. SetPlayerPos(playerid,2578.9900,-1412.2079,24.4618);
  68. SetPlayerInterior(playerid,0);
  69. TogglePlayerControllable(playerid, true);
  70. }
  71. }
  72. return 1;
  73. }
  74.  
  75. /* Remove Objects Area */
  76.  
  77.  
  78. // HUMAN SPAWN ZONES REMOVE
  79. // BANDIT BASEBALL CAMPS
  80. RemoveBuildingForPlayer(playerid, 707, 1268.7344, 2098.3516, 11.6953, 0.25);
  81. RemoveBuildingForPlayer(playerid, 1268, 1260.9922, 2074.4844, 25.1563, 0.25);
  82. RemoveBuildingForPlayer(playerid, 7913, 1261.0781, 2076.1563, 31.1563, 0.25);
  83. RemoveBuildingForPlayer(playerid, 1259, 1260.9922, 2074.4844, 25.1563, 0.25);
  84. RemoveBuildingForPlayer(playerid, 3509, 1281.0547, 2085.0625, 10.7422, 0.25);
  85. RemoveBuildingForPlayer(playerid, 645, 1289.4766, 2079.7500, 12.8438, 0.25);
  86. RemoveBuildingForPlayer(playerid, 1540, 1223.8984, 2124.7422, 10.2813, 0.25);
  87. RemoveBuildingForPlayer(playerid, 7617, 1333.3828, 2075.9297, 22.8359, 0.25);
  88. RemoveBuildingForPlayer(playerid, 3509, 1363.8828, 2077.3672, 9.1953, 0.25);
  89. RemoveBuildingForPlayer(playerid, 3509, 1351.3906, 2079.4766, 9.8281, 0.25);
  90. RemoveBuildingForPlayer(playerid, 645, 1375.4297, 2079.8828, 11.7578, 0.25);
  91. RemoveBuildingForPlayer(playerid, 645, 1362.2031, 2087.7813, 12.0000, 0.25);
  92.  
  93. //----------------------------------------------------------------------------
  94.  
  95. //ZOMBIE SPAWN ZONES REMOVE
  96. RemoveBuildingForPlayer(playerid, 8795, 2811.2422, 1661.3516, 9.8203, 0.25);
  97. RemoveBuildingForPlayer(playerid, 8940, 2826.9141, 1661.3516, 13.9609, 0.25);
  98. RemoveBuildingForPlayer(playerid, 8941, 2843.1563, 1661.3516, 13.9609, 0.25);
  99. RemoveBuildingForPlayer(playerid, 8942, 2863.4531, 1606.5000, 13.9609, 0.25);
  100. RemoveBuildingForPlayer(playerid, 8943, 2879.2031, 1606.5000, 13.9609, 0.25);
  101. RemoveBuildingForPlayer(playerid, 8944, 2894.5859, 1606.5000, 13.9609, 0.25);
  102. RemoveBuildingForPlayer(playerid, 9166, 2863.4531, 1606.5000, 13.9609, 0.25);
  103. RemoveBuildingForPlayer(playerid, 9167, 2879.2031, 1606.5000, 13.9609, 0.25);
  104. RemoveBuildingForPlayer(playerid, 9168, 2894.5859, 1606.5000, 13.9609, 0.25);
  105. RemoveBuildingForPlayer(playerid, 8635, 2811.2422, 1661.3516, 9.8203, 0.25);
  106. RemoveBuildingForPlayer(playerid, 9164, 2826.9141, 1661.3516, 13.9609, 0.25);
  107. RemoveBuildingForPlayer(playerid, 9165, 2843.1563, 1661.3516, 13.9609, 0.25);
  108.  
  109. //--------------------------------------------------------------------------
  110.  
  111. //HUMAN SPAWN ZONES REMOVE
  112. //PISTA MOTOCROSS
  113. RemoveBuildingForPlayer(playerid, 7014, 2448.2656, 1832.1875, 10.8203, 0.25);
  114. RemoveBuildingForPlayer(playerid, 7141, 2402.2266, 1891.5938, 4.6953, 0.25);
  115. RemoveBuildingForPlayer(playerid, 3504, 2472.5391, 1874.9531, 10.7031, 0.25);
  116. RemoveBuildingForPlayer(playerid, 3502, 2475.3281, 1920.4766, 11.4063, 0.25);
  117. RemoveBuildingForPlayer(playerid, 3504, 2475.2344, 1874.5469, 10.7031, 0.25);
  118. RemoveBuildingForPlayer(playerid, 3502, 2476.4688, 1882.7813, 10.1250, 0.25);
  119. RemoveBuildingForPlayer(playerid, 3504, 2476.6328, 1874.4141, 10.7031, 0.25);
  120. RemoveBuildingForPlayer(playerid, 3502, 2478.0000, 1921.0156, 14.0078, 0.25);
  121. RemoveBuildingForPlayer(playerid, 3504, 2479.4688, 1873.7266, 10.7031, 0.25);
  122. RemoveBuildingForPlayer(playerid, 3502, 2481.3359, 1899.3047, 10.0391, 0.25);
  123. RemoveBuildingForPlayer(playerid, 3502, 2479.6484, 1920.4766, 10.9922, 0.25);
  124. RemoveBuildingForPlayer(playerid, 1684, 2493.7813, 1867.7578, 11.3594, 0.25);
  125. RemoveBuildingForPlayer(playerid, 1684, 2493.7813, 1881.7734, 11.3594, 0.25);
  126. RemoveBuildingForPlayer(playerid, 1685, 2474.5391, 1942.8047, 11.3438, 0.25);
  127. RemoveBuildingForPlayer(playerid, 1685, 2474.9219, 1943.2344, 9.8438, 0.25);
  128. RemoveBuildingForPlayer(playerid, 1685, 2475.8828, 1941.1641, 9.8438, 0.25);
  129. RemoveBuildingForPlayer(playerid, 1685, 2476.1250, 1944.8516, 11.3438, 0.25);
  130. RemoveBuildingForPlayer(playerid, 1685, 2475.7031, 1945.9922, 9.8438, 0.25);
  131. RemoveBuildingForPlayer(playerid, 1685, 2475.8047, 1936.7578, 9.8516, 0.25);
  132. RemoveBuildingForPlayer(playerid, 1684, 2477.9688, 1960.8359, 11.3594, 0.25);
  133. RemoveBuildingForPlayer(playerid, 1685, 2476.6719, 1943.9219, 9.8438, 0.25);
  134. RemoveBuildingForPlayer(playerid, 1685, 2478.5234, 1954.1094, 10.1484, 0.25);
  135. RemoveBuildingForPlayer(playerid, 1685, 2479.7109, 1941.7891, 11.3438, 0.25);
  136. RemoveBuildingForPlayer(playerid, 1685, 2480.2344, 1942.8203, 9.8438, 0.25);
  137. RemoveBuildingForPlayer(playerid, 1685, 2480.0938, 1940.6406, 9.8438, 0.25);
  138. RemoveBuildingForPlayer(playerid, 1685, 2480.5234, 1949.5625, 9.8438, 0.25);
  139. RemoveBuildingForPlayer(playerid, 1685, 2481.8359, 1954.1094, 10.1563, 0.25);
  140. RemoveBuildingForPlayer(playerid, 1685, 2375.3203, 1878.6953, 11.3984, 0.25);
  141. RemoveBuildingForPlayer(playerid, 1685, 2375.2188, 1879.7734, 12.8984, 0.25);
  142. RemoveBuildingForPlayer(playerid, 1685, 2376.4766, 1873.7266, 11.3984, 0.25);
  143. RemoveBuildingForPlayer(playerid, 1685, 2377.0938, 1881.9375, 12.8984, 0.25);
  144. RemoveBuildingForPlayer(playerid, 1685, 2377.1953, 1880.8672, 11.3984, 0.25);
  145. RemoveBuildingForPlayer(playerid, 1685, 2377.1953, 1883.1484, 11.3984, 0.25);
  146. RemoveBuildingForPlayer(playerid, 1685, 2379.2578, 1882.0391, 12.8984, 0.25);
  147. RemoveBuildingForPlayer(playerid, 1685, 2379.1953, 1883.1172, 11.3984, 0.25);
  148. RemoveBuildingForPlayer(playerid, 1685, 2379.1172, 1880.8359, 11.3984, 0.25);
  149. RemoveBuildingForPlayer(playerid, 1685, 2381.2031, 1886.5391, 11.3984, 0.25);
  150. RemoveBuildingForPlayer(playerid, 7012, 2402.2266, 1891.5938, 4.6953, 0.25);
  151. RemoveBuildingForPlayer(playerid, 1685, 2379.1953, 1891.0859, 11.3984, 0.25);
  152. RemoveBuildingForPlayer(playerid, 1685, 2382.5156, 1891.0859, 11.3984, 0.25);
  153. RemoveBuildingForPlayer(playerid, 3502, 2471.0859, 1904.7813, 10.3828, 0.25);
  154. RemoveBuildingForPlayer(playerid, 1684, 2439.1094, 1951.3594, 11.3750, 0.25);
  155. RemoveBuildingForPlayer(playerid, 3504, 2444.4531, 1960.6094, 11.1328, 0.25);
  156. RemoveBuildingForPlayer(playerid, 3504, 2447.5313, 1960.7891, 11.1328, 0.25);
  157. RemoveBuildingForPlayer(playerid, 3504, 2450.6484, 1961.0156, 11.1328, 0.25);
  158. RemoveBuildingForPlayer(playerid, 3504, 2452.0469, 1960.8750, 11.1328, 0.25);
  159. RemoveBuildingForPlayer(playerid, 3447, 2438.2266, 1770.8281, 17.3203, 0.25);
  160. RemoveBuildingForPlayer(playerid, 3447, 2455.7109, 1770.8281, 17.3203, 0.25);
  161. RemoveBuildingForPlayer(playerid, 3447, 2473.3594, 1770.8281, 17.3203, 0.25);
  162. RemoveBuildingForPlayer(playerid, 8607, 2464.3984, 1770.8828, 23.4531, 0.25);
  163. RemoveBuildingForPlayer(playerid, 3447, 2490.8281, 1770.8281, 17.3203, 0.25);
  164.  
  165.  
  166. // PREDIOS DESTRUIDOS
  167. //Big Castle Down
  168. RemoveBuildingForPlayer(playerid, 8498, 2231.8047, 1035.7188, 46.8203, 0.25);
  169. RemoveBuildingForPlayer(playerid, 8499, 2265.5625, 1130.2656, 46.8203, 0.25);
  170. RemoveBuildingForPlayer(playerid, 8705, 2231.8047, 1035.7188, 46.8203, 0.25);
  171. RemoveBuildingForPlayer(playerid, 8706, 2266.0078, 1078.8516, 44.0234, 0.25);
  172. RemoveBuildingForPlayer(playerid, 8882, 2216.6250, 1095.1953, 44.0781, 0.25);
  173. RemoveBuildingForPlayer(playerid, 8923, 2142.5938, 1103.0156, 21.7969, 0.25);
  174. RemoveBuildingForPlayer(playerid, 8924, 2216.6250, 1095.1953, 44.0781, 0.25);
  175. RemoveBuildingForPlayer(playerid, 8929, 2265.5625, 1130.2656, 46.8203, 0.25);
  176. RemoveBuildingForPlayer(playerid, 9079, 2117.8047, 1150.7109, 14.7969, 0.25);
  177. RemoveBuildingForPlayer(playerid, 9078, 2117.8047, 1150.7109, 14.7969, 0.25);
  178. RemoveBuildingForPlayer(playerid, 8500, 2142.5938, 1103.0156, 21.7969, 0.25);
  179. RemoveBuildingForPlayer(playerid, 8644, 2148.6016, 1132.4844, 20.5000, 0.25);
  180. RemoveBuildingForPlayer(playerid, 620, 2190.7734, 983.2578, 9.5078, 0.25);
  181. RemoveBuildingForPlayer(playerid, 8881, 2266.0078, 1078.8516, 44.0234, 0.25);
  182.  
  183. //BOMBA DE GASOLINA FUCKED UP LV
  184. RemoveBuildingForPlayer(playerid, 1686, -1477.6563, 1859.7344, 31.8203, 0.25);
  185. RemoveBuildingForPlayer(playerid, 1686, -1464.9375, 1860.5625, 31.8203, 0.25);
  186. RemoveBuildingForPlayer(playerid, 1686, -1477.8516, 1867.3125, 31.8203, 0.25);
  187. RemoveBuildingForPlayer(playerid, 11505, -1471.4922, 1864.8516, 36.0313, 0.25);
  188. RemoveBuildingForPlayer(playerid, 1686, -1465.4766, 1868.2734, 31.8203, 0.25);
  189. RemoveBuildingForPlayer(playerid, 11504, -1463.0000, 1878.1406, 31.6328, 0.25);
  190.  
  191. // PREDIO PIRATA + BARCO LV
  192. RemoveBuildingForPlayer(playerid, 8421, 1928.4141, 1628.5938, 48.1875, 0.25);
  193. RemoveBuildingForPlayer(playerid, 8422, 1943.7813, 1620.1641, 12.3828, 0.25);
  194. RemoveBuildingForPlayer(playerid, 8692, 1928.4141, 1628.5938, 48.1875, 0.25);
  195. RemoveBuildingForPlayer(playerid, 8693, 1943.7813, 1620.1641, 12.3828, 0.25);
  196. RemoveBuildingForPlayer(playerid, 8781, 1978.4375, 1619.8203, 16.3984, 0.25);
  197. RemoveBuildingForPlayer(playerid, 8782, 1994.6484, 1670.6563, 17.0547, 0.25);
  198. RemoveBuildingForPlayer(playerid, 8977, 2001.1406, 1555.1016, 24.8750, 0.25);
  199. RemoveBuildingForPlayer(playerid, 8978, 2028.7813, 1554.9453, 22.1094, 0.25);
  200. RemoveBuildingForPlayer(playerid, 3482, 2028.7500, 1552.9063, 23.7188, 0.25);
  201. RemoveBuildingForPlayer(playerid, 3482, 2028.7500, 1556.9844, 23.7188, 0.25);
  202. RemoveBuildingForPlayer(playerid, 9049, 1983.6016, 1658.5859, 13.4453, 0.25);
  203. RemoveBuildingForPlayer(playerid, 9053, 1978.6563, 1596.9844, 18.8359, 0.25);
  204. RemoveBuildingForPlayer(playerid, 9107, 1905.8125, 1513.4531, 10.0781, 0.25);
  205. RemoveBuildingForPlayer(playerid, 9129, 2028.7656, 1554.9453, 33.5469, 0.25);
  206. RemoveBuildingForPlayer(playerid, 3499, 1900.8359, 1476.1641, 8.2891, 0.25);
  207. RemoveBuildingForPlayer(playerid, 3499, 1915.6719, 1476.1641, 7.9375, 0.25);
  208. RemoveBuildingForPlayer(playerid, 3499, 1900.7969, 1494.0938, 11.0469, 0.25);
  209. RemoveBuildingForPlayer(playerid, 3499, 1915.6797, 1494.0938, 11.6016, 0.25);
  210. RemoveBuildingForPlayer(playerid, 8832, 1905.8125, 1513.4531, 10.0781, 0.25);
  211. RemoveBuildingForPlayer(playerid, 3499, 1900.8125, 1513.4609, 11.6797, 0.25);
  212. RemoveBuildingForPlayer(playerid, 3499, 1915.6953, 1513.4609, 11.1875, 0.25);
  213. RemoveBuildingForPlayer(playerid, 3499, 1900.8125, 1533.1953, 11.6563, 0.25);
  214. RemoveBuildingForPlayer(playerid, 8833, 1908.2969, 1515.5703, 13.4141, 0.25);
  215. RemoveBuildingForPlayer(playerid, 3499, 1915.6641, 1533.1953, 11.6953, 0.25);
  216. RemoveBuildingForPlayer(playerid, 3499, 1900.8281, 1554.9688, 8.0703, 0.25);
  217. RemoveBuildingForPlayer(playerid, 3499, 1915.6641, 1554.9688, 7.9688, 0.25);
  218. RemoveBuildingForPlayer(playerid, 9041, 1963.5313, 1629.6172, 22.3438, 0.25);
  219. RemoveBuildingForPlayer(playerid, 1557, 1964.6172, 1621.6797, 11.8672, 0.25);
  220. RemoveBuildingForPlayer(playerid, 1557, 1964.6172, 1624.6953, 11.8672, 0.25);
  221. RemoveBuildingForPlayer(playerid, 3524, 1995.8203, 1539.7813, 13.7266, 0.25);
  222. RemoveBuildingForPlayer(playerid, 1503, 1998.0078, 1544.1953, 12.9609, 0.25);
  223. RemoveBuildingForPlayer(playerid, 8493, 2001.1406, 1555.1016, 24.8750, 0.25);
  224. RemoveBuildingForPlayer(playerid, 8981, 2000.5938, 1548.9141, 24.4375, 0.25);
  225. RemoveBuildingForPlayer(playerid, 3524, 1996.0469, 1549.7422, 13.7266, 0.25);
  226. RemoveBuildingForPlayer(playerid, 9159, 2001.1406, 1555.1016, 24.8750, 0.25);
  227. RemoveBuildingForPlayer(playerid, 9052, 1978.6563, 1596.9844, 18.8359, 0.25);
  228. RemoveBuildingForPlayer(playerid, 8484, 1978.4375, 1619.8203, 16.3984, 0.25);
  229. RemoveBuildingForPlayer(playerid, 9045, 1983.6016, 1658.5859, 13.4453, 0.25);
  230. RemoveBuildingForPlayer(playerid, 8483, 1994.6484, 1670.6563, 17.0547, 0.25);
  231. RemoveBuildingForPlayer(playerid, 8423, 2028.7813, 1554.9453, 22.1094, 0.25);
  232. RemoveBuildingForPlayer(playerid, 3434, 2028.7500, 1552.9063, 23.7188, 0.25);
  233. RemoveBuildingForPlayer(playerid, 3434, 2028.7500, 1556.9844, 23.7188, 0.25);
  234.  
  235. //----------------------------------------------------------------------------
  236.  
  237. //Faction Dark Brown
  238. RemoveBuildingForPlayer(playerid, 3276, -730.4297, 905.1172, 12.3828, 0.25);
  239. RemoveBuildingForPlayer(playerid, 3276, -716.6406, 903.9844, 12.3828, 0.25);
  240. RemoveBuildingForPlayer(playerid, 3276, -698.9609, 909.6719, 11.9688, 0.25);
  241. RemoveBuildingForPlayer(playerid, 3276, -687.3125, 909.6016, 11.9844, 0.25);
  242. RemoveBuildingForPlayer(playerid, 3276, -710.6094, 909.7422, 11.9453, 0.25);
  243. RemoveBuildingForPlayer(playerid, 3276, -729.5313, 916.5391, 12.1250, 0.25);
  244. RemoveBuildingForPlayer(playerid, 3276, -728.7500, 928.1641, 12.1016, 0.25);
  245. RemoveBuildingForPlayer(playerid, 3276, -727.9688, 939.7891, 12.0859, 0.25);
  246. RemoveBuildingForPlayer(playerid, 3276, -727.1875, 951.4141, 12.0625, 0.25);
  247. RemoveBuildingForPlayer(playerid, 3276, -709.3203, 991.1641, 12.0313, 0.25);
  248. RemoveBuildingForPlayer(playerid, 3276, -697.6719, 990.9922, 12.0078, 0.25);
  249. RemoveBuildingForPlayer(playerid, 3276, -686.0234, 990.8203, 11.9844, 0.25);
  250. RemoveBuildingForPlayer(playerid, 3276, -665.5625, 912.9453, 11.9766, 0.25);
  251. RemoveBuildingForPlayer(playerid, 3276, -675.6641, 909.5313, 12.0078, 0.25);
  252. RemoveBuildingForPlayer(playerid, 3276, -674.3750, 990.6484, 11.9688, 0.25);
  253. RemoveBuildingForPlayer(playerid, 3276, -662.7266, 990.4766, 11.9453, 0.25);
  254. RemoveBuildingForPlayer(playerid, 3276, -650.1953, 928.1953, 11.8750, 0.25);
  255. RemoveBuildingForPlayer(playerid, 3276, -645.8828, 937.9063, 11.9453, 0.25);
  256. RemoveBuildingForPlayer(playerid, 3276, -645.7109, 949.5547, 11.9688, 0.25);
  257. RemoveBuildingForPlayer(playerid, 3276, -645.5391, 961.2031, 11.9844, 0.25);
  258. RemoveBuildingForPlayer(playerid, 3276, -645.3672, 972.8516, 12.0078, 0.25);
  259. RemoveBuildingForPlayer(playerid, 3276, -645.1953, 984.5000, 12.0313, 0.25);
  260. RemoveBuildingForPlayer(playerid, 3276, -651.0781, 990.3047, 11.9219, 0.25);
  261.  
  262. //Bridges
  263. RemoveBuildingForPlayer(playerid, 10823, -1204.1172, 1032.6094, 53.5703, 0.25);
  264. RemoveBuildingForPlayer(playerid, 11248, -1204.1172, 1032.6094, 53.5703, 0.25);
  265. RemoveBuildingForPlayer(playerid, 11252, -1078.7656, 891.0781, 35.6016, 0.25);
  266. RemoveBuildingForPlayer(playerid, 11254, -1132.0703, 855.0859, 42.3281, 0.25);
  267. RemoveBuildingForPlayer(playerid, 11259, -1142.0859, 847.7188, 34.5859, 0.25);
  268. RemoveBuildingForPlayer(playerid, 11267, -1078.7656, 891.0781, 35.6016, 0.25);
  269. RemoveBuildingForPlayer(playerid, 11268, -1132.0703, 855.0859, 42.3281, 0.25);
  270. RemoveBuildingForPlayer(playerid, 11382, -1200.7500, 1035.9844, 38.4141, 0.25);
  271. RemoveBuildingForPlayer(playerid, 1290, -1188.8359, 1046.7891, 46.6719, 0.25);
  272. RemoveBuildingForPlayer(playerid, 9687, -2681.4922, 1684.4609, 120.4531, 0.25);
  273. RemoveBuildingForPlayer(playerid, 9689, -2681.4922, 1684.4609, 120.4531, 0.25);
  274. RemoveBuildingForPlayer(playerid, 9691, -2681.4922, 1847.9375, 120.0859, 0.25);
  275. RemoveBuildingForPlayer(playerid, 9693, -2681.4922, 1847.9375, 120.0859, 0.25);
  276. RemoveBuildingForPlayer(playerid, 9695, -2681.4922, 2042.1563, 86.7188, 0.25);
  277. RemoveBuildingForPlayer(playerid, 9696, -2681.4922, 2042.1563, 86.7188, 0.25);
  278. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1609.8828, 70.0938, 0.25);
  279. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1860.7500, 72.1719, 0.25);
  280. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1798.0313, 73.3281, 0.25);
  281. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1923.4688, 69.8828, 0.25);
  282. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1986.1875, 66.5234, 0.25);
  283. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 2111.6172, 60.7891, 0.25);
  284. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 2048.9063, 62.0938, 0.25);
  285. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1735.3125, 73.3438, 0.25);
  286. RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1672.6016, 72.3047, 0.25);
  287. RemoveBuildingForPlayer(playerid, 8028, 1735.8594, 519.1563, 25.1563, 0.25);
  288. RemoveBuildingForPlayer(playerid, 8056, 1735.8594, 519.1563, 25.1563, 0.25);
  289. RemoveBuildingForPlayer(playerid, 8128, 1735.8750, 519.0078, 4.3594, 0.25);
  290. RemoveBuildingForPlayer(playerid, 8129, 1735.8750, 519.0078, 4.3594, 0.25);
  291. RemoveBuildingForPlayer(playerid, 1290, 1750.1094, 556.5469, 31.0391, 0.25);
  292. RemoveBuildingForPlayer(playerid, 8860, 2766.7656, 570.5234, 7.3828, 0.25);
  293. RemoveBuildingForPlayer(playerid, 8863, 2766.7656, 570.5234, 7.3828, 0.25);
  294. RemoveBuildingForPlayer(playerid, 3332, 445.4219, 565.4688, 24.5547, 0.25);
  295. RemoveBuildingForPlayer(playerid, 3333, -158.3516, 403.9063, -3.5391, 0.25);
  296. RemoveBuildingForPlayer(playerid, 3333, 475.2344, 537.3203, 3.3203, 0.25);
  297. RemoveBuildingForPlayer(playerid, 3332, 491.3125, 499.9375, 24.5547, 0.25);
  298. RemoveBuildingForPlayer(playerid, 16431, 475.1250, 537.4375, 17.5859, 0.25);
  299. RemoveBuildingForPlayer(playerid, 3382, -176.3516, 367.5234, 17.6953, 0.25);
  300. RemoveBuildingForPlayer(playerid, 3382, -155.9844, 444.8906, 17.6953, 0.25);
  301. RemoveBuildingForPlayer(playerid, 16688, -168.3203, 367.2422, 10.6641, 0.25);
  302. RemoveBuildingForPlayer(playerid, 3381, -176.3516, 367.5234, 17.6953, 0.25);
  303. RemoveBuildingForPlayer(playerid, 16358, -168.3203, 367.2422, 10.6641, 0.25);
  304. RemoveBuildingForPlayer(playerid, 3330, -158.3516, 403.9063, -3.5391, 0.25);
  305. RemoveBuildingForPlayer(playerid, 3381, -155.9844, 444.8906, 17.6953, 0.25);
  306. RemoveBuildingForPlayer(playerid, 3331, 445.4219, 565.4688, 24.5547, 0.25);
  307. RemoveBuildingForPlayer(playerid, 16357, 475.1250, 537.4375, 17.5859, 0.25);
  308. RemoveBuildingForPlayer(playerid, 3330, 475.2344, 537.3203, 3.3203, 0.25);
  309. RemoveBuildingForPlayer(playerid, 3331, 491.3125, 499.9375, 24.5547, 0.25);
  310. RemoveBuildingForPlayer(playerid, 3413, 2766.7578, 562.8594, -4.4922, 0.25);
  311. RemoveBuildingForPlayer(playerid, 3411, 2766.7578, 562.8594, -4.4922, 0.25);
  312. RemoveBuildingForPlayer(playerid, 3412, 2766.7578, 562.8594, -4.4922, 0.25);
  313.  
  314. //S.T.A.R.S Interior
  315. RemoveBuildingForPlayer(playerid, 2063, 2573.6172, -1280.2422, 1037.6719, 0.25);
  316. RemoveBuildingForPlayer(playerid, 2063, 2576.2734, -1280.2422, 1037.6719, 0.25);
  317. RemoveBuildingForPlayer(playerid, 2063, 2577.2813, -1286.1406, 1037.6719, 0.25);
  318. RemoveBuildingForPlayer(playerid, 2063, 2577.2813, -1283.3516, 1037.6719, 0.25);
  319.  
  320.  
  321. /* */
  322. GangZoneShowForPlayer(playerid, GangLavaAutos, BLANCO2);
  323. GangZoneShowForPlayer(playerid, GangProstibulo, BLANCO2);
  324. GangZoneShowForPlayer(playerid, GangGroveMuerta, BLANCO2);
  325. GangZoneShowForPlayer(playerid, GangZombiesBajos, BLANCO2);
  326. GangZoneShowForPlayer(playerid, GangViejoMotel, BLANCO2);
  327. GangZoneShowForPlayer(playerid, GangGlenMuerte, BLANCO2);
  328. GangZoneShowForPlayer(playerid, GangSkatePark, BLANCO2);
  329. GangZoneShowForPlayer(playerid, GangMedicinaZombie, BLANCO2);
  330. GangZoneShowForPlayer(playerid, Gangidlewood1, BLANCO2);
  331. GangZoneShowForPlayer(playerid, gangidlewood2, BLANCO2);
  332. GangZoneShowForPlayer(playerid, Gangidlewood3, BLANCO2);
  333. GangZoneShowForPlayer(playerid, GangUnity, BLANCO2);
  334. GangZoneShowForPlayer(playerid, GangCoronaCaida, BLANCO2);
  335. GangZoneShowForPlayer(playerid, GangComisarialoscaidos, BLANCO2);
  336. GangZoneShowForPlayer(playerid, GangZonaConspir, BLANCO2);
  337. GangZoneShowForPlayer(playerid, GangVinewood, BLANCO2);
  338. GangZoneShowForPlayer(playerid, GangNatural, BLANCO2);
  339. GangZoneShowForPlayer(playerid, GangNoNatural, BLANCO2);
  340. GangZoneShowForPlayer(playerid, GangSantoMuertoBeach, BLANCO2);
  341. GangZoneShowForPlayer(playerid, GangPuntoMuerto, BLANCO2);
  342. TextDrawShowForPlayer(playerid, Estado[playerid]);
  343. TextDrawShowForPlayer(playerid, Zones[playerid]);
  344. TextDrawShowForPlayer(playerid, Zones2[playerid]);
  345. TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
  346. TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
  347. if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
  348. if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
  349. if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
  350. if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
  351. if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
  352. if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
  353. RemovePlayerAttachedObject(playerid,0);
  354. JugadorInfo[playerid][jZombieC] = 1;
  355. LPuestos[playerid] = 0;
  356. GPuesto[playerid] = 0;
  357. ConTexto[playerid] = 0;
  358. AntiDeAMX();
  359. /* */
  360.  
  361.  
  362. //TextDrawShowForPlayer(playerid,Dinero[playerid]); // jdinheiroo - estava desativado
  363. new tmphour;
  364. new tmpminute;
  365. new tmpsecond;
  366. gettime(tmphour, tmpminute, tmpsecond);
  367. if (realtime)
  368. {
  369. SetWorldTime(tmphour);
  370. }
  371. PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
  372. SetPlayerDrunkLevel(playerid, 0);
  373. if(JugadorInfo[playerid][jEstiloPelea] == 1)
  374. {
  375. SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
  376. }
  377. else if(JugadorInfo[playerid][jEstiloPelea] == 2)
  378. {
  379. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
  380. }
  381. else if(JugadorInfo[playerid][jEstiloPelea] == 3)
  382. {
  383. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  384. }
  385. if(JugadorInfo[playerid][jArma] != 0)
  386. {
  387. GivePlayerWeapon(playerid, JugadorInfo[playerid][jArma], JugadorInfo[playerid][jMunicion]);
  388. }
  389. if(JugadorInfo[playerid][jArma2] != 0)
  390. {
  391. GivePlayerWeapon(playerid, JugadorInfo[playerid][jArma2], JugadorInfo[playerid][jMunicion2]);
  392. }
  393. if(JugadorInfo[playerid][jArma3] != 0)
  394. {
  395. GivePlayerWeapon(playerid, JugadorInfo[playerid][jArma3], JugadorInfo[playerid][jMunicion3]);
  396. }
  397. if(JugadorInfo[playerid][jSpawn] == 1)
  398. {
  399. new which_spawn = random(4);
  400. if(which_spawn == 0)
  401. {
  402. if(gTeam[playerid] == EHUMANO)
  403. {
  404. SetPlayerPos(playerid,815.0766,-1094.3162,25.7895);
  405. SetPlayerInterior(playerid,0);
  406. SetPlayerWeather(playerid,ClimaDefault);
  407. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  408. }
  409. else if(gTeam[playerid] == EZOMBIE)
  410. {
  411. SetPlayerPos(playerid,1138.4512,-1385.9067,13.7797);
  412. SetPlayerInterior(playerid,0);
  413. SetPlayerWeather(playerid, ClimaDefault);
  414. new rnd = random(sizeof(ZombieSkin));
  415. SetPlayerSkin(playerid, ZombieSkin[rnd][0]);
  416. }
  417. else if(gTeam[playerid] == EHUMANO)
  418. {
  419. SetPlayerPos(playerid,815.0766,-1094.3162,25.7895);
  420. SetPlayerInterior(playerid,0);
  421. SetPlayerWeather(playerid,ClimaDefault);
  422. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  423. }
  424. }
  425. else if(which_spawn == 1)
  426. {
  427. if(gTeam[playerid] == EHUMANO)
  428. {
  429. SetPlayerPos(playerid,1134.1107,-1488.0193,22.7690);
  430. SetPlayerInterior(playerid,0);
  431. SetPlayerWeather(playerid, ClimaDefault);
  432. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  433. }
  434. else if(gTeam[playerid] == EZOMBIE)
  435. {
  436. SetPlayerPos(playerid,1543.7426,-1305.9878,16.1152);
  437. SetPlayerInterior(playerid,0);
  438. SetPlayerWeather(playerid, ClimaDefault);
  439. new rnd = random(sizeof(ZombieSkin));
  440. SetPlayerSkin(playerid, ZombieSkin[rnd][0]);
  441. }
  442. }
  443. else if(which_spawn == 2)
  444. {
  445. if(gTeam[playerid] == EHUMANO)
  446. {
  447. SetPlayerPos(playerid,2509.9282,-1472.3695,24.0294);
  448. SetPlayerInterior(playerid,0);
  449. SetPlayerWeather(playerid, ClimaDefault);
  450. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  451. }
  452. else if(gTeam[playerid] == EZOMBIE)
  453. {
  454. SetPlayerPos(playerid,2578.9900,-1412.2079,24.4618);
  455. SetPlayerInterior(playerid,0);
  456. SetPlayerWeather(playerid, ClimaDefault);
  457. new rnd = random(sizeof(ZombieSkin));
  458. SetPlayerSkin(playerid, ZombieSkin[rnd][0]);
  459. }
  460. }
  461. else if(which_spawn == 3)
  462. {
  463. if(gTeam[playerid] == EHUMANO)
  464. {
  465. SetPlayerPos(playerid,1593.0189,-1203.7548,19.8659);
  466. SetPlayerInterior(playerid,0);
  467. SetPlayerWeather(playerid, ClimaDefault);
  468. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  469. }
  470. else if(gTeam[playerid] == EZOMBIE)
  471. {
  472. SetPlayerPos(playerid,2578.9900,-1412.2079,24.4618);
  473. SetPlayerInterior(playerid,0);
  474. SetPlayerWeather(playerid, ClimaDefault);
  475. new rnd = random(sizeof(ZombieSkin));
  476. SetPlayerSkin(playerid, ZombieSkin[rnd][0]);
  477. }
  478. }
  479. if(JugadorInfo[playerid][jInfectado] >= 1)
  480. {
  481. SafeSetPlayerPos(playerid,JugadorInfo[playerid][jPos_x],JugadorInfo[playerid][jPos_y],JugadorInfo[playerid][jPos_z]);
  482. ZombieTeam(playerid);
  483. new rnd = random(sizeof(ZombieSkin));
  484. SetPlayerSkin(playerid, ZombieSkin[rnd][0]);
  485. JugadorInfo[playerid][jInfectado] = 0;
  486. JugadorInfo[playerid][jZombie] = 1;
  487. TogglePlayerControllable(playerid, 1);
  488. }
  489. else if(JugadorInfo[playerid][jInfectado] == 0 && JugadorInfo[playerid][jZombie] == 0)
  490. {
  491. SafeSetPlayerPos(playerid,JugadorInfo[playerid][jPos_x],JugadorInfo[playerid][jPos_y],JugadorInfo[playerid][jPos_z]);
  492. SetPlayerSkin(playerid, JugadorInfo[playerid][jRopa]);
  493. SetTimerEx("Desmayar", 2000, 0, "d", playerid);
  494. } /*
  495. else if(JugadorInfo[playerid][jLider] == 1)
  496. {
  497. SetPlayerPos(playerid,225.6344,1909.2631,17.6406);
  498. Militar(playerid);
  499. }
  500. else if(JugadorInfo[playerid][jLider] == 2)
  501. {
  502. TogglePlayerControllable(playerid,0);
  503. SetTimerEx("Desfrizear", 6000, 0, "d", playerid);
  504. SetPlayerPos(playerid,1833.8231,-1299.1377,22.2039);
  505. Conspirador(playerid);
  506. }
  507. else if(JugadorInfo[playerid][jMiembro] == 3)
  508. {
  509. SetPlayerPos(playerid,2759.2126,-2436.4126,13.5050);
  510. Militar(playerid);
  511. }
  512. else if(JugadorInfo[playerid][jMiembro] == 2)
  513. {
  514. TogglePlayerControllable(playerid,0);
  515. SetTimerEx("Desfrizear", 6000, 0, "d", playerid);
  516. SetPlayerPos(playerid,1833.8231,-1299.1377,22.2039);
  517. Conspirador(playerid);
  518. }
  519. else if(JugadorInfo[playerid][jMiembro] == 1)
  520. {
  521. SetPlayerPos(playerid,110.2537,1901.6782,10.0955);
  522. Militar(playerid);
  523. } */
  524. }
  525. else if(JugadorInfo[playerid][jSpawn] == 0)
  526. {
  527. if(JugadorInfo[playerid][jEncarcelado] == 0)
  528. {
  529. SafeSetPlayerInterior(playerid,JugadorInfo[playerid][jInt]);
  530. SafeSetPlayerPos(playerid,JugadorInfo[playerid][jPos_x],JugadorInfo[playerid][jPos_y],JugadorInfo[playerid][jPos_z]);
  531. SetPlayerHealth(playerid,JugadorInfo[playerid][jVida]);
  532. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  533. SetPlayerArmour(playerid,JugadorInfo[playerid][jArmadura]);
  534. TogglePlayerControllable(playerid, 1);
  535. JugadorInfo[playerid][jSpawn] = 1;
  536. return 1;
  537. }
  538. else if(JugadorInfo[playerid][jEncarcelado] >= 1)
  539. {
  540. SetPlayerVirtualWorld(playerid, 0);
  541. SetPlayerPos(playerid, 2448.2351,-1977.7130,13.5938);
  542. SendClientMessage(playerid, ROJO_OSCURO, "Tu condena no ha terminado!.");
  543. SetPlayerSkin(playerid,JugadorInfo[playerid][jRopa]);
  544. return 1;
  545. }
  546. }
  547. return 1;
  548. }
  549.  
  550.  
  551. public OnPlayerDeath(playerid, killerid, reason)
  552. {
  553. new string[128];
  554. GetPlayerPos(playerid,positionx,positiony,positionz);
  555. JugadorInfo[playerid][jPos_x] = positionx;
  556. JugadorInfo[playerid][jPos_y] = positiony;
  557. JugadorInfo[playerid][jPos_z] = positionz;
  558. JugadorInfo[playerid][jSpawn] = 1;
  559. if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
  560. if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
  561. if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
  562. if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
  563. if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
  564. if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
  565. if(gTeam[killerid] == EHUMANO)
  566. {
  567. if(gTeam[playerid] == EHUMANO)
  568. {
  569. format(string, sizeof(string),"[FDM ZA-RP]: %s matou o %s, toma atençao. [%d]",NombreJugador(killerid), NombreJugador(playerid), killerid);
  570. ABroadCast(VERDE,string,1);
  571. }
  572. }
  573. if(gTeam[killerid] == EHUMANO)
  574. {
  575. if(gTeam[playerid] == EZOMBIE)
  576. {
  577. JugadorInfo[killerid][jPunteria] += 1;
  578. }
  579. }
  580. if(gTeam[playerid] == EZOMBIE)
  581. {
  582. if(JugadorInfo[playerid][jZombieC] == 3)
  583. {
  584. new Float:POSJ[3];
  585. GetPlayerPos(playerid,POSJ[0],POSJ[1],POSJ[2]);
  586. CreateExplosion(POSJ[0],POSJ[1],POSJ[2],6,10.0);
  587. }
  588. }
  589. JugadorInfo[playerid][jCaidas] = 0;
  590. JugadorInfo[playerid][jTyrant] = 0;
  591. JugadorInfo[playerid][jArma] = 0;
  592. JugadorInfo[playerid][jArma2] = 0;
  593. JugadorInfo[playerid][jArma3] = 0;
  594. JugadorInfo[playerid][jMunicion] = 0;
  595. JugadorInfo[playerid][jMunicion2] = 0;
  596. JugadorInfo[playerid][jMunicion3] = 0;
  597. JugadorInfo[playerid][jCaidas] = 0;
  598. if(JugadorInfo[playerid][jInfectado] >= 1)
  599. {
  600. format(string, 128, "[FDM ZA-RP]: %s você está infectado, injecte Medicina A ou B antes que a infecção piore! [%d]");
  601. SendClientMessage(playerid,VERDE, string);
  602. }
  603. if(gPlayerUsingLoopingAnim[playerid])
  604. {
  605. gPlayerUsingLoopingAnim[playerid] = 0;
  606. TextDrawHideForPlayer(playerid,txtAnimHelper);
  607. }
  608. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement