Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.24 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. _units = [8624.42,18286.5, 0.25] nearEntities["Man",180];
  40. if(count _units > 1) exitWith {titleText ["There are currently too many people in the arena, try again later!","PLAIN",1]};
  41. 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>"];
  42. removeUniform player;
  43. removeHeadgear player;
  44. removeVest player;
  45. removeAllWeapons player;
  46. removeAllItems player;
  47. removeBackpack player;
  48. player addUniform "U_B_Protagonist_VR";
  49. player addVest "V_TacVest_camo";
  50. player addHeadgear "H_Cap_blu";
  51. player addItem "FirstAidKit";
  52. player addItem "itemGPS";
  53. player setDamage 0;
  54. [0] spawn life_fnc_setPain;
  55. life_brokenLeg = false;
  56. life_inv_painkillers = 3;
  57. life_inv_redgull = 3;
  58. life_last_gather = time;
  59. life_inv_defib = 0;
  60. [player] join grpNull;
  61. if (playerSide isEqualTo west) then {showMAP false; showGPS false;};
  62. removeAllWeapons player;
  63. switch(gun_game) do {
  64. case 0: {[player,"LMG_Mk200_F",1] call bis_fnc_addweapon};
  65. case 1: {[player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon};
  66. case 2: {[player,"srifle_DMR_06_olive_F",10] call BIS_fnc_addWeapon};
  67. case 3: { [player,"srifle_EBR_F",10] call BIS_fnc_addWeapon};
  68. case 4: { [player,"srifle_DMR_01_F",10] call BIS_fnc_addWeapon};
  69. case 5: { [player,"arifle_Katiba_F",10] call BIS_fnc_addWeapon};
  70. case 6: { [player,"arifle_Mk20C_plain_F",10] call BIS_fnc_addWeapon};
  71. case 7: { [player,"SMG_01_F",10] call BIS_fnc_addWeapon};
  72. case 8: { [player,"hgun_PDW2000_F",10] call BIS_fnc_addWeapon};
  73. case 9: { [player,"hgun_Rook40_F",10] call BIS_fnc_addWeapon};
  74. case 10: { [player,"hgun_ACPC2_F",10] call BIS_fnc_addWeapon};
  75. case 11: { [player,"hgun_Pistol_heavy_02_F",5] call BIS_fnc_addWeapon};
  76. case 12: {player addMagazines['HandGrenade',5]};
  77. };
  78. fnc_kbwAddScore =
  79. {
  80. removeAllWeapons player;
  81. gun_game = gun_game + 1;
  82. 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];
  83. switch(gun_game) do {
  84. case 1: {[player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon; titleText[format["Level 2 - Mk1 unlocked"],"PLAIN DOWN"];};
  85. case 2: {[player,"srifle_DMR_06_olive_F",10] call BIS_fnc_addWeapon; titleText[format["Level 3 - Mk14 unlocked"],"PLAIN DOWN"];};
  86. case 3: { [player,"srifle_EBR_F",10] call BIS_fnc_addWeapon; titleText[format["Level 4 - Mk18 unlocked"],"PLAIN DOWN"];};
  87. case 4: { [player,"srifle_DMR_01_F",10] call BIS_fnc_addWeapon; titleText[format["Level 5 - Rahim unlocked"],"PLAIN DOWN"];};
  88. case 5: { [player,"arifle_Katiba_F",10] call BIS_fnc_addWeapon; titleText[format["Level 6 - Katiba unlocked"],"PLAIN DOWN"];};
  89. 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;};
  90. case 7: { [player,"SMG_01_F",10] call BIS_fnc_addWeapon; titleText[format["Level 8 - Vermin unlocked"],"PLAIN DOWN"];};
  91. case 8: { [player,"hgun_PDW2000_F",10] call BIS_fnc_addWeapon; titleText[format["Level 9 - PDW unlocked"],"PLAIN DOWN"];};
  92. case 9: { [player,"hgun_Rook40_F",10] call BIS_fnc_addWeapon; titleText[format["Level 10 - Rook unlocked"],"PLAIN DOWN"];};
  93. case 10: { [player,"hgun_ACPC2_F",10] call BIS_fnc_addWeapon; titleText[format["Level 11 - ACP unlocked"],"PLAIN DOWN"];};
  94. case 11: { [player,"hgun_Pistol_heavy_02_F",5] call BIS_fnc_addWeapon; titleText[format["Level 12 - Zubr unlocked"],"PLAIN DOWN"];};
  95. 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;};
  96. case 13: {
  97. titleText[format["YOU WIN THE GUN GAME!!! YOU WIN THE GUN GAME!!!"],"PLAIN"];
  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. [[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  104. [[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;
  105. _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;
  106. };
  107. };
  108. };
  109. remove_event = player addEventHandler ["killed",
  110. {
  111. if(_this select 1 != player && isPlayer (_this select 1)) then {[nil,"fnc_kbwAddScore",_this select 1,false] call BIS_fnc_MP};
  112. if ((life_wanted > 500) && (life_wanted < 150000)) then
  113. {
  114. serv_wanted_remove = [player];
  115. publicVariableServer "serv_wanted_remove";
  116. player setVariable ["paroleViolated", nil, true];
  117. [] call life_fnc_hudUpdate;
  118. }
  119. else
  120. {
  121. hint "Bounties over $150,000 will not be pardoned";
  122. };
  123. award_check = player getVariable "awarded5";
  124. player removeEventHandler ["killed", remove_event];
  125. if (nomarksman) then {life_talents = life_talents - [31]};
  126. [] spawn{sleep 3.5; [[],"life_fnc_doRespawn",player,false] spawn BIS_fnc_MP;};
  127. if (award_check isEqualTo 1) exitWith {
  128. titleText[format["Already rewarded! Try again to win grand prize."],"PLAIN"];
  129. };
  130. _smirnoff = 12000;
  131. ["atm","add",_smirnoff] call life_fnc_uC;
  132. systemChat format["You gain $12,000 for paticipating in ARMS RACE", [_smirnoff] call life_fnc_numberText];
  133. titleText[format["You gain $12,000 for paticipating in ARMS RACE"],"PLAIN"];
  134. player setVariable ["awarded5", 1];
  135. [[2, player, format ["Participated in ARMS RACE and gained $%1", _smirnoff]],"ASY_fnc_logIt",false,false] spawn BIS_fnc_MP;
  136. }];
  137. _spawnradius=180;
  138. _spwnposNew = [([8624.42,18286.5, 0.25]),random _spawnradius, random 360] call BIS_fnc_relPos;
  139. player setpos _spwnposNew;
  140. [] spawn {
  141. titleText[format["SPAWN PROTECTION ACTIVATED"],"PLAIN DOWN", 1];
  142. player allowdamage false;
  143. life_cocaine_effect = time;
  144. "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]];
  145. "colorCorrections" ppEffectCommit 0;
  146. "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]];
  147. "colorCorrections" ppEffectCommit 1;
  148. "colorCorrections" ppEffectEnable true;
  149. "filmGrain" ppEffectEnable true;
  150. "filmGrain" ppEffectAdjust [0.09, 1, 2, 0.1, 1, false];
  151. "filmGrain" ppEffectCommit 0;
  152. sleep 4.7;
  153. "filmGrain" ppEffectEnable false;
  154. "chromAberration" ppEffectEnable false;
  155. "radialBlur" ppEffectEnable false;
  156. "colorCorrections" ppEffectEnable false;
  157. "colorCorrections" ppEffectEnable false;
  158. titleText[format["SPAWN PROTECTION REMOVED"],"PLAIN DOWN", 1];
  159. player allowdamage true;
  160. };
  161. },
  162. nil,
  163. 6,
  164. true,
  165. true,
  166. "",
  167. "
  168. _this distance _target < 7.9 && playerSide != independent
  169. "
  170. ]
  171. ],
  172. "addAction",
  173. true,
  174. false
  175. ] call BIS_fnc_MP;
  176. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement