Advertisement
Guest User

Untitled

a guest
May 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. if (isServer) then {
  2. waitUntil { sleep 3; Serp_warbegins == 1 };
  3. sleep 2;
  4. _missionEndTime = diag_tickTime + 150*60;
  5. _klen = 0;
  6. _nighnee = 0;
  7. _vzletka = 0;
  8. while {isNil "srv_triggerFinished"} do {
  9. sleep 5;
  10. if (diag_tickTime > _missionEndTime) then {
  11. srv_triggerFinished = true;
  12. ["Время вышло! Победа ЧДКЗ!"] call SerP_msg;
  13. [[east], "zarubiren_missionen"] call BIS_fnc_MP;
  14. };
  15. if (_klen == 0) then {
  16. if (((east countSide list tr1) <=2) && (west countside list tr1) > (east countside list tr1)*2) then
  17. {
  18. _klen = 1;
  19. flgN1 setFlagTexture "ca\Ca_E\data\flag_cdf_co.paa";
  20. };
  21. };
  22. if (_nighnee == 0) then {
  23. if (((east countSide list tr2) <=2) && (west countside list tr2) > (east countside list tr2)*2) then
  24. {
  25. _nighnee = 1;
  26. flgN2 setFlagTexture "ca\Ca_E\data\flag_cdf_co.paa";
  27. };
  28. };
  29. if ((_klen == 1) && (_nighnee == 1)) then
  30. {
  31. _vzletka = 1;
  32. };
  33. if (_vzletka == 1) then
  34. {
  35. 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
  36. {
  37. srv_triggerFinished = true;
  38. ["ЧСО выполнили все задачи!"] call SerP_msg;
  39. [[west], "zarubiren_missionen"] call BIS_fnc_MP;
  40. };
  41. };
  42. ace_weather_enableServerController = false;
  43. ACE_RAIN_PARAMS = [0, 0, 0]; //дождь выкл
  44. publicVariable "ACE_RAIN_PARAMS";
  45. };
  46. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement