Advertisement
Guest User

debug.sqf

a guest
Mar 4th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.13 KB | None | 0 0
  1. custom_game = _this select 0;
  2. admin_house = _this select 1;
  3. if (isNil "custom_game") then {custom_game = true;active_game = true;};
  4. if (custom_game) then {active_game = true;};
  5. waitUntil {!isNil ("sporkinit")};
  6.  
  7. _pos = getpos player;
  8. _veh = vehicle player;
  9.  
  10.  
  11. Modversion = "2.0";
  12.  
  13.  
  14.  
  15. "Welcome to EvolutionZ" hintC parseText format ["
  16. <t size='1.25' shadow='1'align='left' color='#ff8800'>EvolutionZ %1</t><br/>
  17. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  18. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>1. Buy/Sell guns @ Fire Stations</t><br/>
  19. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  20. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>2. Banking @ Supermarkets on Laptops</t><br/>
  21. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  22. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>3. Minigame is @ Stary</t><br/>
  23. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  24. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>4. Minigame reward is $3000</t><br/>
  25. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  26. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>5. Loot money off of Zombies and Players</t><br/>
  27. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  28. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>6. Carshop @ Balota</t><br/>
  29. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  30. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>7. CarShop vehicles do NOT SAVE on RESTART</t><br/>
  31. <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
  32. <t size='1.1' shadow='1'align='left' color='#FFFFFF'>8. evolutionz.guildlaunch.com</t><br/>",
  33. (Modversion)];
  34.  
  35. vehicle_spawner =
  36. {
  37. _allUnits = allUnits;
  38. player setVehicleInit "allUnits = [];";
  39. processInitCommands;
  40. clearVehicleInit player;
  41. allUnits = _allUnits;
  42. _dir = getdir player;
  43. _pos = getpos player;
  44. _pos = [(_pos select 0)+5*sin(_dir),(_pos select 1)+5*cos(_dir),0];
  45.  
  46. sporkulus = createVehicle [spawnthisshit, _pos, [], 0, "CAN_COLLIDE"];
  47. sporkulus setVariable ["ObjectUID", "script made by Sporkulus", true];
  48. };
  49.  
  50. level_up =
  51. {
  52. str _level_1;
  53. str _level_2;
  54. str _level_3;
  55. str _level_4;
  56. str _level_5;
  57. str _level_6;
  58. str _level_7;
  59. str _level_8;
  60. str _level_9;
  61. str _level_10;
  62. str _level_11;
  63. str _level_12;
  64. str _level_13;
  65. str _level_14;
  66. str _level_15;
  67. str _level_16;
  68. str _level_17;
  69. str _level_18;
  70. str _level_19;
  71. str _level_20;
  72. str _level_21;
  73. str _level_22;
  74. str _level_23;
  75. str _level_24;
  76. str _level_25;
  77. str _level_26;
  78. str _level_27;
  79. str _level_28;
  80. str _level_29;
  81. str _level_30;
  82. str _level_31;
  83. str _level_32;
  84. str _level_33;
  85. str _level_34;
  86. str _level_35;
  87. str _level_36;
  88. str _level_37;
  89. str _level_38;
  90. str _level_39;
  91. str _level_40;
  92. str _level_41;
  93. str _level_42;
  94. str _level_43;
  95. str _level_44;
  96. str _level_45;
  97.  
  98. if ((currentMoney >= (v2)) and (currentMoney < (v3)) and (Currentlevel == 1)) then
  99. {
  100. Currentlevel = 2;
  101. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  102. _setlevel = profileNamespace getVariable [lvl_var,0];
  103. Currentlevel = _setlevel;//spawnthisshit = "Old_bike_TK_CIV_EP1";call vehicle_spawner;
  104. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  105. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  106. };
  107.  
  108.  
  109. if ((currentMoney >= (v3)) and (currentMoney < (v4)) and (Currentlevel == 2)) then
  110. {
  111. Currentlevel = 3;
  112. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  113. _setlevel = profileNamespace getVariable [lvl_var,0];
  114. Currentlevel = _setlevel;//spawnthisshit = "Old_bike_TK_CIV_EP1";call vehicle_spawner;
  115. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  116. //if (allow_sounds) then {playsound "Challenge_Completed";};if (allow_rewards) then {genRewards = true;};
  117. };
  118.  
  119.  
  120.  
  121. if ((currentMoney >= (v4)) and (currentMoney < (v5)) and (Currentlevel == 3)) then
  122. {
  123. Currentlevel = 4;
  124. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  125. _setlevel = profileNamespace getVariable [lvl_var,0];
  126. Currentlevel = _setlevel;//spawnthisshit = "TT650_Civ";call vehicle_spawner;
  127. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  128. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  129. };
  130.  
  131.  
  132. if ((currentMoney >= (v5)) and (currentMoney < (v6)) and (Currentlevel == 4)) then
  133. {
  134. Currentlevel = 5;
  135. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  136. _setlevel = profileNamespace getVariable [lvl_var,0];
  137. Currentlevel = _setlevel;//spawnthisshit = "TT650_Civ";call vehicle_spawner;
  138. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  139. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  140. };
  141.  
  142. if ((currentMoney >= (v6)) and (currentMoney < (v7)) and (Currentlevel == 5)) then
  143. {
  144. Currentlevel = 6;
  145. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  146. _setlevel = profileNamespace getVariable [lvl_var,0];
  147. Currentlevel = _setlevel;//spawnthisshit = "ATV_US_EP1";call vehicle_spawner;
  148. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  149. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  150. };
  151.  
  152. if ((currentMoney >= (v7)) and (currentMoney < (v8)) and (Currentlevel == 6)) then
  153. {
  154. Currentlevel = 7;
  155. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  156. _setlevel = profileNamespace getVariable [lvl_var,0];
  157. Currentlevel = _setlevel;//spawnthisshit = "ATV_US_EP1";call vehicle_spawner;
  158. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  159. ////if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  160. };
  161.  
  162. if ((currentMoney >= (v8)) and (currentMoney < (v9)) and (Currentlevel == 7)) then
  163. {
  164. Currentlevel = 8;
  165. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  166. _setlevel = profileNamespace getVariable [lvl_var,0];
  167. Currentlevel = _setlevel;//spawnthisshit = "tractorOld";call vehicle_spawner;
  168. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  169. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  170. };
  171.  
  172. if ((currentMoney >= (v9)) and (currentMoney < (v10)) and (Currentlevel == 8)) then
  173. {
  174. Currentlevel = 9;
  175. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  176. _setlevel = profileNamespace getVariable [lvl_var,0];
  177. Currentlevel = _setlevel;//spawnthisshit = "tractorOld";call vehicle_spawner;
  178. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  179. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  180. };
  181.  
  182. if ((currentMoney >= (v10)) and (currentMoney < (v11)) and (Currentlevel == 9)) then
  183. {
  184. Currentlevel = 10;
  185. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  186. _setlevel = profileNamespace getVariable [lvl_var,0];
  187. Currentlevel = _setlevel;//spawnthisshit = "policecar";call vehicle_spawner;
  188. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  189. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  190. };
  191.  
  192. if ((currentMoney >= (v11)) and (currentMoney < (v12)) and (Currentlevel == 10)) then
  193. {
  194. Currentlevel = 11;
  195. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  196. _setlevel = profileNamespace getVariable [lvl_var,0];
  197. Currentlevel = _setlevel;//spawnthisshit = "policecar";call vehicle_spawner;
  198. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  199. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  200. };
  201.  
  202. if ((currentMoney >= (v12)) and (currentMoney < (v13)) and (Currentlevel == 11)) then
  203. {
  204. Currentlevel = 12;
  205. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  206. _setlevel = profileNamespace getVariable [lvl_var,0];
  207. Currentlevel = _setlevel;//spawnthisshit = "hilux1_civil_3_open";call vehicle_spawner;
  208. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  209. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  210. };
  211.  
  212. if ((currentMoney >= (v13)) and (currentMoney < (v14)) and (Currentlevel == 12)) then
  213. {
  214. Currentlevel = 13;
  215. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  216. _setlevel = profileNamespace getVariable [lvl_var,0];
  217. Currentlevel = _setlevel;//spawnthisshit = "hilux1_civil_3_open";call vehicle_spawner;
  218. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  219. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  220. };
  221.  
  222. if ((currentMoney >= (v14)) and (currentMoney < (v15)) and (Currentlevel == 13)) then
  223. {
  224. Currentlevel = 14;
  225. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  226. _setlevel = profileNamespace getVariable [lvl_var,0];
  227. Currentlevel = _setlevel;//spawnthisshit = "UAZ_CDF";call vehicle_spawner;
  228. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  229. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  230. };
  231.  
  232. if ((currentMoney >= (v15)) and (currentMoney < (v16)) and (Currentlevel == 14)) then
  233. {
  234. Currentlevel = 15;
  235. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  236. _setlevel = profileNamespace getVariable [lvl_var,0];
  237. Currentlevel = _setlevel;//spawnthisshit = "UAZ_CDF";call vehicle_spawner;
  238. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  239. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  240. };
  241.  
  242. if ((currentMoney >= (v16)) and (currentMoney < (v17)) and (Currentlevel == 15)) then
  243. {
  244. Currentlevel = 16;
  245. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  246. _setlevel = profileNamespace getVariable [lvl_var,0];
  247. Currentlevel = _setlevel;//spawnthisshit = "UralCivil2";call vehicle_spawner;
  248. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  249. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  250. };
  251.  
  252. if ((currentMoney >= (v17)) and (currentMoney < (v18)) and (Currentlevel == 16)) then
  253. {
  254. Currentlevel = 17;
  255. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  256. _setlevel = profileNamespace getVariable [lvl_var,0];
  257. Currentlevel = _setlevel;//spawnthisshit = "UralCivil2";call vehicle_spawner;
  258. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  259. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  260. };
  261.  
  262. if ((currentMoney >= (v18)) and (currentMoney < (v19)) and (Currentlevel == 17)) then
  263. {
  264. Currentlevel = 18;
  265. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  266. _setlevel = profileNamespace getVariable [lvl_var,0];
  267. Currentlevel = _setlevel;//spawnthisshit = "V3S_Civ";call vehicle_spawner;
  268. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  269. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  270. };
  271.  
  272. if ((currentMoney >= (v19)) and (currentMoney < (v20)) and (Currentlevel == 18)) then
  273. {
  274. Currentlevel = 19;
  275. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  276. _setlevel = profileNamespace getVariable [lvl_var,0];
  277. Currentlevel = _setlevel;//spawnthisshit = "V3S_Civ";call vehicle_spawner;
  278. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  279. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  280. };
  281.  
  282. if ((currentMoney >= (v20)) and (currentMoney < (v21)) and (Currentlevel == 19)) then
  283. {
  284. Currentlevel = 20;
  285. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  286. _setlevel = profileNamespace getVariable [lvl_var,0];
  287. Currentlevel = _setlevel;//spawnthisshit = "HMMWV_DZ";call vehicle_spawner;
  288. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  289. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  290. };
  291.  
  292. if ((currentMoney >= (v21)) and (currentMoney < (v22)) and (Currentlevel == 20)) then
  293. {
  294. Currentlevel = 21;
  295. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  296. _setlevel = profileNamespace getVariable [lvl_var,0];
  297. Currentlevel = _setlevel;//spawnthisshit = "HMMWV_DZ";call vehicle_spawner;
  298. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  299. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  300. };
  301.  
  302. if ((currentMoney >= (v22)) and (currentMoney < (v23)) and (Currentlevel == 21)) then
  303. {
  304. Currentlevel = 22;
  305. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  306. _setlevel = profileNamespace getVariable [lvl_var,0];
  307. Currentlevel = _setlevel;//spawnthisshit = "SUV_DZ";call vehicle_spawner;
  308. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  309. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  310. };
  311.  
  312. if ((currentMoney >= (v23)) and (currentMoney < (v24)) and (Currentlevel == 22)) then
  313. {
  314. Currentlevel = 23;
  315. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  316. _setlevel = profileNamespace getVariable [lvl_var,0];
  317. Currentlevel = _setlevel;//spawnthisshit = "SUV_DZ";call vehicle_spawner;
  318. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  319. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  320. };
  321.  
  322. if ((currentMoney >= (v24)) and (currentMoney < (v25)) and (Currentlevel == 23)) then
  323. {
  324. Currentlevel = 24;
  325. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  326. _setlevel = profileNamespace getVariable [lvl_var,0];
  327. Currentlevel = _setlevel;//spawnthisshit = "SUV_DZ";call vehicle_spawner;
  328. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  329. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  330. };
  331.  
  332. if ((currentMoney >= (v25)) and (currentMoney < (v26)) and (Currentlevel == 24)) then
  333. {
  334. Currentlevel = 25;
  335. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  336. _setlevel = profileNamespace getVariable [lvl_var,0];
  337. Currentlevel = _setlevel;//spawnthisshit = "AH6X_DZ";call vehicle_spawner;
  338. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  339. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  340. };
  341.  
  342. if ((currentMoney >= (v26)) and (currentMoney < (v27)) and (Currentlevel == 25)) then
  343. {
  344. Currentlevel = 26;
  345. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  346. _setlevel = profileNamespace getVariable [lvl_var,0];
  347. Currentlevel = _setlevel;//spawnthisshit = "MH6J_DZ";call vehicle_spawner;
  348. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  349. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  350. };
  351.  
  352. if ((currentMoney >= (v27)) and (currentMoney < (v28)) and (Currentlevel == 26)) then
  353. {
  354. Currentlevel = 27;
  355. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  356. _setlevel = profileNamespace getVariable [lvl_var,0];
  357. Currentlevel = _setlevel;//spawnthisshit = "MH6J_DZ";call vehicle_spawner;
  358. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  359. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  360. };
  361.  
  362. if ((currentMoney >= (v28)) and (currentMoney < (v29)) and (Currentlevel == 27)) then
  363. {
  364. Currentlevel = 28;
  365. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  366. _setlevel = profileNamespace getVariable [lvl_var,0];
  367. Currentlevel = _setlevel;
  368. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  369. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  370. };
  371.  
  372. if ((currentMoney >= (v29)) and (currentMoney < (v30)) and (Currentlevel == 28)) then
  373. {
  374. Currentlevel = 29;
  375. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  376. _setlevel = profileNamespace getVariable [lvl_var,0];
  377. Currentlevel = _setlevel;
  378. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  379. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  380. };
  381.  
  382. if ((currentMoney >= (v29)) and (currentMoney < (v30)) and (Currentlevel == 28)) then
  383. {
  384. Currentlevel = 29;
  385. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  386. _setlevel = profileNamespace getVariable [lvl_var,0];
  387. Currentlevel = _setlevel;
  388. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  389. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  390. };
  391.  
  392. if ((currentMoney >= (v30)) and (currentMoney < (v31)) and (Currentlevel == 29)) then
  393. {
  394. Currentlevel = 30;
  395. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  396. _setlevel = profileNamespace getVariable [lvl_var,0];
  397. Currentlevel = _setlevel;
  398. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  399. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  400. };
  401.  
  402. if ((currentMoney >= (v31)) and (currentMoney < (v32)) and (Currentlevel == 30)) then
  403. {
  404. Currentlevel = 31;
  405. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  406. _setlevel = profileNamespace getVariable [lvl_var,0];
  407. Currentlevel = _setlevel;
  408. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  409. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  410. };
  411.  
  412. if ((currentMoney >= (v32)) and (currentMoney < (v33)) and (Currentlevel == 31)) then
  413. {
  414. Currentlevel = 32;
  415. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  416. _setlevel = profileNamespace getVariable [lvl_var,0];
  417. Currentlevel = _setlevel;
  418. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  419. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  420. };
  421.  
  422. if ((currentMoney >= (v33)) and (currentMoney < (v34)) and (Currentlevel == 32)) then
  423. {
  424. Currentlevel = 33;
  425. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  426. _setlevel = profileNamespace getVariable [lvl_var,0];
  427. Currentlevel = _setlevel;
  428. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  429. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  430. };
  431.  
  432. if ((currentMoney >= (v34)) and (currentMoney < (v35)) and (Currentlevel == 33)) then
  433. {
  434. Currentlevel = 34;
  435. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  436. _setlevel = profileNamespace getVariable [lvl_var,0];
  437. Currentlevel = _setlevel;
  438. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  439. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  440. };
  441.  
  442. if ((currentMoney >= (v35)) and (currentMoney < (v36)) and (Currentlevel == 34)) then
  443. {
  444. Currentlevel = 35;
  445. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  446. _setlevel = profileNamespace getVariable [lvl_var,0];
  447. Currentlevel = _setlevel;
  448. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  449. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  450. };
  451.  
  452. if ((currentMoney >= (v36)) and (currentMoney < (v37)) and (Currentlevel == 35)) then
  453. {
  454. Currentlevel = 36;
  455. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  456. _setlevel = profileNamespace getVariable [lvl_var,0];
  457. Currentlevel = _setlevel;
  458. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  459. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  460. };
  461.  
  462. if ((currentMoney >= (v37)) and (currentMoney < (v38)) and (Currentlevel == 36)) then
  463. {
  464. Currentlevel = 37;
  465. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  466. _setlevel = profileNamespace getVariable [lvl_var,0];
  467. Currentlevel = _setlevel;
  468. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  469. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  470. };
  471.  
  472. if ((currentMoney >= (v38)) and (currentMoney < (v39)) and (Currentlevel == 37)) then
  473. {
  474. Currentlevel = 38;
  475. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  476. _setlevel = profileNamespace getVariable [lvl_var,0];
  477. Currentlevel = _setlevel;
  478. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  479. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  480. };
  481.  
  482. if ((currentMoney >= (v39)) and (currentMoney < (v40)) and (Currentlevel == 38)) then
  483. {
  484. Currentlevel = 39;
  485. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  486. _setlevel = profileNamespace getVariable [lvl_var,0];
  487. Currentlevel = _setlevel;
  488. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  489. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  490. };
  491.  
  492. if ((currentMoney >= (v40)) and (currentMoney < (v41)) and (Currentlevel == 39)) then
  493. {
  494. Currentlevel = 40;
  495. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  496. _setlevel = profileNamespace getVariable [lvl_var,0];
  497. Currentlevel = _setlevel;
  498. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  499. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  500. };
  501.  
  502. if ((currentMoney >= (v41)) and (currentMoney < (v42)) and (Currentlevel == 40)) then
  503. {
  504. Currentlevel = 41;
  505. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  506. _setlevel = profileNamespace getVariable [lvl_var,0];
  507. Currentlevel = _setlevel;
  508. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  509. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  510. };
  511.  
  512. if ((currentMoney >= (v42)) and (currentMoney < (v43)) and (Currentlevel == 41)) then
  513. {
  514. Currentlevel = 42;
  515. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  516. _setlevel = profileNamespace getVariable [lvl_var,0];
  517. Currentlevel = _setlevel;
  518. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  519. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  520. };
  521.  
  522. if ((currentMoney >= (v43)) and (currentMoney < (v44)) and (Currentlevel == 42)) then
  523. {
  524. Currentlevel = 43;
  525. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  526. _setlevel = profileNamespace getVariable [lvl_var,0];
  527. Currentlevel = _setlevel;
  528. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  529. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  530. };
  531.  
  532. if ((currentMoney >= (v44)) and (currentMoney < (v45)) and (Currentlevel == 43)) then
  533. {
  534. Currentlevel = 44;
  535. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  536. _setlevel = profileNamespace getVariable [lvl_var,0];
  537. Currentlevel = _setlevel;
  538. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  539. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  540. };
  541.  
  542.  
  543. if ((currentMoney >= (45)) and (Currentlevel == 44)) then
  544. {
  545. Currentlevel = 45;
  546. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  547. _setlevel = profileNamespace getVariable [lvl_var,0];
  548. Currentlevel = _setlevel;
  549. if (allow_texts) then {cutText [format["LEVEL %1 REACHED!", Currentlevel], "WHITE IN"];};
  550. //if (allow_sounds) then {playsound "Challenge_Completed";};genRewards = true;
  551. Sporkhint = format ["%1 reached level %2", name player, Currentlevel];
  552. publicVariable "Sporkhint";
  553. };
  554.  
  555.  
  556.  
  557. if ((Currentlevel == 1) and (genRewards)) then
  558. {
  559. genRewards = true;
  560. if (genRewards) then
  561. {
  562. genRewards = false;
  563. };
  564. Nextlvl = v2;Lastlvl = 0;
  565. Should_EXP = 1;
  566. };
  567.  
  568. if ((Currentlevel == 2) and (genRewards)) then
  569. {
  570. genRewards = true;
  571. if (genRewards) then
  572. {
  573. call _level_2;
  574. genRewards = false;
  575. };
  576. Should_EXP = 2;
  577. Nextlvl = v3;Lastlvl = 0;
  578. };
  579.  
  580.  
  581. if ((Currentlevel == 3) and (genRewards)) then
  582. {
  583. Nextlvl = v4;Lastlvl = v2;
  584. genRewards = true;
  585. if (genRewards) then
  586. {
  587. call _level_3;
  588. genRewards = false;
  589. };
  590. Should_EXP = 3;
  591. };
  592.  
  593. if ((Currentlevel == 4) and (genRewards)) then
  594. {
  595. Nextlvl = v5;Lastlvl = v3;
  596. genRewards = true;
  597. if (genRewards) then
  598. {
  599. call _level_4;
  600. genRewards = false;
  601. Should_EXP = 4;
  602. };
  603.  
  604. };
  605.  
  606. if ((Currentlevel == 5) and (genRewards)) then
  607. {
  608. Nextlvl = v6;Lastlvl = v4;
  609. genRewards = true;
  610. if (genRewards) then
  611. {
  612. call _level_5;
  613. genRewards = false;
  614. };
  615. Should_EXP = 5;
  616. };
  617.  
  618. if ((Currentlevel == 6) and (genRewards)) then
  619. {
  620. Nextlvl = v7;Lastlvl = v5;
  621. genRewards = true;
  622. if (genRewards) then
  623. {
  624. call _level_6;
  625. genRewards = false;
  626. };
  627. Should_EXP = 6;
  628. };
  629.  
  630. if ((Currentlevel == 7) and (genRewards)) then
  631. {
  632. Nextlvl = v8;Lastlvl = v6;
  633. genRewards = true;
  634. if (genRewards) then
  635. {
  636. call _level_7;
  637. genRewards = false;
  638. };
  639. Should_EXP = 7;
  640. };
  641.  
  642. if ((Currentlevel == 8) and (genRewards)) then
  643. {
  644. Nextlvl = v9;Lastlvl = v7;
  645. genRewards = true;
  646. if (genRewards) then
  647. {
  648. call _level_8;
  649. genRewards = false;
  650. };
  651. Should_EXP = 8;
  652. };
  653.  
  654. if ((Currentlevel == 9) and (genRewards)) then
  655. {
  656. Nextlvl = v10;Lastlvl = v8;
  657. genRewards = true;
  658. if (genRewards) then
  659. {
  660. call _level_9;
  661. genRewards = false;
  662. };
  663. Should_EXP = 9;
  664. };
  665.  
  666. if ((Currentlevel == 10) and (genRewards)) then
  667. {
  668. Nextlvl = v11;Lastlvl = v9;
  669. genRewards = true;
  670. if (genRewards) then
  671. {
  672. call _level_10;
  673. genRewards = false;
  674. };
  675. Should_EXP = 10;
  676. };
  677.  
  678. if ((Currentlevel == 11) and (genRewards)) then
  679. {
  680. Nextlvl = v12;Lastlvl = v10;
  681. genRewards = true;
  682. if (genRewards) then
  683. {
  684. call _level_11;
  685. genRewards = false;
  686. };
  687. Should_EXP = 11;
  688. };
  689.  
  690. if ((Currentlevel == 12) and (genRewards)) then
  691. {
  692. Nextlvl = v13;Lastlvl = v11;
  693. genRewards = true;
  694. if (genRewards) then
  695. {
  696. call _level_12;
  697. genRewards = false;
  698. };
  699. Should_EXP = 12;
  700. };
  701.  
  702. if ((Currentlevel == 13) and (genRewards)) then
  703. {
  704. Nextlvl = v14;Lastlvl = v12;
  705. genRewards = true;
  706. if (genRewards) then
  707. {
  708. call _level_13;
  709. genRewards = false;
  710. };
  711. Should_EXP = 13;
  712. };
  713.  
  714. if ((Currentlevel == 14) and (genRewards)) then
  715. {
  716. Nextlvl = v15;Lastlvl = v13;
  717. genRewards = true;
  718. if (genRewards) then
  719. {
  720. call _level_14;
  721. genRewards = false;
  722. };
  723. Should_EXP = 14;
  724. };
  725.  
  726. if ((Currentlevel == 15) and (genRewards)) then
  727. {
  728. Nextlvl = v16;Lastlvl = v14;
  729. genRewards = true;
  730. if (genRewards) then
  731. {
  732. call _level_15;
  733. genRewards = false;
  734. };
  735. Should_EXP = 15;
  736. };
  737.  
  738. if ((Currentlevel == 16) and (genRewards)) then
  739. {
  740. Nextlvl = v17;Lastlvl = v15;
  741. genRewards = true;
  742. if (genRewards) then
  743. {
  744. call _level_16;
  745. genRewards = false;
  746. };
  747. Should_EXP = 16;
  748. };
  749.  
  750. if ((Currentlevel == 17) and (genRewards)) then
  751. {
  752. Nextlvl = v18;Lastlvl = v16;
  753. genRewards = true;
  754. if (genRewards) then
  755. {
  756. call _level_17;
  757. genRewards = false;
  758. };
  759. Should_EXP = 17;
  760. };
  761.  
  762. if ((Currentlevel == 18) and (genRewards)) then
  763. {
  764. Nextlvl = v19;Lastlvl = v17;
  765. genRewards = true;
  766. if (genRewards) then
  767. {
  768. call _level_18;
  769. genRewards = false;
  770. };
  771. Should_EXP = 18;
  772. };
  773.  
  774. if ((Currentlevel == 19) and (genRewards)) then
  775. {
  776. Nextlvl = v20;
  777. genRewards = true;
  778. if (genRewards) then
  779. {
  780. call _level_19;
  781. genRewards = false;
  782. };
  783. Should_EXP = 19;
  784. };
  785.  
  786. if ((Currentlevel == 20) and (genRewards)) then
  787. {
  788. Nextlvl = v21;Lastlvl = v19;
  789. genRewards = true;
  790. if (genRewards) then
  791. {
  792. call _level_20;
  793. genRewards = false;
  794. };
  795. Should_EXP = 20;
  796. };
  797.  
  798. if ((Currentlevel == 21) and (genRewards)) then
  799. {
  800. Nextlvl = v22;Lastlvl = v20;
  801. genRewards = true;
  802. if (genRewards) then
  803. {
  804. call _level_21;
  805. genRewards = false;
  806. };
  807. Should_EXP = 21;
  808. };
  809.  
  810. if ((Currentlevel == 22) and (genRewards)) then
  811. {
  812. Nextlvl = v23;Lastlvl = v21;
  813. genRewards = true;
  814. if (genRewards) then
  815. {
  816. call _level_22;
  817. genRewards = false;
  818. };
  819. Should_EXP = 22;
  820. };
  821.  
  822. if ((Currentlevel == 23) and (genRewards)) then
  823. {
  824. Nextlvl = v24;Lastlvl = v22;
  825. genRewards = true;
  826. if (genRewards) then
  827. {
  828. call _level_23;
  829. genRewards = false;
  830. };
  831. Should_EXP = 23;
  832. };
  833.  
  834. if ((Currentlevel == 24) and (genRewards)) then
  835. {
  836. Nextlvl = v25;Lastlvl = v23;
  837. genRewards = true;
  838. if (genRewards) then
  839. {
  840. call _level_24;
  841. genRewards = false;
  842. };
  843. Should_EXP = 24;
  844. };
  845.  
  846. if ((Currentlevel == 25) and (genRewards)) then
  847. {
  848. Nextlvl = v26;Lastlvl = v24;
  849. genRewards = true;
  850. if (genRewards) then
  851. {
  852. call _level_25;
  853. genRewards = false;
  854. };
  855. Should_EXP = 24;
  856. };
  857.  
  858. if ((Currentlevel == 26) and (genRewards)) then
  859. {
  860. Nextlvl = v27;Lastlvl = v25;
  861.  
  862. genRewards = true;
  863. if (genRewards) then
  864. {
  865. call _level_26;
  866. genRewards = false;
  867. };
  868. Should_EXP = 24;
  869. };
  870.  
  871. if ((Currentlevel == 27) and (genRewards)) then
  872. {
  873. Nextlvl = v28;Lastlvl = v26;
  874.  
  875. genRewards = true;
  876. if (genRewards) then
  877. {
  878. call _level_27;
  879. genRewards = false;
  880. };
  881. Should_EXP = 24;
  882. };
  883.  
  884. if ((Currentlevel == 28) and (genRewards)) then
  885. {
  886. Nextlvl = v29;Lastlvl = v27;
  887.  
  888. genRewards = true;
  889. if (genRewards) then
  890. {
  891. call _level_28;
  892. genRewards = false;
  893. };
  894. Should_EXP = 24;
  895. };
  896.  
  897. if ((Currentlevel == 29) and (genRewards)) then
  898. {
  899. Nextlvl = v30;Lastlvl = v28;
  900.  
  901. genRewards = true;
  902. if (genRewards) then
  903. {
  904. call _level_29;
  905. genRewards = false;
  906. };
  907. Should_EXP = 24;
  908. };
  909.  
  910. if ((Currentlevel == 30) and (genRewards)) then
  911. {
  912. Nextlvl = v31;Lastlvl = v29;
  913.  
  914. genRewards = true;
  915. if (genRewards) then
  916. {
  917. call _level_30;
  918. genRewards = false;
  919. };
  920. Should_EXP = 24;
  921. };
  922.  
  923. if ((Currentlevel == 31) and (genRewards)) then
  924. {
  925. Nextlvl = v32;Lastlvl = v30;
  926.  
  927. genRewards = true;
  928. if (genRewards) then
  929. {
  930. call _level_31;
  931. genRewards = false;
  932. };
  933. Should_EXP = 24;
  934. };
  935.  
  936. if ((Currentlevel == 32) and (genRewards)) then
  937. {
  938. Nextlvl = v33;Lastlvl = v31;
  939.  
  940. genRewards = true;
  941. if (genRewards) then
  942. {
  943. call _level_32;
  944. genRewards = false;
  945. };
  946. Should_EXP = 24;
  947. };
  948.  
  949.  
  950. if ((Currentlevel == 33) and (genRewards)) then
  951. {
  952. Nextlvl = v34;Lastlvl = v32;
  953.  
  954. genRewards = true;
  955. if (genRewards) then
  956. {
  957. call _level_33;
  958. genRewards = false;
  959. };
  960. Should_EXP = 24;
  961. };
  962.  
  963. if ((Currentlevel == 34) and (genRewards)) then
  964. {
  965. Nextlvl = v35;Lastlvl = v33;
  966.  
  967. genRewards = true;
  968. if (genRewards) then
  969. {
  970. call _level_34;
  971. genRewards = false;
  972. };
  973. Should_EXP = 24;
  974. };
  975.  
  976. if ((Currentlevel == 35) and (genRewards)) then
  977. {
  978. Nextlvl = v36;Lastlvl = v34;
  979.  
  980. genRewards = true;
  981. if (genRewards) then
  982. {
  983. call _level_35;
  984. genRewards = false;
  985. };
  986. Should_EXP = 24;
  987. };
  988.  
  989. if ((Currentlevel == 36) and (genRewards)) then
  990. {
  991. Nextlvl = v37;Lastlvl = v35;
  992.  
  993. genRewards = true;
  994. if (genRewards) then
  995. {
  996. call _level_36;
  997. genRewards = false;
  998. };
  999. Should_EXP = 24;
  1000. };
  1001.  
  1002. if ((Currentlevel == 37) and (genRewards)) then
  1003. {
  1004. Nextlvl = v38;Lastlvl = v36;
  1005.  
  1006. genRewards = true;
  1007. if (genRewards) then
  1008. {
  1009. call _level_37;
  1010. genRewards = false;
  1011. };
  1012. Should_EXP = 24;
  1013. };
  1014.  
  1015. if ((Currentlevel == 38) and (genRewards)) then
  1016. {
  1017. Nextlvl = v39;Lastlvl = v37;
  1018.  
  1019. genRewards = true;
  1020. if (genRewards) then
  1021. {
  1022. call _level_38;
  1023. genRewards = false;
  1024. };
  1025. Should_EXP = 24;
  1026. };
  1027.  
  1028. if ((Currentlevel == 39) and (genRewards)) then
  1029. {
  1030. Nextlvl = v40;Lastlvl = v38;
  1031.  
  1032. genRewards = true;
  1033. if (genRewards) then
  1034. {
  1035. call _level_39;
  1036. genRewards = false;
  1037. };
  1038. Should_EXP = 24;
  1039. };
  1040.  
  1041. if ((Currentlevel == 40) and (genRewards)) then
  1042. {
  1043. Nextlvl = v41;Lastlvl = v39;
  1044.  
  1045. genRewards = true;
  1046. if (genRewards) then
  1047. {
  1048. call _level_40;
  1049. genRewards = false;
  1050. };
  1051. Should_EXP = 24;
  1052. };
  1053.  
  1054. if ((Currentlevel == 41) and (genRewards)) then
  1055. {
  1056. Nextlvl = v42;Lastlvl = v40;
  1057.  
  1058. genRewards = true;
  1059. if (genRewards) then
  1060. {
  1061. call _level_41;
  1062. genRewards = false;
  1063. };
  1064. Should_EXP = 24;
  1065. };
  1066.  
  1067. if ((Currentlevel == 42) and (genRewards)) then
  1068. {
  1069. Nextlvl = v43;Lastlvl = v41;
  1070.  
  1071. genRewards = true;
  1072. if (genRewards) then
  1073. {
  1074. call _level_42;
  1075. genRewards = false;
  1076. };
  1077. Should_EXP = 24;
  1078. };
  1079.  
  1080. if ((Currentlevel == 43) and (genRewards)) then
  1081. {
  1082. Nextlvl = v44;Lastlvl = v42;
  1083.  
  1084. genRewards = true;
  1085. if (genRewards) then
  1086. {
  1087. call _level_43;
  1088. genRewards = false;
  1089. };
  1090. Should_EXP = 24;
  1091. };
  1092.  
  1093. if ((Currentlevel == 44) and (genRewards)) then
  1094. {
  1095. Nextlvl = v45;Lastlvl = v43;
  1096.  
  1097. genRewards = true;
  1098. if (genRewards) then
  1099. {
  1100. call _level_44;
  1101. genRewards = false;
  1102. };
  1103. Should_EXP = 24;
  1104. };
  1105.  
  1106. if ((Currentlevel == 45) and (genRewards)) then
  1107. {
  1108. Nextlvl = "Maxed Level";Lastlvl = v30;
  1109.  
  1110. genRewards = true;
  1111. if (genRewards) then
  1112. {
  1113. call _level_45;
  1114. genRewards = false;
  1115. };
  1116. Should_EXP = 24;
  1117. };
  1118.  
  1119. };
  1120.  
  1121. call level_up;
  1122. waitUntil {!isNil ("Nextlvl")};
  1123. while {custom_game} do
  1124. {
  1125. if (currentMoney > (maxexp)) then
  1126. {
  1127. currentMoney = (maxexp);
  1128. };
  1129.  
  1130. if (currentlevel < 45) then
  1131. {
  1132. if (currentMoney > (Nextlvl)) then
  1133. {
  1134. call level_up;
  1135. };
  1136. };
  1137.  
  1138. TimestartContinue = (timeRestart)-(round(serverTime/60));
  1139. if (Timestarted > TimestartContinue) then
  1140. {
  1141. PlayingTime = Timestarted - TimestartContinue;
  1142. _timeplayed = profileNamespace getVariable ["TotalTime",0];
  1143. profileNamespace setVariable ["TotalTime",_timeplayed+PlayingTime]; saveProfileNamespace;
  1144. _timeplayed = profileNamespace getVariable ["TotalTime",0];
  1145. Timestarted = TimestartContinue;
  1146. };
  1147. profileNamespace setVariable ["MyVehicle", Setvehicle]; saveProfileNamespace;
  1148. profileNamespace setVariable ["MyBot",SetBot]; saveProfileNamespace;
  1149.  
  1150. if (r_player_blood <= 0) then
  1151. {
  1152. sleep 2;
  1153. mymoneyz = 0;
  1154. Currentlevel = 0;
  1155. currentMoney = 0;
  1156. profileNamespace setVariable ["money",myMoneyZ]; saveProfileNamespace;
  1157. profileNamespace setVariable ["level", Currentlevel]; saveProfileNamespace;
  1158. profileNamespace setVariable ["rewardScore",currentMoney]; saveProfileNamespace;
  1159. for "_i" from 0 to 40 do {deletevehicle _spawnAIS;};
  1160. //endmission "LOSER";
  1161. };
  1162.  
  1163. if (mymoneyz > (maxmoney)) then
  1164. {
  1165. mymoneyz = (maxmoney);
  1166. };
  1167.  
  1168. if (bankmoney > (maxbank)) then
  1169. {
  1170. bankmoney = (maxbank);
  1171. };
  1172. _endsending = 0;
  1173. _myLevel = currentLevel;
  1174. player setVariable["Clevel",_myLevel, true];
  1175. player setVariable["allmoney",myMoneyZ, true];
  1176. player setVariable["MyBlood",r_player_blood, true];
  1177.  
  1178. playername = name player;
  1179. player setVariable["myplayer",playername, true];
  1180.  
  1181. totalbank = bankMoney;
  1182. player setVariable["totalbank",totalbank, true];
  1183.  
  1184. addmoneyc = player getVariable["Cmoney",0];
  1185.  
  1186. if (addmoneyc >= 1) then
  1187. {
  1188. bankMoney = bankMoney + addmoneyc;
  1189. if (allow_texts) then {cutText [format["You received $%1 and was transfered to bank!", addmoneyc], "PLAIN"];};
  1190. player setVariable["Cmoney",_endsending, true];
  1191. };
  1192.  
  1193. _setscore = profileNamespace getVariable [Exp_var,0];
  1194. _setlevel = profileNamespace getVariable [lvl_var,0];
  1195. profileNamespace setVariable [Exp_var,currentMoney]; saveProfileNamespace;
  1196. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  1197. profileNamespace setVariable [bank_var,bankMoney]; saveProfileNamespace;
  1198. profileNamespace setVariable [money_var,mymoneyz]; saveProfileNamespace;
  1199.  
  1200.  
  1201. myhp_fixer = (r_player_blood / 12000) * 100;
  1202. myHp_corrector = round myhp_fixer;
  1203. if (r_player_blood <= 0) then {myHp_corrector = "Dead!";};
  1204. _pos = getpos player;
  1205. _Lastlvlz = Lastlvl;
  1206. _moneyz = currentMoney;
  1207. _shopMoneyz = myMoneyZ;
  1208. _levelz = currentlevel;
  1209. _timerget = player getVariable["timer",0];
  1210. _Nextlvlz = Nextlvl;
  1211. Pname = name player;
  1212. _timesinbad = (TimeToRestart)-(round(serverTime/60));
  1213. _dotimerrestart = player setVariable["restarting",_timesinbad,true];
  1214. MaxMoneyz = 20000;
  1215. _fps = round diag_fps;
  1216. _fpsfind = player setVariable["fps",_fps,true];
  1217. _posmini = [6558.7339, 7651.7715, 0];
  1218. _zombz = _posmini nearEntities ["z_soldier",200];
  1219. _countz = count _zombz;
  1220. _EXPz = Exp_Counter;
  1221. _minicounts = profileNamespace getVariable ["minigame",0];
  1222. _maxedlvl = 45;
  1223. _checkEXP = Should_EXP;
  1224. My_speed = speed (vehicle player);
  1225. kills = player getVariable["zombieKills",0];
  1226. _killsH = player getVariable["humanKills",0];
  1227. _killsB = player getVariable["banditKills",0];
  1228. _humanity = player getVariable["humanity",0];
  1229. _pic = (gettext (configFile >> "CfgVehicles" >> (typeof vehicle player) >> "picture"));
  1230. if (player == vehicle player) then
  1231. {
  1232. _pic = (gettext (configFile >> "cfgWeapons" >> (currentWeapon player) >> "picture"));
  1233. }
  1234. else
  1235. {
  1236. _pic = (gettext (configFile >> "CfgVehicles" >> (typeof vehicle player) >> "picture"));
  1237. };
  1238.  
  1239. //#ff0000 = red
  1240. //#FFFFFF = white
  1241. //#00FF00 = green
  1242. //#00FFFF = blue
  1243. //#c72842 = redish pink
  1244. //#ffff00 = yellow
  1245. //#ff8800 = orange
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251. if (IsDebug == 1) then
  1252. {
  1253. hintSilent parseText format["
  1254. <t size='1.3' color='#FFFFFF'>EvolutionZ</t><br/>
  1255. <t size='1.2'font='TahomaB'align='left' color='#14fb06'>Player Online:</t><t size='1.2'font='TahomaB'align='right'color='#14fb06'>%1</t><br/>
  1256. <t size='1.2'font='TahomaB'align='left' color='#13ee67'>Website:</t><br/><t size='.9'font='TahomaB'align='right'color='#13ee67'>%2</t><br/>
  1257. <t size='1.2'font='TahomaB'align='left' color='#13ee67'>TS3:</t><t size='1.2'font='TahomaB'align='right'color='#13ee67'>%3</t><br/>
  1258. <br/>
  1259. <t size='1.2'font='TahomaB'align='left'color='#13eedb'>Health:</t><t size='1.2' font='TahomaB'align='right'color='#13eedb'>%4 Percent</t><br/>
  1260. <t size='1.2'font='TahomaB'align='left'color='#13b4ee'>Level:</t><t size='1.2' font='TahomaB'align='right'color='#13b4ee'>%5</t><br/>
  1261. <t size='1.2'font='TahomaB'align='left'color='#1367ee'>Exp:</t><t size='1.2' font='TahomaB'align='right'color='#1367ee'>%6\%7</t><br/>
  1262. <t size='1.2'font='TahomaB'align='left'color='#6d13ee'>Money:</t><t size='1.2' font='TahomaB'align='right'color='#6d13ee'>%8</t><br/>
  1263. <t size='1.2'font='TahomaB'align='left'color='#6d13ee'>Money in Bank:</t><t size='1.2' font='TahomaB'align='right'color='#6d13ee'>%9</t><br/>
  1264. <br/>
  1265. <t font='TahomaB' align='Center' size='1.2' color='#FFBF00'>[%10]</t><br/>
  1266. <img size='5.5' image='%11'/><br/>
  1267. <t size='1.2'font='TahomaB'align='left' color='#3fa77d'>Humanity:</t><t color='#3fa77d' size='1.2'font='TahomaB'align='right'>%12</t><br/>
  1268. <t size='1.2'font='TahomaB'align='left' color='#3fa77d'>MiniGame Timer:</t><t color='#3fa77d' size='1.2'font='TahomaB'align='right'>%13</t><br/>
  1269. <t size='1.2'font='TahomaB'align='left' color='#3fa77d'>Zombies Left:</t><t color='#3fa77d' size='1.2'font='TahomaB'align='right'>%14</t><br/>
  1270. <t size='1.2'font='TahomaB'align='center'color='#2ECCFA'>Fps: %15</t><br/>",
  1271. (count playableUnits),
  1272. (Web_name),
  1273. (TS_name),
  1274. (myHp_corrector),
  1275. (_levelz),
  1276. (_EXPz),
  1277. (_Nextlvlz),
  1278. (_shopMoneyz),
  1279. (bankMoney),
  1280. (gettext (configFile >> "CfgVehicles" >> (typeof vehicle player) >> "displayName")),
  1281. _pic,
  1282. (player getVariable["humanity", 0]),
  1283. (_timerget),
  1284. (_countz),
  1285. (round diag_fps)];
  1286. } else {
  1287.  
  1288. if (IsDebug == 2) then
  1289. {
  1290.  
  1291. hintSilent parseText format ["
  1292. <t size='1.3' color='#FFFFFF'>EvolutionZ</t><br/>
  1293. <t size='1' color='#ff8800'></t><br/>
  1294. <t size='.90' align='left' color='#ff8800'>Website: </t><t size='.90' align='right' color='#ff0000'>%11</t><br/>
  1295. <t size='1' align='left' color='#ff8800'>TS: </t><t size='1' align='right' color='#ff0000'>%12</t><br/>
  1296. <t size='1' align='left' color='#ff8800'>Health: </t><t size='1' align='right' color='#ff0000'>%6 Percent</t><br/>
  1297. <t size='1' align='left' color='#ff8800'>Level: </t><t size='1' align='right' color='#ff0000'>%2</t><br/>
  1298. <t size='1' align='left' color='#ff8800'>Speed: </t><t size='1' align='right' color='#ff0000'>%9 KPH</t><br/>
  1299. <t size='1' align='left' color='#ff8800'>Exp: </t><t size='1' align='right' color='#ff0000'>%3\%1</t><br/>
  1300. <t size='1' align='left' color='#ff8800'>Money: </t><t size='1' align='right' color='#ff0000'>$%7</t><br/>
  1301. <t size='1' align='left' color='#ff8800'>Money in Bank: </t><t size='1' align='right' color='#ff0000'>$%10</t><br/>
  1302. <t size='1' align='left' color='#ff8800'>Time to Restart: </t><t size='1' align='right' color='#ff0000'>%5 Min</t><br/>
  1303. <t size='1' align='left' color='#ffff00'>MiniGame Timer: </t><t size='1' align='right' color='#ff0000'>%13</t><br/>
  1304. <t size='1' align='left' color='#ffff00'>Zombies Left: </t><t size='1' align='right' color='#ff0000'>%14</t><br/>
  1305. <t size='1' color='#ff8800'>F5 To Toggle Debug</t><br/>
  1306. <t size='1' color='#ff8800'>Right Ctrl for most info</t>",
  1307. (_Nextlvlz),
  1308. (_levelz),
  1309. (_moneyz),
  1310. (_EXPz),
  1311. (_timesinbad),
  1312. (myHp_corrector),
  1313. (_shopMoneyz),
  1314. (_highest),
  1315. (round My_speed),
  1316. (bankMoney),
  1317. (Web_name),
  1318. (TS_name),
  1319. (_timerget),
  1320. (_countz)];
  1321.  
  1322. } else
  1323. {
  1324. hintSilent "";
  1325. };
  1326. };
  1327.  
  1328. };
  1329.  
  1330. _checkingmini = _pos nearObjects ["Land_Terrace_K_1_EP1",75];
  1331.  
  1332. _countnearmini = count _checkingmini;
  1333.  
  1334.  
  1335. if ((_levelz) > (_maxedlvl)) then
  1336. {
  1337. Currentlevel = 1;
  1338. currentMoney = 0;
  1339. _setscore = profileNamespace getVariable [Exp_var,0];
  1340. _setlevel = profileNamespace getVariable [lvl_var,0];
  1341. profileNamespace setVariable [Exp_var,currentMoney]; saveProfileNamespace;
  1342. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  1343. Sporkhint = format ["%1 Hacked his level!", name player];
  1344. publicVariable "Sporkhint";
  1345. };
  1346.  
  1347.  
  1348. if (((_moneyz) < (_Lastlvlz)) and (currentlevel > 2)) then
  1349. {
  1350. Currentlevel = Currentlevel - 1;
  1351. _setlevel = profileNamespace getVariable [lvl_var,0];
  1352. profileNamespace setVariable [lvl_var, Currentlevel]; saveProfileNamespace;
  1353. genRewards = true;
  1354. };
  1355.  
  1356. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement