Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.88 KB | None | 0 0
  1. CMD:iniciargrafos(playerid,params[])
  2. {
  3. SetTimer("InicioGrafo",100,0);
  4. return 1;
  5. }
  6.  
  7. fuction InicioGrafo(){
  8. new RandomGrafo = random(17);
  9. switch (RandomGrafo)
  10. {
  11. case 0: Disputa0();
  12. case 1: Disputa1();
  13. case 2: Disputa2();
  14. case 3: Disputa3();
  15. case 4: Disputa4();
  16. case 5: Disputa5();
  17. case 6: Disputa6();
  18. case 7: Disputa7();
  19. case 8: Disputa8();
  20. case 9: Disputa9();
  21. case 10: Disputa10();
  22. case 11: Disputa11();
  23. case 12: Disputa12();
  24. case 13: Disputa13();
  25. case 14: Disputa14();
  26. case 15: Disputa15();
  27. case 16: Disputa16();
  28. }
  29. return 1;
  30. }
  31.  
  32. fuction DisputaZonaHide(){
  33. TextDrawHideForAll(ZonaGrafos[0]);
  34. TextDrawHideForAll(ZonaGrafos[1]);
  35. TextDrawHideForAll(ZonaGrafos[2]);
  36. TextDrawHideForAll(ZonaGrafos[3]);
  37. TextDrawHideForAll(ZonaGrafos[4]);
  38. TextDrawHideForAll(BandaGanadoraGrafo[0]);
  39. TextDrawHideForAll(BandaGanadoraGrafo[1]);
  40. TextDrawHideForAll(BandaGanadoraGrafo[2]);
  41. TextDrawHideForAll(BandaGanadoraGrafo[3]);
  42. TextDrawHideForAll(BandaGanadoraGrafo[4]);
  43. TextDrawHideForAll(AvisoGrafos1[0]);
  44. TextDrawHideForAll(AvisoGrafos1[1]);
  45. TextDrawHideForAll(AvisoGrafos1[2]);
  46. TextDrawHideForAll(AvisoGrafos1[3]);
  47. TextDrawHideForAll(AvisoGrafos1[4]);
  48. TextDrawHideForAll(EnMarchaGrafo);
  49. TextDrawHideForAll(PintandoGraffitoide[0]);
  50. TextDrawHideForAll(PintandoGraffitoide[1]);
  51. TextDrawHideForAll(PintandoGraffitoide[2]);
  52. TextDrawHideForAll(ConquistandoMercaoide);
  53. KillTimer(HideTextGra);
  54. return 1;
  55. }
  56.  
  57. stock Disputa0(){
  58. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  59. SetTimer("Graffo0",300000,0);
  60. TextDrawSetString(ZonaGrafos[3],"Zona: Glen Park");
  61.  
  62. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  63. {
  64. if(IsPlayerConnected(i))
  65. {
  66. if(PLAYER_CREW[i][player_crew_VALID])
  67. {
  68. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  69. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  70. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  71. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  72. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  73. }
  74. }
  75. }
  76.  
  77. return 1;
  78. }
  79.  
  80. stock Disputa1(){
  81. TextDrawSetString(ZonaGrafos[3],"Zona: East Los Santos");
  82. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  83.  
  84. SetTimer("Graffo1",300000,0);
  85. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  86. {
  87. if(IsPlayerConnected(i))
  88. {
  89. if(PLAYER_CREW[i][player_crew_VALID])
  90. {
  91. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  92. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  93. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  94. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  95. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  96. }
  97. }
  98. }
  99.  
  100. return 1;
  101. }
  102.  
  103. stock Disputa2(){
  104. TextDrawSetString(ZonaGrafos[3],"Zona: Jefferson");
  105. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  106. SetTimer("Graffo2",300000,0);
  107.  
  108. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  109. {
  110. if(IsPlayerConnected(i))
  111. {
  112. if(PLAYER_CREW[i][player_crew_VALID])
  113. {
  114. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  115. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  116. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  117. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  118. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  119. }
  120. }
  121. }
  122.  
  123. return 1;
  124. }
  125.  
  126. stock Disputa3(){
  127. TextDrawSetString(ZonaGrafos[3],"Zona: East Los Santos");
  128. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  129. SetTimer("Graffo3",300000,0);
  130.  
  131. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  132. {
  133. if(IsPlayerConnected(i))
  134. {
  135. if(PLAYER_CREW[i][player_crew_VALID])
  136. {
  137. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  138. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  139. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  140. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  141. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  142. }
  143. }
  144. }
  145.  
  146. return 1;
  147. }
  148.  
  149. stock Disputa4(){
  150. TextDrawSetString(ZonaGrafos[3],"Zona: Idlewood");
  151. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  152. SetTimer("Graffo4",300000,0);
  153.  
  154. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  155. {
  156. if(IsPlayerConnected(i))
  157. {
  158. if(PLAYER_CREW[i][player_crew_VALID])
  159. {
  160. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  161. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  162. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  163. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  164. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  165. }
  166. }
  167. }
  168.  
  169. return 1;
  170. }
  171.  
  172. stock Disputa5(){
  173. TextDrawSetString(ZonaGrafos[3],"Zona: Willowfield");
  174. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  175. SetTimer("Graffo5",300000,0);
  176.  
  177. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  178. {
  179. if(IsPlayerConnected(i))
  180. {
  181. if(PLAYER_CREW[i][player_crew_VALID])
  182. {
  183. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  184. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  185. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  186. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  187. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  188. }
  189. }
  190. }
  191.  
  192. return 1;
  193. }
  194.  
  195. stock Disputa6(){
  196. TextDrawSetString(ZonaGrafos[3],"Zona: Willowfield");
  197. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  198. SetTimer("Graffo6",300000,0);
  199.  
  200. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  201. {
  202. if(IsPlayerConnected(i))
  203. {
  204. if(PLAYER_CREW[i][player_crew_VALID])
  205. {
  206. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  207. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  208. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  209. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  210. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  211. }
  212. }
  213. }
  214.  
  215. return 1;
  216. }
  217. stock Disputa7(){
  218. TextDrawSetString(ZonaGrafos[3],"Zona: Commerce");
  219. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  220. SetTimer("Graffo7",300000,0);
  221.  
  222. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  223. {
  224. if(IsPlayerConnected(i))
  225. {
  226. if(PLAYER_CREW[i][player_crew_VALID])
  227. {
  228. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  229. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  230. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  231. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  232. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  233. }
  234. }
  235. }
  236.  
  237. return 1;
  238. }
  239.  
  240. stock Disputa8(){
  241. TextDrawSetString(ZonaGrafos[3],"Zona: Glen Park");
  242. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  243. SetTimer("Graffo8",300000,0);
  244.  
  245. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  246. {
  247. if(IsPlayerConnected(i))
  248. {
  249. if(PLAYER_CREW[i][player_crew_VALID])
  250. {
  251. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  252. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  253. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  254. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  255. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  256. }
  257. }
  258. }
  259.  
  260. return 1;
  261. }
  262.  
  263. stock Disputa9(){
  264. TextDrawSetString(ZonaGrafos[3],"Zona: Cruce de Mullholland");
  265. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  266. SetTimer("Graffo9",300000,0);
  267.  
  268. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  269. {
  270. if(IsPlayerConnected(i))
  271. {
  272. if(PLAYER_CREW[i][player_crew_VALID])
  273. {
  274. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  275. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  276. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  277. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  278. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  279. }
  280. }
  281. }
  282.  
  283. return 1;
  284. }
  285.  
  286. stock Disputa10(){
  287. TextDrawSetString(ZonaGrafos[3],"Zona: Las Colinas");
  288. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  289. SetTimer("Graffo10",300000,0);
  290.  
  291. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  292. {
  293. if(IsPlayerConnected(i))
  294. {
  295. if(PLAYER_CREW[i][player_crew_VALID])
  296. {
  297. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  298. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  299. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  300. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  301. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  302. }
  303. }
  304. }
  305.  
  306. return 1;
  307. }
  308.  
  309. stock Disputa11(){
  310. TextDrawSetString(ZonaGrafos[3],"Zona: El Corona");
  311. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  312. SetTimer("Graffo11",300000,0);
  313.  
  314. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  315. {
  316. if(IsPlayerConnected(i))
  317. {
  318. if(PLAYER_CREW[i][player_crew_VALID])
  319. {
  320. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  321. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  322. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  323. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  324. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  325. }
  326. }
  327. }
  328.  
  329. return 1;
  330. }
  331.  
  332. stock Disputa12(){
  333. TextDrawSetString(ZonaGrafos[3],"Zona: Verdant Bluffs");
  334. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  335. SetTimer("Graffo12",300000,0);
  336.  
  337. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  338. {
  339. if(IsPlayerConnected(i))
  340. {
  341. if(PLAYER_CREW[i][player_crew_VALID])
  342. {
  343. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  344. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  345. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  346. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  347. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  348. }
  349. }
  350. }
  351.  
  352. return 1;
  353. }
  354.  
  355. stock Disputa13(){
  356. TextDrawSetString(ZonaGrafos[3],"Zona: Temple");
  357. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  358. SetTimer("Graffo13",300000,0);
  359.  
  360. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  361. {
  362. if(IsPlayerConnected(i))
  363. {
  364. if(PLAYER_CREW[i][player_crew_VALID])
  365. {
  366. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  367. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  368. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  369. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  370. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  371. }
  372. }
  373. }
  374.  
  375. return 1;
  376. }
  377.  
  378. stock Disputa14(){
  379. TextDrawSetString(ZonaGrafos[3],"Zona: Dillimore");
  380. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  381. SetTimer("Graffo14",300000,0);
  382.  
  383. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  384. {
  385. if(IsPlayerConnected(i))
  386. {
  387. if(PLAYER_CREW[i][player_crew_VALID])
  388. {
  389. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  390. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  391. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  392. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  393. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  394. }
  395. }
  396. }
  397.  
  398. return 1;
  399. }
  400.  
  401. stock Disputa15(){
  402. TextDrawSetString(ZonaGrafos[3],"Zona: Rodeo");
  403. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  404. SetTimer("Graffo15",300000,0);
  405.  
  406. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  407. {
  408. if(IsPlayerConnected(i))
  409. {
  410. if(PLAYER_CREW[i][player_crew_VALID])
  411. {
  412. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  413. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  414. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  415. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  416. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  417. }
  418. }
  419. }
  420.  
  421. return 1;
  422. }
  423.  
  424. stock Disputa16(){
  425. TextDrawSetString(ZonaGrafos[3],"Zona: Blueberry");
  426. HideTextGra = SetTimer("DisputaZonaHide",15000,0);
  427. SetTimer("Graffo16",300000,0);
  428.  
  429. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  430. {
  431. if(IsPlayerConnected(i))
  432. {
  433. if(PLAYER_CREW[i][player_crew_VALID])
  434. {
  435. TextDrawShowForPlayer(i, ZonaGrafos[0]);
  436. TextDrawShowForPlayer(i, ZonaGrafos[1]);
  437. TextDrawShowForPlayer(i, ZonaGrafos[2]);
  438. TextDrawShowForPlayer(i, ZonaGrafos[3]);
  439. TextDrawShowForPlayer(i, ZonaGrafos[4]);
  440. }
  441. }
  442. }
  443.  
  444. return 1;
  445. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement