Guest User

Untitled

a guest
Sep 29th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. stock OneZombie()
  2. {
  3. new count = 0;
  4. new Random = Iter_Random(Player);
  5. foreach(Player, i)
  6. {
  7. if(team[i] == TEAM_HUMAN) count++;
  8. if(count == Iter_Count(Player))
  9. {
  10. ZombieSetup(Random);
  11. }
  12. }
  13. return 1;
  14. }
  15.  
  16. public RandomZombie() return Half();
  17.  
  18. stock Half()
  19. {
  20. new Humans;
  21. switch(random(4))
  22. {
  23. case 0:
  24. {
  25. foreach(Player, i)
  26. {
  27. if(Humans < 1)
  28. {
  29. HumanSetup(i);
  30. printf("Selected humans");
  31. Humans ++;
  32. }
  33. else
  34. {
  35. ZombieSetup2(i);
  36. printf("Selected zombies");
  37. Humans = 0;
  38. }
  39. }
  40. }
  41. case 1:
  42. {
  43. foreach(Player, i)
  44. {
  45. if(Humans < 2)
  46. {
  47. HumanSetup(i);
  48. printf("Selected humans");
  49. Humans ++;
  50. }
  51. else
  52. {
  53. ZombieSetup2(i);
  54. printf("Selected zombies");
  55. Humans = 0;
  56. }
  57. }
  58. }
  59. case 2:
  60. {
  61. foreach(Player, i)
  62. {
  63. if(Humans < 3)
  64. {
  65. HumanSetup(i);
  66. printf("Selected humans");
  67. Humans ++;
  68. }
  69. else
  70. {
  71. ZombieSetup2(i);
  72. printf("Selected zombies");
  73. Humans = 0;
  74. }
  75. }
  76. }
  77. case 3:
  78. {
  79. foreach(Player, i)
  80. {
  81. if(Humans < 4)
  82. {
  83. HumanSetup(i);
  84. printf("Selected humans");
  85. Humans ++;
  86. }
  87. else
  88. {
  89. ZombieSetup2(i);
  90. printf("Selected zombies");
  91. Humans = 0;
  92. }
  93. }
  94. }
  95. }
  96. printf("Finished Selecting teams");
  97. return 1;
  98. }
  99.  
  100. stock EvenTeams(playerid)
  101. {
  102. new Humans, Zombies, rand = switch(random(25));
  103.  
  104. switch(random(25))
  105. {
  106. case 0:
  107. {
  108. switch(random(4))
  109. {
  110. case 0:
  111. {
  112. foreach(Player, i)
  113. {
  114. ZombieSetup2(i);
  115. Zombies ++;
  116. }
  117. }
  118. case 1:
  119. {
  120. foreach(Player, i)
  121. {
  122. HumanSetup2(i);
  123. Humans ++;
  124. }
  125. }
  126. case 2:
  127. {
  128. foreach(Player, i)
  129. {
  130. ZombieSetup2(i);
  131. Zombies ++;
  132. }
  133. }
  134. case 3:
  135. {
  136. foreach(Player, i)
  137. {
  138. HumanSetup2(i);
  139. Humans ++;
  140. }
  141. }
  142. }
  143. }
  144.  
  145. case 1:
  146. {
  147. switch(random(4))
  148. {
  149. case 0:
  150. {
  151. foreach(Player, i)
  152. {
  153. ZombieSetup2(i);
  154. Zombies ++;
  155. }
  156. }
  157. case 1:
  158. {
  159. foreach(Player, i)
  160. {
  161. HumanSetup2(i);
  162. Humans ++;
  163. }
  164. }
  165. case 2:
  166. {
  167. foreach(Player, i)
  168. {
  169. ZombieSetup2(i);
  170. Zombies ++;
  171. }
  172. }
  173. case 3:
  174. {
  175. foreach(Player, i)
  176. {
  177. HumanSetup2(i);
  178. Humans ++;
  179. }
  180. }
  181. }
  182. }
  183.  
  184. case 2:
  185. {
  186. switch(random(4))
  187. {
  188. case 0:
  189. {
  190. foreach(Player, i)
  191. {
  192. ZombieSetup2(i);
  193. Zombies ++;
  194. }
  195. }
  196. case 1:
  197. {
  198. foreach(Player, i)
  199. {
  200. HumanSetup2(i);
  201. Humans ++;
  202. }
  203. }
  204. case 2:
  205. {
  206. foreach(Player, i)
  207. {
  208. ZombieSetup2(i);
  209. Zombies ++;
  210. }
  211. }
  212. case 3:
  213. {
  214. foreach(Player, i)
  215. {
  216. HumanSetup2(i);
  217. Humans ++;
  218. }
  219. }
  220. }
  221. }
  222.  
  223. case 3:
  224. {
  225. switch(random(4))
  226. {
  227. case 0:
  228. {
  229. foreach(Player, i)
  230. {
  231. ZombieSetup2(i);
  232. Zombies ++;
  233. }
  234. }
  235. case 1:
  236. {
  237. foreach(Player, i)
  238. {
  239. HumanSetup2(i);
  240. Humans ++;
  241. }
  242. }
  243. case 2:
  244. {
  245. foreach(Player, i)
  246. {
  247. ZombieSetup2(i);
  248. Zombies ++;
  249. }
  250. }
  251. case 3:
  252. {
  253. foreach(Player, i)
  254. {
  255. ZombieSetup2(i);
  256. Zombies ++;
  257. }
  258. }
  259. }
  260. }
  261.  
  262. case 4:
  263. {
  264. switch(random(4))
  265. {
  266. case 0:
  267. {
  268. foreach(Player, i)
  269. {
  270. ZombieSetup2(i);
  271. Zombies ++;
  272. }
  273. }
  274. case 1:
  275. {
  276. foreach(Player, i)
  277. {
  278. ZombieSetup2(i);
  279. Zombies ++;
  280. }
  281. }
  282. case 2:
  283. {
  284. foreach(Player, i)
  285. {
  286. ZombieSetup2(i);
  287. Zombies ++;
  288. }
  289. }
  290. case 3:
  291. {
  292. foreach(Player, i)
  293. {
  294. HumanSetup2(i);
  295. Humans ++;
  296. }
  297. }
  298. }
  299. }
  300.  
  301. case 6:
  302. {
  303. switch(random(4))
  304. {
  305. case 0:
  306. {
  307. foreach(Player, i)
  308. {
  309. ZombieSetup2(i);
  310. Zombies ++;
  311. }
  312. }
  313. case 1:
  314. {
  315. foreach(Player, i)
  316. {
  317. HumanSetup2(i);
  318. Humans ++;
  319. }
  320. }
  321. case 2:
  322. {
  323. foreach(Player, i)
  324. {
  325. ZombieSetup2(i);
  326. Zombies ++;
  327. }
  328. }
  329. case 3:
  330. {
  331. foreach(Player, i)
  332. {
  333. ZombieSetup2(i);
  334. Zombies ++;
  335. }
  336. }
  337. }
  338. }
  339.  
  340. case 7..9:
  341. {
  342. switch(random(4))
  343. {
  344. case 0:
  345. {
  346. foreach(Player, i)
  347. {
  348. ZombieSetup2(i);
  349. Zombies ++;
  350. }
  351. }
  352. case 1:
  353. {
  354. foreach(Player, i)
  355. {
  356. HumanSetup2(i);
  357. Humans ++;
  358. }
  359. }
  360. case 2:
  361. {
  362. foreach(Player, i)
  363. {
  364. ZombieSetup2(i);
  365. Zombies ++;
  366. }
  367. }
  368. case 3:
  369. {
  370. foreach(Player, i)
  371. {
  372. HumanSetup2(i);
  373. Humans ++;
  374. }
  375. }
  376. }
  377. }
  378.  
  379. case 9..11:
  380. {
  381. switch(random(4))
  382. {
  383. case 0:
  384. {
  385. foreach(Player, i)
  386. {
  387. ZombieSetup2(i);
  388. Zombies ++;
  389. }
  390. }
  391. case 1:
  392. {
  393. foreach(Player, i)
  394. {
  395. HumanSetup2(i);
  396. Humans ++;
  397. }
  398. }
  399. case 2:
  400. {
  401. foreach(Player, i)
  402. {
  403. ZombieSetup2(i);
  404. Zombies ++;
  405. }
  406. }
  407. case 3:
  408. {
  409. foreach(Player, i)
  410. {
  411. HumanSetup2(i);
  412. Humans ++;
  413. }
  414. }
  415. }
  416. }
  417.  
  418. case 11..16:
  419. {
  420. switch(random(4))
  421. {
  422. case 0:
  423. {
  424. foreach(Player, i)
  425. {
  426. ZombieSetup2(i);
  427. Zombies ++;
  428. }
  429. }
  430. case 1:
  431. {
  432. foreach(Player, i)
  433. {
  434. HumanSetup2(i);
  435. Humans ++;
  436. }
  437. }
  438. case 2:
  439. {
  440. foreach(Player, i)
  441. {
  442. ZombieSetup2(i);
  443. Zombies ++;
  444. }
  445. }
  446. case 3:
  447. {
  448. foreach(Player, i)
  449. {
  450. HumanSetup2(i);
  451. Humans ++;
  452. }
  453. }
  454. }
  455. }
  456.  
  457. case 16..20:
  458. {
  459. switch(random(4))
  460. {
  461. case 0:
  462. {
  463. foreach(Player, i)
  464. {
  465. ZombieSetup2(i);
  466. Zombies ++;
  467. }
  468. }
  469. case 1:
  470. {
  471. foreach(Player, i)
  472. {
  473. HumanSetup2(i);
  474. Humans ++;
  475. }
  476. }
  477. case 2:
  478. {
  479. foreach(Player, i)
  480. {
  481. ZombieSetup2(i);
  482. Zombies ++;
  483. }
  484. }
  485. case 3:
  486. {
  487. foreach(Player, i)
  488. {
  489. HumanSetup2(i);
  490. Humans ++;
  491. }
  492. }
  493. }
  494. }
  495.  
  496. case 20..25:
  497. {
  498. switch(random(4))
  499. {
  500. case 0:
  501. {
  502. foreach(Player, i)
  503. {
  504. ZombieSetup2(i);
  505. Zombies ++;
  506. }
  507. }
  508. case 1:
  509. {
  510. foreach(Player, i)
  511. {
  512. HumanSetup2(i);
  513. Humans ++;
  514. }
  515. }
  516. case 2:
  517. {
  518. foreach(Player, i)
  519. {
  520. ZombieSetup2(i);
  521. Zombies ++;
  522. }
  523. }
  524. case 3:
  525. {
  526. foreach(Player, i)
  527. {
  528. HumanSetup2(i);
  529. Humans ++;
  530. }
  531. }
  532. }
  533. }
  534. }
  535.  
  536. return 1;
  537. }
Advertisement
Add Comment
Please, Sign In to add comment