Guest User

Untitled

a guest
Oct 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.95 KB | None | 0 0
  1. public TakeOver()
  2. {
  3. foreach(Player, i)
  4. {
  5.  
  6. if(IsPlayerInArea(i, 54.085784, 1770.567382, 198.085784, 1970.567382) && gTeam[i] == USA)
  7. {
  8. if(CapturedBy != 1 )
  9. {
  10. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  11. {
  12. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  13. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  14. g_PlayerInZoneCount ++;
  15. if(IfCapture[0] == 1 ) return 1;
  16. IfCapture[0] = 0;
  17. dini_IntSet("/Variables/Variables.ini", "CapturedBy", 1);
  18. uscore++;
  19. GivePlayerMoney(i, 500);
  20. SetPlayerScore(i, GetPlayerScore(i) + 1);
  21. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  22. CapturedBy = 1;
  23. if(CapturedBy != 1) SendChatMessage("~b~Team U.S.A took over `The area51`");
  24. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The area51 ");
  25. GangZoneHideForAll(area51);
  26. GangZoneShowForAll(area51G, COLOR_BLUE);
  27. GangZoneHideForAll(area51U);
  28. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  29. CheckForLevelUpdate(i);
  30. }
  31. }
  32. }
  33. else if(IsPlayerInArea(i, 54.085784, 1770.567382, 198.085784, 1970.567382) && gTeam[i] == RUSSIA)
  34. {
  35.  
  36. if(CapturedBy != 2)
  37. {
  38. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  39. {
  40. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  41. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  42. g_PlayerInZoneCount ++;
  43. if( IfCapture[0] == 1 ) return 1;
  44. IfCapture[0] = 0;
  45. dini_IntSet("/Variables/Variables.ini", "CapturedBy", 2);
  46. gscore++;
  47. GivePlayerMoney(i, 500);
  48. SetPlayerScore(i, GetPlayerScore(i) + 1);
  49. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  50. CapturedBy = 2;
  51. if(CapturedBy != 1) SendChatMessage("Team Russia took over `The area51`");
  52. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The area51 ");
  53. GangZoneHideForAll(area51);
  54. GangZoneShowForAll(area51G, ORANGE);
  55. GangZoneHideForAll(area51U);
  56. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  57. CheckForLevelUpdate(i);
  58. }
  59. }
  60. }
  61. else if(IsPlayerInArea(i, 54.085784, 1770.567382, 198.085784, 1970.567382) && gTeam[i] == MEXICO)
  62. {
  63.  
  64. if(CapturedBy != 3)
  65. {
  66. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  67. {
  68. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  69. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  70. g_PlayerInZoneCount ++;
  71. if( IfCapture[0] == 1 ) return 1;
  72. IfCapture[0] = 0;
  73. dini_IntSet("/Variables/Variables.ini", "CapturedBy", 3);
  74. gscore++;
  75. GivePlayerMoney(i, 500);
  76. SetPlayerScore(i, GetPlayerScore(i) + 1);
  77. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  78. CapturedBy = 3;
  79. if(CapturedBy != 1) SendChatMessage("~r~Team Mexico took over `The area51`");
  80. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The area51 ");
  81. GangZoneHideForAll(area51);
  82. GangZoneShowForAll(area51G, RED);
  83. GangZoneHideForAll(area51U);
  84. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  85. CheckForLevelUpdate(i);
  86. }
  87. }
  88. }
  89. }
  90. foreach(Player, i)
  91. {
  92. if(IsPlayerInArea(i, -394.360748, 1425.049926, -234.360748, 1601.049926) && gTeam[i] == USA)
  93. {
  94.  
  95. if(CapturedBy2 != 1)
  96. {
  97. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  98. {
  99. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  100. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  101. g_PlayerInZoneCount ++;
  102. if( IfCapture[2] == 1 ) return 1;
  103. IfCapture[2] = 0;
  104. dini_IntSet("/Variables/Variables.ini", "CapturedBy", 1);
  105. gscore++;
  106. GivePlayerMoney(i, 500);
  107. SetPlayerScore(i, GetPlayerScore(i) + 1);
  108. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  109. CapturedBy2 = 1;
  110. if(CapturedBy != 2) SendChatMessage("~b~Team U.S.A took over `Bigear`");
  111. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The Bigear ");
  112. GangZoneHideForAll(bigear);
  113. GangZoneShowForAll(bigearG, BLUE);
  114. GangZoneHideForAll(bigearU);
  115. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  116. CheckForLevelUpdate(i);
  117. }
  118. }
  119. }
  120. else if(IsPlayerInArea(i, -394.360748, 1425.049926, -234.360748, 1601.049926) && gTeam[i] == RUSSIA)
  121. {
  122. if(CapturedBy2 != 2)
  123. {
  124. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  125. {
  126. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  127. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  128. g_PlayerInZoneCount ++;
  129. if( IfCapture[2] == 1 ) return 1;
  130. IfCapture[2] = 0;
  131. dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 2);
  132. gscore++;
  133. GivePlayerMoney(i, 500);
  134. SetPlayerScore(i, GetPlayerScore(i) + 1);
  135. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  136. CapturedBy2 = 2;
  137. if(CapturedBy != 1)SendChatMessage("Team Russia took over `Bigear`");
  138. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The Bigear ");
  139. GangZoneHideForAll(bigear);
  140. GangZoneShowForAll(bigearG, ORANGE);
  141. GangZoneHideForAll(bigearU);
  142. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  143. CheckForLevelUpdate(i);
  144. }
  145. }
  146. }
  147. else if(IsPlayerInArea(i,-394.360748, 1425.049926, -234.360748, 1601.049926) && gTeam[i] == MEXICO)
  148. {
  149.  
  150. if(CapturedBy2 != 3)
  151. {
  152. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  153. {
  154. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  155. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  156. g_PlayerInZoneCount ++;
  157. if( IfCapture[2] == 1 ) return 1;
  158. IfCapture[2] = 0;
  159. dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 3);
  160. gscore++;
  161. GivePlayerMoney(i, 500);
  162. SetPlayerScore(i, GetPlayerScore(i) + 1);
  163. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  164. CapturedBy2 = 3;
  165. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `Bigear`");
  166. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The Bigear ");
  167. GangZoneHideForAll(bigear);
  168. GangZoneShowForAll(bigearG, RED);
  169. GangZoneHideForAll(bigearU);
  170. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  171. CheckForLevelUpdate(i);
  172. }
  173. }
  174. }
  175. }
  176. foreach(Player, i)
  177. {
  178. if(IsPlayerInArea(i, -306.418304, 2610.056152, -146.418304, 2786.056152) && gTeam[i] == USA)
  179. {
  180.  
  181. if(CapturedBy3 != 1)
  182. {
  183. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  184. {
  185. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  186. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  187. g_PlayerInZoneCount ++;
  188. if( IfCapture[3] == 1 ) return 1;
  189. IfCapture[3] = 0;
  190. dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 1);
  191. uscore++;
  192. GivePlayerMoney(i, 500);
  193. SetPlayerScore(i, GetPlayerScore(i) + 1);
  194. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  195. CapturedBy3 = 1;
  196. if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The chicken`");
  197. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The chicken ");
  198. GangZoneHideForAll(chicken);
  199. GangZoneShowForAll(chickenU, BLUE);
  200. GangZoneHideForAll(chickenG);
  201. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  202. CheckForLevelUpdate(i);
  203. }
  204. }
  205. }
  206. else if(IsPlayerInArea(i, -306.418304, 2610.056152, -146.418304, 2786.056152) && gTeam[i] == RUSSIA)
  207. {
  208. if(CapturedBy3 != 2)
  209. {
  210. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  211. {
  212. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  213. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  214. g_PlayerInZoneCount ++;
  215. if( IfCapture[3] == 1 ) return 1;
  216. IfCapture[3] = 0;
  217. dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 2);
  218. gscore++;
  219. GivePlayerMoney(i, 500);
  220. SetPlayerScore(i, GetPlayerScore(i) + 1);
  221. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  222. CapturedBy3 = 2;
  223. if(CapturedBy != 1)SendChatMessage("Team Russia took over `The chicken`");
  224. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The chicken ");
  225. GangZoneHideForAll(chicken);
  226. GangZoneShowForAll(chickenG, ORANGE);
  227. GangZoneHideForAll(chickenU);
  228. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  229. CheckForLevelUpdate(i);
  230. }
  231. }
  232. }
  233. else if(IsPlayerInArea(i, -306.418304, 2610.056152, -146.418304, 2786.056152) && gTeam[i] == MEXICO)
  234. {
  235. if(CapturedBy3 != 3)
  236. {
  237. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  238. {
  239. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  240. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  241. g_PlayerInZoneCount ++;
  242. if( IfCapture[3] == 1 ) return 1;
  243. IfCapture[3] = 0;
  244. dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 3);
  245. gscore++;
  246. GivePlayerMoney(i, 500);
  247. SetPlayerScore(i, GetPlayerScore(i) + 1);
  248. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  249. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The chicken ");
  250. CapturedBy3 = 3;
  251. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The chicken`");
  252. GangZoneHideForAll(chicken);
  253. GangZoneShowForAll(chickenG, RED);
  254. GangZoneHideForAll(chickenU);
  255. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  256. CheckForLevelUpdate(i);
  257. }
  258. }
  259. }
  260. }
  261.  
  262. foreach(Player, i)
  263. {
  264.  
  265. if(IsPlayerInArea(i, -101.169105, 2274.128173, 50.830894, 2442.128173) && gTeam[i] == USA)
  266. {
  267.  
  268. if(CapturedBy4 != 1)
  269. {
  270. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  271. {
  272. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  273. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  274. g_PlayerInZoneCount ++;
  275. if( IfCapture[4] == 1 ) return 1;
  276. IfCapture[4] = 0;
  277. dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 1);
  278. uscore++;
  279. GivePlayerMoney(i, 500);
  280. SetPlayerScore(i, GetPlayerScore(i) + 1);
  281. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  282. CapturedBy4 = 1;
  283. if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The snakefarm`");
  284. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The snakefarm ");
  285. GangZoneHideForAll(snakefarm);
  286. GangZoneShowForAll(snakefarmU, BLUE);
  287. GangZoneHideForAll(snakefarmG);
  288. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  289. CheckForLevelUpdate(i);
  290. }
  291. }
  292. }
  293. else if(IsPlayerInArea(i, -101.169105, 2274.128173, 50.830894, 2442.128173) && gTeam[i] == RUSSIA)
  294. {
  295. if(CapturedBy4 != 2)
  296. {
  297. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  298. {
  299. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  300. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  301. g_PlayerInZoneCount ++;
  302. if( IfCapture[4] == 1 ) return 1;
  303. IfCapture[4] = 0;
  304. dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 2);
  305. gscore++;
  306. GivePlayerMoney(i, 500);
  307. SetPlayerScore(i, GetPlayerScore(i) + 1);
  308. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  309. CapturedBy4 = 2;
  310. if(CapturedBy != 1)SendChatMessage("Team Russia took over `The snakefarm`");
  311. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The snakefarm ");
  312. GangZoneHideForAll(snakefarm);
  313. GangZoneShowForAll(snakefarmU, ORANGE);
  314. GangZoneHideForAll(snakefarmG);
  315. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  316. CheckForLevelUpdate(i);
  317. }
  318. }
  319. }
  320. else if(IsPlayerInArea(i, -101.169105, 2274.128173, 50.830894, 2442.128173) && gTeam[i] == MEXICO)
  321. {
  322.  
  323. if(CapturedBy4 != 3)
  324. {
  325. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  326. {
  327. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  328. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  329. g_PlayerInZoneCount ++;
  330. if( IfCapture[4] == 1 ) return 1;
  331. IfCapture[4] = 0;
  332. dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 3);
  333. gscore++;
  334. GivePlayerMoney(i, 500);
  335. SetPlayerScore(i, GetPlayerScore(i) + 1);
  336. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  337. CapturedBy4 = 3;
  338. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The snakefarm`");
  339. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The snakefarm ");
  340. GangZoneHideForAll(snakefarm);
  341. GangZoneShowForAll(snakefarmU, RED);
  342. GangZoneHideForAll(snakefarmG);
  343. dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
  344. CheckForLevelUpdate(i);
  345. }
  346. }
  347.  
  348. }
  349. }
  350. foreach(Player, i)
  351. {
  352. if(IsPlayerInArea(i, -885.435729, 1264.459228, -757.435729, 1448.459228) && gTeam[i] == USA)
  353. {
  354.  
  355. if(CapturedBy5 != 1)
  356. {
  357. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  358. {
  359. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  360. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  361. g_PlayerInZoneCount ++;
  362. if( IfCapture[5] == 1 ) return 1;
  363. IfCapture[5] = 0;
  364. dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
  365. uscore++;
  366. GivePlayerMoney(i, 500);
  367. SetPlayerScore(i, GetPlayerScore(i) + 1);
  368. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  369. CapturedBy5 = 1;
  370. if(CapturedBy != 1)SendChatMessage("~b~Team U.S.A took over `The bridge`");
  371. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The bridge ");
  372. GangZoneHideForAll(bridge);
  373. GangZoneShowForAll(bridgeU, BLUE);
  374. GangZoneHideForAll(bridgeG);
  375. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  376. CheckForLevelUpdate(i);
  377. }
  378. }
  379. }
  380. else if(IsPlayerInArea(i, -885.435729, 1264.459228, -757.435729, 1448.459228) && gTeam[i] == RUSSIA)
  381. {
  382. if(CapturedBy5 != 2)
  383. {
  384. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  385. {
  386. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  387. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  388. g_PlayerInZoneCount ++;
  389. if( IfCapture[5] == 1 ) return 1;
  390. IfCapture[5] = 0;
  391. dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
  392. uscore++;
  393. GivePlayerMoney(i, 500);
  394. SetPlayerScore(i, GetPlayerScore(i) + 1);
  395. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  396. CapturedBy5 = 2;
  397. if(CapturedBy != 1)SendChatMessage("Team Russia took over `The bridge`");
  398. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The bridge ");
  399. GangZoneHideForAll(bridge);
  400. GangZoneShowForAll(bridgeG, ORANGE);
  401. GangZoneHideForAll(bridgeU);
  402. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  403. CheckForLevelUpdate(i);
  404. }
  405. }
  406. }
  407. else if(IsPlayerInArea(i, -885.435729, 1264.459228, -757.435729, 1448.459228) && gTeam[i] == MEXICO)
  408. {
  409. if(CapturedBy5 != 3)
  410. {
  411. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  412. {
  413. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  414. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  415. g_PlayerInZoneCount ++;
  416. if( IfCapture[5] == 1 ) return 1;
  417. IfCapture[5] = 0;
  418. dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
  419. uscore++;
  420. GivePlayerMoney(i, 500);
  421. SetPlayerScore(i, GetPlayerScore(i) + 1);
  422. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  423. CapturedBy5 = 3;
  424. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The bridge`");
  425. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The bridge ");
  426. GangZoneHideForAll(bridge);
  427. GangZoneShowForAll(bridgeG, RED);
  428. GangZoneHideForAll(bridgeU);
  429. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  430. CheckForLevelUpdate(i);
  431. }
  432. }
  433. }
  434. }
  435. foreach(Player, i)
  436. {
  437. if(IsPlayerInArea(i, -875.840148, 1976.008300, -571.840148, 2104.008300) && gTeam[i] == USA)
  438. {
  439. if(CapturedBy6 != 1)
  440. {
  441. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  442. {
  443. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  444. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  445. g_PlayerInZoneCount ++;
  446. if( IfCapture[6] == 1 ) return 1;
  447. IfCapture[6] = 0;
  448. dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
  449. uscore++;
  450. GivePlayerMoney(i, 500);
  451. SetPlayerScore(i, GetPlayerScore(i) + 1);
  452. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  453. CapturedBy6 = 1;
  454. if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The dam`");
  455. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The dam ");
  456. GangZoneHideForAll(dam);
  457. GangZoneShowForAll(damG, BLUE);
  458. GangZoneHideForAll(damU);
  459. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  460. CheckForLevelUpdate(i);
  461. }
  462. }
  463. }
  464. else if(IsPlayerInArea(i, -875.840148, 1976.008300, -571.840148, 2104.008300) && gTeam[i] == RUSSIA)
  465. {
  466. if(CapturedBy6 != 2)
  467. {
  468. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  469. {
  470. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  471. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  472. g_PlayerInZoneCount ++;
  473. if( IfCapture[6] == 1 ) return 1;
  474. IfCapture[6] = 0;
  475. dini_IntSet("/Variables/Variables.ini", "CapturedBy6", 1);
  476. uscore++;
  477. GivePlayerMoney(i, 500);
  478. SetPlayerScore(i, GetPlayerScore(i) + 1);
  479. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  480. CapturedBy6 = 2;
  481. if(CapturedBy != 1)SendChatMessage("Team Russia took over `The dam`");
  482. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The dam ");
  483. GangZoneHideForAll(dam);
  484. GangZoneShowForAll(damG, ORANGE);
  485. GangZoneHideForAll(damU);
  486. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  487. CheckForLevelUpdate(i);
  488. }
  489. }
  490. }
  491. else if(IsPlayerInArea(i, -875.840148, 1976.008300, -571.840148, 2104.008300) && gTeam[i] == MEXICO)
  492. {
  493. if(CapturedBy6 != 3)
  494. {
  495. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  496. {
  497. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  498. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  499. g_PlayerInZoneCount ++;
  500. if( IfCapture[6] == 1 ) return 1;
  501. IfCapture[6] = 0;
  502. dini_IntSet("/Variables/Variables.ini", "CapturedBy6", 1);
  503. uscore++;
  504. GivePlayerMoney(i, 500);
  505. SetPlayerScore(i, GetPlayerScore(i) + 1);
  506. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  507. CapturedBy6 = 3;
  508. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The dam`");
  509. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The dam ");
  510. GangZoneHideForAll(dam);
  511. GangZoneShowForAll(damG, RED);
  512. GangZoneHideForAll(damU);
  513. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  514. CheckForLevelUpdate(i);
  515. }
  516. }
  517. }
  518. foreach(Player, i)
  519. {
  520. if(IsPlayerInArea(i, -620.444274, 1137.002319, -428.444274, 1257.002319) && gTeam[i] == USA)
  521. {
  522. if(CapturedBy7 != 1)
  523. {
  524. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  525. {
  526. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  527. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  528. g_PlayerInZoneCount ++;
  529. if( IfCapture[7] == 1 ) return 1;
  530. IfCapture[7] = 0;
  531. dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
  532. uscore++;
  533. GivePlayerMoney(i, 500);
  534. SetPlayerScore(i, GetPlayerScore(i) + 1);
  535. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  536. CapturedBy7 = 1;
  537. if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The trainbridge`");
  538. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The trainbridge ");
  539. GangZoneHideForAll(trainbridge);
  540. GangZoneShowForAll(trainbridgeG, BLUE);
  541. GangZoneHideForAll(trainbridgeU);
  542. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  543. CheckForLevelUpdate(i);
  544. }
  545. }
  546. }
  547. else if(IsPlayerInArea(i, -620.444274, 1137.002319, -428.444274, 1257.002319) && gTeam[i] == RUSSIA)
  548. {
  549. if(CapturedBy7 != 2)
  550. {
  551. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  552. {
  553. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  554. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  555. g_PlayerInZoneCount ++;
  556. if( IfCapture[7] == 1 ) return 1;
  557. IfCapture[7] = 0;
  558. dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
  559. uscore++;
  560. GivePlayerMoney(i, 500);
  561. SetPlayerScore(i, GetPlayerScore(i) + 1);
  562. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  563. CapturedBy7 = 2;
  564. if(CapturedBy != 1)SendChatMessage("Team Russia took over `The trainbridge`");
  565. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The trainbridge ");
  566. GangZoneHideForAll(trainbridge);
  567. GangZoneShowForAll(trainbridgeG, ORANGE);
  568. GangZoneHideForAll(trainbridgeU);
  569. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  570. CheckForLevelUpdate(i);
  571. }
  572. }
  573. }
  574. else if(IsPlayerInArea(i, -620.444274, 1137.002319, -428.444274, 1257.002319) && gTeam[i] == MEXICO)
  575. {
  576. if(CapturedBy7 != 3)
  577. {
  578. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  579. {
  580. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  581. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  582. g_PlayerInZoneCount ++;
  583. if( IfCapture[7] == 1 ) return 1;
  584. IfCapture[7] = 0;
  585. dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
  586. uscore++;
  587. GivePlayerMoney(i, 500);
  588. SetPlayerScore(i, GetPlayerScore(i) + 1);
  589. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  590. CapturedBy7 = 3;
  591. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The trainbridge`");
  592. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The trainbridge ");
  593. GangZoneHideForAll(trainbridge);
  594. GangZoneShowForAll(trainbridgeG, RED);
  595. GangZoneHideForAll(trainbridgeU);
  596. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  597. CheckForLevelUpdate(i);
  598. }
  599. }
  600. }
  601. foreach(Player, i)
  602. {
  603. if(IsPlayerInArea(i, -454.197692, 2162.090332, -334.197692, 2314.090332) && gTeam[i] == USA)
  604. {
  605. if(CapturedBy8 != 1)
  606. {
  607. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  608. {
  609. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  610. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  611. g_PlayerInZoneCount ++;
  612. if( IfCapture[8] == 1 ) return 1;
  613. IfCapture[8] = 0;
  614. dini_IntSet("/Variables/Variables.ini", "CapturedBy8", 1);
  615. uscore++;
  616. GivePlayerMoney(i, 500);
  617. SetPlayerScore(i, GetPlayerScore(i) + 1);
  618. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  619. CapturedBy8 = 1;
  620. if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The village`");
  621. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The village ");
  622. GangZoneHideForAll(village);
  623. GangZoneShowForAll(villageG, BLUE);
  624. GangZoneHideForAll(villageU);
  625. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  626. CheckForLevelUpdate(i);
  627. }
  628. }
  629. }
  630. else if(IsPlayerInArea(i, -454.197692, 2162.090332, -334.197692, 2314.090332) && gTeam[i] == RUSSIA)
  631. {
  632. if(CapturedBy8 != 2)
  633. {
  634. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  635. {
  636. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  637. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  638. g_PlayerInZoneCount ++;
  639. if( IfCapture[8] == 1 ) return 1;
  640. IfCapture[8] = 0;
  641. dini_IntSet("/Variables/Variables.ini", "CapturedBy8", 1);
  642. uscore++;
  643. GivePlayerMoney(i, 500);
  644. SetPlayerScore(i, GetPlayerScore(i) + 1);
  645. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  646. CapturedBy8 = 2;
  647. if(CapturedBy != 1)SendChatMessage("Team Russia took over `The village`");
  648. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The village ");
  649. GangZoneHideForAll(village);
  650. GangZoneShowForAll(villageG, ORANGE);
  651. GangZoneHideForAll(villageU);
  652. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  653. CheckForLevelUpdate(i);
  654. }
  655. }
  656. }
  657. else if(IsPlayerInArea(i, -454.197692, 2162.090332, -334.197692, 2314.090332) && gTeam[i] == MEXICO)
  658. {
  659. if(CapturedBy8 != 3)
  660. {
  661. if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
  662. {
  663. if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
  664. g_IsPlayerInTheSpecifiedZone[ i ] = true;
  665. g_PlayerInZoneCount ++;
  666. if( IfCapture[8] == 1 ) return 1;
  667. IfCapture[8] = 0;
  668. dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
  669. uscore++;
  670. GivePlayerMoney(i, 500);
  671. SetPlayerScore(i, GetPlayerScore(i) + 1);
  672. SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
  673. CapturedBy8 = 3;
  674. if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The village`");
  675. IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The village ");
  676. GangZoneHideForAll(village);
  677. GangZoneShowForAll(villageG, RED);
  678. GangZoneHideForAll(villageU);
  679. dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
  680. CheckForLevelUpdate(i);
  681. }
  682.  
  683. }
  684. }
  685.  
  686. }
  687. }
  688. }
  689. return 1;
  690. }
Add Comment
Please, Sign In to add comment