Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isServer) then {
- waitUntil { sleep 3; Serp_warbegins == 1 };
- sleep 2;
- _missionEndTime = diag_tickTime + 150*60;
- _klen = 0;
- _nighnee = 0;
- _vzletka = 0;
- while {isNil "srv_triggerFinished"} do {
- sleep 5;
- if (diag_tickTime > _missionEndTime) then {
- srv_triggerFinished = true;
- ["Время вышло! Победа ЧДКЗ!"] call SerP_msg;
- [[east], "zarubiren_missionen"] call BIS_fnc_MP;
- };
- if (_klen == 0) then {
- if (((east countSide list tr1) <=2) && (west countside list tr1) > (east countside list tr1)*2) then
- {
- _klen = 1;
- flgN1 setFlagTexture "ca\Ca_E\data\flag_cdf_co.paa";
- };
- };
- if (_nighnee == 0) then {
- if (((east countSide list tr2) <=2) && (west countside list tr2) > (east countside list tr2)*2) then
- {
- _nighnee = 1;
- flgN2 setFlagTexture "ca\Ca_E\data\flag_cdf_co.paa";
- };
- };
- if ((_klen == 1) && (_nighnee == 1)) then
- {
- _vzletka = 1;
- };
- if (_vzletka == 1) then
- {
- if (({("ItemcTab" in ((items _x) + (assignedItems _x)) && {_x inArea "marker_1"}) or ((_x hasWeapon "rhs_weap_igla") && {(_x distance markerpos "marker_1") <= 100})} count playableUnits) > 0) then
- {
- srv_triggerFinished = true;
- ["ЧСО выполнили все задачи!"] call SerP_msg;
- [[west], "zarubiren_missionen"] call BIS_fnc_MP;
- };
- };
- ace_weather_enableServerController = false;
- ACE_RAIN_PARAMS = [0, 0, 0]; //дождь выкл
- publicVariable "ACE_RAIN_PARAMS";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement