Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [] spawn {
- waitUntil { sleep 0.221; a3a_var_started };
- _missionTime = 5400;
- targetTime = 0;
- _endMessage = "Время вышло. Победа обороны.";
- _srv_gameStart = diag_tickTime;
- while {isNil "srv_missionFinished"} do {
- if (((diag_tickTime - _srv_gameStart) > _missionTime + targetTime)) then {
- srv_missionFinished = true;
- ["Время вышло. Победа обороны!", INDEPENDENT] call a3a_fnc_endMission;
- };
- sleep 3.712;
- };
- };
- [] spawn {
- waitUntil { sleep 0.221; a3a_var_started };
- _yol1 = 0;
- flag_tg1 setFlagTexture "\A3\Data_F\Flags\Flag_white_CO.paa";
- _yol2 = 0;
- flag_tg2 setFlagTexture "\A3\Data_F\Flags\Flag_white_CO.paa";
- _yol3 = 0;
- flag_vip setFlagTexture "screen\pnm.paa";
- _yol4 = 0;
- while { isNil "srv_triggerFinished";} do {
- _intg1 = list tg1;
- _intg2 = list tg2;
- if (((west countSide _intg1) > 1) and ((independent countSide _intg1) < 1)) then {
- _yol1 = 2;
- flag_tg1 setFlagTexture "\A3\Data_F\Flags\Flag_us_CO.paa";
- } else {
- if (((independent countSide _intg1) > 1) and ((west countSide _intg1) < 1)) then {
- _yol1 = 1;
- flag_tg1 setFlagTexture "screen\pnm.paa";
- } else {
- _yol1 = 0;
- flag_tg1 setFlagTexture "\A3\Data_F\Flags\Flag_white_CO.paa";
- };
- };
- if (((west countSide _intg2) > 1) and ((independent countSide _intg2) < 1)) then {
- _yol2 = 2;
- flag_tg2 setFlagTexture "\A3\Data_F\Flags\Flag_us_CO.paa";
- } else {
- if (((independent countSide _intg2) > 1) and ((west countSide _intg2) < 1)) then {
- _yol2 = 1;
- flag_tg2 setFlagTexture "screen\pnm.paa";
- } else {
- _yol2 = 0;
- flag_tg2 setFlagTexture "\A3\Data_F\Flags\Flag_white_CO.paa";
- };
- };
- if (_yol3 < 1) then {
- if (!alive vip) then {
- _yol3 = 1;
- flag_vip setFlagTexture "\A3\Data_F\Flags\Flag_us_CO.paa";
- };
- };
- if ((_yol4 < 1) and ((damage plane1) > 0.9) and ((damage plane2) > 0.9)) then {
- targetTime = 1800;
- publicVariable "targetTime";
- _yol4 = 1;
- };
- if ((_yol1 > 1) && (_yol2 > 1) && (_yol3 > 0)) then {
- srv_triggerFinished = true;
- ["Все задачи выполнены. Победа атаки!", WEST] call a3a_fnc_endMission;
- };
- sleep 3.712;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement