Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.35 KB | None | 0 0
  1.  
  2.  
  3. null = [] spawn { purgecrate = createVehicle ["Land_VR_Target_MBT_01_cannon_F", player modelToWorld [0,0,0], [], 0, "NONE"]; purgecrate setDir 40;
  4. [purgecrate,"ASY_fnc_setIdleTime",false,true] 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. null = [] 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 (48 in life_talents) exitWith {hint "You need to UNLEARN Resilient talent to participate! No more saving gear by waking up in the hospital it causes RDM in Kavala."; titleText["You need to UNLEARN Resilient talent to participate!","PLAIN"]; };
  20. if !(31 in life_talents) then { nomarksman = 1; life_talents set [count life_talents, 31]; };
  21. if (life_last_gather > time - 8) exitWith { hint "Wait a few seconds before trying again." };
  22. life_last_gather = time;
  23. if (gun_game isEqualTo 14) exitWith {removeAllWeapons player; titleText[format["YOU WIN! YOU WIN! YOU WIN!"],"PLAIN"]; hint "YOU WIN! YOU WIN! YOU WIN! YOU WIN! YOU WIN! YOU WIN! ";[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP; (_this select 0) removeAction (_this select 2); };
  24. hint cutText ["GET READY!","BLACK OUT", 1];
  25. removeUniform player;
  26. removeHeadgear player;
  27. removeVest player;
  28. removeAllWeapons player;
  29. removeAllItems player;
  30. removeBackpack player;
  31. player addUniform "U_B_Protagonist_VR";
  32. player addVest "V_TacVest_camo";
  33. player addHeadgear "H_Cap_blu";
  34. sleep 0.5;
  35. [player,"LMG_Mk200_F",1] call BIS_fnc_addWeapon;
  36. player addItem "FirstAidKit";
  37. player addItem "itemGPS";
  38. player setDamage 0;[0] spawn life_fnc_setPain;
  39. life_brokenLeg = false;
  40. life_inv_painkillers = 3;
  41. life_inv_redgull = 3;
  42. life_last_gather = time;
  43. life_inv_defib = 0;
  44. [player] join grpNull;
  45. if (side player isEqualTo west) then {showMAP false; showGPS false;};
  46. life_last_gather = time;
  47. 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.1b" + "</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 </t>"];
  48. checks = -1;
  49. if (gun_game isEqualTo 1) then { removeAllWeapons player; [player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon; checks = 0; };
  50. if (gun_game isEqualTo 2) then { removeAllWeapons player; [player,"srifle_DMR_06_olive_F",6] call BIS_fnc_addWeapon; checks = 1; };
  51. if (gun_game isEqualTo 3) then { removeAllWeapons player; [player,"srifle_EBR_F",6] call BIS_fnc_addWeapon; checks = 2;};
  52. if (gun_game isEqualTo 4) then { removeAllWeapons player; [player,"srifle_DMR_01_F",6] call BIS_fnc_addWeapon; checks = 3;};
  53. if (gun_game isEqualTo 5) then { removeAllWeapons player; [player,"arifle_Katiba_F",6] call BIS_fnc_addWeapon; checks = 4;};
  54. if (gun_game isEqualTo 6) then { removeAllWeapons player; [player,"arifle_Mk20C_plain_F",6] call BIS_fnc_addWeapon; checks = 5;};
  55. if (gun_game isEqualTo 7) then { removeAllWeapons player; [player,"SMG_01_F",6] call BIS_fnc_addWeapon; checks = 6;};
  56. if (gun_game isEqualTo 8) then { removeAllWeapons player; [player,"hgun_PDW2000_F",6] call BIS_fnc_addWeapon; checks = 7;};
  57. if (gun_game isEqualTo 9) then { removeAllWeapons player; [player,"hgun_Rook40_F",6] call BIS_fnc_addWeapon; checks = 8;};
  58. if (gun_game isEqualTo 11) then { removeAllWeapons player; [player,"hgun_ACPC2_F",6] call BIS_fnc_addWeapon; checks = 9;};
  59. if (gun_game isEqualTo 12) then { removeAllWeapons player; [player,"hgun_Pistol_heavy_02_F",10] call BIS_fnc_addWeapon; checks = 10; };
  60. if (gun_game isEqualTo 13) then { removeAllWeapons player; player addMagazine 'HandGrenade';player addMagazine 'HandGrenade';player addMagazine 'HandGrenade'; checks = 11};
  61. remove_event2 = player addEventHandler ["handleRating",
  62. {
  63. checks = checks + 1;
  64. if (checks > 0) then {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>", checks];
  65. if (checks isEqualTo 1) then {removeAllWeapons player;[player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon; gun_game = 1; titleText[format["Level 2 - Mk1 unlocked"],"PLAIN DOWN"];};
  66. if (checks isEqualTo 2) then {removeAllWeapons player;[player,"srifle_DMR_06_olive_F",10] call BIS_fnc_addWeapon; gun_game = 2; titleText[format["Level 3 - Mk14 unlocked"],"PLAIN DOWN"];};
  67. if (checks isEqualTo 3) then {removeAllWeapons player; [player,"srifle_EBR_F",10] call BIS_fnc_addWeapon; gun_game = 3; titleText[format["Level 4 - Mk18 unlocked"],"PLAIN DOWN"];};
  68. if (checks isEqualTo 4) then {removeAllWeapons player; [player,"srifle_DMR_01_F",10] call BIS_fnc_addWeapon; gun_game = 4; titleText[format["Level 5 - Rahim unlocked"],"PLAIN DOWN"];};
  69. if (checks isEqualTo 5) then {removeAllWeapons player; [player,"arifle_Katiba_F",10] call BIS_fnc_addWeapon; gun_game = 5; titleText[format["Level 6 - Katiba unlocked"],"PLAIN DOWN"];};
  70. if (checks isEqualTo 6) then {removeAllWeapons player; [player,"arifle_Mk20C_plain_F",10] call BIS_fnc_addWeapon; gun_game = 6; 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;};
  71. if (checks isEqualTo 7) then {removeAllWeapons player; [player,"SMG_01_F",10] call BIS_fnc_addWeapon; gun_game = 7; titleText[format["Level 8 - Vermin unlocked"],"PLAIN DOWN"];};
  72. if (checks isEqualTo 8) then {removeAllWeapons player; [player,"hgun_PDW2000_F",10] call BIS_fnc_addWeapon; gun_game = 8; titleText[format["Level 9 - PDW unlocked"],"PLAIN DOWN"];};
  73. if (checks isEqualTo 9) then {removeAllWeapons player; [player,"hgun_Rook40_F",10] call BIS_fnc_addWeapon; gun_game = 9; titleText[format["Level 10 - Rook unlocked"],"PLAIN DOWN"];};
  74. if (checks isEqualTo 10) then {removeAllWeapons player; [player,"hgun_ACPC2_F",10] call BIS_fnc_addWeapon; gun_game = 11; titleText[format["Level 11 - ACP unlocked"],"PLAIN DOWN"];};
  75. if (checks isEqualTo 11) then {removeAllWeapons player; [player,"hgun_Pistol_heavy_02_F",5] call BIS_fnc_addWeapon; gun_game = 12; titleText[format["Level 12 - Zubr unlocked"],"PLAIN DOWN"];};
  76. if (checks isEqualTo 12) then {removeAllWeapons player;player addMagazine 'HandGrenade';player addMagazine 'HandGrenade';player addMagazine 'HandGrenade'; gun_game = 13; 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;};
  77. if (checks > 12) then {titleText[format["YOU WIN THE GUN GAME!!! YOU WIN THE GUN GAME!!!"],"PLAIN"];[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE GUN GAME", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP;[[0,format["%1 WINS THE ARMS RACE", name player]],"life_fnc_broadcast",true,false] spawn BIS_fnc_MP; gun_game = 14; _msg = "WINS ARMS RACE - WINS ARMS RACE - WINS ARMS RACE"; [[_msg,name player,2],"life_fnc_clientMessage",true,false] spawn BIS_fnc_MP;};
  78. };
  79. }];
  80. remove_event = player addEventHandler ["killed",
  81. {
  82. if ((life_wanted > 500) && (life_wanted < 150000)) then
  83. {
  84. [[getPlayerUID player],"life_fnc_wantedPardon",false,false] spawn BIS_fnc_MP;
  85. serv_wanted_remove = [player];
  86. publicVariableServer "serv_wanted_remove";
  87. player setVariable ["paroleViolated", nil, true];
  88. [] call life_fnc_hudUpdate;
  89. }
  90. else
  91. {
  92. hint "Bounties over $150,000 will not be pardoned";
  93. };
  94. award_check = player getVariable "awarded5";
  95. if (award_check isEqualTo 1) exitWith {titleText[format["Already rewarded! Try again to win grand prize."],"PLAIN"]; player removeEventHandler ["killed", remove_event];player removeEventHandler ["handleRating", remove_event2]; checks = 0;
  96. if (nomarksman isEqualTo 1) then {life_talents = life_talents - [31]};[] spawn{sleep 3.5;[[],"life_fnc_doRespawn",player,false] spawn BIS_fnc_MP;};};
  97. _smirnoff = 12000;
  98. ["atm","add",_smirnoff] call life_fnc_uC;
  99. systemChat format["You gain $12,000 for paticipating in ARMS RACE", [_smirnoff] call life_fnc_numberText];
  100. titleText[format["You gain $12,000 for paticipating in ARMS RACE"],"PLAIN"];
  101. player setVariable ["awarded5", 1];
  102. [[2, player, format ["Participated in ARMS RACE and gained $%1", _smirnoff]],"ASY_fnc_logIt",false,false] spawn BIS_fnc_MP;
  103. player removeEventHandler ["killed", remove_event];
  104. player removeEventHandler ["handleRating", remove_event2]; checks = 0;
  105. if (nomarksman isEqualTo 1) then {life_talents = life_talents - [31]};
  106. [] spawn{
  107. sleep 3.5;
  108. [[],"life_fnc_doRespawn",player,false] spawn BIS_fnc_MP;
  109. };
  110. }];
  111. sleep 0.5;
  112. hint cutText ["FIGHT!","BLACK in", 1];
  113. _spawnradius=180;
  114. _spwnposNew = [([8624.42,18286.5, 0.25]),random _spawnradius, random 360] call BIS_fnc_relPos;
  115. player setpos _spwnposNew;
  116. [] spawn{titleText[format["SPAWN PROTECTION ACTIVATED"],"PLAIN DOWN", 1];
  117. player allowdamage false; life_cocaine_effect = time;
  118. waitUntil {!alive player OR ((time - life_cocaine_effect) > (1 * 4.7))};
  119. titleText[format["SPAWN PROTECTION REMOVED"],"PLAIN DOWN", 1]; hint "SPAWN PROTECTION REMOVED";
  120. player allowdamage true; life_cocaine_effect = 0;
  121. };
  122.  
  123.  
  124. },
  125. nil,
  126. 6,
  127. true,
  128. true,
  129. "",
  130. "_this distance _target < 7.9"
  131. ]
  132. ],
  133. "addAction",
  134. civilian,
  135. false,
  136. true
  137. ] call BIS_fnc_MP;
  138.  
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement