Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.10 KB | None | 0 0
  1.  
  2. [] spawn
  3. {
  4. if (side player isEqualTo resistance) exitWith {hint "MEDICS CANT PARTICIPATE SORRY";};
  5. if (side player isEqualTo blufor && life_copLevel < 2) exitWith {hint "CADETS CANT PARTICIPATE BECAUSE OF LETHAL AMMO RESTRICTION";};
  6. life_bail_paid = true;
  7. sleep 1;
  8. if (life_is_arrested isEqualTo true) exitWith {titleText[format["CANT JOIN FROM JAIL"],"PLAIN DOWN", 2];};
  9. playSound "racebeep1";
  10. sleep 1;
  11. playSound "racebeep1";
  12. sleep 1;
  13. playSound "racebeep2";
  14. titleText[format["PRESS 7 KEY TO JOIN BATTLE ROYALE"],"PLAIN DOWN", 2];
  15. br_timer = time;
  16. hint parseText format["<t size='1.6' align='center' shadow='1' color=""#FF0001"">" + "*BATTLE ROYALE BATTLEGROUNDS*" + "</t>" + "<t size='1.8' color=""#ffff00"">" + "<br />PRESS 7 KEY TO JOIN EVENT!" + "</t>" + "<t size='1.4' color=""#FF9933"">" + "<br /> You will earn $7,000 for participation!<br /> $77,777 GRAND PRIZE!</t>" +"<t size='1.2' align='center' shadow='1' color=""#FF1001"">" + "<br />YOUR GEAR AND LOCATION WILL BE SAVED BUT VIRTUAL INVENTORY WILL BE LOST (cash, drugs etc)! Join at your own risk of losing gear - if u need comp type !comp in discord - google Asylum Discord for invite" + "</t>" + "<t size='1.3' color=""#66CC33"">"+"<br /> ver 9.6b by Mr Smirnoff</t>"];
  17. waituntil {!(IsNull (findDisplay 46))};
  18. broyale_join = (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 isEqualTo 8) then
  19. {
  20. if !(vehicle player isEqualTo player) exitWith {hint 'CANT JOIN FROM INSIDE A VEHICLE';};
  21. broyale_remove = (findDisplay 46) displayRemoveEventHandler ['KeyDown', broyale_join];
  22. if((player getVariable ['restrained',false])) exitWith {hint 'CANT JOIN WHILE RESTRAINED';};
  23. if (player distance (getMarkerPos 'Respawn_west') < 600) exitWith {hint 'CANT JOIN WHILE DEAD';};
  24. if (player getVariable ['downed',false]) exitWith {hint 'CANT JOIN WHILE DOWNED';};
  25. [] spawn
  26. {
  27. playSound 'bombarm';
  28. br_joined = true;
  29. titleText[format[''],'PLAIN DOWN', 0];
  30. hint cutText ['PREPARE TO ENTER ASYLUM BATTLEGROUNDS!','BLACK OUT', 2];
  31. smir_org_pos = getPos player;
  32. smir_saved_gear = [player] call life_fnc_fetchDeadGear;
  33. sleep 1.5;
  34. _spwnPos = [[12587.8,14345.7,0], 0, 400, 0, 0, 0, 0] call BIS_fnc_findSafePos;
  35. player setPos [_spwnPos select 0, _spwnPos select 1, 1400];
  36. removeUniform player;
  37. removeVest player;
  38. removeAllWeapons player;
  39. removeBackpack player;
  40. sleep 0.5;
  41. player addUniform 'U_B_Wetsuit';
  42. if (side player isEqualTo blufor) then {player addVest 'V_TacVest_blk_POLICE';[player,'arifle_MX_Black_F',18] call BIS_fnc_addWeapon} else {player addVest 'V_PlateCarrier1_blk';[player,'arifle_Katiba_F',18] call BIS_fnc_addWeapon};
  43. player addPrimaryWeaponItem 'optic_MRCO';
  44. player additem 'NVGoggles';
  45. player assignItem 'NVGoggles';
  46. player addMagazine 'HandGrenade';
  47. player addMagazine 'smokeShell';
  48. sleep 0.5;
  49. player addItem 'FirstAidKit';
  50. player addItem 'FirstAidKit';
  51. player addItem 'FirstAidKit';
  52. player setDamage 0;[0] spawn life_fnc_setPain;
  53. life_brokenLeg = false;
  54. sleep 0.5;
  55. life_inv_painkillers = 5;
  56. life_inv_redgull = 5;
  57. life_inv_bloodbag = 3;
  58. life_inv_defib = 0;
  59. sleep 0.5;
  60. [player] join grpNull;
  61. _waypon = group player;
  62. _waypon addWaypoint [[12697.3, 14217.8, 10], 0];
  63. sleep 0.5;
  64. check_kills = 0;
  65. life_hunger = 100;
  66. life_thirst = 100;
  67. _smirnoff = 7000;
  68. ['atm','add',_smirnoff] call life_fnc_uC;
  69. systemChat format['You gain $7,000 for paticipating in Battle Royale', [_smirnoff] call life_fnc_numberText];
  70. [[2, player, format ['Participated in Battle Royale event and gained $%1', _smirnoff]],'ASY_fnc_logIt',false,false] spawn BIS_fnc_MP;
  71. sleep 0.5;
  72. if (side player isEqualTo west) then {showMAP false; showGPS false;};
  73. [] spawn {
  74. br_timer_count = true;
  75. remove_event2 = player addEventHandler ['handleRating',
  76. {
  77. check_kills = check_kills + 1;
  78. }];
  79. sleep 0.5;
  80. while {br_timer_count} do {
  81. sleep (13 + random 2);
  82. if (br_joined isEqualTo false) exitWith {br_timer_count = false;'dynamicBlur' ppEffectEnable false;'ColorCorrections' ppEffectEnable false;};
  83. _units = [12697.3, 14217.8, 10] nearEntities ['Man',390];
  84. _br_countdown = [floor (460 - (time - br_timer)), 'MM:SS'] call BIS_fnc_secondsToString;
  85. if (floor (460 - (time - br_timer)) < 0) then {_units = [12697.3, 14217.8, 10] nearEntities ['Man',80];_br_countdown = '\n\n TIME IS UP! \n TOXIC GAS DAMAGE INCREASED \n GET ON THE ROOF NOW \n\n 00:00:00';playSound 'racebeep2';};
  86. _playersleft = {isPlayer _x} count _units;
  87. hint format['TIME REMAINING TO GET ON THE ROOF - %1 minutes \n\n PLAYERS ALIVE - %2 \n\n YOU KILLED - %3', _br_countdown, _playersleft, check_kills];
  88. sleep (1 + random 2);
  89. if(br_timer < time - 270) then {
  90. if ((player distance [12697.6, 14214.5, 57.7]) < 48.65) then {
  91. titleText[format['YOU ARE SAFE STAY NEAR THE CENTER'],'PLAIN DOWN'];
  92. 'dynamicBlur' ppEffectEnable true;
  93. 'dynamicBlur' ppEffectAdjust [0];
  94. 'dynamicBlur' ppEffectCommit 3;
  95. 'ColorCorrections' ppEffectAdjust [1, 1, 0,[ 0, 0, 0, 0],[ 1, 1, 1, 1],[ 0, 0, 0, 0]];
  96. 'colorCorrections' ppEffectCommit 4;
  97. if (floor (460 - (time - br_timer)) < 0) then {hint 'STAY NEAR CENTER OF THE ROOF OR GAS WILL KILL YOU! LAST MAN STANDING WINS! STAY NEAR THE GAZEBO STRUCTURE!'};
  98. if (_playersleft < 2) then
  99. {
  100. titleText[format['WINNER WINNER CHICKEN DINNER - WINNER WINNER CHICKEN DINNER'],'PLAIN DOWN'];
  101. _killBRlosers = {
  102. if(isNil 'br_joined') then {br_joined = false};
  103. if (br_joined isEqualTo true) then
  104. {
  105. br_timer_count = false;sleep(4 + random 2);player setDamage 1;
  106. };
  107. }; [_killBRlosers,'BIS_fnc_Spawn',true,false] call BIS_fnc_MP;
  108. sleep 28;
  109. _msg = format['%1 - WINS SMIRNOFF BATTLE ROYALE BATTLEGROUNDS WITH - %2 PLAYER KILLS!!! - CONGRATS TO - %1 - WINNER WINNER CHICKEN DINNER - %1 - WINS $77,777! - Cops soft log to fix hexes and map - Money will be sent shortly',profileName, check_kills];
  110. [[_msg,name player,4],'life_fnc_clientMessage',true,false] spawn BIS_fnc_MP;
  111. };
  112. } else {
  113. 'ColorCorrections' ppEffectEnable true;
  114. 'ColorCorrections' ppEffectAdjust [0.6, 0.37, 0, [0.2, 0.29, 0.8, -0.32], [9, 8, 2, 0.7], [0.8, 0.09, 0.19, 0.0]];
  115. 'ColorCorrections' ppEffectCommit 12;
  116. titleText[format['YOU ARE DYING FROM TOXIC GAS GET ON THE ROOF IN TIME!'],'PLAIN DOWN'];
  117. 'dynamicBlur' ppEffectEnable true;
  118. 'dynamicBlur' ppEffectAdjust [0.1];
  119. 'dynamicBlur' ppEffectCommit 7;
  120. if (floor (460 - (time - br_timer)) > 0) then {player setDamage (damage player + 0.04)} else
  121. {player setDamage (damage player + 0.20);
  122. if (floor (460 - (time - br_timer)) < -25) then {player setDamage (damage player + 0.74)};
  123. };
  124. _choke_snd = [0,1,2,3,4,5,6] call BIS_fnc_selectRandom;
  125. switch(_choke_snd) do {
  126. case 0: {playSound3D ['A3\Sounds_f\characters\human-sfx\Person0\P0_choke_02.wss',player]};
  127. case 1: {playSound3D ['A3\Sounds_f\characters\human-sfx\Person0\P0_choke_03.wss',player]};
  128. case 2: {playSound3D ['A3\Sounds_f\characters\human-sfx\Person0\P0_choke_04.wss',player]};
  129. };
  130. };
  131. };
  132. };
  133. };
  134. remove_event = player addEventHandler ['killed',
  135. {
  136. [] spawn{
  137. if (br_timer < time - 277) exitWith {
  138. [] spawn {br_timer_count = false;player removeEventHandler ['killed', remove_event];deleteWaypoint [group player, 0]; sleep 3; ['Hospital', true] spawn life_fnc_revived; br_joined = false;player removeEventHandler ['killed', remove_event];
  139. if ((life_wanted > 4000) && (life_wanted < 99000)) then
  140. {
  141. [[getPlayerUID player],'life_fnc_wantedPardon',false,false] spawn BIS_fnc_MP;
  142. serv_wanted_remove = [player];
  143. publicVariableServer 'serv_wanted_remove';
  144. player setVariable ['paroleViolated', nil, true];
  145. player setVariable ['parole', nil, true];
  146. }
  147. else
  148. {
  149. hint 'Bounties over $99,000 will not be pardoned';
  150. };
  151. sleep 1;
  152. removeUniform player;
  153. sleep 2;
  154. [smir_saved_gear] spawn life_fnc_loadDeadGear;sleep 2;player setpos smir_org_pos;sleep 2;deleteWaypoint [group player, 0];
  155. hint format ['Thank you for participating in the Battle Royale Battlegrounds event created by Mr Smirnoff!!!\n\n GG IN SIDE CHAT!\n\n YOU MANAGED TO KILL - %1 PLAYERS \n\n If you need comp for anything google Asylum Discord and type !comp in any channel', check_kills];
  156. titleText[format['Thank you for participating in the Battle Royale event created by Mr Smirnoff'],'PLAIN DOWN'];sleep 5;'dynamicBlur' ppEffectEnable false;
  157. 'ColorCorrections' ppEffectEnable false;player removeEventHandler ['handleRating', remove_event2];[0] spawn life_fnc_setPain;deleteWaypoint [group player, 0];deleteWaypoint [group player, 1]; };
  158. };
  159. sleep 1;
  160. ['Hospital', true] spawn life_fnc_revived;
  161. sleep 1.5;
  162. reload player;
  163. sleep 0.5;
  164. player setDamage 0;[0] spawn life_fnc_setPain;
  165. life_inv_painkillers = 3;
  166. life_inv_redgull = 3;
  167. life_inv_bloodbag = 3;
  168. life_brokenLeg = false;
  169. hint cutText ['GET READY TO RESPAWN - GAS DEPLOYS AT 3 MIN REMAINING!','BLACK OUT', 2];
  170. hint 'NO RESPAWNS IF YOU DIE AFTER GAS IS DEPLOYED \n\n NO RESPAWNS IF YOU DIE AFTER GAS IS DEPLOYED \n\n NO RESPAWNS IF YOU DIE AFTER GAS IS DEPLOYED';
  171. sleep 0.3;
  172. [] spawn {
  173. player allowdamage false;
  174. 'colorCorrections' ppEffectAdjust [1,0.3,0,[1,1,1,0],[1,1.1,1,0],[1,1,1,1]];
  175. 'colorCorrections' ppEffectCommit 1;
  176. 'colorCorrections' ppEffectEnable true;
  177. sleep 4.8;
  178. 'colorCorrections' ppEffectEnable false;
  179. titleText[format['SPAWN PROTECTION REMOVED'],'PLAIN DOWN', 1];
  180. player allowdamage true;
  181. };
  182. sleep 1;
  183. _spwnPos = [[12587.8,14345.7,0], 0, 310, 0, 0, 0, 0] call BIS_fnc_findSafePos;
  184. player setPos _spwnPos;
  185. _waypon = group player;
  186. _waypon addWaypoint [[12697.3, 14217.8, 11], 0];
  187. hint cutText ['FIGHT!','BLACK IN', 3];
  188. };
  189. }];
  190. sleep 5;
  191. hint cutText ['7 MINUTES TO GET ON THE ROOF AT WAYPOINT!','BLACK in', 7];
  192. hint 'YOU HAVE 7 MINUTES TO GET ON THE ROOF OF THE INDUSTRIAL!\n\n FOLLOW THE WAYPOINT!\n\n IN 4 MINUTES TOXIC GAS WILL BE DEPLOYED! YOU WILL TAKE DAMAGE UNLESS YOU GET ON THE ROOF AT THE WAYPOINT \n\n LAST MAN STANDING WILL WIN! \n\n NO RESPAWN AFTER GAS IS DEPLOYED PLAN ACCORDINGLY!';
  193.  
  194. [] spawn {
  195. player allowdamage false;
  196. 'colorCorrections' ppEffectAdjust [1,0.3,0,[1,1,1,0],[1,1.1,1,0],[1,1,1,1]];
  197. 'colorCorrections' ppEffectCommit 1;
  198. 'colorCorrections' ppEffectEnable true;
  199. sleep 24;
  200. 'colorCorrections' ppEffectEnable false;
  201. titleText[format['SPAWN PROTECTION REMOVED'],'PLAIN DOWN', 1];
  202. player allowdamage true;
  203. };
  204. };
  205. }"];
  206. sleep 50;
  207. broyale_remove = (findDisplay 46) displayRemoveEventHandler ["KeyDown", broyale_join];
  208. };
  209.  
  210. if (getPlayerUID player isEqualTo "76561198043844416") then {
  211. [] spawn {
  212. _worldPos = [12692.9, 14215.1, 0]; prot14 = "Land_WIP_F" createVehicle [0,0,0]; prot14 setPos _worldPos; prot14 setDir 140;
  213. sleep 0.7;
  214. _worldPos = [12676.8, 14227.8, 0]; prot15 = "Land_GH_Stairs_F" createVehicle [0,0,0]; prot15 setPos _worldPos; prot15 setDir 0;
  215. sleep 0.7;
  216. _worldPos = [12679.9, 14206.3, 7.8]; prot16 = "Land_GH_Stairs_F" createVehicle [0,0,0]; prot16 setPos _worldPos; prot16 setDir -118;
  217. _worldPos = [12737.7, 14211.7, -1]; prot18 = "Land_Amphitheater_F" createVehicle [0,0,0]; prot18 setPos _worldPos; prot18 setDir 270;
  218. sleep 0.7;
  219. _worldPos = [12718.1, 14205.8, -1.16]; prot38 = "Land_Amphitheater_F" createVehicle [0,0,0]; prot38 setPos _worldPos; prot38 setDir 0;
  220. sleep 0.7;
  221. _worldPos = [12719.3, 14222, 4.5]; prot22 = "Land_GH_Stairs_F" createVehicle [0,0,0]; prot22 setPos _worldPos; prot22 setDir 85;
  222. _worldPos = [12711.6, 14224.1, 8.3]; prot23 = "Land_GH_Stairs_F" createVehicle [0,0,0]; prot23 setPos _worldPos; prot23 setDir 110;
  223. sleep 0.7;
  224. _worldPos = [12695.7, 14215.7, 55]; prot4 = "Sign_Circle_F" createVehicle [0,0,0]; prot4 setPos _worldPos; prot4 setDir 190;
  225. _worldPos = [12695.7, 14215.7, 55]; prot5 = "Sign_Circle_F" createVehicle [0,0,0]; prot5 setPos _worldPos; prot5 setDir 90;
  226. sleep 0.7;
  227. lgt = "Land_GH_Gazebo_F" createVehicle [0,0,0]; lgt attachTo [prot14, [-5, 0, 14.4] ];
  228. sleep 9;
  229. life_adminXray2 = 1;
  230. onEachFrame
  231. {private["_vis","_pos","_near","_name","_icon","_width","_height","_gang"];
  232. if (life_adminXray2 isEqualTo 1) then {
  233. {
  234. if (isPlayer _x ) then {
  235. if (name _x != name player) then {
  236. _alpha = 1;
  237. _pos = visiblePosition _x;
  238. _pos set[2,(getPosATL _x select 2) + 2.2];
  239. _name = name _x;
  240. drawIcon3D ["",[1,1,1,_alpha],_pos,0,0,0,_name,0,0.04];}
  241. };
  242. } forEach allUnits;
  243. breakTo "main";};
  244. };
  245. sleep 26;
  246. [] spawn {
  247. br_timer_count = true;
  248. while {br_timer_count} do
  249. { sleep 10;
  250. _units = [12587.8,14345.7,0] nearEntities['Man',450]; _playersleft = {isPlayer _x} count _units;
  251. br_countdown = [floor (460 - (time - br_timer)), 'MM:SS'] call BIS_fnc_secondsToString;
  252. hint format['\n\n\n\n\n TIME REMAINING TO GET ON THE ROOF - %1 minutes \n\n\n\n PLAYERS ALIVE - %2', br_countdown, _playersleft];
  253. if (_playersleft < 2) then {br_timer_count = false; };
  254. };
  255. };
  256.  
  257. };};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement