Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.05 KB | None | 0 0
  1. [] spawn {
  2. purgecrate = createVehicle ["Land_VR_Target_MBT_01_cannon_F", player modelToWorld [0,0,0], [], 0, "NONE"];
  3. purgecrate setDir 40;
  4. [purgecrate,"ASY_fnc_setIdleTime",false,false] spawn BIS_fnc_MP;
  5. if (life_last_gather > time - 11) exitWith { hint "Wait a few seconds before trying again." };
  6. life_last_gather = time;
  7. [] spawn {
  8. _alarm = createSoundSource ["Simulation_Restart", position player, [], 0];
  9. sleep 3;
  10. deleteVehicle _alarm;
  11. playSound3D ["A3\music_f\Music\BackgroundTrack02_F.ogg", purgecrate];
  12. };
  13. [
  14. [
  15. purgecrate,
  16. [
  17. "<t size='1.8' color='#FF1933'>JOIN COUNTER-STRIKE: ARMS RACE - GUN GAME</t>",
  18. {
  19. if(isNil "gun_game") then {gun_game = 0};
  20. if (48 in life_talents) exitWith {
  21. hint "You need to UNLEARN Resilient talent to participate! No more saving gear by waking up in the hospital it causes RDM in Kavala.";
  22. titleText["You need to UNLEARN Resilient talent to participate!","PLAIN"];
  23. };
  24. if !(31 in life_talents) then {
  25. nomarksman = true;
  26. life_talents pushBack 31;
  27. };
  28. if (life_last_gather > time - 8) exitWith { hint "Wait a few seconds before trying again." };
  29. life_last_gather = time;
  30. if (gun_game isEqualTo 13) exitWith {
  31. removeAllWeapons player;
  32. titleText[format["YOU WIN! YOU WIN! YOU WIN!"],"PLAIN"];
  33. hint "YOU WIN! YOU WIN! YOU WIN! YOU WIN! YOU WIN! YOU WIN! ";
  34. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  35. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  36. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  37. (_this select 0) removeAction (_this select 2);
  38. };
  39. hint parseText format["<t size='1.5' align='center' shadow='1' color=""#FF0000"">" + "*COUNTER-STRIKE: REVERSE ARMS RACE GUN GAME*" + "</t>" + "<t size='1.2' color=""#ffff00"">" + "<br />ver 1.2" + "</t>" + "<t size='1.2' color=""#FF9933"">" + "<br />Advance in levels by getting kills, be the first to reach max level!<br /> 1 kills per level! You need 13 kills to win $75,000</t>" + "<t size='1.4' color=""#66CC33"">" + "<br /> by Mr Smirnoff/KBW </t>"];
  40. removeUniform player;
  41. removeHeadgear player;
  42. removeVest player;
  43. removeAllWeapons player;
  44. removeAllItems player;
  45. removeBackpack player;
  46. player addUniform "U_B_Protagonist_VR";
  47. player addVest "V_TacVest_camo";
  48. player addHeadgear "H_Cap_blu";
  49. player addItem "FirstAidKit";
  50. player addItem "itemGPS";
  51. player setDamage 0;
  52. [0] spawn life_fnc_setPain;
  53. life_brokenLeg = false;
  54. life_inv_painkillers = 3;
  55. life_inv_redgull = 3;
  56. life_last_gather = time;
  57. life_inv_defib = 0;
  58. [player] join grpNull;
  59. if (playerSide isEqualTo west) then {showMAP false; showGPS false;};
  60. removeAllWeapons player;
  61. switch(gun_game) do {
  62. case 0: {[player,"LMG_Mk200_F",1] call bis_fnc_addweapon};
  63. case 1: {[player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon};
  64. case 2: {[player,"srifle_DMR_06_olive_F",10] call BIS_fnc_addWeapon};
  65. case 3: { [player,"srifle_EBR_F",10] call BIS_fnc_addWeapon};
  66. case 4: { [player,"srifle_DMR_01_F",10] call BIS_fnc_addWeapon};
  67. case 5: { [player,"arifle_Katiba_F",10] call BIS_fnc_addWeapon};
  68. case 6: { [player,"arifle_Mk20C_plain_F",10] call BIS_fnc_addWeapon};
  69. case 7: { [player,"SMG_01_F",10] call BIS_fnc_addWeapon};
  70. case 8: { [player,"hgun_PDW2000_F",10] call BIS_fnc_addWeapon};
  71. case 9: { [player,"hgun_Rook40_F",10] call BIS_fnc_addWeapon};
  72. case 10: { [player,"hgun_ACPC2_F",10] call BIS_fnc_addWeapon};
  73. case 11: { [player,"hgun_Pistol_heavy_02_F",5] call BIS_fnc_addWeapon};
  74. case 12: {player addMagazines['HandGrenade',5]};
  75. };
  76. fnc_kbwAddScore =
  77. {
  78. removeAllWeapons player;
  79. gun_game = gun_game + 1;
  80. hint parseText format["<t size='1.7' align='center' shadow='1' color=""#08CA59"">" + "EVENT KILL SCORE" + "</t>" + "<t size='1.4' color=""#FFFFFF"">" + "<br />You have killed:<br /> </t>" + "<t size='2.3' color=""#FF0000"">" + "%1 </t>", gun_game];
  81. switch(gun_game) do {
  82. case 1: {[player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon; titleText[format["Level 2 - Mk1 unlocked"],"PLAIN DOWN"];};
  83. case 2: {[player,"srifle_DMR_06_olive_F",10] call BIS_fnc_addWeapon; titleText[format["Level 3 - Mk14 unlocked"],"PLAIN DOWN"];};
  84. case 3: { [player,"srifle_EBR_F",10] call BIS_fnc_addWeapon; titleText[format["Level 4 - Mk18 unlocked"],"PLAIN DOWN"];};
  85. case 4: { [player,"srifle_DMR_01_F",10] call BIS_fnc_addWeapon; titleText[format["Level 5 - Rahim unlocked"],"PLAIN DOWN"];};
  86. case 5: { [player,"arifle_Katiba_F",10] call BIS_fnc_addWeapon; titleText[format["Level 6 - Katiba unlocked"],"PLAIN DOWN"];};
  87. case 6: { [player,"arifle_Mk20C_plain_F",10] call BIS_fnc_addWeapon; titleText[format["Level 7 - Mk20c unlocked"],"PLAIN DOWN"];[[0,format["%1 REACHED Mk20c LEVEL - 7", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;};
  88. case 7: { [player,"SMG_01_F",10] call BIS_fnc_addWeapon; titleText[format["Level 8 - Vermin unlocked"],"PLAIN DOWN"];};
  89. case 8: { [player,"hgun_PDW2000_F",10] call BIS_fnc_addWeapon; titleText[format["Level 9 - PDW unlocked"],"PLAIN DOWN"];};
  90. case 9: { [player,"hgun_Rook40_F",10] call BIS_fnc_addWeapon; titleText[format["Level 10 - Rook unlocked"],"PLAIN DOWN"];};
  91. case 10: { [player,"hgun_ACPC2_F",10] call BIS_fnc_addWeapon; titleText[format["Level 11 - ACP unlocked"],"PLAIN DOWN"];};
  92. case 11: { [player,"hgun_Pistol_heavy_02_F",5] call BIS_fnc_addWeapon; titleText[format["Level 12 - Zubr unlocked"],"PLAIN DOWN"];};
  93. case 12: {player addMagazine 'HandGrenade';player addMagazine 'HandGrenade';player addMagazine 'HandGrenade'; titleText[format["Level 13 - Hand Grenade unlocked"],"PLAIN DOWN"]; [[0,format["%1 IS ON THE LAST LEVEL - 13", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;};
  94. case 13: {
  95. titleText[format["YOU WIN THE GUN GAME!!! YOU WIN THE GUN GAME!!!"],"PLAIN"];
  96. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  97. [[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  98. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  99. [[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  100. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  101. [[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  102. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  103. _msg = format["%1 WINS ARMS RACE - %1 WINS ARMS RACE - %1 WINS ARMS RACE",profileName]; [[_msg,name player,2],"life_fnc_clientMessage",true,false] spawn BIS_fnc_MP;
  104. };
  105. };
  106. };
  107. remove_event = player addEventHandler ["killed",
  108. {
  109. if(_this select 1 != player && isPlayer (_this select 1)) then {[nil,"fnc_kbwAddScore",_this select 1,false] call BIS_fnc_MP};
  110. if ((life_wanted > 500) && (life_wanted < 150000)) then
  111. {
  112. serv_wanted_remove = [player];
  113. publicVariableServer "serv_wanted_remove";
  114. player setVariable ["paroleViolated", nil, true];
  115. [] call life_fnc_hudUpdate;
  116. }
  117. else
  118. {
  119. hint "Bounties over $150,000 will not be pardoned";
  120. };
  121. award_check = player getVariable "awarded5";
  122. player removeEventHandler ["killed", remove_event];
  123. if (nomarksman) then {life_talents = life_talents - [31]};
  124. [] spawn{sleep 3.5; [[],"life_fnc_doRespawn",player,false] spawn BIS_fnc_MP;};
  125. if (award_check isEqualTo 1) exitWith {
  126. titleText[format["Already rewarded! Try again to win grand prize."],"PLAIN"];
  127. };
  128. _smirnoff = 12000;
  129. ["atm","add",_smirnoff] call life_fnc_uC;
  130. systemChat format["You gain $12,000 for paticipating in ARMS RACE", [_smirnoff] call life_fnc_numberText];
  131. titleText[format["You gain $12,000 for paticipating in ARMS RACE"],"PLAIN"];
  132. player setVariable ["awarded5", 1];
  133. [[2, player, format ["Participated in ARMS RACE and gained $%1", _smirnoff]],"ASY_fnc_logIt",false,false] spawn BIS_fnc_MP;
  134. }];
  135. _spawnradius=180;
  136. _spwnposNew = [([8624.42,18286.5, 0.25]),random _spawnradius, random 360] call BIS_fnc_relPos;
  137. player setpos _spwnposNew;
  138. [] spawn {
  139. titleText[format["SPAWN PROTECTION ACTIVATED"],"PLAIN DOWN", 1];
  140. player allowdamage false;
  141. life_cocaine_effect = time;
  142. "colorCorrections" ppEffectAdjust [3, 3, 0, [0.0, 0.0, 3.0, 0.0], [0.8*5, 0.8*6, 0.0, 1.9], [0.9, 0.9, 1.9, 0.2]];
  143. "colorCorrections" ppEffectCommit 0;
  144. "colorCorrections" ppEffectAdjust [1, 0.6, -0.022, [0.0, 0.0, 0.0, 0.0], [0.2*2, 0.2*2, 0.0, 0.7], [0.5, 0.9, 1.9, 0.0]];
  145. "colorCorrections" ppEffectCommit 1;
  146. "colorCorrections" ppEffectEnable true;
  147. "filmGrain" ppEffectEnable true;
  148. "filmGrain" ppEffectAdjust [0.09, 1, 2, 0.1, 1, false];
  149. "filmGrain" ppEffectCommit 0;
  150. sleep 4.7;
  151. "filmGrain" ppEffectEnable false;
  152. "chromAberration" ppEffectEnable false;
  153. "radialBlur" ppEffectEnable false;
  154. "colorCorrections" ppEffectEnable false;
  155. "colorCorrections" ppEffectEnable false;
  156. titleText[format["SPAWN PROTECTION REMOVED"],"PLAIN DOWN", 1];
  157. player allowdamage true;
  158. };
  159. },
  160. nil,
  161. 6,
  162. true,
  163. true,
  164. "",
  165. "
  166. _this distance _target < 7.9 && playerSide != independent
  167. "
  168. ]
  169. ],
  170. "addAction",
  171. true,
  172. false
  173. ] call BIS_fnc_MP;
  174. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement