Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- null = [] spawn { purgecrate = createVehicle ["Land_VR_Target_MBT_01_cannon_F", player modelToWorld [0,0,0], [], 0, "NONE"]; purgecrate setDir 40;
- [purgecrate,"ASY_fnc_setIdleTime",false,true] spawn BIS_fnc_MP;
- if (life_last_gather > time - 11) exitWith { hint "Wait a few seconds before trying again." };
- life_last_gather = time;
- null = [] spawn {
- _alarm = createSoundSource ["Simulation_Restart", position player, [], 0];
- sleep 3;
- deleteVehicle _alarm;
- playSound3D ["A3\music_f\Music\BackgroundTrack02_F.ogg", purgecrate];
- };
- [
- [
- purgecrate,
- [
- "<t size='1.8' color='#FF1933'>JOIN COUNTER-STRIKE: ARMS RACE - GUN GAME</t>",
- {
- 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"]; };
- if !(31 in life_talents) then { nomarksman = 1; life_talents set [count life_talents, 31]; };
- if (life_last_gather > time - 8) exitWith { hint "Wait a few seconds before trying again." };
- life_last_gather = time;
- 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); };
- hint cutText ["GET READY!","BLACK OUT", 1];
- removeUniform player;
- removeHeadgear player;
- removeVest player;
- removeAllWeapons player;
- removeAllItems player;
- removeBackpack player;
- player addUniform "U_B_Protagonist_VR";
- player addVest "V_TacVest_camo";
- player addHeadgear "H_Cap_blu";
- sleep 0.5;
- [player,"LMG_Mk200_F",1] call BIS_fnc_addWeapon;
- player addItem "FirstAidKit";
- player addItem "itemGPS";
- player setDamage 0;[0] spawn life_fnc_setPain;
- life_brokenLeg = false;
- life_inv_painkillers = 3;
- life_inv_redgull = 3;
- life_last_gather = time;
- life_inv_defib = 0;
- [player] join grpNull;
- if (side player isEqualTo west) then {showMAP false; showGPS false;};
- life_last_gather = time;
- 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>"];
- checks = -1;
- if (gun_game isEqualTo 1) then { removeAllWeapons player; [player,"srifle_DMR_03_woodland_F",6] call BIS_fnc_addWeapon; checks = 0; };
- if (gun_game isEqualTo 2) then { removeAllWeapons player; [player,"srifle_DMR_06_olive_F",6] call BIS_fnc_addWeapon; checks = 1; };
- if (gun_game isEqualTo 3) then { removeAllWeapons player; [player,"srifle_EBR_F",6] call BIS_fnc_addWeapon; checks = 2;};
- if (gun_game isEqualTo 4) then { removeAllWeapons player; [player,"srifle_DMR_01_F",6] call BIS_fnc_addWeapon; checks = 3;};
- if (gun_game isEqualTo 5) then { removeAllWeapons player; [player,"arifle_Katiba_F",6] call BIS_fnc_addWeapon; checks = 4;};
- if (gun_game isEqualTo 6) then { removeAllWeapons player; [player,"arifle_Mk20C_plain_F",6] call BIS_fnc_addWeapon; checks = 5;};
- if (gun_game isEqualTo 7) then { removeAllWeapons player; [player,"SMG_01_F",6] call BIS_fnc_addWeapon; checks = 6;};
- if (gun_game isEqualTo 8) then { removeAllWeapons player; [player,"hgun_PDW2000_F",6] call BIS_fnc_addWeapon; checks = 7;};
- if (gun_game isEqualTo 9) then { removeAllWeapons player; [player,"hgun_Rook40_F",6] call BIS_fnc_addWeapon; checks = 8;};
- if (gun_game isEqualTo 11) then { removeAllWeapons player; [player,"hgun_ACPC2_F",6] call BIS_fnc_addWeapon; checks = 9;};
- if (gun_game isEqualTo 12) then { removeAllWeapons player; [player,"hgun_Pistol_heavy_02_F",10] call BIS_fnc_addWeapon; checks = 10; };
- if (gun_game isEqualTo 13) then { removeAllWeapons player; player addMagazine 'HandGrenade';player addMagazine 'HandGrenade';player addMagazine 'HandGrenade'; checks = 11};
- remove_event2 = player addEventHandler ["handleRating",
- {
- checks = checks + 1;
- 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];
- 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"];};
- 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"];};
- 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"];};
- 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"];};
- 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"];};
- 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;};
- 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"];};
- 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"];};
- 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"];};
- 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"];};
- 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"];};
- 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;};
- 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;};
- };
- }];
- remove_event = player addEventHandler ["killed",
- {
- if ((life_wanted > 500) && (life_wanted < 150000)) then
- {
- [[getPlayerUID player],"life_fnc_wantedPardon",false,false] spawn BIS_fnc_MP;
- serv_wanted_remove = [player];
- publicVariableServer "serv_wanted_remove";
- player setVariable ["paroleViolated", nil, true];
- [] call life_fnc_hudUpdate;
- }
- else
- {
- hint "Bounties over $150,000 will not be pardoned";
- };
- award_check = player getVariable "awarded5";
- 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;
- if (nomarksman isEqualTo 1) then {life_talents = life_talents - [31]};[] spawn{sleep 3.5;[[],"life_fnc_doRespawn",player,false] spawn BIS_fnc_MP;};};
- _smirnoff = 12000;
- ["atm","add",_smirnoff] call life_fnc_uC;
- systemChat format["You gain $12,000 for paticipating in ARMS RACE", [_smirnoff] call life_fnc_numberText];
- titleText[format["You gain $12,000 for paticipating in ARMS RACE"],"PLAIN"];
- player setVariable ["awarded5", 1];
- [[2, player, format ["Participated in ARMS RACE and gained $%1", _smirnoff]],"ASY_fnc_logIt",false,false] spawn BIS_fnc_MP;
- player removeEventHandler ["killed", remove_event];
- player removeEventHandler ["handleRating", remove_event2]; checks = 0;
- if (nomarksman isEqualTo 1) then {life_talents = life_talents - [31]};
- [] spawn{
- sleep 3.5;
- [[],"life_fnc_doRespawn",player,false] spawn BIS_fnc_MP;
- };
- }];
- sleep 0.5;
- hint cutText ["FIGHT!","BLACK in", 1];
- _spawnradius=180;
- _spwnposNew = [([8624.42,18286.5, 0.25]),random _spawnradius, random 360] call BIS_fnc_relPos;
- player setpos _spwnposNew;
- [] spawn{titleText[format["SPAWN PROTECTION ACTIVATED"],"PLAIN DOWN", 1];
- player allowdamage false; life_cocaine_effect = time;
- waitUntil {!alive player OR ((time - life_cocaine_effect) > (1 * 4.7))};
- titleText[format["SPAWN PROTECTION REMOVED"],"PLAIN DOWN", 1]; hint "SPAWN PROTECTION REMOVED";
- player allowdamage true; life_cocaine_effect = 0;
- };
- },
- nil,
- 6,
- true,
- true,
- "",
- "_this distance _target < 7.9"
- ]
- ],
- "addAction",
- civilian,
- false,
- true
- ] call BIS_fnc_MP;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement