Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //End Mission
- neb_fnc_core_ticketCounter = {
- _quarterScore = round (endScore / 4);
- _midscore = round (endScore / 2);
- _threeQuarter = round (endScore / 4) * 3;
- _almostEnd = round (endScore / 4) * round 3.8;
- _amountleftEnd = endScore - _almostEnd;
- // Blu is at Quarter Score
- if (bluScore == _quarterScore) then {
- _scoreText = format [ "Blu Is Now At %1 Out of %2 Points To Win The Game", _quarterScore, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,825] spawn BIS_fnc_dynamicText;
- };
- // Red is at Quarter Score
- if (redScore == _quarterScore) then {
- _scoreText = format [ "Red Is Now At %1 Out of %2 Points To Win The Game", _quarterScore, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,833] spawn BIS_fnc_dynamicText;
- };
- // Blu Has Half points needed to win
- if (bluScore == _midScore) then {
- _scoreText = format [ "Blu Is Now At %1 Out of %2 Points To Win The Game", _midScore, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,845] spawn BIS_fnc_dynamicText;
- };
- // Red Has Half points needed to win
- if (redScore == _midScore) then {
- _scoreText = format [ "Red Is Now At %1 Out of %2 Points To Win The Game", _midScore, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,855] spawn BIS_fnc_dynamicText;
- };
- if (bluScore == _threeQuarter) then {
- _scoreText = format [ "Blu Is Now At %1 Out of %2 Points To Win The Game", _threeQuarter, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,860] spawn BIS_fnc_dynamicText;
- };
- if (redScore == _threeQuarter) then {
- _scoreText = format [ "Red Is Now At %1 Out of %2 Points To Win The Game", _threeQuarter, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,870] spawn BIS_fnc_dynamicText;
- };
- if (bluScore == _almostEnd) then {
- _scoreText = format [ "Blu Only Needs %1 Points To Win The Game!!", _amountleftEnd, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,875] spawn BIS_fnc_dynamicText;
- };
- if (redScore == _almostEnd) then {
- _scoreText = format [ "Red Only Needs %1 Points To Win The Game!!", _amountleftEnd, endScore ];
- ["<t color='#B8AB67' size = '.8'>" + _scoreText + "</t>",-1,-1,4,1,0,880] spawn BIS_fnc_dynamicText;
- };
- if (bluScore >= endScore) then {
- //Crate Saving
- _crate = player getVariable [ "NEB_shopCrate", objNull ];
- if !( isNull _crate ) then {
- profileNamespace setVariable[ "NEB_telecache",
- [
- magazineCargo _crate call BIS_fnc_consolidateArray,
- itemCargo _crate call BIS_fnc_consolidateArray,
- weaponCargo _crate call BIS_fnc_consolidateArray
- ]
- ];
- };
- saveProfileNamespace;
- endMission "END1";
- };
- if (redScore >= endScore) then {
- //Crate Saving
- _crate = player getVariable [ "NEB_shopCrate", objNull ];
- if !( isNull _crate ) then {
- profileNamespace setVariable[ "NEB_telecache",
- [
- magazineCargo _crate call BIS_fnc_consolidateArray,
- itemCargo _crate call BIS_fnc_consolidateArray,
- weaponCargo _crate call BIS_fnc_consolidateArray
- ]
- ];
- };
- saveProfileNamespace;
- endMission "END1";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement