Advertisement
Guest User

Quake 3 CTF4 V4 Eng

a guest
Dec 27th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.79 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #include <a_samp>
  3. #if defined FILTERSCRIPT
  4. #define DSL DIALOG_STYLE_LIST
  5. #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  6. #define GREY 0xAFAFAFAA
  7. #define GREEN 0x33AA33AA
  8. #define YELLOW 0xFFFF00AA
  9. #define WHITE 0xFFFFFFAA
  10. #define LIGHTBLUE 0x33CCFFAA
  11. #define ORANGE 0xFF9900AA
  12. new Votes = 0;
  13. new Voted[MAX_PLAYERS];
  14. new VoteActive;
  15. new thingy;
  16. new VPlayers;
  17. new KickName[24];
  18. new PlayerName[24];
  19. new IDofotherplayer;
  20. forward CountDownTimer(playerid);
  21. new Count;
  22. new Timer;
  23. new Text:TCountDown;
  24. new Text:VoteKick;
  25.  
  26. new gTeam[MAX_PLAYERS];
  27. new quakemove;
  28. new quake[16];
  29. new ammo[8];
  30. new megahp;
  31. new hp1[6];
  32. new snipe[2];
  33. new bfg12;
  34. new rocketla[3];
  35. new shot[2];
  36.  
  37. new rflag;
  38. new bflag;
  39. new rflagup;
  40. new bflagup;
  41.  
  42. new ScoreOnFlag[2];
  43. new ipiq;
  44.  
  45. new Text:Textdraw0;
  46. new Text:Textdraw1;
  47. new Text:Textdraw2;
  48. new Text:Textdraw3;
  49. new Text:Textdraw4;
  50. new PlayerText:Textdraw5[MAX_PLAYERS];
  51. new PlayerText:Textdraw6[MAX_PLAYERS];
  52. new PlayerText:Textdraw7[MAX_PLAYERS];
  53. new PlayerText:Textdraw8[MAX_PLAYERS];
  54. new PlayerText:Textdraw9[MAX_PLAYERS];
  55. new PlayerText:Textdraw10[MAX_PLAYERS];
  56. new PlayerText:Textdraw11[MAX_PLAYERS];
  57. new PlayerText:Textdraw12[MAX_PLAYERS];
  58. new PlayerText:Textdraw13[MAX_PLAYERS];
  59. new PlayerText:Textdraw14[MAX_PLAYERS];
  60. new PlayerText:Textdraw15[MAX_PLAYERS];
  61. new PlayerText:Textdraw16[MAX_PLAYERS];
  62. new PlayerText:Textdraw17[MAX_PLAYERS];
  63. new PlayerText:Textdraw18[MAX_PLAYERS];
  64. new PlayerText:Textdraw19[MAX_PLAYERS];
  65. new PlayerText:Textdraw20[MAX_PLAYERS];
  66.  
  67. forward quakemove1();
  68. forward quakemove2();
  69.  
  70. public OnFilterScriptInit()
  71. {
  72.  
  73. SetTimer("quakemove1", 2000, false);
  74. quakemove = CreateObject(19362, -1340.4470, -2407.6763, 3268.3848, 0.00, 90.00, 0.00);
  75.  
  76. Textdraw0 = TextDrawCreate(566.000000, 395.687500, "usebox");
  77. TextDrawLetterSize(Textdraw0, 0.000000, 2.211111);
  78. TextDrawTextSize(Textdraw0, 492.000000, 0.000000);
  79. TextDrawAlignment(Textdraw0, 1);
  80. TextDrawColor(Textdraw0, 0xFFFFFFFF);
  81. TextDrawUseBox(Textdraw0, true);
  82. TextDrawBoxColor(Textdraw0, -1);
  83. TextDrawSetShadow(Textdraw0, 0);
  84. TextDrawSetOutline(Textdraw0, 0);
  85. TextDrawFont(Textdraw0, 0);
  86.  
  87. Textdraw1 = TextDrawCreate(529.000000, 397.875000, "usebox");
  88. TextDrawLetterSize(Textdraw1, 0.000000, 1.676388);
  89. TextDrawTextSize(Textdraw1, 495.000000, 0.000000);
  90. TextDrawAlignment(Textdraw1, 1);
  91. TextDrawColor(Textdraw1, 0xFF0000FF);
  92. TextDrawUseBox(Textdraw1, true);
  93. TextDrawBoxColor(Textdraw1, -16776961);
  94. TextDrawSetShadow(Textdraw1, 0);
  95. TextDrawSetOutline(Textdraw1, 0);
  96. TextDrawFont(Textdraw1, 0);
  97.  
  98. Textdraw2 = TextDrawCreate(562.500000, 398.000000, "usebox");
  99. TextDrawLetterSize(Textdraw2, 0.000000, 1.676388);
  100. TextDrawTextSize(Textdraw2, 527.500000, 0.000000);
  101. TextDrawAlignment(Textdraw2, 1);
  102. TextDrawColor(Textdraw2, 0x0000FFFF);
  103. TextDrawUseBox(Textdraw2, true);
  104. TextDrawBoxColor(Textdraw2, 65535);
  105. TextDrawSetShadow(Textdraw2, 0);
  106. TextDrawSetOutline(Textdraw2, 0);
  107. TextDrawFont(Textdraw2, 0);
  108.  
  109. Textdraw3 = TextDrawCreate(506.500000, 396.375000, "_");
  110. TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
  111. TextDrawAlignment(Textdraw3, 1);
  112. TextDrawColor(Textdraw3, 0xFFFFFFFF);
  113. TextDrawSetShadow(Textdraw3, 0);
  114. TextDrawSetOutline(Textdraw3, 1);
  115. TextDrawBackgroundColor(Textdraw3, 51);
  116. TextDrawFont(Textdraw3, 1);
  117. TextDrawSetProportional(Textdraw3, 1);
  118.  
  119. Textdraw4 = TextDrawCreate(536.500000, 396.062500, "_");
  120. TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
  121. TextDrawAlignment(Textdraw4, 1);
  122. TextDrawColor(Textdraw4, 0xFFFFFFFF);
  123. TextDrawSetShadow(Textdraw4, 0);
  124. TextDrawSetOutline(Textdraw4, 1);
  125. TextDrawBackgroundColor(Textdraw4, 51);
  126. TextDrawFont(Textdraw4, 1);
  127. TextDrawSetProportional(Textdraw4, 1);
  128.  
  129. //quake city
  130. //Îñíîâíûå ñïàâí-ïëàòôîðìû
  131. CreateObject(19454,-1352.27000000,-2446.06000000,3264.24000000,0.00000000,90.00000000,90.00000000); //
  132. CreateObject(19454,-1342.69000000,-2446.07000000,3264.23000000,0.00000000,90.00000000,90.00000000); //
  133. CreateObject(19362,-1347.44000000,-2443.02000000,3264.25000000,0.00000000,90.00000000,0.00000000); //
  134. CreateObject(19362,-1347.75000000,-2372.32000000,3264.25000000,0.00000000,90.00000000,0.00000000); //
  135. CreateObject(19454,-1342.70000000,-2369.13000000,3264.24000000,0.00000000,90.00000000,90.00000000); //
  136. CreateObject(19454, -1352.26, -2369.14, 3264.24, 0.00, 90.00, 90.00);
  137.  
  138. /* Îáúåêòû äëÿ GTA CR
  139. CreateObject(2090,-1350.0000000,-2417.6500000,3200.0000000,0.0000000,180.0000000,0.0000000); //
  140. CreateObject(2090,-1494.0000000,-2417.6500000,3258.6000000,0.0000000,270.0000000,0.0000000); //
  141. CreateObject(2090,-1203.0000000,-2417.6500000,3245.4800000,0.0000000,90.0000000,0.0000000); //
  142. CreateObject(2090,-1349.8900000,-2567.0100000,3245.3200000,90.0000000,0.0000000,0.0000000); //
  143. CreateObject(2090,-1344.5600000,-2320.8100000,3248.2100000,90.0000000,0.0000000,180.0000000); //
  144. CreateObject(2090,-1344.5600000,-2422.0000000,3344.0000000,0.0000000,0.0000000,0.0000000); //
  145. */
  146.  
  147. //Òå æå îáúåêòû, òîëüêî â SAMP (ñòàíäàðò)
  148. CreateObject(4247,-1350.0000000,-2417.6500000,3200.0000000,0.0000000,180.0000000,0.0000000); //
  149. CreateObject(4247,-1494.0000000,-2417.6500000,3258.6000000,0.0000000,270.0000000,0.0000000); //
  150. CreateObject(4247,-1203.0000000,-2417.6500000,3245.4800000,0.0000000,90.0000000,0.0000000); //
  151. CreateObject(4247,-1349.8900000,-2567.0100000,3245.3200000,90.0000000,0.0000000,0.0000000); //
  152. CreateObject(4247,-1344.5600000,-2320.8100000,3248.2100000,90.0000000,0.0000000,180.0000000); //
  153. CreateObject(4247,-1344.5600000,-2422.0000000,3344.0000000,0.0000000,0.0000000,0.0000000); //
  154.  
  155. //Ñàìà èãðà
  156. CreateObject(19454,-1355.4100000,-2443.5800000,3264.0200000,-5.0000000,90.0000000,0.0000000); //
  157. CreateObject(19454,-1339.5500000,-2443.7800000,3264.0200000,-5.0000000,90.0000000,0.0000000); //
  158. CreateObject(19454,-1347.6000000,-2427.6400000,3256.9100000,0.0000000,90.0000000,0.0000000); //
  159. CreateObject(19355,-1347.4400000,-2443.1700000,3274.6400000,0.0000000,90.0000000,-90.0000000); //
  160. CreateObject(19355,-1347.4500000,-2439.6700000,3274.6400000,0.0000000,90.0000000,90.0000000); //
  161. CreateObject(19428,-1347.6500000,-2421.4300000,3257.5200000,0.0000000,70.0000000,90.0000000); //
  162. CreateObject(19352,-1347.4800000,-2429.4900000,3256.9600000,0.0000000,0.0000000,0.0000000); //
  163. CreateObject(19352,-1339.5800000,-2437.6700000,3260.0300000,0.0000000,0.0000000,0.0000000); //
  164. CreateObject(19352,-1355.4900000,-2437.2600000,3260.0300000,0.0000000,0.0000000,0.0000000); //
  165. CreateObject(19454,-1352.4300000,-2407.6400000,3253.1300000,0.0000000,90.0000000,90.0000000); //
  166. CreateObject(19428,-1348.4000000,-2410.8500000,3253.7200000,0.0000000,70.0000000,-90.0000000); //
  167. CreateObject(19428,-1348.4500000,-2404.3300000,3253.7100000,0.0000000,70.0000000,90.0000000); //
  168. CreateObject(19428,-1352.4900000,-2410.7800000,3252.2900000,0.0000000,60.0000000,90.0000000); //
  169. CreateObject(19428,-1344.4100000,-2404.5900000,3252.3300000,0.0000000,60.0000000,-90.0000000); //
  170. CreateObject(19454,-1347.6000000,-2388.7100000,3256.9100000,0.0000000,90.0000000,0.0000000); //
  171. CreateObject(19428,-1347.5200000,-2395.0000000,3257.5400000,0.0000000,70.0000000,-90.0000000); //
  172. CreateObject(19352,-1347.6600000,-2385.7000000,3256.9600000,0.0000000,0.0000000,0.0000000); //
  173. CreateObject(19454,-1339.6100000,-2371.8300000,3264.0200000,5.0000000,90.0000000,0.0000000); //
  174. CreateObject(19454,-1355.4100000,-2371.6700000,3264.0200000,5.0000000,90.0000000,0.0000000); //
  175. CreateObject(19352,-1355.4300000,-2377.6500000,3260.0300000,0.0000000,0.0000000,0.0000000); //
  176. CreateObject(19352,-1339.2700000,-2378.2500000,3260.0300000,0.0000000,0.0000000,0.0000000); //
  177. CreateObject(19454,-1355.4100000,-2380.1300000,3260.0100000,0.0000000,90.0000000,0.0000000); //
  178. CreateObject(19454,-1339.3400000,-2380.1800000,3260.0100000,0.0000000,90.0000000,0.0000000); //
  179. CreateObject(19454,-1339.6000000,-2435.4900000,3259.9900000,0.0000000,90.0000000,0.0000000); //
  180. CreateObject(19454,-1355.3700000,-2435.5100000,3259.9900000,0.0000000,90.0000000,0.0000000); //
  181. CreateObject(19454,-1342.6600000,-2432.4100000,3260.0200000,0.0000000,90.0000000,90.0000000); //
  182. CreateObject(19454,-1352.2700000,-2432.4100000,3260.0200000,0.0000000,90.0000000,90.0000000); //
  183. CreateObject(19449,-1347.7400000,-2435.6900000,3260.6300000,0.0000000,-70.0000000,90.0000000); //
  184. CreateObject(19449,-1347.1400000,-2379.8900000,3260.6300000,0.0000000,70.0000000,90.0000000); //
  185. CreateObject(19454,-1352.3700000,-2383.2100000,3260.0200000,0.0000000,90.0000000,90.0000000); //
  186. CreateObject(19454,-1342.8000000,-2383.2200000,3260.0200000,0.0000000,90.0000000,90.0000000); //
  187. CreateObject(19355,-1347.4500000,-2374.3800000,3274.6400000,0.0000000,90.0000000,90.0000000); //
  188. CreateObject(19355,-1347.4500000,-2377.8600000,3274.6400000,0.0000000,90.0000000,-90.0000000); //
  189. CreateObject(19428,-1357.1600000,-2429.8000000,3260.5800000,0.0000000,70.0000000,121.5400000); //
  190. CreateObject(19428,-1337.5500000,-2385.9900000,3260.8300000,0.0000000,70.0000000,-60.9200000); //
  191. CreateObject(19454,-1344.4400000,-2407.6800000,3253.1600000,0.0000000,90.0000000,90.0000000); //
  192. CreateObject(19377,-1330.5600000,-2407.6800000,3262.0600000,0.0000000,90.0000000,0.0000000); //
  193. CreateObject(19377,-1363.9700000,-2408.3100000,3262.0600000,0.0000000,90.0000000,0.0000000); //
  194. CreateObject(19355,-1347.4400000,-2398.6800000,3250.8300000,0.0000000,60.0000000,-90.0000000); //
  195. CreateObject(19355,-1347.4400000,-2416.9000000,3251.0100000,0.0000000,60.0000000,90.0000000); //
  196. CreateObject(19429,-1355.4500000,-2384.9000000,3260.8900000,90.0000000,0.0000000,90.0000000); //
  197. CreateObject(19429,-1357.1100000,-2383.2400000,3260.8900000,90.0000000,0.0000000,0.0000000); //
  198. CreateObject(19429,-1337.9300000,-2432.3900000,3260.8900000,90.0000000,0.0000000,0.0000000); //
  199. CreateObject(19429,-1339.6200000,-2430.7100000,3260.8900000,90.0000000,0.0000000,90.0000000); //
  200. CreateObject(19425,-1337.9800000,-2435.7500000,3260.2700000,90.0000000,0.0000000,90.0000000); //
  201. CreateObject(19425,-1337.9800000,-2438.5900000,3260.2700000,90.0000000,0.0000000,90.0000000); //
  202. CreateObject(19425,-1339.6000000,-2440.2100000,3260.2700000,90.0000000,0.0000000,0.0000000); //
  203. CreateObject(19425,-1341.2700000,-2438.5700000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
  204. CreateObject(19425,-1341.2600000,-2435.7500000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
  205. CreateObject(19425,-1342.9300000,-2434.1000000,3260.2700000,90.0000000,0.0000000,0.0000000); //
  206. CreateObject(19425,-1352.0600000,-2434.1000000,3260.2700000,90.0000000,0.0000000,0.0000000); //
  207. CreateObject(19425,-1353.7100000,-2435.7900000,3260.2700000,90.0000000,0.0000000,90.0000000); //
  208. CreateObject(19425,-1353.7300000,-2438.6700000,3260.2700000,90.0000000,0.0000000,90.0000000); //
  209. CreateObject(19425,-1355.4200000,-2440.2500000,3260.2700000,90.0000000,0.0000000,0.0000000); //
  210. CreateObject(19425,-1357.0400000,-2438.6300000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
  211. CreateObject(19425,-1357.0300000,-2435.3300000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
  212. CreateObject(19425,-1357.0500000,-2433.3400000,3260.2700000,90.0000000,0.0000000,-90.0000000); //
  213. CreateObject(19425,-1349.2100000,-2430.7500000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
  214. CreateObject(19425,-1349.2000000,-2427.5100000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
  215. CreateObject(19425,-1349.2200000,-2424.5900000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
  216. CreateObject(19425,-1345.9400000,-2424.4700000,3257.1900000,90.0000000,0.0000000,90.0000000); //
  217. CreateObject(19425,-1345.9100000,-2427.6100000,3257.1900000,90.0000000,0.0000000,90.0000000); //
  218. CreateObject(19425,-1345.8900000,-2430.8300000,3257.1900000,90.0000000,0.0000000,90.0000000); //
  219. CreateObject(19425,-1347.5900000,-2432.3600000,3257.1900000,90.0000000,0.0000000,0.0000000); //
  220. CreateObject(19425,-1337.9400000,-2440.6500000,3264.0700000,85.0000000,90.0000000,0.0000000); //
  221. CreateObject(19425,-1339.5300000,-2448.5000000,3264.6800000,90.0000000,0.0000000,0.0000000); //
  222. CreateObject(19425,-1342.9700000,-2447.6600000,3264.4700000,90.0000000,0.0000000,0.0000000); //
  223. CreateObject(19425,-1346.2300000,-2447.6600000,3264.4700000,90.0000000,0.0000000,0.0000000); //
  224. CreateObject(19425,-1349.4200000,-2447.6600000,3264.4700000,90.0000000,0.0000000,0.0000000); //
  225. CreateObject(19425,-1351.9800000,-2447.6500000,3264.4700000,90.0000000,0.0000000,0.0000000); //
  226. CreateObject(19425,-1355.4500000,-2448.3000000,3264.7600000,90.0000000,0.0000000,0.0000000); //
  227. CreateObject(19425,-1357.0200000,-2440.4300000,3264.0600000,85.0000000,-90.0000000,0.0000000); //
  228. CreateObject(19425,-1345.9300000,-2391.8600000,3257.1900000,90.0000000,0.0000000,90.0000000); //
  229. CreateObject(19425,-1345.9100000,-2388.5900000,3257.1900000,90.0000000,0.0000000,90.0000000); //
  230. CreateObject(19425,-1345.9200000,-2385.5200000,3257.1900000,90.0000000,0.0000000,90.0000000); //
  231. CreateObject(19425,-1347.6300000,-2383.9400000,3257.1900000,90.0000000,0.0000000,180.0000000); //
  232. CreateObject(19425,-1349.2100000,-2385.5400000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
  233. CreateObject(19425,-1349.2200000,-2388.8400000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
  234. CreateObject(19425,-1349.2200000,-2391.8000000,3257.1900000,90.0000000,0.0000000,-90.0000000); //
  235. CreateObject(19425,-1337.6200000,-2376.9700000,3260.3600000,90.0000000,0.0000000,90.0000000); //
  236. CreateObject(19425,-1337.6100000,-2380.2400000,3260.3600000,90.0000000,0.0000000,90.0000000); //
  237. CreateObject(19425,-1337.6200000,-2382.4700000,3260.3600000,90.0000000,0.0000000,90.0000000); //
  238. CreateObject(19425,-1353.7000000,-2379.7600000,3260.3300000,90.0000000,0.0000000,90.0000000); //
  239. CreateObject(19425,-1353.6900000,-2377.0000000,3260.3300000,90.0000000,0.0000000,90.0000000); //
  240. CreateObject(19425,-1339.5100000,-2367.0400000,3264.7800000,90.0000000,0.0000000,180.0000000); //
  241. CreateObject(19425,-1342.9300000,-2367.4900000,3264.5700000,90.0000000,0.0000000,180.0000000); //
  242. CreateObject(19425,-1346.1900000,-2367.4800000,3264.5700000,90.0000000,0.0000000,180.0000000); //
  243. CreateObject(19425,-1349.4600000,-2367.5000000,3264.5700000,90.0000000,0.0000000,180.0000000); //
  244. CreateObject(19425,-1351.9200000,-2367.5000000,3264.5700000,90.0000000,0.0000000,180.0000000); //
  245. CreateObject(19425,-1355.3900000,-2366.8800000,3264.7300000,90.0000000,0.0000000,180.0000000); //
  246. CreateObject(19425,-1357.0900000,-2379.8800000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
  247. CreateObject(19425,-1357.0900000,-2376.9400000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
  248. CreateObject(19425,-1355.4200000,-2375.4000000,3260.3100000,90.0000000,0.0000000,180.0000000); //
  249. CreateObject(19425,-1352.0300000,-2381.4800000,3260.3100000,90.0000000,0.0000000,180.0000000); //
  250. CreateObject(19425,-1342.7200000,-2381.5000000,3260.3100000,90.0000000,0.0000000,180.0000000); //
  251. CreateObject(19425,-1341.0700000,-2379.7800000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
  252. CreateObject(19425,-1341.0600000,-2377.0400000,3260.3100000,90.0000000,0.0000000,-90.0000000); //
  253. CreateObject(19425,-1339.3600000,-2375.5100000,3260.3100000,90.0000000,0.0000000,178.8000000); //
  254. CreateObject(19425,-1357.0300000,-2443.6300000,3264.3500000,85.0000000,-90.0000000,0.0000000); //
  255. CreateObject(19425,-1357.0300000,-2446.8600000,3264.6300000,85.0000000,-90.0000000,0.0000000); //
  256. CreateObject(19425,-1337.8700000,-2443.8800000,3264.3300000,85.0000000,90.0000000,0.0000000); //
  257. CreateObject(19425,-1337.8700000,-2447.0800000,3264.6100000,85.0000000,90.0000000,0.0000000); //
  258. CreateObject(19425,-1337.9400000,-2368.6400000,3264.6500000,95.0000000,90.0000000,0.0000000); //
  259. CreateObject(19425,-1337.9600000,-2371.9100000,3264.3700000,95.0000000,90.0000000,0.0000000); //
  260. CreateObject(19425,-1337.9400000,-2375.0300000,3264.0900000,95.0000000,90.0000000,0.0000000); //
  261. CreateObject(19425,-1357.0800000,-2374.8700000,3264.0600000,95.0000000,-90.0000000,0.0000000); //
  262. CreateObject(19425,-1357.0900000,-2371.6700000,3264.3200000,95.0000000,-90.0000000,0.0000000); //
  263. CreateObject(19425,-1357.1000000,-2368.3900000,3264.6000000,95.0000000,-90.0000000,0.0000000); //
  264. CreateObject(18762,-1343.4700000,-2375.4500000,3259.5300000,0.0000000,90.0000000,-10.0000000); //
  265. CreateObject(18762,-1351.4100000,-2375.4300000,3259.5300000,0.0000000,90.0000000,10.0000000); //
  266. CreateObject(18762,-1347.5100000,-2375.0200000,3259.5300000,0.0000000,90.0000000,0.0000000); //
  267. CreateObject(18762,-1343.6600000,-2440.2300000,3259.5300000,0.0000000,90.0000000,10.0000000); //
  268. CreateObject(18762,-1351.1900000,-2440.2300000,3259.5300000,0.0000000,90.0000000,-10.0000000); //
  269. CreateObject(18762,-1347.3100000,-2440.6600000,3259.5300000,0.0000000,90.0000000,0.0000000); //
  270.  
  271. //äæàìïåðû (ïîäë¸òèêè)
  272. quake[0]=CreatePickup(19134, 23, -1339.5800, -2437.6699, 3261.2910, -1); //øàïêà ëåâàÿ ñèíÿÿ
  273. quake[1]=CreatePickup(19134, 23, -1355.4900, -2437.2600, 3261.1743, -1); //øàïêà ïðàâàÿ ñèíÿÿ
  274. quake[2]=CreatePickup(19134, 23, -1347.4800, -2429.4900, 3257.6589, -1); //øàïêà ñðåäíÿÿ ñèíÿÿ
  275. quake[3]=CreatePickup(19134, 23, -1355.4301, -2377.6499, 3261.3823, -1); //øàïêà ëåâàÿ êðàñíàÿ
  276. quake[4]=CreatePickup(19134, 23, -1339.2700, -2378.2500, 3261.3823, -1); //øàïêà ïðàâàÿ êðàñíàÿ
  277. quake[5]=CreatePickup(19134, 23, -1347.6600, -2385.7000, 3258.0281, -1); //øàïêà ñðåäíÿÿ êðàñíàÿ
  278. quake[6]=CreatePickup(19134, 23, -1347.4956, -2396.2822, 3258.2222, -1); //ñòåíà êðàñíûé ïîë¸ò
  279. quake[7]=CreatePickup(19134, 23, -1336.7849, -2386.9185, 3262.1074, -1); //ñòåíà êðàñíûé òåëåïîðòåð
  280. quake[8]=CreatePickup(19135, 23, -1347.4399, -2398.6799, 3252.7383, -1); //ñòåíà êðàñíûé äî ñòåíû ñâåðõó
  281. quake[9]=CreatePickup(19134, 23, -1347.6995, -2420.1357, 3258.2222, -1); //ñòåíà ñèíèé ïîë¸ò
  282. quake[10]=CreatePickup(19134, 23, -1357.9586, -2428.7749, 3262.0786, -1); //ñòåíà ñèíèé òåëåïîðòåð
  283. quake[11]=CreatePickup(19135, 23, -1347.4399, -2416.8999, 3252.2798, -1); //ñòåíà ñèíèé äî ñòåíû ñâåðõó
  284. quake[12]=CreatePickup(19198, 23, -1348.5658, -2403.1853, 3255.2800, -1); //ñòåíà ñíàïà ñèíèé ïëàòôîðìà
  285. quake[13]=CreatePickup(19198, 23, -1344.6415, -2403.1021, 3252.8857, -1); //ñòåíà öåíòð ñèíèé ïëàòôîðìà
  286. quake[14]=CreatePickup(19197, 23, -1348.4739, -2412.1685, 3255.2600, -1); //ñòåíà ñíàïà êðàñíûé ïëàòôîðìà
  287. quake[15]=CreatePickup(19197, 23, -1352.7035, -2411.8757, 3252.8857, -1); //ñòåíà öåíòð êðàñíûé ïëàòôîðìà
  288.  
  289. //Ïàòðîíû
  290. ammo[0]=CreatePickup(354, 2, -1338.7708, -2431.1736, 3260.8909, -1);
  291. ammo[1]=CreatePickup(354, 2, -1353.1135, -2431.3464, 3260.8909, -1);
  292. ammo[2]=CreatePickup(354, 2, -1355.9674, -2384.3723, 3260.8909, -1);
  293. ammo[3]=CreatePickup(354, 2, -1339.6129, -2384.1729, 3260.8909, -1);
  294. ammo[4]=CreatePickup(354, 2, -1333.9473, -2407.4844, 3263.1899, -1);
  295. ammo[5]=CreatePickup(354, 2, -1359.8297, -2408.5229, 3263.1899, -1);
  296. ammo[6]=CreatePickup(354, 2, -1355.9744, -2407.8711, 3254.1765, -1);
  297. ammo[7]=CreatePickup(354, 2, -1340.4747, -2407.7576, 3254.1765, -1);
  298.  
  299. //Ôëàãè
  300. rflag = CreatePickup(19124, 1, -1347.7892, -2372.6304, 3264.3279, -1);
  301. bflag = CreatePickup(19122, 1, -1347.5222, -2442.9741, 3264.3279, -1);
  302.  
  303. //Ìåãà çäîðîâüå
  304. megahp = CreatePickup(1240, 2, -1348.3285, -2407.6160, 3254.7954, -1);
  305.  
  306. //Ïðîñòîå çäîðîâüå
  307. hp1[0] = CreatePickup(1240, 2, -1356.0620, -2407.9834, 3253.7954, -1);
  308. hp1[1] = CreatePickup(1240, 2, -1340.6648, -2407.8909, 3253.7954, -1);
  309. hp1[2] = CreatePickup(1240, 2, -1356.2842, -2368.4436, 3265.4065, -1);
  310. hp1[3] = CreatePickup(1240, 2, -1338.3054, -2446.2332, 3265.4065, -1);
  311. hp1[4] = CreatePickup(1240, 2, -1334.4871, -2403.6108, 3263.1836, -1);
  312. hp1[5] = CreatePickup(1240, 2, -1359.5800, -2412.2390, 3263.1836, -1);
  313.  
  314. //Ñíàïû
  315. snipe[0] = CreatePickup(358, 2, -1347.3488, -2438.3723, 3275.3328, -1);
  316. snipe[1] = CreatePickup(358, 2, -1347.8306, -2378.9836, 3275.3328, -1);
  317.  
  318. //ÁÌÃ
  319. bfg12 = CreatePickup(360, 2, -1340.4316, -2407.9563, 3268.9260, -1);
  320.  
  321. //Ðîêåòíèöû
  322. rocketla[0] = CreatePickup(359, 2, -1334.2659, -2407.3218, 3262.9785, -1);
  323. rocketla[1] = CreatePickup(359, 2, -1359.7894, -2408.4421, 3262.9785, -1);
  324. rocketla[2] = CreatePickup(359, 2, -1348.3588, -2406.9258, 3264.1555, -1);
  325.  
  326. //Øîòãàíû
  327. shot[0] = CreatePickup(349, 2, -1356.4408, -2447.2161, 3264.8779, -1);
  328. shot[1] = CreatePickup(349, 2, -1339.0762, -2367.7883, 3264.8779, -1);
  329.  
  330. ScoreOnFlag[0]=0;
  331. ScoreOnFlag[1]=0;
  332. ipiq=0;
  333.  
  334. return 1;
  335. }
  336. public OnPlayerSpawn(playerid)
  337. {
  338. /* Êîììàíäà îòêëþ÷åíèÿ URL çâóêîâ â GTA CR
  339. OnPlayerCommandText(playerid,"/àóäèî÷");
  340. */
  341. OnPlayerCommandText(playerid,"/audiomsg");
  342. ipiq=0;
  343. return 1;
  344. }
  345. public OnPlayerConnect(playerid)
  346. {
  347. //Ìåíþ èãðû
  348. Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 361.500000, -14.250000, "usebox");
  349. PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 3.712492);
  350. PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 637.500000, 0.000000);
  351. PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
  352. PlayerTextDrawColor(playerid, Textdraw5[playerid], 50);
  353. PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true);
  354. PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 70);
  355. PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
  356. PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
  357. PlayerTextDrawBackgroundColor(playerid, Textdraw5[playerid], 50);
  358. PlayerTextDrawFont(playerid, Textdraw5[playerid], 0);
  359.  
  360. Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 367.000000, 0.875000, "play");
  361. PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.449999, 1.600000);
  362. PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
  363. PlayerTextDrawColor(playerid, Textdraw6[playerid], -1);
  364. PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
  365. PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], -1);
  366. PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
  367. PlayerTextDrawFont(playerid, Textdraw6[playerid], 1);
  368. PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);
  369. PlayerTextDrawSetSelectable(playerid, Textdraw6[playerid], true);
  370.  
  371. Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 417.000000, 1.312500, "team");
  372. PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.449999, 1.600000);
  373. PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
  374. PlayerTextDrawColor(playerid, Textdraw7[playerid], -1);
  375. PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
  376. PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 1);
  377. PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51);
  378. PlayerTextDrawFont(playerid, Textdraw7[playerid], 1);
  379. PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);
  380. PlayerTextDrawSetSelectable(playerid, Textdraw7[playerid], true);
  381.  
  382. Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 474.000000, 0.875000, "vote");
  383. PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.449999, 1.600000);
  384. PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1);
  385. PlayerTextDrawColor(playerid, Textdraw8[playerid], -1);
  386. PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0);
  387. PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1);
  388. PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51);
  389. PlayerTextDrawFont(playerid, Textdraw8[playerid], 1);
  390. PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1);
  391. PlayerTextDrawSetSelectable(playerid, Textdraw8[playerid], true);
  392.  
  393. Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 531.500000, 0.875000, "leave");
  394. PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.449999, 1.600000);
  395. PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
  396. PlayerTextDrawColor(playerid, Textdraw9[playerid], -1);
  397. PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
  398. PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 1);
  399. PlayerTextDrawBackgroundColor(playerid, Textdraw9[playerid], 51);
  400. PlayerTextDrawFont(playerid, Textdraw9[playerid], 1);
  401. PlayerTextDrawSetProportional(playerid, Textdraw9[playerid], 1);
  402. PlayerTextDrawSetSelectable(playerid, Textdraw9[playerid], true);
  403.  
  404. Textdraw10[playerid] = CreatePlayerTextDraw(playerid, 593.000000, 1.312500, "quit");
  405. PlayerTextDrawLetterSize(playerid, Textdraw10[playerid], 0.449999, 1.600000);
  406. PlayerTextDrawAlignment(playerid, Textdraw10[playerid], 1);
  407. PlayerTextDrawColor(playerid, Textdraw10[playerid], -1);
  408. PlayerTextDrawSetShadow(playerid, Textdraw10[playerid], 0);
  409. PlayerTextDrawSetOutline(playerid, Textdraw10[playerid], 1);
  410. PlayerTextDrawBackgroundColor(playerid, Textdraw10[playerid], 51);
  411. PlayerTextDrawFont(playerid, Textdraw10[playerid], 1);
  412. PlayerTextDrawSetProportional(playerid, Textdraw10[playerid], 1);
  413. PlayerTextDrawSetSelectable(playerid, Textdraw10[playerid], true);
  414.  
  415. Textdraw11[playerid] = CreatePlayerTextDraw(playerid, 281.000000, -58.187500, "LD_SPAC:white");
  416. PlayerTextDrawLetterSize(playerid, Textdraw11[playerid], 0.000000, 0.000000);
  417. PlayerTextDrawTextSize(playerid, Textdraw11[playerid], 79.000000, 100.187500);
  418. PlayerTextDrawAlignment(playerid, Textdraw11[playerid], 1);
  419. PlayerTextDrawColor(playerid, Textdraw11[playerid], -2147450625);
  420. PlayerTextDrawSetShadow(playerid, Textdraw11[playerid], 0);
  421. PlayerTextDrawSetOutline(playerid, Textdraw11[playerid], 0);
  422. PlayerTextDrawFont(playerid, Textdraw11[playerid], 4);
  423.  
  424. Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 311.500000, 5.875000, "usebox");
  425. PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.000000, 1.833333);
  426. PlayerTextDrawTextSize(playerid, Textdraw12[playerid], 303.500000, 0.000000);
  427. PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
  428. PlayerTextDrawColor(playerid, Textdraw12[playerid], 0);
  429. PlayerTextDrawUseBox(playerid, Textdraw12[playerid], true);
  430. PlayerTextDrawBoxColor(playerid, Textdraw12[playerid], -16776961);
  431. PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
  432. PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 317);
  433. PlayerTextDrawFont(playerid, Textdraw12[playerid], 0);
  434.  
  435. Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 297.500000, 25.375000, "Arena");
  436. PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.449999, 1.600000);
  437. PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1);
  438. PlayerTextDrawColor(playerid, Textdraw13[playerid], -1);
  439. PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0);
  440. PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 1);
  441. PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 51);
  442. PlayerTextDrawFont(playerid, Textdraw13[playerid], 1);
  443. PlayerTextDrawSetProportional(playerid, Textdraw13[playerid], 1);
  444.  
  445. Textdraw14[playerid] = CreatePlayerTextDraw(playerid, 324.000000, 14.312500, "usebox");
  446. PlayerTextDrawLetterSize(playerid, Textdraw14[playerid], 0.000000, 1.333333);
  447. PlayerTextDrawTextSize(playerid, Textdraw14[playerid], 316.500000, 0.000000);
  448. PlayerTextDrawAlignment(playerid, Textdraw14[playerid], 1);
  449. PlayerTextDrawColor(playerid, Textdraw14[playerid], -16776961);
  450. PlayerTextDrawUseBox(playerid, Textdraw14[playerid], true);
  451. PlayerTextDrawBoxColor(playerid, Textdraw14[playerid], -16776961);
  452. PlayerTextDrawSetShadow(playerid, Textdraw14[playerid], 0);
  453. PlayerTextDrawSetOutline(playerid, Textdraw14[playerid], 317);
  454. PlayerTextDrawFont(playerid, Textdraw14[playerid], 0);
  455.  
  456. Textdraw15[playerid] = CreatePlayerTextDraw(playerid, 334.500000, 6.125000, "usebox");
  457. PlayerTextDrawLetterSize(playerid, Textdraw15[playerid], 0.000000, 1.833333);
  458. PlayerTextDrawTextSize(playerid, Textdraw15[playerid], 324.500000, 0.000000);
  459. PlayerTextDrawAlignment(playerid, Textdraw15[playerid], 2);
  460. PlayerTextDrawColor(playerid, Textdraw15[playerid], 0);
  461. PlayerTextDrawUseBox(playerid, Textdraw15[playerid], true);
  462. PlayerTextDrawBoxColor(playerid, Textdraw15[playerid], -16776961);
  463. PlayerTextDrawSetShadow(playerid, Textdraw15[playerid], 0);
  464. PlayerTextDrawSetOutline(playerid, Textdraw15[playerid], 317);
  465. PlayerTextDrawFont(playerid, Textdraw10[playerid], 0);
  466.  
  467. Textdraw16[playerid] = CreatePlayerTextDraw(playerid, 283.500000, 22.500000, "usebox");
  468. PlayerTextDrawLetterSize(playerid, Textdraw16[playerid], 0.000000, -3.250000);
  469. PlayerTextDrawTextSize(playerid, Textdraw16[playerid], 222.500000, 0.000000);
  470. PlayerTextDrawAlignment(playerid, Textdraw16[playerid], 1);
  471. PlayerTextDrawColor(playerid, Textdraw16[playerid], 50);
  472. PlayerTextDrawUseBox(playerid, Textdraw16[playerid], true);
  473. PlayerTextDrawBoxColor(playerid, Textdraw16[playerid], 50);
  474. PlayerTextDrawSetShadow(playerid, Textdraw16[playerid], 0);
  475. PlayerTextDrawSetOutline(playerid, Textdraw16[playerid], 0);
  476. PlayerTextDrawFont(playerid, Textdraw16[playerid], 0);
  477.  
  478. Textdraw17[playerid] = CreatePlayerTextDraw(playerid, 229.000000, 2.625000, "q3ctf4");
  479. PlayerTextDrawLetterSize(playerid, Textdraw17[playerid], 0.449999, 1.600000);
  480. PlayerTextDrawAlignment(playerid, Textdraw17[playerid], 1);
  481. PlayerTextDrawColor(playerid, Textdraw17[playerid], -1);
  482. PlayerTextDrawSetShadow(playerid, Textdraw17[playerid], 0);
  483. PlayerTextDrawSetOutline(playerid, Textdraw17[playerid], 1);
  484. PlayerTextDrawBackgroundColor(playerid, Textdraw17[playerid], 51);
  485. PlayerTextDrawFont(playerid, Textdraw17[playerid], 1);
  486. PlayerTextDrawSetProportional(playerid, Textdraw17[playerid], 1);
  487.  
  488. Textdraw18[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 22.500000, "usebox");
  489. PlayerTextDrawLetterSize(playerid, Textdraw18[playerid], 0.000000, 4.601387);
  490. PlayerTextDrawTextSize(playerid, Textdraw18[playerid], 407.500000, 0.000000);
  491. PlayerTextDrawAlignment(playerid, Textdraw18[playerid], 1);
  492. PlayerTextDrawColor(playerid, Textdraw18[playerid], 0);
  493. PlayerTextDrawUseBox(playerid, Textdraw18[playerid], true);
  494. PlayerTextDrawBoxColor(playerid, Textdraw18[playerid], 102);
  495. PlayerTextDrawSetShadow(playerid, Textdraw18[playerid], 0);
  496. PlayerTextDrawSetOutline(playerid, Textdraw18[playerid], 0);
  497. PlayerTextDrawFont(playerid, Textdraw18[playerid], 0);
  498.  
  499. Textdraw19[playerid] = CreatePlayerTextDraw(playerid, 414.000000, 23.187500, "red team");
  500. PlayerTextDrawLetterSize(playerid, Textdraw19[playerid], 0.449999, 1.600000);
  501. PlayerTextDrawAlignment(playerid, Textdraw19[playerid], 1);
  502. PlayerTextDrawColor(playerid, Textdraw19[playerid], -16776961);
  503. PlayerTextDrawSetShadow(playerid, Textdraw19[playerid], 0);
  504. PlayerTextDrawSetOutline(playerid, Textdraw19[playerid], 1);
  505. PlayerTextDrawBackgroundColor(playerid, Textdraw19[playerid], 51);
  506. PlayerTextDrawFont(playerid, Textdraw19[playerid], 1);
  507. PlayerTextDrawSetProportional(playerid, Textdraw19[playerid], 1);
  508. PlayerTextDrawSetSelectable(playerid, Textdraw19[playerid], true);
  509.  
  510. Textdraw20[playerid] = CreatePlayerTextDraw(playerid, 415.000000, 42.875000, "blue team");
  511. PlayerTextDrawLetterSize(playerid, Textdraw20[playerid], 0.449999, 1.600000);
  512. PlayerTextDrawAlignment(playerid, Textdraw20[playerid], 1);
  513. PlayerTextDrawColor(playerid, Textdraw20[playerid], 65535);
  514. PlayerTextDrawSetShadow(playerid, Textdraw20[playerid], 0);
  515. PlayerTextDrawSetOutline(playerid, Textdraw20[playerid], 1);
  516. PlayerTextDrawBackgroundColor(playerid, Textdraw20[playerid], 51);
  517. PlayerTextDrawFont(playerid, Textdraw20[playerid], 1);
  518. PlayerTextDrawSetProportional(playerid, Textdraw20[playerid], 1);
  519. PlayerTextDrawSetSelectable(playerid, Textdraw20[playerid], true);
  520.  
  521. Voted[playerid] = 0;
  522. return 1;
  523. }
  524. public OnPlayerDisconnect(playerid, reason)
  525. {
  526. return 1;
  527. }
  528. public OnPlayerDeath(playerid, killerid, reason)
  529. {
  530. if(gTeam[playerid]==0)
  531. {
  532. DestroyPickup(rflag);
  533. rflag = CreatePickup(19124, 1, -1347.7892, -2372.6304, 3264.3279, -1);
  534. DestroyPickup(rflagup);
  535. DestroyPickup(bflagup);
  536. }
  537. if(gTeam[playerid]==1)
  538. {
  539. DestroyPickup(bflag);
  540. bflag = CreatePickup(19122, 1, -1347.5222, -2442.9741, 3264.3279, -1);
  541. DestroyPickup(rflagup);
  542. DestroyPickup(bflagup);
  543. }
  544. TextDrawHideForPlayer(playerid, Text:Textdraw0);
  545. TextDrawHideForPlayer(playerid, Text:Textdraw1);
  546. TextDrawHideForPlayer(playerid, Text:Textdraw2);
  547. TextDrawHideForPlayer(playerid, Text:Textdraw3);
  548. TextDrawHideForPlayer(playerid, Text:Textdraw4);
  549. PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
  550. PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
  551. PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
  552. PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
  553. PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
  554. PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
  555. PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
  556. PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
  557. PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
  558. PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
  559. PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
  560. PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
  561. PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
  562. PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
  563. PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
  564. PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
  565. CancelSelectTextDraw(playerid);
  566. return 1;
  567. }
  568.  
  569. public OnPlayerCommandText(playerid, cmdtext[])
  570. {
  571. if (strcmp (cmdtext, "/quake", true) == 0)
  572. {
  573. if(ipiq == 1)
  574. {
  575. SendClientMessage(playerid,0x00FF00AA,"You already in the game");
  576. }
  577. else
  578. {
  579. ShowPlayerDialog(playerid, 510, DSL, "Quake 3", "{ff0000}Red team\n{3636ff}Blue team\nClose", "Okay", "");
  580. return 1;
  581. }
  582. return 1;
  583. }
  584. if (strcmp (cmdtext, "/quakemenu", true) == 0)
  585. {
  586. PlayerTextDrawShow(playerid, PlayerText:Textdraw5[playerid]);
  587. PlayerTextDrawShow(playerid, PlayerText:Textdraw6[playerid]);
  588. PlayerTextDrawShow(playerid, PlayerText:Textdraw7[playerid]);
  589. PlayerTextDrawShow(playerid, PlayerText:Textdraw8[playerid]);
  590. PlayerTextDrawShow(playerid, PlayerText:Textdraw9[playerid]);
  591. PlayerTextDrawShow(playerid, PlayerText:Textdraw10[playerid]);
  592. PlayerTextDrawShow(playerid, PlayerText:Textdraw11[playerid]);
  593. PlayerTextDrawShow(playerid, PlayerText:Textdraw12[playerid]);
  594. PlayerTextDrawShow(playerid, PlayerText:Textdraw13[playerid]);
  595. PlayerTextDrawShow(playerid, PlayerText:Textdraw14[playerid]);
  596. PlayerTextDrawShow(playerid, PlayerText:Textdraw15[playerid]);
  597. PlayerTextDrawShow(playerid, PlayerText:Textdraw16[playerid]);
  598. PlayerTextDrawShow(playerid, PlayerText:Textdraw17[playerid]);
  599. SelectTextDraw(playerid, 0xD9D9D9FF);
  600. return 1;
  601. }
  602. if (strcmp (cmdtext, "/exg", true) == 0)
  603. {
  604. SpawnPlayer(playerid);
  605. TextDrawHideForPlayer(playerid, Text:Textdraw0);
  606. TextDrawHideForPlayer(playerid, Text:Textdraw1);
  607. TextDrawHideForPlayer(playerid, Text:Textdraw2);
  608. TextDrawHideForPlayer(playerid, Text:Textdraw3);
  609. TextDrawHideForPlayer(playerid, Text:Textdraw4);
  610. ipiq=0;
  611. return 1;
  612. }
  613. dcmd(votekick,8,cmdtext);
  614. dcmd(vote,4,cmdtext);
  615. dcmd(stopvote,8,cmdtext);
  616. return 0;
  617. }
  618. dcmd_stopvote(playerid,params[])
  619. {
  620. #pragma unused params
  621. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"SERVER: Unknown Command!");
  622. TextDrawDestroy(TCountDown);
  623. TextDrawDestroy(VoteKick);
  624. KillTimer(Timer);
  625. KillTimer(thingy);
  626. SendClientMessageToAll(0xFF0000FF,"Votekick stopped.");
  627. return 1;
  628. }
  629. dcmd_votekick(playerid,params[])
  630. {
  631. new id,n[24],on[24],str2[128],string[3];
  632. new tmp[256], tmp2[256], Index,str[128];
  633. VPlayers = GetPlayersOnServer()/2+1;
  634. if(GetPlayersOnServer() <= 2)
  635. return SendClientMessage(playerid,GREY,"To start a vote to be on the server had 3 people.");
  636. tmp = strtok(params,Index), tmp2 = strtok(params,Index),id = strval(tmp);
  637. if(IsPlayerAdmin(id)) return SendClientMessage(playerid,0xFF0000FF,"Bad, very bad!");
  638. if(VoteActive == 1) return SendClientMessage(playerid,0xFF0000FF,"One vote is already in progress");
  639. IDofotherplayer = id;
  640. GetPlayerName(playerid,n,24),GetPlayerName(id,on,24);
  641. Voted[playerid] = 1;
  642. KickName = on;
  643. PlayerName = n;
  644. if(!strlen(params)) return SendClientMessage(playerid,GREY,"Use: /votekick <ID> <Reason>");
  645. if(!IsPlayerConnected(id))return SendClientMessage(playerid,GREY,"Invalid ID.");
  646. Votes = 1;
  647. VoteActive = 1;
  648. format(str2,sizeof(str2),"~r~Votekick on ~w~%s. ~r~%d/%d",PlayerName,Votes,VPlayers);
  649. VoteKick = TextDrawCreate(50.0,300.0,str2);
  650. TextDrawLetterSize(VoteKick,0.5,2.5);
  651. TextDrawShowForAll(VoteKick);
  652. thingy = SetTimer("VoteFail",21000,false);
  653. Timer = SetTimerEx("CountDownTimer",1000,true,"i",playerid);
  654. format(str,sizeof(str),"%s start votekick %s. Reason: %s",n,on,params[2]);
  655. SendClientMessageToAll(0xFF0000FF,str);
  656. format(string,sizeof(string),"%d",Count);
  657. TCountDown = TextDrawCreate(300.0,300.0,string);
  658. Count = 21;
  659. return 1;
  660. }
  661. dcmd_vote(playerid,params[])
  662. {
  663. #pragma unused params
  664. new str[128],name[24],str2[128];
  665. GetPlayerName(playerid,name,24);
  666. if(VoteActive == 0) return SendClientMessage(playerid,GREY,"None activ votekicks.");
  667. if(Voted[playerid] == 1) return SendClientMessage(playerid,LIGHTBLUE,"You already voted!");
  668. KillTimer(thingy);
  669. thingy = SetTimer("VoteFail",21000,false);
  670. Votes++;
  671. Voted[playerid] = 1;
  672. format(str,sizeof(str),"%s voted agree. %d/%d",name,Votes,VPlayers);
  673. SendClientMessageToAll(0xFF0000FF,str);
  674. TextDrawDestroy(VoteKick);
  675. format(str2,sizeof(str),"~r~Votekick on ~w~%s. ~r~%d/%d",KickName,Votes,VPlayers);
  676. TextDrawCreate(50.0,300,str2);
  677. TextDrawLetterSize(VoteKick,0.5,2.5);
  678. TextDrawShowForAll(VoteKick);
  679. KillTimer(Timer);
  680. Timer = SetTimer("CountDownTimer",1000,true);
  681. Count = 21;
  682. if(Votes == VPlayers)
  683. {
  684. format(str,sizeof(str),"%s kicked. %d/%d votes.",KickName,Votes,Votes);
  685. SendClientMessageToAll(0xFF0000FF,str);
  686. TextDrawDestroy(VoteKick);
  687. KillTimer(thingy);
  688. VoteActive = 0;
  689. Kick(IDofotherplayer);
  690. return 1;
  691. }
  692. return 0;
  693. }
  694.  
  695. public OnPlayerPickUpPickup(playerid, pickupid)
  696. {
  697. if(pickupid == quake[0])
  698. {
  699. SetPlayerVelocity(playerid,0,-0.04,3.0);//RLeft
  700. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  701. return 1;
  702. }
  703. if(pickupid == quake[1])
  704. {
  705. SetPlayerVelocity(playerid,0,-0.04,3.0);//RRight
  706. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  707. return 1;
  708. }
  709. if(pickupid == quake[2])
  710. {
  711. SetPlayerVelocity(playerid,0,-0.04,3.0);//RCenter
  712. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  713. return 1;
  714. }
  715. if(pickupid == quake[3])
  716. {
  717. SetPlayerVelocity(playerid,0,0.04,3.0);//BLeft
  718. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  719. return 1;
  720. }
  721. if(pickupid == quake[4])
  722. {
  723. SetPlayerVelocity(playerid,0,0.04,3.0);//BRight
  724. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  725. return 1;
  726. }
  727. if(pickupid == quake[5])
  728. {
  729. SetPlayerVelocity(playerid,0,0.04,3.0);//BCenter
  730. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  731. return 1;
  732. }
  733. if(pickupid == quake[6])
  734. {
  735. SetPlayerVelocity(playerid ,0 ,-0.5 ,3.0);//SRJ
  736. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  737. return 1;
  738. }
  739. if(pickupid == quake[7])
  740. {
  741. SetPlayerVelocity(playerid ,0.14,-0.4,2.66);//SRT
  742. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  743. return 1;
  744. }
  745. if(pickupid == quake[8])
  746. {
  747. SetPlayerPos(playerid, -1348.2943, -2408.1238, 3274.5251);//SJPR
  748. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
  749. return 1;
  750. }
  751. if(pickupid == quake[9])
  752. {
  753. SetPlayerVelocity(playerid ,0 ,0.5 ,3.0);//SBJ
  754. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  755. return 1;
  756. }
  757. if(pickupid == quake[10])
  758. {
  759. SetPlayerVelocity(playerid ,-0.14,0.4,2.66);//SBT
  760. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/jump.mp3");
  761. return 1;
  762. }
  763. if(pickupid == quake[11])
  764. {
  765. SetPlayerPos(playerid, -1348.2943, -2408.1238, 3274.5251);//SJPB
  766. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
  767. return 1;
  768. }
  769.  
  770. if(pickupid == quake[12])
  771. {
  772. SetPlayerPos(playerid, -1347.4139, -2375.4727, 3276.5078);//BSSP
  773. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
  774. return 1;
  775. }
  776. if(pickupid == quake[13])
  777. {
  778. SetPlayerPos(playerid, -1344.7178, -2380.4395, 3262.4399);//BSCP
  779. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
  780. return 1;
  781. }
  782. if(pickupid == quake[14])
  783. {
  784. SetPlayerPos(playerid, -1347.5242, -2442.8899, 3276.6033);//RSSP
  785. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
  786. return 1;
  787. }
  788. if(pickupid == quake[15])
  789. {
  790. SetPlayerPos(playerid, -1346.0688, -2435.1807, 3262.4399);//RSCP
  791. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/tele.mp3");
  792. return 1;
  793. }
  794.  
  795. if(ammo[0]<=pickupid<=ammo[7])
  796. {
  797. SetPlayerAmmo(playerid,25,20);
  798. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/ammo.mp3");
  799. return 1;
  800. }
  801. if (pickupid == megahp)
  802. {
  803. SetPlayerHealth(playerid, 300);
  804. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/megahealth_quake3.mp3");
  805. return 1;
  806. }
  807. if (pickupid == bfg12)
  808. {
  809. GivePlayerWeapon(playerid, 36, 20);
  810. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
  811. return 1;
  812. }
  813. if(hp1[0]<=pickupid<=hp1[5])
  814. {
  815. SetPlayerHealth(playerid,100);
  816. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/health_quake3.mp3");
  817. return 1;
  818. }
  819. if(snipe[0]<=pickupid<=snipe[1])
  820. {
  821. GivePlayerWeapon(playerid, 34, 40);
  822. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
  823. return 1;
  824. }
  825. if(rocketla[0]<=pickupid<=rocketla[2])
  826. {
  827. GivePlayerWeapon(playerid, 35, 20);
  828. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
  829. return 1;
  830. }
  831. if(shot[0]<=pickupid<=shot[1])
  832. {
  833. GivePlayerWeapon(playerid, 25, 50);
  834. PlayAudioStreamForPlayer(playerid,"http://nmmusic.3dn.ru/upped.mp3");
  835. return 1;
  836. }
  837. if(pickupid == rflag)
  838. {
  839. if(gTeam[playerid]==1)
  840. {
  841. SetPlayerAttachedObject( playerid, 0, 19124, 15, 0.014013, 0.077415, -0.424313, 354.422760, 358.421966, 92.942932, 1.000000, 1.000000, 1.000000 );
  842. SendClientMessage(playerid,0x0000FFAA,"You have to flag");
  843. SendClientMessage(playerid,0x0000FFAA,"Carry them faster to their base");
  844. PlayAudioStreamForAll("http://nmmusic.3dn.ru/team.mp3");
  845. bflagup = CreatePickup(19122, 1, -1347.5222, -2442.9741, 3264.3279, -1);
  846. for (new i = 0x0, m = GetMaxPlayers(); i != m; i++)
  847. if (IsPlayerConnected(i) && gTeam[i] != gTeam[playerid])
  848. PlayAudioStreamForPlayer(i,"http://nmmusic.3dn.ru/enemy.mp3");
  849. return 1;
  850. }
  851. }
  852. if(pickupid == bflag)
  853. {
  854. if(gTeam[playerid]==0)
  855. {
  856. SetPlayerAttachedObject( playerid, 0, 19122, 15, 0.014013, 0.077415, -0.424313, 354.422760, 358.421966, 92.942932, 1.000000, 1.000000, 1.000000 );
  857. SendClientMessage(playerid,0xFF0000AA,"You have to flag");
  858. SendClientMessage(playerid,0xFF0000AA,"Carry them faster to their base");
  859. PlayAudioStreamForAll("http://nmmusic.3dn.ru/team.mp3");
  860. rflagup = CreatePickup(19124, 1, -1347.7892, -2372.6304, 3264.3279, -1);
  861. for (new i = 0x0, m = GetMaxPlayers(); i != m; i++)
  862. if (IsPlayerConnected(i) && gTeam[i] != gTeam[playerid])
  863. PlayAudioStreamForPlayer(i,"http://nmmusic.3dn.ru/enemy.mp3");
  864. return 1;
  865. }
  866. }
  867. if(pickupid == bflagup)
  868. {
  869. RemovePlayerAttachedObject(playerid,0);
  870. SendClientMessageToAll(0x0000FFAA,"Blue leads");
  871. PlayAudioStreamForAll("http://nmmusic.3dn.ru/lblue.mp3");
  872. ScoreOnFlag[1]+=1;
  873. DestroyPickup(bflagup);
  874. ScoreOnFlag[0]+=1;
  875. new blue[256];
  876. format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
  877. TextDrawSetString(Textdraw4,blue);
  878. if(ScoreOnFlag[1] == 5)
  879. if(gTeam[playerid] == 0 || gTeam[playerid]==1)
  880. {
  881. TextDrawHideForPlayer(playerid, Text:Textdraw0);
  882. TextDrawHideForPlayer(playerid, Text:Textdraw1);
  883. TextDrawHideForPlayer(playerid, Text:Textdraw2);
  884. TextDrawHideForPlayer(playerid, Text:Textdraw3);
  885. TextDrawHideForPlayer(playerid, Text:Textdraw4);
  886. SpawnPlayer(playerid);
  887. ipiq=0;
  888. ScoreOnFlag[0]=0;
  889. ScoreOnFlag[1]=0;
  890. }
  891. return 1;
  892. }
  893. if(pickupid == rflagup)
  894. {
  895. RemovePlayerAttachedObject(playerid,0);
  896. SendClientMessageToAll(0xFF0000AA,"Red leads");
  897. PlayAudioStreamForAll("http://nmmusic.3dn.ru/lred.mp3");
  898. ScoreOnFlag[0]+=1;
  899. DestroyPickup(rflagup);
  900. ScoreOnFlag[1]+=1;
  901. new red[256];
  902. format(red, sizeof(red), "%d", ScoreOnFlag[1]);
  903. TextDrawSetString(Textdraw3,red);
  904. if(ScoreOnFlag[0] == 5)
  905. {
  906. if(gTeam[playerid] == 0 || gTeam[playerid]==1)
  907. {
  908. TextDrawHideForPlayer(playerid, Text:Textdraw0);
  909. TextDrawHideForPlayer(playerid, Text:Textdraw1);
  910. TextDrawHideForPlayer(playerid, Text:Textdraw2);
  911. TextDrawHideForPlayer(playerid, Text:Textdraw3);
  912. TextDrawHideForPlayer(playerid, Text:Textdraw4);
  913. SpawnPlayer(playerid);
  914. ipiq=0;
  915. ScoreOnFlag[0]=0;
  916. ScoreOnFlag[1]=0;
  917. }
  918. return 1;
  919. }
  920. return 1;
  921. }
  922. return 1;
  923. }
  924. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  925. {
  926. if(dialogid == 510)
  927. {
  928. if(listitem == 0)
  929. {
  930. if(ScoreOnFlag[0] == 1||2||3||4||5)
  931. {
  932. SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
  933. }
  934. if(ScoreOnFlag[1] == 1||2||3||4||5)
  935. {
  936. SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
  937. }
  938. if(ScoreOnFlag[0] == 0 || ScoreOnFlag[1] == 0)
  939. {
  940. SetPlayerPos(playerid, -1347.6212, -2369.3120, 3266.3513);
  941. ResetPlayerWeapons(playerid);
  942. GivePlayerWeapon(playerid, 9, 1);
  943. GivePlayerWeapon(playerid, 29, 50);
  944. new PN[500]; // Äëÿ àäìèíêè
  945. GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
  946. new strboy[256];
  947. format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
  948. SendClientMessageToAll(0xFF5C5CFF, strboy);
  949. SendClientMessage(playerid, 0xFF5C5CFF, "Welcome to Quake 3");
  950. SendClientMessage(playerid, 0xFF5C5CFF, "You select a red team");
  951. SendClientMessage(playerid, 0xFF5C5CFF, "Your objective is Capture blue flag");
  952. SendClientMessage(playerid, 0xFF5C5CFF, "Leave - /exg");
  953. ipiq=1;
  954. gTeam[playerid] = 0;
  955. SetPlayerColor(playerid, 0xFF0000AA);
  956. SetPlayerTime(playerid,0,30);
  957. new blue[256];
  958. format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
  959. TextDrawSetString(Textdraw4,blue);
  960. new red[256];
  961. format(red, sizeof(red), "%d", ScoreOnFlag[1]);
  962. TextDrawSetString(Textdraw3,blue);
  963. TextDrawShowForPlayer(playerid, Text:Textdraw0);
  964. TextDrawShowForPlayer(playerid, Text:Textdraw1);
  965. TextDrawShowForPlayer(playerid, Text:Textdraw2);
  966. TextDrawShowForPlayer(playerid, Text:Textdraw3);
  967. TextDrawShowForPlayer(playerid, Text:Textdraw4);
  968. }
  969. }
  970. if(listitem == 1)
  971. {
  972. if(ScoreOnFlag[0] == 1||2||3||4)
  973. {
  974. SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
  975. }
  976. if(ScoreOnFlag[1] == 1||2||3||4)
  977. {
  978. SendClientMessage(playerid,0x00FF00AA,"Too many flags in game");
  979. }
  980. if(ScoreOnFlag[0] == 0 || ScoreOnFlag[1] == 0)
  981. {
  982. SetPlayerPos(playerid, -1348.1167, -2445.4324, 3266.3513);
  983. ResetPlayerWeapons(playerid);
  984. GivePlayerWeapon(playerid, 9, 1);
  985. GivePlayerWeapon(playerid, 29, 50);
  986. new PN[500]; // Äëÿ àäìèíêè
  987. GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
  988. new strboy[256];
  989. format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
  990. SendClientMessageToAll(0x5CA3FFFF, strboy);
  991. SendClientMessage(playerid, 0x5CA3FFFF, "Welcome to Quake 3");
  992. SendClientMessage(playerid, 0x5CA3FFFF, "You select a red team");
  993. SendClientMessage(playerid, 0x5CA3FFFF, "Your objective is Capture red flag");
  994. SendClientMessage(playerid, 0x5CA3FFFF, "Leave - /exg");
  995. gTeam[playerid] = 1;
  996. SetPlayerColor(playerid, 0x0000FFAA);
  997. SetPlayerTime(playerid,0,30);
  998. new blue[256];
  999. format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
  1000. TextDrawSetString(Textdraw4,blue);
  1001. new red[256];
  1002. format(red, sizeof(red), "%d", ScoreOnFlag[1]);
  1003. TextDrawSetString(Textdraw3,red);
  1004. ipiq=1;
  1005. TextDrawShowForPlayer(playerid, Text:Textdraw0);
  1006. TextDrawShowForPlayer(playerid, Text:Textdraw1);
  1007. TextDrawShowForPlayer(playerid, Text:Textdraw2);
  1008. TextDrawShowForPlayer(playerid, Text:Textdraw3);
  1009. TextDrawShowForPlayer(playerid, Text:Textdraw4);
  1010. }
  1011. }
  1012. }
  1013. if(dialogid == 512)
  1014. {
  1015. if(listitem == 0)
  1016. {
  1017. SendClientMessage(playerid, 0xA3FF5CFF, "Use /q, if you do not want to hang around here forever");
  1018. Kick(playerid);
  1019. }
  1020. if(listitem == 1)
  1021. {
  1022. return 1;
  1023. }
  1024. }
  1025. return 1;
  1026. }
  1027. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1028. {
  1029. if ((newkeys == 8192))
  1030. {
  1031. OnPlayerCommandText(playerid,"/quakemenu");
  1032. }
  1033. return 1;
  1034. }
  1035. public quakemove1()
  1036. {
  1037. MoveObject(quakemove, -1356.4526, -2407.6763, 3268.3848, 3);
  1038. SetTimer("quakemove2", 5000, false);
  1039. }
  1040. public quakemove2()
  1041. {
  1042. MoveObject(quakemove,-1340.4470, -2407.6763, 3268.3848, 3);
  1043. SetTimer("quakemove1", 5000, false);
  1044. }
  1045. stock PlayAudioStreamForAll(url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
  1046. {
  1047. for(new i = 0; i < MAX_PLAYERS; i++)
  1048. {
  1049. PlayAudioStreamForPlayer(i, url, posX, posY, posZ, distance, usepos);
  1050. }
  1051. }
  1052. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  1053. {
  1054. if(playertextid == Textdraw6[playerid])
  1055. {
  1056. SendClientMessage(playerid, 0xCCAAFFFF, "Use /quake");
  1057. PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
  1058. PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
  1059. PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
  1060. PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
  1061. PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
  1062. PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
  1063. PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
  1064. PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
  1065. PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
  1066. PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
  1067. PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
  1068. PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
  1069. PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
  1070. PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
  1071. PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
  1072. PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
  1073. CancelSelectTextDraw(playerid);
  1074. }
  1075. if(playertextid == Textdraw7[playerid])
  1076. {
  1077. PlayerTextDrawShow(playerid, PlayerText:Textdraw18[playerid]);
  1078. PlayerTextDrawShow(playerid, PlayerText:Textdraw19[playerid]);
  1079. PlayerTextDrawShow(playerid, PlayerText:Textdraw20[playerid]);
  1080. }
  1081. if(playertextid == Textdraw8[playerid])
  1082. {
  1083. OnPlayerCommandText(playerid,"/votekick");
  1084. PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
  1085. PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
  1086. PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
  1087. PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
  1088. PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
  1089. PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
  1090. PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
  1091. PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
  1092. PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
  1093. PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
  1094. PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
  1095. PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
  1096. PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
  1097. PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
  1098. PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
  1099. PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
  1100. CancelSelectTextDraw(playerid);
  1101. }
  1102. if(playertextid == Textdraw9[playerid])
  1103. {
  1104. OnPlayerCommandText(playerid,"/exg");
  1105. new ppl[500]; // Äëÿ àäìèíêè
  1106. GetPlayerName(playerid,ppl,sizeof(ppl)); // Óçíàåì íèê èãðîêà
  1107. new strext[256];
  1108. format(strext, sizeof(strext), "[Quake] %s âûøåë èç èãðû Quake", ppl);
  1109. SendClientMessageToAll(0xFF5CA3FF, strext);
  1110. PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
  1111. PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
  1112. PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
  1113. PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
  1114. PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
  1115. PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
  1116. PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
  1117. PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
  1118. PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
  1119. PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
  1120. PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
  1121. PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
  1122. PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
  1123. PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
  1124. PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
  1125. PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
  1126. CancelSelectTextDraw(playerid);
  1127. }
  1128. if(playertextid == Textdraw10[playerid])
  1129. {
  1130. ShowPlayerDialog(playerid, 512, DSL, "Do you really want to quit?", "{ff0000}Yes\n{3636ff}No", "Okay", "");
  1131. }
  1132. if(playertextid == Textdraw19[playerid])
  1133. {
  1134. SetPlayerPos(playerid, -1347.6212, -2369.3120, 3266.3513);
  1135. ResetPlayerWeapons(playerid);
  1136. GivePlayerWeapon(playerid, 9, 1);
  1137. GivePlayerWeapon(playerid, 29, 50);
  1138. new PN[500]; // Äëÿ àäìèíêè
  1139. GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
  1140. new strboy[256];
  1141. format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
  1142. SendClientMessageToAll(0x5CA3FFFF, strboy);
  1143. SendClientMessage(playerid, 0x5CA3FFFF, "Welcome to Quake 3");
  1144. SendClientMessage(playerid, 0x5CA3FFFF, "You select a red team");
  1145. SendClientMessage(playerid, 0x5CA3FFFF, "Your objective is Capture red flag");
  1146. SendClientMessage(playerid, 0x5CA3FFFF, "Leave - /exg");
  1147. ipiq=1;
  1148. gTeam[playerid] = 0;
  1149. SetPlayerColor(playerid, 0xFF0000AA);
  1150. SetPlayerTime(playerid,0,30);
  1151. new blue[256];
  1152. format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
  1153. TextDrawSetString(Textdraw4,blue);
  1154. new red[256];
  1155. format(red, sizeof(red), "%d", ScoreOnFlag[1]);
  1156. TextDrawSetString(Textdraw3,blue);
  1157. TextDrawShowForPlayer(playerid, Text:Textdraw0);
  1158. TextDrawShowForPlayer(playerid, Text:Textdraw1);
  1159. TextDrawShowForPlayer(playerid, Text:Textdraw2);
  1160. TextDrawShowForPlayer(playerid, Text:Textdraw3);
  1161. TextDrawShowForPlayer(playerid, Text:Textdraw4);
  1162. PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
  1163. PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
  1164. PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
  1165. PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
  1166. PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
  1167. PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
  1168. PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
  1169. PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
  1170. PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
  1171. PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
  1172. PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
  1173. PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
  1174. PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
  1175. PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
  1176. PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
  1177. PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
  1178. CancelSelectTextDraw(playerid);
  1179. }
  1180. if(playertextid == Textdraw20[playerid])
  1181. {
  1182. SetPlayerPos(playerid, -1348.1167, -2445.4324, 3266.3513);
  1183. ResetPlayerWeapons(playerid);
  1184. GivePlayerWeapon(playerid, 9, 1);
  1185. GivePlayerWeapon(playerid, 29, 50);
  1186. new PN[500]; // Äëÿ àäìèíêè
  1187. GetPlayerName(playerid,PN,sizeof(PN)); // Óçíàåì íèê èãðîêà
  1188. new strboy[256];
  1189. format(strboy, sizeof(strboy), "[Quake] %s has joined to ''Quake'' for the red team", PN);
  1190. SendClientMessageToAll(0xFF5C5CFF, strboy);
  1191. SendClientMessage(playerid, 0xFF5C5CFF, "Welcome to Quake 3");
  1192. SendClientMessage(playerid, 0xFF5C5CFF, "You select a red team");
  1193. SendClientMessage(playerid, 0xFF5C5CFF, "Your objective is Capture blue flag");
  1194. SendClientMessage(playerid, 0xFF5C5CFF, "Leave - /exg");
  1195. gTeam[playerid] = 1;
  1196. SetPlayerColor(playerid, 0x0000FFAA);
  1197. SetPlayerTime(playerid,0,30);
  1198. new blue[256];
  1199. format(blue, sizeof(blue), "%d", ScoreOnFlag[0]);
  1200. TextDrawSetString(Textdraw4,blue);
  1201. new red[256];
  1202. format(red, sizeof(red), "%d", ScoreOnFlag[1]);
  1203. TextDrawSetString(Textdraw3,red);
  1204. ipiq=1;
  1205. TextDrawShowForPlayer(playerid, Text:Textdraw0);
  1206. TextDrawShowForPlayer(playerid, Text:Textdraw1);
  1207. TextDrawShowForPlayer(playerid, Text:Textdraw2);
  1208. TextDrawShowForPlayer(playerid, Text:Textdraw3);
  1209. TextDrawShowForPlayer(playerid, Text:Textdraw4);
  1210. PlayerTextDrawHide(playerid, PlayerText:Textdraw5[playerid]);
  1211. PlayerTextDrawHide(playerid, PlayerText:Textdraw6[playerid]);
  1212. PlayerTextDrawHide(playerid, PlayerText:Textdraw7[playerid]);
  1213. PlayerTextDrawHide(playerid, PlayerText:Textdraw8[playerid]);
  1214. PlayerTextDrawHide(playerid, PlayerText:Textdraw9[playerid]);
  1215. PlayerTextDrawHide(playerid, PlayerText:Textdraw10[playerid]);
  1216. PlayerTextDrawHide(playerid, PlayerText:Textdraw11[playerid]);
  1217. PlayerTextDrawHide(playerid, PlayerText:Textdraw12[playerid]);
  1218. PlayerTextDrawHide(playerid, PlayerText:Textdraw13[playerid]);
  1219. PlayerTextDrawHide(playerid, PlayerText:Textdraw14[playerid]);
  1220. PlayerTextDrawHide(playerid, PlayerText:Textdraw15[playerid]);
  1221. PlayerTextDrawHide(playerid, PlayerText:Textdraw16[playerid]);
  1222. PlayerTextDrawHide(playerid, PlayerText:Textdraw17[playerid]);
  1223. PlayerTextDrawHide(playerid, PlayerText:Textdraw18[playerid]);
  1224. PlayerTextDrawHide(playerid, PlayerText:Textdraw19[playerid]);
  1225. PlayerTextDrawHide(playerid, PlayerText:Textdraw20[playerid]);
  1226. CancelSelectTextDraw(playerid);
  1227. }
  1228. return 1;
  1229. }
  1230. public CountDownTimer(playerid)
  1231. {
  1232. new string[3];
  1233. Count--;
  1234. TextDrawDestroy(TCountDown);
  1235. format(string,sizeof(string),"%d",Count);
  1236. TCountDown = TextDrawCreate(300.0,300.0,string);
  1237.  
  1238. TextDrawTextSize(TCountDown,0.7,3.0);
  1239. TextDrawShowForAll(TCountDown);
  1240.  
  1241. if(Count == 0)
  1242. {
  1243. KillTimer(Timer);
  1244. KillTimer(thingy);
  1245. TextDrawDestroy(TCountDown);
  1246. TextDrawDestroy(VoteKick);
  1247. Voted[playerid] = 0;
  1248. }
  1249. return 1;
  1250. }
  1251. forward VoteFail(playerid);
  1252. public VoteFail(playerid)
  1253. {
  1254. Votes = 0;
  1255. VoteActive = 0;
  1256. Voted[playerid] = 0;
  1257. SendClientMessageToAll(LIGHTBLUE,"None votes.");
  1258. TextDrawDestroy(VoteKick);
  1259. return 1;
  1260. }
  1261.  
  1262. GetPlayersOnServer()
  1263. {
  1264. new count;
  1265. for(new x=0; x< MAX_PLAYERS; x++)
  1266. {
  1267. if(IsPlayerConnected(x))
  1268. {
  1269. count++;
  1270. }
  1271. }
  1272. return count;
  1273. }
  1274. strtok(const string[], &index)
  1275. {
  1276. new length = strlen(string);
  1277. while ((index < length) && (string[index] <= ' '))
  1278. {
  1279. index++;
  1280. }
  1281. new offset = index;
  1282. new result[20];
  1283. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  1284. {
  1285. result[index - offset] = string[index];
  1286. index++;
  1287. }
  1288. result[index - offset] = EOS;
  1289. return result;
  1290. }
  1291.  
  1292. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement