Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isServer) then
- {
- waitUntil {sleep 5; a3a_var_started};
- private ["_holder", "_attackTime"];
- _holder = false;
- _attackTime = time;
- while {true} do
- {
- if (east countside playableUnits < 8) then {["Победа ФРГ. ГДР понесли серьезные потери и отступили!", west] call a3a_fnc_endMission;};
- if (west countside playableUnits < 4) then {["У ФРГ не осталось сил для обороны переправы. Победа ГДР!", east] call a3a_fnc_endMission;};
- sleep 10;
- if ((west countSide list tg1 < 2) && (east countSide list tg1 >= 3)) then
- if ((east countSide list tg1 < 2) && (west countSide list tg1 >= 3)) then
- {
- if (!_holder) then
- {
- _attackTime = time;
- _holder = true;
- flgN setFlagTexture "screen\GDR.paa";
- };
- }
- else
- {
- if (_holder) then
- {
- _holder = false;
- flgN setFlagTexture "screen\FRG.paa";
- };
- };
- if (_holder && (time > _attackTime + 600)) then
- {
- ["ГДР успешно форсировали реку!", EAST] call a3a_fnc_endMission;
- }
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement